Inventory #
Read more about the Inventory system in Hiro here.
Refreshing the inventory system #
You can refresh the inventory system’s data.
|
|
Listing the available items #
You can list the available items in the inventory system.
|
|
You can optionally retrieve a filtered list of items by category.
|
|
Listing the user’s inventory #
You can list a user’s inventory.
|
|
Granting inventory items #
You can grant inventory items to the user.
|
|
Consuming items #
You can consume items for a user that have the consumable
flag. You can specify whether or not the user is allowed to overconsume (use more than they have).
Setting
overconsume
to true
can be useful when handling multiple device scenarios. This allows consumption of the item, even if the local device’s resource data is out of sync. However, once the item reaches zero, further consumption is prevented, irrespective of the overconsume setting. This provides developers flexibility in managing inventory inconsistencies across devices.
|
|
Updating item properties #
You can update the properties on an item instance.
|
|