toggle menu
flatInvoker
android
switch theme
search in API
reaktor-auth
/
dev.shibasis.reaktor.auth
/
AndroidAuthAdapter
Android
Auth
Adapter
android
class
AndroidAuthAdapter
(
activity
:
ComponentActivity
,
clientId
:
String
)
:
AuthAdapter
<
ComponentActivity
>
Members
Constructors
Android
Auth
Adapter
Link copied to clipboard
android
constructor
(
activity
:
ComponentActivity
,
clientId
:
String
)
Properties
controller
Link copied to clipboard
android
val
controller
:
ComponentActivity
?
NULL_CONTROLLER
Link copied to clipboard
android
val
NULL_CONTROLLER
:
Error
ref
Link copied to clipboard
android
val
ref
:
WeakRef
<
ComponentActivity
>
scope
Link copied to clipboard
android
val
scope
:
CoroutineScope
Functions
get
Google
User
Link copied to clipboard
android
open
suspend override
fun
getGoogleUser
(
)
:
GoogleUser
?
google
Login
Link copied to clipboard
android
open
suspend override
fun
googleLogin
(
)
:
Result
<
GoogleUser
>
handle
Link copied to clipboard
android
open
override
fun
handle
(
event
:
ControllerEvent
)
fun
handle
(
controller
:
ComponentActivity
,
event
:
ControllerEvent
)
invoke
Link copied to clipboard
android
operator
fun
<
Result
>
invoke
(
function
:
ComponentActivity
.
(
)
->
Result
?
)
:
Result
?
invoke
Suspend
Link copied to clipboard
android
suspend
fun
<
Result
>
invokeSuspend
(
function
:
suspend
ComponentActivity
.
(
)
->
Result
?
)
:
Result
?
login
Link copied to clipboard
android
suspend
fun
login
(
appId
:
Int
=
1
)
:
SignInResponse
null
Controller
Result
Link copied to clipboard
android
fun
<
T
>
nullControllerResult
(
)
:
Result
<
T
>
on
State
Changed
Link copied to clipboard
android
open
override
fun
onStateChanged
(
source
:
LifecycleOwner
,
event
:
Lifecycle.Event
)
sign
Out
Link copied to clipboard
android
open
suspend override
fun
signOut
(
)
:
Result
<
Unit
>