Boolean
Objective-C (iOS, watchOS)
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 switch interface
BOOL
properties should be declared in your APLConfiguration
subclass header file as follows:
BOOL switch implementation
Allows the BOOL
property to be changed in Appfigurate using a switch. If restart
is YES
, then the app will be restarted if the property value changes.
Objective-C example
Appfigurate UI element example
Swift (iOS, watchOS)
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 switch implementation
Allows the Bool
property to be changed in Appfigurate using a switch. If restart
is true
, then the app will be restarted if the property value changes.
Swift example
Appfigurate UI element example
Java (Android)
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 switch implementation
Allows the boolean
property to be changed in Appfigurate using a switch. If restart
is true
, then the app will be restarted if the property value changes.
Java example
Appfigurate UI element example
Kotlin (Android)
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 switch implementation
Allows the Boolean
property to be changed in Appfigurate using a switch. If restart
is true
, then the app will be restarted if the property value changes.
Kotlin example
Appfigurate UI element example
Dart (Flutter for iOS, Flutter for Android)
The flutter APLNativeConfiguration
class defers to the underlying platform APLConfiguration
(iOS) or nz.co.electricbolt.appfiguratelibrary.Configuration
(Android) subclass to read property values.
bool implementation
Dart example
Last updated