EnhancementSessionCallback

public interface EnhancementSessionCallback


Callback for EnhancementSession creation / destruction.

Summary

Public methods

abstract void

Called when a session is successfully created.

abstract void

Called when a session was unable to be created.

abstract void

Called when the session is destroyed.

abstract void

Called when a session encounters an error.

Public methods

onSessionCreated

abstract void onSessionCreated(@NonNull EnhancementSession session)

Called when a session is successfully created.

Parameters
@NonNull EnhancementSession session

the session that was created.

onSessionCreationFailed

abstract void onSessionCreationFailed(@NonNull Status status)

Called when a session was unable to be created.

Parameters
@NonNull Status status

the reason for the failure.

onSessionDestroyed

abstract void onSessionDestroyed()

Called when the session is destroyed.

onSessionDisconnected

abstract void onSessionDisconnected(@NonNull Status status)

Called when a session encounters an error.

Parameters
@NonNull Status status

the reason for the failure.