Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

androidx.lifecycle

Interfaces

DefaultLifecycleObserver

Callback interface for listening to LifecycleOwner state changes.

HasDefaultViewModelProviderFactory

Interface that marks a ViewModelStoreOwner as having a default ViewModelProvider.Factory for use with ViewModelProvider#ViewModelProvider(ViewModelStoreOwner).

LifecycleEventObserver

Class that can receive any lifecycle change and dispatch it to the receiver.

LifecycleObserver

Marks a class as a LifecycleObserver.

LifecycleOwner

A class that has an Android lifecycle.

LifecycleRegistryOwner

LiveDataScope

Interface that allows controlling a LiveData from a coroutine block.

Observer

A simple callback that can receive from LiveData.

Factory

Implementations of Factory interface are responsible to instantiate ViewModels.

ViewModelStoreOwner

A scope that owns ViewModelStore.

Classes

AbstractSavedStateViewModelFactory

Skeleton of androidx.

AndroidViewModel

Application context aware ViewModel.

Lifecycle

Defines an object that has an Android Lifecycle.

LifecycleCoroutineScope

CoroutineScope tied to a Lifecycle and Dispatchers.Main.immediate

LifecycleRegistry

An implementation of Lifecycle that can handle multiple observers.

LifecycleService

A Service that is also a LifecycleOwner.

LiveData

LiveData is a data holder class that can be observed within a given lifecycle.

LiveDataReactiveStreams

Adapts LiveData input and output to the ReactiveStreams spec.

MediatorLiveData

LiveData subclass which may observe other LiveData objects and react on OnChanged events from them.

MutableLiveData

LiveData which publicly exposes setValue(T) and postValue(T) method.

ProcessLifecycleOwner

Class that provides lifecycle for the whole application process.

SavedStateHandle

A handle to saved state passed down to androidx.lifecycle.ViewModel.

SavedStateViewModelFactory

androidx.lifecycle.ViewModelProvider.Factory that can create ViewModels accessing and contributing to a saved state via SavedStateHandle received in a constructor.

ServiceLifecycleDispatcher

Helper class to dispatch lifecycle events for a service.

Transformations

Transformation methods for LiveData.

ViewModel

ViewModel is a class that is responsible for preparing and managing the data for an Activity or a Fragment.

ViewModelLazy

An implementation of Lazy used by androidx.fragment.app.Fragment.viewModels and androidx.activity.ComponentActivity.viewmodels.

ViewModelProvider

An utility class that provides ViewModels for a scope.

ViewModelProviders

Utilities methods for ViewModelStore class.

ViewModelStore

Class to store ViewModels.

ViewModelStores

Factory methods for ViewModelStore class.

ViewTreeLifecycleOwner

Accessors for finding a view tree-local LifecycleOwner that reports the lifecycle for the given view.

ViewTreeViewModelStoreOwner

Accessors for finding a view tree-local ViewModelStoreOwner that allows access to a ViewModelStore for the given view.

Exceptions

LifecycleDestroyedException

A CancellationException that indicates that the Lifecycle associated with an operation reached the Lifecycle.State.DESTROYED state before the operation could complete.

Annotations

OnLifecycleEvent

Top-level functions summary

LiveData<T>
liveData(context: CoroutineContext = EmptyCoroutineContext, timeoutInMs: Long = DEFAULT_TIMEOUT, block: suspend LiveDataScope<T>.() -> Unit)

Builds a LiveData that has values yielded from the given block that executes on a LiveDataScope.

LiveData<T>
liveData(context: CoroutineContext = EmptyCoroutineContext, timeout: Duration, block: suspend LiveDataScope<T>.() -> Unit)

Builds a LiveData that has values yielded from the given block that executes on a LiveDataScope.

Extension functions summary