Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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.

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