LoginButtonDelegate
public protocol LoginButtonDelegate : AnyObject
LoginButton
クラスを使用する際に、ログインアクションの状態を制御するためのDelegate。
-
ログインボタンが押された直後に呼ばれる。
Declaration
Swift
func loginButtonDidStartLogin(_ button: LoginButton)
Parameters
button
ログインアクションの開始時に押下されたボタン。
-
ログインアクションが成功したときに呼ばれる。
Declaration
Swift
func loginButton(_ button: LoginButton, didSucceedLogin loginResult: LoginResult)
Parameters
button
ログインアクションの開始時に押下されたボタン。
loginResult
成功したログインアクションのログイン結果。
-
ログインアクションが失敗したときに呼ばれる。
Declaration
Swift
func loginButton(_ button: LoginButton, didFailLogin error: LoginError)
Parameters
button
ログインアクションの開始時に押下されたボタン。
error
失敗したログインアクションのエラー。