Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public interface AppUpdates.Provider
A platform update service. The Android build registers the Google Play
one; applications do not normally implement this.
Methods
public abstract void check(SuccessCallback<AppUpdates.UpdateInfo> callback) | Checks for an update and answers on any thread. |
public abstract boolean startUpdate(boolean immediate) | Starts the update flow. |
Method details
check
public abstract void check(SuccessCallback<AppUpdates.UpdateInfo> callback)Checks for an update and answers on any thread.
Parameters
callbackSuccessCallback<AppUpdates.UpdateInfo>- receives the result
startUpdate
public abstract boolean startUpdate(boolean immediate)Starts the update flow.
Parameters
immediateboolean- true for a blocking update, false to download in the background
Returns
true when the flow started