Integer
Int is platform dependent, 32-bit signed values on 32-bit CPUs (Apple Watch; arm64_32) and 64-bit signed values on 64-bit CPUs (iPhone, iPad; arm64).
The default value of a Int is 0. You can change the default value of the property by assigning a new value in an overridden reset method.
NSInteger is platform dependent, 32-bit signed values on 32-bit CPUs (Apple Watch arm64_32) and 64-bit signed values on 64-bit CPUs (iPhone, iPad arm64).
The default value of a NSInteger is 0. You can change the default value of the property by assigning a new value in an overridden reset method.
NSInteger properties should be declared in your APLConfiguration subclass header file as follows:
@import AppfigurateLibrary;
@interface Configuration : APLConfiguration
@property(nonatomic, assign) NSInteger propertyName;
...The default value of an Int is 0. You can change the default value of the property by assigning a new value in an overridden reset method.
The default value of an int is 0. 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.
React Native always converts the underlying Integer to a JavaScript Number - you should be aware of JavaScript's 53 bit limitation.
Local properties
Slider UI
Allows an integer property to be changed in Appfigurate using a slider between minimum and maximum values.

Swift prototype
@IntPropertySlider(min, max, icon, description, restart)
var propertyName: IntYou can customize the minimum and maximum images using the icon parameter. If restart is true, then the app will be restarted if the property value changes.
Swift example
import AppfigurateLibrary
@objcMembers class Configuration: APLConfiguration {
@IntPropertySlider(min: 50, max: 100, icon: .volume, description: "Limit volume level", restart: true)
var volumeRange: Int
override func reset() {
volumeRange = 75
}
...Objective-C prototype
INT_PROPERTY_SLIDER(propertyName, minValue, maxValue, icon, description, restart)You can customize the minimum and maximum images using the icon parameter. 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) NSInteger volumeRange;
@end
@implementation Configuration
INT_PROPERTY_SLIDER(volumeRange, 50, 100, APLIconSliderVolume, @"Limit volume level", NO);
- (void) reset {
self.volumeRange = 75;
}
...Kotlin prototype
You can customize the minimum and maximum images using the sliderIcon parameter. If restart is true, then the app will be restarted if the property value changes.
Kotlin example
Java prototype
You can customize the minimum and maximum images using the sliderIcon parameter. If restart is true, then the app will be restarted if the property value changes.
Java example
Dart prototype
Dart example
JavaScript example
Editable UI
Allows an integer property to be changed in Appfigurate using a text field between minimum and maximum values, and an optional regular expression validating input.

Swift prototype
If restart is true, then the app will be restarted if the property value changes.
Swift example
Objective-C prototype
If restart is YES, then the app will be restarted if the property value changes.
Objective-C example
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 prototype
Dart example
JavaScript example
List UI
Allows an integer property to be changed in Appfigurate by allowing the user to select from a predefined list of valid choices.

Swift prototype
If restart is true, then the app will be restarted if the property value changes.
Swift example
Objective-C prototype
If restart is YES, then the app will be restarted if the property value changes.
Objective-C example
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 prototype
Dart example
JavaScript example
Editable List UI
Allows an integer property to be changed in Appfigurate by allowing the user to select from a predefined list of valid choices. The user can customize the list adding by additional values using a text field between minimum and maximum values, and an optional regular expression validating input.

Swift prototype
If restart is true, then the app will be restarted if the property value changes.
Swift example
Objective-C prototype
If restart is YES, then the app will be restarted if the property value changes.
Objective-C example
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 prototype
Dart example
JavaScript example
Remote properties
Remote Editable UI
Allows a third party remote configuration provider's integer property to be changed locally in Appfigurate using a text field. 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 prototype
Dart example
JavaScript example
Last updated