toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-layout
/
com.urbanairship.android.layout.property
/
Color
Color
open
class
Color
Members
Constructors
Color
Link copied to clipboard
constructor
(
defaultColor
:
Int
,
@
NonNull
selectors
:
List
<
ColorSelector
>
)
Properties
BLACK
Link copied to clipboard
@
ColorInt
val
BLACK
:
Int
=
-16777216
TRANSPARENT
Link copied to clipboard
@
ColorInt
val
TRANSPARENT
:
Int
=
0
WHITE
Link copied to clipboard
@
ColorInt
val
WHITE
:
Int
=
-1
Functions
alpha
Link copied to clipboard
open
fun
alpha
(
@
ColorInt
color
:
Int
)
:
Float
from
Json
Link copied to clipboard
@
NonNull
open
fun
fromJson
(
@
NonNull
json
:
JsonMap
)
:
Color
from
Json
Field
Link copied to clipboard
@
Nullable
open
fun
fromJsonField
(
@
Nullable
json
:
JsonMap
,
@
NonNull
fieldName
:
String
)
:
Color
resolve
Link copied to clipboard
@
ColorInt
open
fun
resolve
(
@
NonNull
context
:
Context
)
:
Int