Acrobits SDK
Toggle table of contents
26.1.0
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
Acrobits SDK
Libsoftphone
/
cz.acrobits.libsoftphone
/
Preferences
/
Key
Key
@
MainThread
open
inner
class
Key
<
Type
>
:
Preferences.ROKey
<
Type
>
Read-write preference key.
Parameters
<Type>
Type stored in the read-write key.
Members
Constructors
Key
Link copied to clipboard
constructor
(
@
NonNull
name
:
String
)
Constructor.
Properties
name
Link copied to clipboard
@
NonNull
val
name
:
String
The key's name.
Functions
equals
Link copied to clipboard
@
CheckResult
open
fun
equals
(
@
Nullable
object
:
Any
)
:
Boolean
Check if this key equals another.
get
Link copied to clipboard
@
CheckResult
@
AnyThread
open
fun
get
(
)
:
Type
Get the key's current value.
get
Default
Link copied to clipboard
@
CheckResult
@
AnyThread
open
fun
getDefault
(
)
:
Type
Get the key's default value.
get
Live
Value
Link copied to clipboard
open
fun
getLiveValue
(
)
:
LiveData
<
Type
>
get
String
Value
Link copied to clipboard
@
CheckResult
@
AnyThread
open
fun
getStringValue
(
)
:
String
has
Changed
Link copied to clipboard
@
CheckResult
open
fun
hasChanged
(
)
:
Boolean
Check if the key has been changed.
override
Default
Link copied to clipboard
@
MainThread
open
fun
overrideDefault
(
@
NonNull
value
:
Type
)
Override key's default value.
reset
Link copied to clipboard
open
fun
reset
(
)
Reset the key to default.
set
Link copied to clipboard
open
fun
set
(
value
:
Type
)
Set the key's current value.
to
String
Link copied to clipboard
@
NonNull
open
fun
toString
(
)
:
String
Return key name.