SKPayment.CreateFrom 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
CreateFrom(SKProduct) |
Creates and returns a new StoreKit payment for the provided |
CreateFrom(String) |
Developers should not use this deprecated method. Developers should use 'FromProduct (SKProduct)'' after fetching the list of available products from 'SKProductRequest' instead. |
CreateFrom(SKProduct)
Creates and returns a new StoreKit payment for the provided product
.
[Foundation.Export("paymentWithProduct:")]
public static StoreKit.SKPayment CreateFrom (StoreKit.SKProduct product);
static member CreateFrom : StoreKit.SKProduct -> StoreKit.SKPayment
Parameters
- product
- SKProduct
Returns
- Attributes
Applies to
CreateFrom(String)
Developers should not use this deprecated method. Developers should use 'FromProduct (SKProduct)'' after fetching the list of available products from 'SKProductRequest' instead.
[Foundation.Export("paymentWithProductIdentifier:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'FromProduct (SKProduct)'' after fetching the list of available products from 'SKProductRequest' instead.")]
public static StoreKit.SKPayment CreateFrom (string identifier);
static member CreateFrom : string -> StoreKit.SKPayment
Parameters
- identifier
- String
Returns
- Attributes