revokeWithScopes static method
- @Deprecated('This method has been deprecated. You are advised to use cancelAuthorizationWithScopes(String appId, List<Scope> scopes) instead.')
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),
),
},
);
}