Stay organized with collections Save and categorize content based on your preferences.

SecondarySessionStateCallback

@RequiresApi(value = 26) interface SecondarySessionStateCallback extends 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 methods

abstract void

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

Public methods

onSecondarySessionCleanup

abstract void onSecondarySessionCleanup(@NonNull SessionId sessionId)

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.