private void actions(JSONArray args, CallbackContext callbackContext) {
        String actionGroupId = args.optString(1);

        // The first agrument defines, which method was called
        switch (args.optInt(0)) {
            // addActions was called
            case 0:
                ActionGroup group = ActionGroup.parse(getContext(), actionGroupId, args.optJSONArray(2));
                ActionGroup.register(group);
                callbackContext.success();
                break;
            // removeActions was called
            case 1:
                ActionGroup.unregister(actionGroupId);
                callbackContext.success();
                break;
            // hasActions was called
            case 2:
                successBoolean(callbackContext, ActionGroup.isRegistered(actionGroupId));
                break;
        }
    }
Register, removes or checks for an action group
@param args The exec() arguments in JSON form.
@param callbackContext The callback context used when calling back into JavaScript.
src/android/LocalNotification.java