BKSession
extension BKSession
-
Copyright © 2018 Ruoyang Xu. MIT License. Copyright © 2017 Rsplwe. MIT License.
Declaration
Swift
public func login(_ username: String, password: String, completionHandler handle: @escaping BKHandler<BKCookie>)
-
Manages login into bilibili with QRCode
See moreDeclaration
Swift
public class QRCodeLoginHelper
-
Start an attempt to login.
Declaration
Swift
public func login(withHelper helper: QRCodeLoginHelper = .default, handleLoginInfo: @escaping (QRCodeLoginHelper.LoginURL) -> Void, handleLoginState: @escaping (QRCodeLoginHelper.LoginState) -> Void)
Parameters
handleLoginInfo
to display
LoginURL
to user.handleLoginState
to handle different stages in this process.