GoogleSignInAllPlatformsDesktop class
The Desktop implementation of GoogleSignInAllPlatformsInterface.
- Inheritance
-
- Object
- PlatformInterface
- GoogleSignInAllPlatformsInterface
- GoogleSignInAllPlatformsDesktop
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- params → GoogleSignInParams
-
Getter for GoogleSignInParams, required by each platform.dart interfaces.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAuthenticatedClient(
) → Future< Client?> -
Returns the authenticated http client. It should be called after the user
has signed in.
override
-
init(
GoogleSignInParams params) → void -
Initialize the parameters required for the plugin.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signIn(
) → Future< GoogleSignInCredentials?> -
This method first tries executing signInOffline method, if
unsuccessful, then executes signInOnline method.
inherited
-
signInOffline(
) → Future< GoogleSignInCredentials?> -
Use this to sign in using the access_token from the cache or internal
storage. Therefore, can also be used to check if th user is already logged
in or not.
override
-
signInOnline(
) → Future< GoogleSignInCredentials?> -
Use this to sign in using the online method, by retrieving new token from
the api.
override
-
signOut(
) → Future< void> -
Use this to sign out the user, this will also remove the token stored in
the local storage.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
registerWith(
) → void - Registers this class as the default instance of GoogleSignInAllPlatformsInterface