Name
extension Notification.Name
-
Sent when the LINE SDK detects that the current token has been updated and stored in the keychain. This means that the user has authorized your app and your app has obtained an access token. The
object
property of the postedNotification
object contains the new access token. TheuserInfo
dictionary of the postedNotification
object contains the new access token under theLineSDKNotificationKey.newAccessToken
key. If an access token has previously existed, it will be under theLineSDKNotificationKey.oldAccessToken
key.Declaration
Swift
public static let LineSDKAccessTokenDidUpdate: Notification.Name
-
Sent when the LINE SDK removes the current access token from the keychain. This normally happens when you log out the user or call the
revokeToken
method. An expired access token is not automatically removed since the access token is refreshed when it is used to make an API call. Theobject
property of the postedNotification
object contains the removed access token.Declaration
Swift
public static let LineSDKAccessTokenDidRemove: Notification.Name