Allows the custom executable action to be executed by Appfigurate. Any configuration properties you modify in the action method are persisted. Actions appear below properties in the Appfigurate UI.
Swift prototype
As you cannot annotate a Swift method with a property wrapper, your action methods must be specified manually.
Replace XXX with the name of your action (e.g. freshInstall)
import {
NativeModules,
NativeEventEmitter,
} from 'react-native';
const {Appfigurate} = NativeModules;
const AppfigurateEvents = new NativeEventEmitter(NativeModules.Appfigurate);
AppfigurateEvents.addListener('APLConfigurationUpdated', result => {
if (result.APLConfigurationUpdatedAction == "freshInstall") {
...
}
});
When an action is executed in the underlying native (iOS) or (Android) subclass, Flutter is also notified. Override the method in as follows to receive the action:
When an action is executed in the underlying native (iOS) or (Android) subclass, React Native is also notified. Subscribe to an event emitter to receive the action: