Stay organized with collections
Save and categorize content based on your preferences.
Firebase.RemoteConfig.ConfigValue
Wrapper for a Remote Config parameter value, with methods to get it as different types, such as bools and doubles, along with information about where the data came from.
Summary
Properties
|
BooleanValue
|
bool
Gets the value as a bool.
|
ByteArrayValue
|
System.Collections.Generic.IEnumerable< byte >
Gets the value as an IEnumerable of byte.
|
DoubleValue
|
double
Gets the value as a double.
|
LongValue
|
long
Gets the value as a long.
|
Source
|
Indicates which source this value came from.
|
StringValue
|
string
Gets the value as a string.
|
Properties
BooleanValue
bool Firebase::RemoteConfig::ConfigValue::BooleanValue
Gets the value as a bool.
Details |
Exceptions |
System.FormatException
|
if the data fails be converted to a bool.
|
|
Returns
|
Bool representation of this parameter value.
|
ByteArrayValue
System.Collections.Generic.IEnumerable< byte > Firebase::RemoteConfig::ConfigValue::ByteArrayValue
Gets the value as an IEnumerable of byte.
Details |
Returns
|
IEnumerable of byte representation of this parameter value.
|
DoubleValue
double Firebase::RemoteConfig::ConfigValue::DoubleValue
Gets the value as a double.
Details |
Exceptions |
System.FormatException
|
if the data fails be converted to a double.
|
|
Returns
|
Double representation of this parameter value.
|
LongValue
long Firebase::RemoteConfig::ConfigValue::LongValue
Gets the value as a long.
Details |
Exceptions |
System.FormatException
|
if the data fails be converted to a long.
|
|
Returns
|
Long representation of this parameter value.
|
Source
ValueSource Firebase::RemoteConfig::ConfigValue::Source
Indicates which source this value came from.
Details |
Returns
|
The ValueSource corresponding to where the value came from, either the server, the default value provided, or static, if neither.
|
StringValue
string Firebase::RemoteConfig::ConfigValue::StringValue
Gets the value as a string.
Details |
Returns
|
String representation of this parameter value.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[null,null,["Last updated 2021-06-17 UTC."],[],[],null,["# Firebase.RemoteConfig.ConfigValue Struct Reference\n\nFirebase.RemoteConfig.ConfigValue\n=================================\n\nWrapper for a Remote Config parameter value, with methods to get it as different types, such as bools and doubles, along with information about where the data came from.\n\nSummary\n-------\n\n| ### Properties ||\n|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BooleanValue](#struct_firebase_1_1_remote_config_1_1_config_value_1a5db8544200e2b5f4b3ed0970a6cb0465) | `bool` Gets the value as a bool. |\n| [ByteArrayValue](#struct_firebase_1_1_remote_config_1_1_config_value_1a607b9243b637d3805d1620e2386e157b) | `System.Collections.Generic.IEnumerable\u003c byte \u003e` Gets the value as an IEnumerable of byte. |\n| [DoubleValue](#struct_firebase_1_1_remote_config_1_1_config_value_1a608cce4d1921a2f45d8082db723848bf) | `double` Gets the value as a double. |\n| [LongValue](#struct_firebase_1_1_remote_config_1_1_config_value_1a87920e3217816b81ae20a964df6a64d1) | `long` Gets the value as a long. |\n| [Source](#struct_firebase_1_1_remote_config_1_1_config_value_1ad01d2ad869cf5afd2a84902ee7ca5689) | [ValueSource](/docs/reference/unity/namespace/firebase/remote-config#namespace_firebase_1_1_remote_config_1a2f4f400ab2b2d9f09a147439cd0c5ca2) Indicates which source this value came from. |\n| [StringValue](#struct_firebase_1_1_remote_config_1_1_config_value_1a8d1cc34954f656aac89a4f3e6bde5116) | `string` Gets the value as a string. |\n\nProperties\n----------\n\n### BooleanValue\n\n```c#\nbool Firebase::RemoteConfig::ConfigValue::BooleanValue\n``` \nGets the value as a bool.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| Exceptions | |--------------------------|-------------------------------------------| | `System.FormatException` | if the data fails be converted to a bool. | |\n| **Returns** | Bool representation of this parameter value. |\n\n### ByteArrayValue\n\n```c#\nSystem.Collections.Generic.IEnumerable\u003c byte \u003e Firebase::RemoteConfig::ConfigValue::ByteArrayValue\n``` \nGets the value as an IEnumerable of byte.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------|\n| **Returns** | IEnumerable of byte representation of this parameter value. |\n\n### DoubleValue\n\n```c#\ndouble Firebase::RemoteConfig::ConfigValue::DoubleValue\n``` \nGets the value as a double.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Exceptions | |--------------------------|---------------------------------------------| | `System.FormatException` | if the data fails be converted to a double. | |\n| **Returns** | Double representation of this parameter value. |\n\n### LongValue\n\n```c#\nlong Firebase::RemoteConfig::ConfigValue::LongValue\n``` \nGets the value as a long.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| Exceptions | |--------------------------|-------------------------------------------| | `System.FormatException` | if the data fails be converted to a long. | |\n| **Returns** | Long representation of this parameter value. |\n\n### Source\n\n```c#\nValueSource Firebase::RemoteConfig::ConfigValue::Source\n``` \nIndicates which source this value came from.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | The ValueSource corresponding to where the value came from, either the server, the default value provided, or static, if neither. |\n\n### StringValue\n\n```c#\nstring Firebase::RemoteConfig::ConfigValue::StringValue\n``` \nGets the value as a string.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|------------------------------------------------|\n| **Returns** | String representation of this parameter value. |"]]