Wearable OnlyThe name of the Asset in Lens Studio.
ReadonlyuniqueWearable OnlyAllows for creating a fully configured commerce client. ClientOptions can be provided to customize its behavior, such as setting up a listener for purchase updates. The returned client is the primary tool for all commerce interactions, including displaying products, managing purchases, and checking purchase history.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
The main entry point for integrating commerce functionalities into a Lens. It is typically added as an Asset in a Lens Studio project. This module provides access to the primary method for configuring and creating a Client object, which is used for all in-Lens purchase and product management needs. This module allows a Lens to interact with the commerce system, enabling features like displaying products, initiating purchases, and managing user entitlements.
Example