PKPaymentButton.FromType Method

Definition

Overloads

FromType(PKPaymentButtonType, PKPaymentButtonStyle)

Factory method to create a new PKPaymentButton with the specified PKPaymentButtonType and PKPaymentButtonStyle.

[Foundation.Export("buttonWithType:style:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static PassKit.PKPaymentButton FromType(PassKit.PKPaymentButtonType buttonType, PassKit.PKPaymentButtonStyle buttonStyle);
[<Foundation.Export("buttonWithType:style:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : PassKit.PKPaymentButtonType * PassKit.PKPaymentButtonStyle -> PassKit.PKPaymentButton

Parameters

buttonType
PKPaymentButtonType
buttonStyle
PKPaymentButtonStyle

Returns

Attributes

Applies to

FromType(PKPaymentButtonType, PKPaymentButtonStyle, Boolean)

[Foundation.Export("buttonWithType:style:disableCardArt:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static PassKit.PKPaymentButton FromType(PassKit.PKPaymentButtonType buttonType, PassKit.PKPaymentButtonStyle buttonStyle, bool disableCardArt);
[<Foundation.Export("buttonWithType:style:disableCardArt:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromType : PassKit.PKPaymentButtonType * PassKit.PKPaymentButtonStyle * bool -> PassKit.PKPaymentButton

Parameters

buttonType
PKPaymentButtonType
buttonStyle
PKPaymentButtonStyle
disableCardArt
Boolean

Returns

Attributes

Applies to