-
The shared instance of
Session. Access this value after you setup the LINE SDK. Otherwise, your app will be trapped.Declaration
Swift
public static var shared: Session { get } -
Sends a
Requestobject with the underlying session.Declaration
Swift
@discardableResult public func send<T: Request>( _ request: T, callbackQueue: CallbackQueue = .currentMainOrAsync, completionHandler completion: ((Result<T.Response, LineSDKError>) -> Void)? = nil) -> SessionTask?Parameters
requestA
Requestobject which defines necessary information for the request.callbackQueueA queue option to be used when
completionis invoked. The default value is.currentMainOrAsync.completionThe completion closure to be invoked when the request has been sent.
Return Value
The
SessionTaskobject that represents the task.
View on GitHub
Session Class Reference