LineSDK class
A general manager class for LINE SDK login features.
Don't create your own instance of this class. Instead, call LineSDK.instance to get a shared singleton on which you can call other methods.
Properties
-
currentAccessToken
→ Future<
StoredAccessToken?> -
Gets the current access token in use.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBotFriendshipStatus(
) → Future< BotFriendshipStatus> - Gets the friendship status between the user and the official account linked to your LINE Login channel.
-
getProfile(
) → Future< UserProfile> - Gets the user’s profile.
-
login(
{List< String> scopes = const ['profile'], LoginOption? option}) → Future<LoginResult> -
Logs the user into LINE with the specified
scopes
andoption
, by either opening the LINE client for an existing logged in user, or a web view if the LINE client isn't installed on the user's device. -
logout(
) → Future< void> - Logs out the current user by revoking the related tokens.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
) → Future< AccessToken> - Refreshes the access token.
-
setup(
String channelId, {String? universalLink}) → Future< void> -
Sets up the SDK with a
channelId
and optionaluniversalLink
. -
toString(
) → String -
A string representation of this object.
inherited
-
verifyAccessToken(
) → Future< AccessTokenVerifyResult> - Checks whether the stored access token is valid against the LINE authentication server.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- channel → const MethodChannel
- The method channel connected to the native side of the LINE SDK.