SharedUiAdapterFactory


@ExperimentalFeatures.SharedUiPresentationApi
public static class SharedUiAdapterFactory


Provides an implementation of SharedUiAdapter created from a supplied Bundle which acts as a proxy between the host app and the Binder provided by the UI provider.

Summary

Public fields

static @NonNull SharedUiAdapterFactory

Public methods

final @NonNull SharedUiAdapter

Creates a SharedUiAdapter from a supplied coreLibInfo that acts as a proxy between the host app and the Binder provided by the UI provider.

Public fields

INSTANCE

Added in 1.0.0-alpha14
public static @NonNull SharedUiAdapterFactory INSTANCE

Public methods

createFromCoreLibInfo

Added in 1.0.0-alpha14
@ExperimentalFeatures.SharedUiPresentationApi
public final @NonNull SharedUiAdapter createFromCoreLibInfo(@NonNull Bundle coreLibInfo)

Creates a SharedUiAdapter from a supplied coreLibInfo that acts as a proxy between the host app and the Binder provided by the UI provider.

Throws
kotlin.IllegalArgumentException

if coreLibInfo does not contain a Binder corresponding to SharedUiAdapter