toggle menu
flatInvoker
android
switch theme
search in API
reaktor-core
/
dev.shibasis.reaktor.core.adapters
/
AndroidStorageAdapter
Android
Storage
Adapter
android
class
AndroidStorageAdapter
(
activity
:
ComponentActivity
)
:
StorageAdapter
<
ComponentActivity
>
Android Storage APIs are very complicated now, create abstraction using this.
Members
Constructors
Android
Storage
Adapter
Link copied to clipboard
android
constructor
(
activity
:
ComponentActivity
)
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
Home
Directory
Link copied to clipboard
android
fun
getHomeDirectory
(
directory
:
String
=
"Manna"
)
:
File
?
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
?
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
)
test
Link copied to clipboard
android
open
override
fun
test
(
)
:
Int
time
Stamped
File
Name
Link copied to clipboard
android
fun
timeStampedFileName
(
extension
:
String
)
:
String