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) -> StringParameters
keyString key name
fallbackString 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) -> BoolParameters
keyString key name
fallbackBoolean 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) -> NSNumberParameters
keyString key name
fallbackNumber 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
RemoteConfig Class Reference