SharedUiAdapter
@ExperimentalFeatures.SharedUiPresentationApi
interface SharedUiAdapter
An adapter that provides a communication channel between a UI provider and a client app, while the client is displaying shared UI, i.e. UI that can contain both client-owned and provider-owned elements.
Summary
Nested types |
|---|
interface SharedUiAdapter.Session : AutoCloseableA single session with the UI provider. |
interface SharedUiAdapter.SessionClientThe client of a single session that will receive callback events from an active session. |
Public functions |
|
|---|---|
Unit |
openSession(Opens a new session to maintain connection with a UI provider. |
Extension functions |
|
|---|---|
Bundle |
Provides a |
Public functions
openSession
fun openSession(
clientExecutor: Executor,
client: SharedUiAdapter.SessionClient
): Unit
Opens a new session to maintain connection with a UI provider. client will receive all incoming communication from the provider. All incoming calls to client will be made through the provided clientExecutor.
Extension functions
toCoreLibInfo
@ExperimentalFeatures.SharedUiPresentationApi
fun SharedUiAdapter.toCoreLibInfo(): Bundle
Provides a Bundle containing a Binder which represents a SharedUiAdapter. The Bundle is sent to the client in order for the SharedUiAdapter to be used to maintain a connection with a UI provider.