JosAppsClient class abstract

Provides APIs for JOS management, for example app initialization, managing app updates and managing missing orders.

Constructors

JosAppsClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkAppUpdate(CheckUpdateCallback checkUpdateCallback) Future<void>
Checks for app updates and listens the callbacks.
checkAppUpdateHandler(CheckUpdateCallback checkUpdateCallback, MethodCall call) Future<void>
Method handler for CheckUpdateCallback callback.
getAppId() Future<String>
Obtains the app ID.
getMissProductOrder() Future<List<ProductOrderInfo>>
Queries the missed orders for the current Huawei ID.
init() Future<void>
Initializes an app. This method must be called when an app is launched.
releaseCallback() Future<void>
Releases callback to prevent memory leaks.
showUpdateDialog(bool forceUpdate, ApkUpgradeInfo apkUpgradeInfo) Future<void>
Triggers te app update pop-up manually. When detecting that a new version is available for update, an app can call this method.