Wearable OnlyReadonly Wearable OnlyisTrue if were connected to the peer.
Readonly Wearable OnlyonNotified when the connection to the peer is established and ready.
Readonly Wearable OnlyonTriggered when the connection to the peer is severed. The session is no longer valid and must be re-created.
Wearable OnlyDisconnect and stop the session. Session object will be invalid after this call and will need to be re-created.
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.
Wearable OnlyUse sendData() to send a one-way message to the connected mobile app. This is a fire-and-forget operation, no response is expected.
Wearable OnlySend a request expecting a response from the peer. Returns a promise with the response.
Wearable OnlyInitialize the session before interacting with the app. Ensure that all callbacks and events are configured prior to calling this method. This action creates the session and begins listening for incoming connections.
Wearable OnlyStart a subscription, multiple responses can be sent by the peer. Returns the subscription event. onError will be called if the subscription is cancelled by peer.
Spectacles Mobile Kit session allows you to initiate the connection to peer, and send data.
See
Returned By: SpectaclesMobileKitModule#createSession