IEvsApp

abstract class IEvsApp

The SDK Main entry point

The IEvsApp interface enables access to all SDK capabilities

Typical application flow:

  • start or startExt must be called in order to start working wth the SDK

  • The ApiKey should exist in the application assets (see UI guidelines or the samples projects)

  • comm for defining the glasses address and connect them

  • screens for displaying information on the glasses

  • stop to stop working with the SDK (terminates the SDK)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun auth(): IEvsAuthService

receive the SDK authentication service to handle the licensing flow

Link copied to clipboard

receive the communication service to handle the communication to the glasses

Link copied to clipboard
abstract fun display(): IEvsDisplayService

receive the display service to handle the glasses display

Link copied to clipboard
abstract fun getAddOn(addOnName: String): IEvsAddOn?

Get an add-on handling interface (if supported by the SDK)

Link copied to clipboard
abstract fun getSDKVersion(): String

Return the SDK version string

Link copied to clipboard

receive the glasses service to handle the glasses state

Link copied to clipboard
abstract fun hasOption(option: String): Boolean

The function return true if the option string exists in the options given in the startExt

Link copied to clipboard
abstract fun isReady(): Boolean

Returns true when the glasses are connected and authenticated with the SDK

Link copied to clipboard
abstract fun ota(): IEvsOtaService

receive the OTA service to handle the glasses firmware updates

Link copied to clipboard
abstract fun registerAppEvents(listener: IEvsAppEvents)

register to the application events

Link copied to clipboard
abstract fun screens(): IEvsScreenService

receive the screens service to handle the glasses UI screens

Link copied to clipboard
abstract fun sensors(): IEvsSensorsService

receive the sensors service to handle the glasses sensors

Link copied to clipboard
abstract fun showUI(name: String): Boolean

Enables to display a stock ui on the phone application, for ease development kickoff

Link copied to clipboard
abstract fun start(): Boolean

Starts the SDK

Link copied to clipboard
abstract fun startExt(options: HashSet<String>): Boolean

Starts the SDK with options

Link copied to clipboard
abstract fun stop(): Boolean

Stops the SDK

Link copied to clipboard
abstract fun unregisterAppEvents(listener: IEvsAppEvents)

unregister from application events