Members
# constant USER_ACTION_MAP
User-friendly action strings for factory image flashing progress.
This can be indexed by the action argument in FactoryFlashCallback.
Methods
# setDebugLevel(level)
Change the debug level for the fastboot client:
- 0 = silent
- 1 = debug, recommended for general use
- 2 = verbose, for debugging only
Parameters:
Name | Type | Description |
---|---|---|
level |
number | Debug level to use. |
Type Definitions
# FactoryFlashCallback(action, item, progress)
Callback for factory image flashing progress.
Parameters:
Name | Type | Description |
---|---|---|
action |
string | Action in the flashing process, e.g. unpack/flash. |
item |
string | Item processed by the action, e.g. partition being flashed. |
progress |
number | Progress within the current action between 0 and 1. |
# ProgressCallback(progress)
Callback for progress updates while flashing or uploading an image.
Parameters:
Name | Type | Description |
---|---|---|
progress |
number | Progress for the current action, between 0 and 1. |
# ReconnectCallback()
Callback for reconnecting to the USB device.
This is necessary because some platforms do not support automatic reconnection,
and USB connection requests can only be triggered as the result of explicit
user action.
# ReconnectCallback()
Callback for reconnecting the USB device.
This is necessary because some platforms do not support automatic reconnection,
and USB connection requests can only be triggered as the result of explicit
user action.