getHealthAuthorityStatus method

Future<AuthorityStatus?> getHealthAuthorityStatus(
  1. HealthAppSubclassification subclassification
)

Implementation

Future<AuthorityStatus?> getHealthAuthorityStatus(
    HealthAppSubclassification subclassification) async {
  var result = await _channel.invokeMethod(
      'getHealthAuthorityStatus', subclassification.index);
  return {
    "0": AuthorityStatus.NotDetermined,
    "1": AuthorityStatus.SharingDenied,
    "2": AuthorityStatus.SharingAuthorized
  }["$result"];
}