JchuAppUpdateController
class JchuAppUpdateController(activity: ComponentActivity, val config: JchuAppUpdateConfig = JchuAppUpdateConfig()) : DefaultLifecycleObserver
Manages Google Play's flexible in-app update flow for one ComponentActivity.
Create this controller during the activity's onCreate callback. It registers its activity result and observes the activity lifecycle; the host app remains responsible for rendering JchuAppUpdateSnapshot in its own UI.
This controller is opt-in. Set JchuAppUpdateConfig.enabled to false for builds that should not check Google Play for updates.
Properties
Functions
Link copied to clipboard
Completes installation after the flexible update has reached JchuAppUpdateState.Downloaded.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reopens the app's update UI for an update that is still in progress.
Link copied to clipboard
Starts the flexible update flow for the latest available update.