onDisconnect method

  1. @override
Future<bool> onDisconnect()
override

Callback on disconnect.

Is to be overridden in sub-classes and implement device-specific disconnection.

Implementation

@override
Future<bool> onDisconnect() async {
  // Clear the permission to access the current list of types.
  // New types may be included in a new sampling configuration.
  _hasPermissions = false;
  types = [];
  return true;
}