PurchaseItem

constructor(itemId: String, type: Int)

Constructs a new PurchaseItem with the specified item ID and type. Default: non-consumable, LIFETIME_PREMIUM category.


constructor(itemId: String, trialId: String?, type: Int)

Constructs a new PurchaseItem with the specified item ID, trial ID, and type. Default: non-consumable, LIFETIME_PREMIUM category.


constructor(itemId: String, type: Int, isConsumable: Boolean)

Constructs a new PurchaseItem for INAPP with consumable configuration.


constructor(itemId: String, trialId: String?, type: Int, category: PurchaseItem.PurchaseCategory)

Constructs a new PurchaseItem with full configuration including category.

Parameters

itemId

The unique identifier for the purchase item.

trialId

The trial ID associated with the purchase (null for non-subscriptions).

type

The type of the purchase item.

category

The purchase category for classification.


constructor(itemId: String, type: Int, category: PurchaseItem.PurchaseCategory)

Constructs a new PurchaseItem for INAPP with category.

Parameters

itemId

The unique identifier for the purchase item.

type

The type of the purchase item.

category

The purchase category for classification.