RemoteConfig
public extension RemoteConfig
-
Decodes a struct from the respective Remote Config values.
Declaration
Swift
func decoded<Value>(asType: Value.Type = Value.self) throws -> Value where Value : Decodable
Parameters
asType
The type to decode to.
-
Sets config defaults from an encodable struct.
Declaration
Swift
func setDefaults<Value>(from value: Value) throws where Value : Encodable
Parameters
value
The object to use to set the defaults.
-
Return a typed RemoteConfigValue for a key.
Declaration
Swift
subscript<T>(decodedValue key: String) -> T? where T : Decodable { get }
Parameters
key
A Remote Config key.
Return Value
A typed RemoteConfigValue.
-
Return a Dictionary for a RemoteConfig JSON key.
Declaration
Swift
subscript(jsonValue key: String) -> [String : AnyHashable]? { get }
Parameters
key
A Remote Config key.
Return Value
A Dictionary representing a RemoteConfig JSON value.