Available
class Available : AppUpdateResult
| kotlin.Any | ||
| ↳ | com.google.android.play.core.ktx.AppUpdateResult | |
| ↳ | com.google.android.play.core.ktx.AppUpdateResult.Available | |
Emitted when there is an update available or in progress.
You can access the update details in the updateInfo object. If AppUpdateInfo.updateAvailability is UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS and you require the immediate update flow, you should call AppUpdateManager.startUpdateFlowForResult to show the UI.
Summary
Public constructors |
|
|---|---|
<init>(appUpdateManager: AppUpdateManager, updateInfo: AppUpdateInfo)Emitted when there is an update available or in progress. |
|
Public methods |
|
|---|---|
| Boolean |
startFlexibleUpdate(activity: <ERROR CLASS>, requestCode: Int)Convenience function for starting the update flow using the current updateInfo. |
| Boolean |
startFlexibleUpdate(fragment: Fragment, requestCode: Int)Convenience function for starting the update flow using the current updateInfo. |
| Boolean |
startImmediateUpdate(activity: <ERROR CLASS>, requestCode: Int)Convenience function for starting the update flow using the current updateInfo. |
| Boolean |
startImmediateUpdate(fragment: Fragment, requestCode: Int)Convenience function for starting the update flow using the current updateInfo. |
Properties |
|
|---|---|
| AppUpdateInfo | |
Public constructors
<init>
Available(
appUpdateManager: AppUpdateManager,
updateInfo: AppUpdateInfo)
Emitted when there is an update available or in progress.
You can access the update details in the updateInfo object. If AppUpdateInfo.updateAvailability is UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS and you require the immediate update flow, you should call AppUpdateManager.startUpdateFlowForResult to show the UI.
See Also
Public methods
startFlexibleUpdate
fun startFlexibleUpdate(
activity: <ERROR CLASS>,
requestCode: Int
): Boolean
Convenience function for starting the update flow using the current updateInfo.
startFlexibleUpdate
fun startFlexibleUpdate(
fragment: Fragment,
requestCode: Int
): Boolean
Convenience function for starting the update flow using the current updateInfo.
startImmediateUpdate
fun startImmediateUpdate(
activity: <ERROR CLASS>,
requestCode: Int
): Boolean
Convenience function for starting the update flow using the current updateInfo.
startImmediateUpdate
fun startImmediateUpdate(
fragment: Fragment,
requestCode: Int
): Boolean
Convenience function for starting the update flow using the current updateInfo.
Properties
updateInfo
val updateInfo: AppUpdateInfo