AuthorizationStatus
public enum AuthorizationStatus
Represents the authorization status for a certain action. Before creating and presenting a UI in LINE SDK, we strongly recommend checking whether your app has a valid token and the necessary permissions.
A local authorization status checking API returns an AuthorizationStatus
value to indicate the
current authorization status for giving action.
- lackOfToken: There is no valid token in the local token store. The user hasn’t logged in and authorized your app yet.
- lackOfPermissions: There is a valid token, but it doesn’t contain the necessary permissions.
The associated value is an array of
LoginPermission
, containing all lacking permissions. - authorized: The token exists locally and contains the necessary permissions.
-
There is no valid token in the local token store. The user hasn’t logged in and authorized your app yet.
Declaration
Swift
case lackOfToken
-
There is a valid token, but it doesn’t contain the necessary permissions for sharing a message. The associated value is an array of
LoginPermission
, containing all lacking permissions.Declaration
Swift
case lackOfPermissions(Set<LoginPermission>)
-
The token exists locally and contains the necessary permissions to share messages.
Declaration
Swift
case authorized