connect()
Initiates a connection with VIVE AI Glasses.
func connect ( ) throws
When calling this function without a
callbackURLScheme
, ensure your callback URL is defined in
Info.plist
. Otherwise, the SDK will throw a runtime exception. For more details, please refer to the
Setup
page.
Exception
The following exceptions may be thrown: ViveGlassError.UnregisteredAppException.
See also
Connectivity and authentication
func connect (callbackURLScheme:string) throws
Initiates a connection with VIVE AI Glasses using a custom URL scheme.
func disconnect ()
Requests to disconnect from VIVE AI Glasses.
func isConnected () -> Bool
Checks the current connection status.
Responding from VIVE AI Glasses event
func glasses(didUpdateConnectionState: ConnectionState)
Tells the delegate when the connection state changes.
Error handling and exceptions
enum ViveGlassError
This represents an error thrown by the VIVE AI Glasses SDK.