getHaveOwnership method

  1. @override
Future<bool?> getHaveOwnership()
override

getHaveOwnership() returns a Boolean representing the mobile device's ownership of a nearby M211.

This will only ever return True when communicating with an M211. It is possible to fail a connection to an M211, but successfully gain ownership, hence this method's existence.

Implementation

@override
Future<bool?> getHaveOwnership() async {
  bool? haveOwnership =
      await methodChannel.invokeMethod<bool>('getHaveOwnership');
  return haveOwnership;
}