get
Get an ActionComponent.
Return
The Component
Parameters
The Fragment to associate the lifecycle.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.
Get an ActionComponent.
Return
The Component
Parameters
The Activity to associate the lifecycle.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.
Get an ActionComponent.
Return
The Component
Parameters
The owner of the SavedStateRegistry, normally an Activity or Fragment.
A scope that owns ViewModelStore, normally an Activity or Fragment.
The lifecycle owner, normally an Activity or Fragment.
Your main application class.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.
Get an ActionComponent.
Return
The Component
Parameters
The Fragment to associate the lifecycle.
The Configuration of the component.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.
Get an ActionComponent.
Return
The Component
Parameters
The Activity to associate the lifecycle.
The Configuration of the component.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.
Get an ActionComponent.
Return
The Component
Parameters
The owner of the SavedStateRegistry, normally an Activity or Fragment.
A scope that owns ViewModelStore, normally an Activity or Fragment.
The lifecycle owner, normally an Activity or Fragment.
Your main application class.
The Configuration of the component.
The callback to handle events from the ActionComponent.
The key to use to identify the ActionComponent.
NOTE: By default only one ActionComponent will be created per lifecycle. Use key in case you need to instantiate multiple ActionComponents in the same lifecycle.