Skip to content

Subclassing APLConfiguration actions

Electric Bolt edited this page Oct 26, 2019 · 1 revision

ACTION_METHOD macro implements custom executable actions. Any configuration properties you modify in the action method are persisted. Actions appear below properties in Appfigurate.

ACTION_METHOD implementation

ACTION_METHOD(actionName, description) { ... }

Action

Allows the custom executable action to be executed by Appfigurate.

Objective-C example

@implementation Configuration

ACTION_METHOD(freshInstall, "Resets application to fresh install state") {
    NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
    NSDictionary* dict = [defs dictionaryRepresentation];
    for (id key in dict) {
        [defs removeObjectForKey:key];
    }
    [defs synchronize];
}
...

Documentation

HOME

INTEGRATION
    CocoaPods
    Carthage
    Manual

EXAMPLES
    AppfigurateExample
    SwiftExample
    ActionExample Extension
    WatchExample
    WatchExample Intent Extension

CONFIGURATION
    APLConfiguration subclass
        Custom executable actions
        Supported property types
            BOOL
            NSInteger
            float
            double
            plain NSString
            encrypted NSString
               ENCRYPTED_STRING
               Best practice
               String Encryption util
                  Troubleshooting
        UISlider icon types
        Overrides
    Advanced configuration
        App Startup
        Info.plist
        WCSession
    Additional functions
    Display overridden config

SECURITY
    Export compliance
    Best practice
    App Store compliance

TESTING
    Automation testing

Clone this wiki locally
You can’t perform that action at this time.