Classes
The following classes are available globally.
-
Represents a login button which executes the login function when the user taps the button.
Note
To change the size of the button, use thebuttonSize
property instead of setting its frame or giving it some size constraints.Declaration
Swift
open class LoginButton : UIButton
-
A controller which manages open chat creating operations.
It checks whether the Open Chat user term has been accepted by current user. If accepted, LINE SDK shows a standard open chat creating interface to collect information from user input, then try to create the open chat room based on them. Otherwise, the user is prompted to agree the term first before an open chat room can be created.
It is encouraged to call
OpenChatCreatingController.localAuthorizationStatusForCreatingOpenChat()
first and check the authorization status to make sure your user has authorized you to create an open chat. Then callloadAndPresent(in:presentedHandler:)
to show the built-in UI to collect user information and create the open chat room.To get the result of the creating controller or have more control of the behaviors, implement methods in
OpenChatCreatingControllerDelegate
and setdelegate
property of anOpenChatCreatingController
instance.Note
The class is intended to be used as-is and to provide a default open chat creating experience across all LINE and LINE SDK integrations. Users expect a consistent UI and interaction across different apps when using the Open Chat features. But if it’s so important for you to provide a fully customized sharing interaction, you can still use the related APIs to create your own UIs.Declaration
Swift
public class OpenChatCreatingController
-
Represents a login manager. You can set up the LINE SDK configuration, log in and log out the user with the LINE authorization flow, and check the authorization status.
See moreDeclaration
Swift
public class LoginManager
-
Represents a login process initialized by a
See moreLoginManager
object. Normally, a process that contains multiple login flows will run serially. If a flow logs in the user successfully, subsequent flows will not be executed.Declaration
Swift
public class LoginProcess
-
Represents the storage of an
See moreAccessToken
object.Declaration
Swift
public class AccessTokenStore
-
Represents a terminator pipeline with a JSON decoder to parse data.
See moreDeclaration
Swift
public class JSONParsePipeline : ResponsePipelineTerminator
-
Represents a session for sending a
See moreRequest
object through aURLSession
object for the LINE Platform. This class respects theadapters
andpipelines
properties of theRequest
protocol, to create proper requests and handle the response in the designed way.Declaration
Swift
public class Session
-
Represents a task of a
Session
object.Declaration
Swift
public class SessionTask