kotlin-sdk
id
/
com.amplitude.id.utilities
/
PropertiesFile
Properties
File
class
PropertiesFile
(
directory
:
File
,
key
:
String
,
prefix
:
String
,
logger
:
Logger
?
)
:
KeyValueStore
Content copied to clipboard
Functions
Functions
get
Long
Link copied to clipboard
open
override
fun
getLong
(
key
:
String
,
defaultVal
:
Long
)
:
Long
Content copied to clipboard
get
String
Link copied to clipboard
fun
getString
(
key
:
String
,
defaultVal
:
String
?
)
:
String
?
Content copied to clipboard
load
Link copied to clipboard
fun
load
(
)
Content copied to clipboard
Check if underlying file exists, and load properties if true
put
Long
Link copied to clipboard
open
override
fun
putLong
(
key
:
String
,
value
:
Long
)
:
Boolean
Content copied to clipboard
put
String
Link copied to clipboard
fun
putString
(
key
:
String
,
value
:
String
)
:
Boolean
Content copied to clipboard
remove
Link copied to clipboard
fun
remove
(
key
:
String
)
:
Boolean
Content copied to clipboard
fun
remove
(
keys
:
List
<
String
>
)
:
Boolean
Content copied to clipboard