Wearable OnlyThe name of the Asset in Lens Studio.
ReadonlyuniqueWearable OnlyCreates a SpectaclesMobileKitSession instance. To begin interacting with your mobile application, a Lens must first start a session. Once the mobile application connects to the session, the Lens can start communicating with it.
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.
SpectaclesMobileKitModule serves as the primary entry point for the Spectacles Mobile Kit, enabling interaction with a specific mobile application, such as requesting data or receiving events.
⚠️ Best Practice: Only one SpectaclesMobileKitModule should be used per Lens.
⚠️ Privacy Note: Using SpectaclesMobileKitModule requires the
INTERNETpermission. By default, access to sensitive data is restricted when a Lens uses internet-connected components. To enable access to both sensitive data and the internet simultaneously, certain Experimental APIs must be activated through a feature called Extended Permissions. Note that Lenses using Extended Permissions cannot be published.Example
Example usage of the SpectaclesMobileKitModule to establish a session, send/receive data, handle subscriptions, and load remote media assets (textures and GLTF meshes).