EventInteractor

interface EventInteractor

Types

Link copied to clipboard
class SpecificEventListener(    var loaded: EventInteractor.SpecificEventListener.LoadedListener? = null,     var desiredRingChanged: Consumer<Ring>? = null,     var ringEnqueuedForLoading: Consumer<Ring>? = null,     var downloadProgress: Consumer<DownloadProgress>? = null,     var ringPrefabLoaded: Consumer<Ring>? = null,     var ringPrefabLoadFailed: Consumer<RingLoadingFailure>? = null,     var displayedRingChanged: Consumer<Ring>? = null,     var unusedRingUnloaded: Consumer<Ring>? = null,     var tfModelsUpdateCheckpoint: Consumer<TfModelsUpdateCheckpoint>? = null,     var handDetectorReplaced: Consumer<HandDetectorReplacedEvent>? = null,     var ringReplacementFailed: Consumer<Ring>? = null)

Contains all specific event listeners such as desiredRingChanged, downloadProgress etc.

Functions

Link copied to clipboard
abstract fun startEventListening()

Starts listening to events.

Link copied to clipboard
abstract fun stopEventListening()

Stops listening to events.

Properties

Link copied to clipboard
abstract var onEndpointError: Consumer<EndpointErrorEvent>?

Called if there is any error while interacting with remote server.

Link copied to clipboard
abstract var onSceneStateChanged: Consumer<SceneState>?

Called when a new event is received.

Link copied to clipboard

Called if the fingerprint of SSL Certificate on the server mismatches the one assigned in sslCertFingerprint.

Link copied to clipboard

Specific event listeners received from the user

Inheritors

Link copied to clipboard