Float
Float is a single-precision 4 byte floating-point type with an approximate range of 1.2E-38 to 3.4E+38.
The default value of a Float is 0.0. You can change the default value of the property by assigning a new value in an overridden reset method.
float is a single-precision 4 byte floating-point type with an approximate range of 1.2E-38 to 3.4E+38.
The default value of a float is 0.0. You can change the default value of the property by assigning a new value in an overridden reset method.
float properties should be declared in your APLConfiguration subclass header file as follows:
@import AppfigurateLibrary;
@interface Configuration : APLConfiguration
@property(nonatomic, assign) float propertyName;
...Float is a single-precision 4 byte floating-point type with an approximate range of 1.2E-38 to 3.4E+38.
The default value of a Float is 0.0f. You can change the default value of the property by assigning a new value in an overridden reset method.
float is a single-precision 4 byte floating-point type with an approximate range of 1.2E-38 to 3.4E+38.
The default value of a float is 0.0f. 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.
As Dart doesn't have a single-precision float data type, you should map to a double-precision double data type instead:
double
Float
float
Float
float
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 Float to a JavaScript Number - you should be aware of JavaScript's 53 bit limitation.
Local properties
Slider UI
Allows a float property to be changed in Appfigurate using a slider between minimum and maximum values.

Swift prototype
@FloatPropertySlider(min, max, icon, description, restart)
var propertyName: FloatYou 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 {
@FloatPropertySlider(min: 60.5, max: 120.41, icon: .volume, description: "Clipping - decibels", restart: false)
var maxDecibel: Float
override func reset() {
maxDecibel = 100.0
}
...Objective-C Prototype
FLOAT_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) float maxDecibel;
@end
@implementation Configuration
FLOAT_PROPERTY_SLIDER(maxDecibel, 60.5, 120.41, APLIconSliderVolume, @"Clipping - decibels", NO);
- (void) reset {
self.maxDecibel = 100.0;
}
...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 a float 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 a float 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 a float 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
Last updated