RemoteConfig
@objc
public class RemoteConfig : NSObject
Remote Config public API functions
-
Get a string from cached config. If the key does not exist, fallback will be returned.
Declaration
Swift
@objc public class func getString(key: String, fallback: String) -> String
Parameters
key
String key name
fallback
String fallback value returned when key does not exist
Return Value
String value for the specified key
-
Get a boolean from cached config. If the key does not exist, fallback will be returned.
Declaration
Swift
@objc public class func getBoolean(key: String, fallback: Bool) -> Bool
Parameters
key
String key name
fallback
Boolean fallback value returned when key does not exist
Return Value
Boolean value for the specified key
-
Get a number from cached config. If the key does not exist, or cached value cannot be converted to number, fallback will be returned.
Declaration
Swift
@objc public class func getNumber(key: String, fallback: NSNumber) -> NSNumber
Parameters
key
String key name
fallback
Number fallback value returned when key does not exist or cached value cannot be converted to number
Return Value
Number value for specified key
-
Get cached config.
Declaration
Swift
@objc public class func getConfig() -> [String : String]
Return Value
String dictionary of config contents