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 and option, 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 optional universalLink.
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

Static Properties

instance LineSDK
The shared singleton object of LineSDK.
final

Constants

channel → const MethodChannel
The method channel connected to the native side of the LINE SDK.