interface FlashOptions {
    minimumProgressIncrement?: number;
    partial: boolean;
    progress: (percentage: undefined | number, partial: boolean) => void;
}

Properties

minimumProgressIncrement?: number

Smallest possible progress increment to limit callback rate.

partial: boolean

True to use a partial flash where possible, false to force a full flash.

progress: (percentage: undefined | number, partial: boolean) => void

A progress callback. Called with undefined when the process is complete or has failed.

Requesting a partial flash doesn't guarantee one is performed. Partial flashes are avoided if too many blocks have changed and failed partial flashes are retried as full flashes. The partial parameter reports the flash type currently in progress.