SKPayment.CreateFrom SKPayment.CreateFrom Method

Definition

Overloads

CreateFrom(SKProduct) CreateFrom(SKProduct)

Creates and returns a new StoreKit payment for the provided product.

CreateFrom(String) 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) 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

Returns

CreateFrom(String) 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 String

Returns

Applies to