Protocols

The following protocols are available globally.

  • Defines methods that allow you to handle different login statuses if you use the predefined LINE Login button by using the LoginButton class.

    See more

    Declaration

    Swift

    public protocol LoginButtonDelegate : AnyObject
  • A set of methods that your delegate object could implement to receive open chat controller events when user interacts with the interface.

    The methods of this protocol notify your delegate when an event happens in the owner OpenChatCreatingController. Although specifying a delegate object for OpenChatCreatingController isn’t strictly required, we strongly recommend that you do so.

    Without implementing the delegate methods, you can’t receive information about events like network failure, user cancellation or open chat creating done.

    See more

    Declaration

    Swift

    public protocol OpenChatCreatingControllerDelegate : AnyObject
  • Represents a request to the LINE Platform. A request is composed of various components such as method, path, parameters and so on. By conforming to the Request protocol, you can implement your own request type for any API requests for the LINE Platform. To get a response, build a Request object and then send it with a Session object.

    See more

    Declaration

    Swift

    public protocol Request
  • Adapts a request to another request. Adapters modify an input URLRequest object.

    See more

    Declaration

    Swift

    public protocol RequestAdapter
  • Represents the final pipeline of a series of response pipelines. Use the terminator to parse response data into a final Response object of a certain Request object.

    See more

    Declaration

    Swift

    public protocol ResponsePipelineTerminator : AnyObject
  • Represents a redirection stage of a series of response pipelines. Use redirectors to additionally perform data processing by invoking closure with a proper ResponsePipelineRedirectorAction enumeration member.

    See more

    Declaration

    Swift

    public protocol ResponsePipelineRedirector : AnyObject
  • A data structure that can be parsed to a RawRepresentable type, with a default case to be used if the received data cannot be represented by any value in the type.

    See more

    Declaration

    Swift

    public protocol DefaultEnumCodable : Decodable, Encodable, RawRepresentable