EnhancementSessionCallback

interface EnhancementSessionCallback


Callback for EnhancementSession creation / destruction.

Summary

Public functions

Unit

Called when a session is successfully created.

Unit

Called when a session was unable to be created.

Unit

Called when the session is destroyed.

Unit

Called when a session encounters an error.

Public functions

onSessionCreated

fun onSessionCreated(session: EnhancementSession): Unit

Called when a session is successfully created.

Parameters
session: EnhancementSession

the session that was created.

onSessionCreationFailed

fun onSessionCreationFailed(status: Status): Unit

Called when a session was unable to be created.

Parameters
status: Status

the reason for the failure.

onSessionDestroyed

fun onSessionDestroyed(): Unit

Called when the session is destroyed.

onSessionDisconnected

fun onSessionDisconnected(status: Status): Unit

Called when a session encounters an error.

Parameters
status: Status

the reason for the failure.