revokeWithScopes static method

  1. @Deprecated('This method has been deprecated. You are advised to use cancelAuthorizationWithScopes(String appId, List<Scope> scopes) instead.')
Future<void> revokeWithScopes(
  1. String appId,
  2. List<Scope> scopes
)

Revokes certain Health Kit related permissions granted to your app.

Implementation

@Deprecated(
  'This method has been deprecated. You are advised to use cancelAuthorizationWithScopes(String appId, List<Scope> scopes) instead.',
)
static Future<void> revokeWithScopes(
  String appId,
  List<Scope> scopes,
) async {
  await _channel.invokeMethod<void>(
    'revokeWithScopes',
    <String, dynamic>{
      'appId': appId,
      'scopes': List<String>.from(
        scopes.map((Scope e) => e.scopeStr),
      ),
    },
  );
}