Custom executable actions
Objective-C
ACTION_METHOD macro implements custom executable actions. Any configuration properties you modify in the action method are persisted. Actions appear below properties in the Appfigurate UI.
ACTION_METHOD
implementation
ACTION_METHOD
implementationAllows the custom executable action to be executed by Appfigurate. If restart
is YES
then the app will be restarted after the action method is executed.
Objective-C example
Appfigurate UI element example
Swift
As you cannot annotate a Swift method with a property wrapper, your action methods must be specified manually. Any configuration properties you modify in the action method are persisted. Actions appear below properties in the Appfigurate UI.
Manual implementation
Replace XXX
with the name of your action (e.g. freshInstall
)
Allows the custom executable action to be executed by Appfigurate. If you return true
from your XXXRestart()
method, then the app will be restarted after the action method is executed.
Swift example
Appfigurate UI element example
Java
@ActionMethod annotation implements custom executable actions. Any configuration properties you modify in the action method are persisted. Actions appear below properties in the Appfigurate UI.
@ActionMethod
implementation
@ActionMethod
implementationAllows the custom executable action to be executed by Appfigurate. If restart is true then the app will be restarted after the action method is executed.
Java example
Appfigurate UI element example
Kotlin
@ActionMethod annotation implements custom executable actions. Any configuration properties you modify in the action method are persisted. Actions appear below properties in the Appfigurate UI.
@ActionMethod
implementation
@ActionMethod
implementationAllows the custom executable action to be executed by Appfigurate. If restart is true then the app will be restarted after the action method is executed.
Kotlin example
Appfigurate UI element example
Dart
When an action is executed in the underlying native APLConfiguration
(iOS) or nz.co.electricbolt.appfiguratelibrary.Configuration
(Android) subclass, Flutter is also notified. Override the actionExecuted(action)
method in APLNativeConfiguration
as follows to receive the action:
Dart example
Last updated