PKPaymentButton.FromType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromType(PKPaymentButtonType, PKPaymentButtonStyle) |
Factory method to create a new PKPaymentButton with the specified PKPaymentButtonType and PKPaymentButtonStyle. |
| FromType(PKPaymentButtonType, PKPaymentButtonStyle, Boolean) |
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