toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.resources
/
Resource
Resource
open
class
Resource
<
T
:
Any
>
(
val
resources
:
Resources
,
val
name
:
String
,
val
cache
:
ResourceCache
,
gen
:
suspend
Resources
.
(
)
->
T
)
:
Resourceable
<
T
>
Members
Constructors
Resource
Link copied to clipboard
constructor
(
resources
:
Resources
,
name
:
String
,
cache
:
ResourceCache
,
gen
:
suspend
Resources
.
(
)
->
T
)
Properties
cache
Link copied to clipboard
val
cache
:
ResourceCache
name
Link copied to clipboard
val
name
:
String
on
Gen
Link copied to clipboard
var
onGen
:
(
)
->
Unit
?
resources
Link copied to clipboard
val
resources
:
Resources
value
Or
Null
Link copied to clipboard
var
valueOrNull
:
T
?
Functions
get
Link copied to clipboard
open
suspend override
fun
get
(
)
:
T
get
Deferred
Link copied to clipboard
fun
getDeferred
(
)
:
Deferred
<
T
>
get
Or
Null
Link copied to clipboard
open
override
fun
getOrNull
(
)
:
T
?
preload
Link copied to clipboard
suspend
fun
preload
(
)
:
T
preload
No
Wait
Link copied to clipboard
fun
preloadNoWait
(
)
unload
Link copied to clipboard
fun
unload
(
)