MethodChannelSnapchatLoginkit class
An implementation of SnapchatLoginkitPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- SnapchatLoginkitPlatform
- MethodChannelSnapchatLoginkit
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addLoginStateCallback(
) → void -
Invoke the method on the platform side for Subscribe for login updates
override
-
fetchAccessToken(
) → Future< TokenResponse> -
Invoke the method on the platform side for Fetch access token after successfully logged in
override
-
fetchUserData(
UserDataQuery query) → Future< UserResponse> -
Invoke the method on the platform side for Asynchronously Call the fetch API and get the User data
override
-
getMethodChannel(
) → MethodChannel -
Get singleton instance of method channel
override
-
getPlatformVersion(
) → Future< String?> -
Method to get current running platform version
override
-
hasAccessToScope(
String scope) → Future< bool> -
Invoke the method on the platform side for To check whether a specific scope has access or not
override
-
isUserLoggedIn(
) → Future< bool> -
Invoke the method on the platform side for Query user’s logged-in state
override
-
login(
) → void -
Invoke the method on the platform side for Start token grant
override
-
loginWithFirebase(
) → Future< TokenResponse> -
Invoke the method on the platform side for Asynchronously, get access token via login with firebase
override
-
logout(
) → void -
Invoke the method on the platform side for Clear the access and refresh token locally
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeLoginStateCallback(
) → void -
Invoke the method on the platform side for Unsubscribe from login updates
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited