AndroidSpecialParameter class

Android parameters for DFUServiceInitiator object. See https://github.com/NordicSemiconductor/Android-DFU-Library for more information.

Constructors

AndroidSpecialParameter({bool? disableNotification, bool? keepBond, bool? packetReceiptNotificationsEnabled, bool? restoreBond, bool? startAsForegroundService, int dataDelay = 400, int numberOfRetries = 10, int? rebootTime})
const

Properties

dataDelay int
This method sets the duration of a delay, that the service will wait before sending each data object in Secure DFU. The delay will be done after a data object is created, and before any data byte is sent. The default value is 0, which disables this feature.
final
disableNotification bool?
Sets whether the progress notification in the status bar should be disabled. Defaults to false.
final
hashCode int
The hash code for this object.
no setterinherited
keepBond bool?
Sets whether the bond information should be preserver after flashing new application. This feature requires DFU Bootloader version 0.6 or newer (SDK 8.0.0+). Please see the {@link DfuBaseService#EXTRA_KEEP_BOND} for more information regarding requirements. Remember that currently updating the Soft Device will remove the bond information.
final
numberOfRetries int
Sets the number of retries that the DFU service will use to complete DFU. The default value is 0, for backwards compatibility reason.
final
packetReceiptNotificationsEnabled bool?
Enables or disables the Packet Receipt Notification (PRN) procedure.
final
rebootTime int?
Sets the time required by the device to reboot. The library will wait for this time before scanning for the device in bootloader mode.
final
restoreBond bool?
Sets whether the bond should be created after the DFU is complete. Please see the {@link DfuBaseService#EXTRA_RESTORE_BOND} for more information regarding requirements.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startAsForegroundService bool?
Sets whether the DFU service should be started as a foreground service. By default it's true. According to https://developer.android.com/about/versions/oreo/background.html the background service may be killed by the system on Android Oreo after user quits the application so it is recommended to keep it as a foreground service (default) at least on Android Oreo+.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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