Companion

object Companion

Functions

Link copied to clipboard
fun consumeItem(    sku: String,     quantity: Long?,     instanceId: String?,     callback: ConsumeItemCallback)

Consumes an inventory item. Use for only for consumable virtual items.

Link copied to clipboard
fun getInventory(    callback: GetInventoryCallback,     limit: Int = 50,     offset: Int = 0)

Returns a list of virtual items from the user’s inventory according to pagination settings. For each virtual item, complete data is returned.

Link copied to clipboard
fun getTimeLimitedItems(callback: GetTimeLimitedItemsCallback)

Returns a list of time-limited items from the user’s inventory. For each item, complete data is returned.

Link copied to clipboard
fun getVirtualBalance(callback: GetVirtualBalanceCallback)

Returns the current user’s balance of virtual currency. For each virtual currency, complete data is returned.

Link copied to clipboard
fun init(projectId: Int, token: String)

Sources

Link copied to clipboard