QuicUICodePush class
Main QuicUI code push client
Configuration is loaded automatically from quicui.yaml. Server URL and API keys are managed internally and not exposed.
Usage:
// Create client from quicui.yaml configuration
final client = await QuicUICodePush.create();
await client.initialize();
// Check for updates
final patch = await client.checkForUpdates();
if (patch != null) {
await client.downloadAndInstall(patch);
await client.restartApp();
}
Properties
- appId → String
-
Get the app ID
no setter
- appVersion → String
-
Get the current app version
no setter
- config → Config
-
Internal config access (for services)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Check if the client is initialized
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkInfo → SDKInfo?
-
Get SDK info
no setter
Methods
-
applyPatch(
PatchInfo patch) → Future< bool> - Download and apply a patch (deprecated, use downloadAndInstall)
-
checkForUpdates(
) → Future< PatchInfo?> - Check for available patches
-
downloadAndInstall(
PatchInfo patch) → Future< bool> - Download and install patch via platform channel
-
getCurrentPatch(
) → Future< PatchInfo?> - Get currently applied patch info
-
getSDKInfo(
) → Future< SDKInfo> - Detect SDK information
-
initialize(
{bool strictMode = false}) → Future< void> - Initialize the code push client
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restartApp(
) → Future< void> - Restart the app to apply installed patch
-
rollback(
) → Future< bool> - Rollback to previous version (remove applied patch)
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{String? configPath}) → Future< QuicUICodePush> - Create QuicUICodePush client from quicui.yaml configuration