MethodChannelFirebaseAppCheck class
- Inheritance
-
- Object
- PlatformInterface
- FirebaseAppCheckPlatform
- MethodChannelFirebaseAppCheck
Constructors
- MethodChannelFirebaseAppCheck({required FirebaseApp app})
- Create an instance of MethodChannelFirebaseAppCheck.
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.no setterinherited - appInstance → FirebaseApp?
-
The
FirebaseApp
this instance was initialized with.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
onTokenChange
→ Stream<
String?> -
Registers a listener to changes in the token state.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activate(
{WebProvider? webProvider, AndroidProvider? androidProvider, AppleProvider? appleProvider}) → Future< void> -
Activates the Firebase App Check service.
override
-
delegateFor(
{required FirebaseApp app}) → FirebaseAppCheckPlatform -
Enables delegates to create new instances of themselves if a none default
FirebaseApp
instance is required by the user.override -
getLimitedUseToken(
) → Future< String> -
Requests a limited-use Firebase App Check token. This method should be used only
if you need to authorize requests to a non-Firebase backend.
override
-
getToken(
bool forceRefresh) → Future< String?> -
Get the current App Check token. Attaches to the most recent in-flight
request if one is present. Returns null if no token is present and no
token requests are in-flight.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setInitialValues(
) → MethodChannelFirebaseAppCheck -
Sets any initial values on the instance.
override
-
setTokenAutoRefreshEnabled(
bool isTokenAutoRefreshEnabled) → Future< void> -
If true, the SDK automatically refreshes App Check tokens as needed.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- channel ↔ MethodChannel
-
The MethodChannel used to communicate with the native plugin
getter/setter pair
- instance → MethodChannelFirebaseAppCheck
-
Returns a stub instance to allow the platform interface to access
the class instance statically.
no setter