Custom actions
Registering an action
Batch.Actions.register(UserAction("<YOUR_ACTION_NAME>") { context, identifier, args, source ->
// Your action code here
})Batch.Actions.register(new UserAction("<YOUR_ACTION_NAME>", new UserActionRunnable() {
@Override
public void performAction(@Nullable Context context, @NonNull String identifier, @NonNull JSONObject args, @Nullable UserActionSource source) {
// Your action code here
}
}));Unregistering an action
Batch.Actions.unregister("<YOUR_ACTION_NAME>")Batch.Actions.unregister("<YOUR_ACTION_NAME>");Triggering an action
Built-in actions
batch.dismiss
batch.dismissbatch.deeplink
batch.deeplinkName
Value
batch.android_request_notifications
batch.android_request_notificationsbatch.android_redirect_settings
batch.android_redirect_settingsbatch.android_smart_reoptin
batch.android_smart_reoptinbatch.user.tag
batch.user.tagName
Value
batch.user.event
batch.user.eventName
Value
batch.group
batch.groupName
Value
batch.clipboard
batch.clipboardName
Value
batch.rating
batch.ratingLast updated

