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

AuthProvider()

Properties

currentUser → AuthUser?
The currently signed-in player, or null when 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 null on 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