InAppUpdateFlutter class
A Flutter plugin for in-app updates.
On iOS, use showUpdateForIos to present the App Store product page using StoreKit.
On Android, use checkUpdateAndroid to check for updates via Google Play's In-App Updates API, then startImmediateUpdateAndroid or startFlexibleUpdateAndroid to start the update flow.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
installStateStreamAndroid
→ Stream<
InstallStateAndroid> -
Android: A stream of install state changes during a flexible update.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkUpdateAndroid(
) → Future< AppUpdateInfoAndroid> - Android: Checks whether an in-app update is available via Play Core.
-
completeUpdateAndroid(
) → Future< void> - Android: Completes a flexible update by triggering an app restart.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showUpdate(
{required String appStoreId}) → Future< void> - Shows the platform-specific in-app update UI.
-
showUpdateForIos(
{required String appStoreId}) → Future< void> - iOS: Shows the App Store product page overlay via StoreKit.
-
startFlexibleUpdateAndroid(
{bool allowAssetPackDeletion = false}) → Future< UpdateResultAndroid> - Android: Starts the flexible (background download) update flow.
-
startImmediateUpdateAndroid(
{bool allowAssetPackDeletion = false}) → Future< UpdateResultAndroid> - Android: Starts the immediate (full-screen, blocking) update flow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited