EjenixMethodChannelUpdaterRuntime class

An EjenixUpdaterRuntime backed by a platform MethodChannel.

Implemented types

Constructors

EjenixMethodChannelUpdaterRuntime({MethodChannel channel = const MethodChannel(channelName)})

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

cancelPeriodicChecks() → Future<void>
Cancel everything schedulePeriodicChecks registered.
override
checkForUpdate() → Future<EjenixCodePushUpdate>
Ask the server whether an update is available.
override
currentPatch() → Future<EjenixPatchInfo?>
The currently active patch, or null if running the base build.
override
downloadUpdate() → Future<void>
Download the available update's artifact.
override
initialize(EjenixNativeUpdaterConfig config) → Future<void>
Initialize the native updater with config.
override
installPatchBundle({required String manifestJson, required Uint8List patchBytes}) → Future<void>
Install a patch bundle directly from its manifest and bytes.
override
installUpdate() → Future<void>
Install the downloaded update (applied on next launch).
override
markLaunchFailure() → Future<void>
Mark a launch as failed (may trigger rollback).
override
markLaunchStart() → Future<void>
Mark the start of a launch for the boot-loop guard.
override
markLaunchSuccess() → Future<void>
Mark a launch as successful (clears the boot-loop guard).
override
markPatchBad(int patchNumber) → Future<void>
Flag patchNumber as bad so it is never re-applied.
override
materializeNextDeltaLinkPlan() → Future<void>
Reconstruct the next patch from its delta-link plan.
override
nextDeltaLinkPlanPath() → Future<String?>
Path to the next delta-link plan, if one has been fetched.
override
nextPatch() → Future<EjenixPatchInfo?>
The next staged patch, or null if none is pending.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollbackToBase() → Future<void>
Roll the device back to the base build.
override
schedulePeriodicChecks({required int intervalMinutes, bool requireCharging = false, bool requireUnmetered = false, bool requireBatteryNotLow = true}) → Future<void>
Ask the platform to check for patches periodically in the background.
override
toString() → String
A string representation of this object.
inherited
validateNextDeltaLinkPlan() → Future<void>
Validate the next delta-link plan before materializing it.
override

Operators

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

Constants

channelName → const String
The platform channel this runtime talks over.