ConsentsController class
Provides authorization management APIs that can be used to view and revoke the granted permissions.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cancelAuthorization(
bool deleteData) → Future< void> - Cancels all scopes granted to your app. You can specify whether to delete user data when the scopes are canceled.
-
cancelAuthorizationWithScopes(
String appId, List< Scope> scopes) → Future<void> - Cancels certain Health Kit related scopes granted to your app.
-
getAppId(
) → Future< String> - Obtains the application id from the agconnect-services.json file.
-
getScopes(
String lang, String appId) → Future< ScopeLangItem> - Queries the list of permissions granted to your app.
-
revoke(
String appId) → Future< void> - Revokes all permissions granted to your app.
-
revokeWithScopes(
String appId, List< Scope> scopes) → Future<void> - Revokes certain Health Kit related permissions granted to your app.