ChromeInstanceId class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onTokenRefresh EventStream<void>
Fired when all the granted tokens need to be refreshed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteID() Future<void>
Resets the app instance identifier and revokes all tokens associated with it. returns Function called when the deletion completes. The instance identifier was revoked successfully if runtime.lastError is not set.
deleteToken(DeleteTokenParams deleteTokenParams) Future<void>
Revokes a granted token. deleteTokenParams Parameters for deleteToken. returns Function called when the token deletion completes. The token was revoked successfully if runtime.lastError is not set.
getCreationTime() Future<double>
Retrieves the time when the InstanceID has been generated. The creation time will be returned by the callback. returns Function called when the retrieval completes. It should check runtime.lastError for error when creationTime is zero.
getID() Future<String>
Retrieves an identifier for the app instance. The instance ID will be returned by the callback. The same ID will be returned as long as the application identity has not been revoked or expired. returns Function called when the retrieval completes. It should check runtime.lastError for error when instanceID is empty.
getToken(GetTokenParams getTokenParams) Future<String>
Return a token that allows the authorized entity to access the service defined by scope. getTokenParams Parameters for getToken. returns Function called when the retrieval completes. It should check runtime.lastError for error when token is empty.
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