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
See moreLoginButton
class.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 forOpenChatCreatingController
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 moreDeclaration
Swift
public protocol OpenChatCreatingControllerDelegate : AnyObject
-
Represents a request to the LINE Platform. A request is composed of various components such as
See moremethod
,path
,parameters
and so on. By conforming to theRequest
protocol, you can implement your own request type for any API requests for the LINE Platform. To get a response, build aRequest
object and then send it with aSession
object.Declaration
Swift
public protocol Request
-
Adapts a request to another request. Adapters modify an input
See moreURLRequest
object.Declaration
Swift
public protocol RequestAdapter
-
Represents a redirection stage of a series of response pipelines. Use redirectors to additionally perform data processing by invoking
See moreclosure
with a properResponsePipelineRedirectorAction
enumeration member.Declaration
Swift
public protocol ResponsePipelineRedirector : AnyObject
-
A data structure that can be parsed to a
See moreRawRepresentable
type, with a default case to be used if the received data cannot be represented by any value in the type.Declaration
Swift
public protocol DefaultEnumCodable : Decodable, Encodable, RawRepresentable