SharedUiAdapter
@ExperimentalFeatures.SharedUiPresentationApi
public 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 |
|---|
public interface SharedUiAdapter.Session extends AutoCloseableThis interface is deprecated. This library is no longer supported. |
public interface SharedUiAdapter.SessionClientThis interface is deprecated. This library is no longer supported. |
Public methods |
|
|---|---|
abstract void |
This method is deprecated. This library is no longer supported. |
Extension functions |
|
|---|---|
default final @NonNull Bundle |
@ExperimentalFeatures.SharedUiPresentationApiThis method is deprecated. This library is no longer supported. |
Public methods
openSession
abstract voidopenSession(
@NonNull Executor clientExecutor,
@NonNull SharedUiAdapter.SessionClient client
)
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
SharedUiAdapterProxy.toCoreLibInfo
@ExperimentalFeatures.SharedUiPresentationApi
default final @NonNull Bundle SharedUiAdapterProxy.toCoreLibInfo(@NonNull SharedUiAdapter receiver)
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.