doFactoryReset method

Future<void> doFactoryReset(
  1. String identifier,
  2. bool preservePairingInformation
)

Perform factory reset to given device.

  • Parameters:
    • identifier: polar device id or UUID
    • preservePairingInformation: preserve pairing information during factory reset
  • Returns: Completable stream
    • success: when factory reset notification sent to device
    • onError: see PolarErrors for possible errors invoked

Implementation

Future<void> doFactoryReset(
  String identifier,
  bool preservePairingInformation,
) {
  return _channel.invokeMethod(
    'doFactoryReset',
    [identifier, preservePairingInformation],
  );
}