Boolean
Bool properties must be either true or false. The default value of a Bool property is false. You can change the default value of the property by assigning a new value in an overridden reset method.
BOOL properties must be either YES or NO. The default value of a BOOL property is NO. You can change the default value of the property by assigning a new value in an overridden reset method.
BOOL properties should be declared in your APLConfiguration subclass header file as follows:
@import AppfigurateLibrary;
@interface Configuration : APLConfiguration
@property(nonatomic, assign) BOOL propertyName;
...Boolean properties must be either true or false. The default value of a Boolean property is false. You can change the default value of the property by assigning a new value in an overridden reset method.
boolean properties must be either true or false. The default value of a boolean property is false. You can change the default value of the property by assigning a new value in an overridden reset method.
The flutter APLNativeConfiguration class defers to the underlying platform APLConfiguration (iOS) or nz.co.electricbolt.appfiguratelibrary.Configuration (Android) subclass to read property values.
The React Native module AppfigurateModule class defers to the underlying platform APLConfiguration (iOS) or nz.co.electricbolt.appfiguratelibrary.Configuration (Android) subclass to read property values.
Local properties
Switch UI
Allows a boolean property to be changed in Appfigurate using a switch.

Swift prototype
@BoolProperty(description, restart)
var propertyName: BoolIf restart is true, then the app will be restarted if the property value changes.
Swift example
import AppfigurateLibrary
@objcMembers class Configuration: APLConfiguration {
@BoolProperty(description: "Enable debug logging to console", restart: false)
var logging: Bool
override func reset() {
logging = true
}
...Objective-C prototype
BOOL_PROPERTY(propertyName, description, restart)If restart is YES, then the app will be restarted if the property value changes.
Objective-C example
@import AppfigurateLibrary;
@interface Configuration : APLConfiguration
@property(nonatomic, assign) BOOL logging;
@end
@implementation Configuration
BOOL_PROPERTY(logging, @"Enable debug logging to console", NO);
- (void) reset {
self.logging = YES;
}
...Kotlin prototype
If restart is true, then the app will be restarted if the property value changes.
Kotlin example
Java prototype
If restart is true, then the app will be restarted if the property value changes.
Java example
Dart example
JavaScript example
Remote properties
Remote Switch UI
Allows a third party remote configuration provider's boolean property to be changed locally in Appfigurate using a switch. If the override tick box is ticked off, the third party remote configuration provider's value is displayed. If the override tick box is ticked on, then you can use Appfigurate to locally override the value.

Swift prototype
Swift example
Objective-C prototype
Objective-C example
Kotlin prototype
Kotlin example
Java prototype
Java example
Dart example
JavaScript example
Last updated