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 the buttonSize property instead of setting its frame or giving it some size constraints.
    See more

    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 call loadAndPresent(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 set delegate property of an OpenChatCreatingController 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.
    See more

    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 more

    Declaration

    Swift

    public class LoginManager
  • Represents a login process initialized by a LoginManager 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.

    See more

    Declaration

    Swift

    public class LoginProcess
  • Represents the storage of an AccessToken object.

    See more

    Declaration

    Swift

    public class AccessTokenStore
  • Represents a terminator pipeline with a JSON decoder to parse data.

    See more

    Declaration

    Swift

    public class JSONParsePipeline : ResponsePipelineTerminator
  • Represents a session for sending a Request object through a URLSession object for the LINE Platform. This class respects the adapters and pipelines properties of the Request protocol, to create proper requests and handle the response in the designed way.

    See more

    Declaration

    Swift

    public class Session
  • Represents a task of a Session object.

    Declaration

    Swift

    public class SessionTask