OMCAppConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | OMCAppConfig.h |
Overview
Application configuration stored in OMCe. The configuration’s property values can be changed after the client app has been published.
– booleanForProperty:default:
Returns a BOOL
for the specified property.
Returns the specified default value if the property is absent.
- (BOOL)booleanForProperty:(NSString *)property default:(BOOL)defaultValue
Parameters
property |
The name of the property, as specified on the server by the mobile backend. |
---|---|
defaultValue |
The value returned if the property is not specified. |
Discussion
Warning: Raises an NSInternalInconsistencyException
if the specified property is not a boolean.
Declared In
OMCAppConfig.h
– integerForProperty:default:
Returns an NSInteger
for the specified property.
Returns the specified default value if the property is absent.
- (NSInteger)integerForProperty:(NSString *)property default:(NSInteger)defaultValue
Parameters
property |
The name of the property, as specified on the server by the mobile backend. |
---|---|
defaultValue |
The value returned if the property is not specified. |
Discussion
Warning: Raises an NSInternalInconsistencyException
if the specified property is not an integer.
Declared In
OMCAppConfig.h
– doubleForProperty:default:
Returns a double
for the specified property.
Returns the specified default value if the property is absent.
- (double)doubleForProperty:(NSString *)property default:(double)defaultValue
Parameters
property |
The name of the property, as specified on the server by the mobile backend. |
---|---|
defaultValue |
The value returned if the property is not specified. |
Discussion
Warning: Raises an NSInternalInconsistencyException
if the specified property is not a double.
Declared In
OMCAppConfig.h
– numberForProperty:default:
Returns an NSNumber
for the specified property.
Returns the specified default value if the property is absent.
- (nullable NSNumber *)numberForProperty:(NSString *)property default:(nullable NSNumber *)defaultValue
Parameters
property |
The name of the property, as specified on the server by the mobile backend. |
---|---|
defaultValue |
The value returned if the property is not specified. |
Discussion
Warning: Raises an NSInternalInconsistencyException
if the specified property is not a number.
Declared In
OMCAppConfig.h
– stringForProperty:default:
Returns a string for the specified property. Returns the specified default value if the property is absent.
- (nullable NSString *)stringForProperty:(NSString *)property default:(nullable NSString *)defaultValue
Parameters
property |
The name of the property, as specified on the server by the mobile backend. |
---|---|
defaultValue |
The value returned if the property is not specified. |
Discussion
Warning: Raises an NSInternalInconsistencyException
if the specified property is not a string.
Declared In
OMCAppConfig.h