com.google.firebase.remoteconfig.FirebaseRemoteConfigValue |
Wrapper for a Remote Config parameter value, with methods to get it as different types.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the value as a
boolean . | |||||||||||
Gets the value as a
byte[] . | |||||||||||
Gets the value as a
double . | |||||||||||
Gets the value as a
long . | |||||||||||
Gets the value as a
String . | |||||||||||
Indicates at which source this value came from.
|
Gets the value as a boolean
.
Returns | |
---|---|
boolean |
boolean representation of this parameter value. |
Throws | |
---|---|
IllegalArgumentException |
If the value cannot be converted to a boolean .
|
Gets the value as a byte[]
.
Returns | |
---|---|
byte[] |
byte[] representation of this parameter value.
|
Gets the value as a double
.
Returns | |
---|---|
double |
double representation of this parameter value. |
Throws | |
---|---|
IllegalArgumentException |
If the value cannot be converted to a double .
|
Gets the value as a long
.
Returns | |
---|---|
long |
long representation of this parameter value. |
Throws | |
---|---|
IllegalArgumentException |
If the value cannot be converted to a long .
|
Gets the value as a String
.
Returns | |
---|---|
String |
String representation of this parameter value.
|
Indicates at which source this value came from.
Returns | |
---|---|
int |
VALUE_SOURCE_REMOTE if the value was retrieved from the
server, VALUE_SOURCE_DEFAULT if the value was set as a
default, or VALUE_SOURCE_STATIC if no value was found
and a static default value was returned instead.
|