SecondarySessionStateCallback


@RequiresApi(value = 26) interface SecondarySessionStateCallback : SessionStateCallback


Clients of Sessions should implement SecondarySessionStateCallback to receive notifications of Session state changes when acting as the Secondary for a shared Session.

Provide your implementation in Sessions.getSecondarySession.

Summary

Public functions

Unit

Called when a SecondarySession can no longer be connected to a Primary.

Public functions

onSecondarySessionCleanup

fun onSecondarySessionCleanup(sessionId: SessionId): Unit

Called when a SecondarySession can no longer be connected to a Primary. Continued use of the SecondarySession will return SessionException on all method calls because it is no longer valid.