AuthProvider class abstract
Contract for platform authentication backends (Play Games, Game Center, Steam, Epic Games, etc.).
Implement this interface and pass an instance to AuthManager.registerProvider to connect the engine to a platform identity service.
- Implementers
Constructors
Properties
- currentUser → AuthUser?
-
The currently signed-in player, or
nullwhen not signed in.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isSignedIn → bool
-
Whether a player is currently signed in.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
initialize(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signIn(
) → Future< AuthUser?> -
Signs the player in and returns their AuthUser, or
nullon failure. -
signOut(
) → Future< void> - Signs the current player out.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited