SKPayment.CreateFrom Method

Definition

Overloads

CreateFrom(SKProduct)

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

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

Applies to