Custom actions
Registering an action
BatchActions.register(BatchUserAction(identifier: "<YOUR_ACTION_NAME>",
actionBlock: { (identifier: String, arguments: [String : Any], source: BatchUserActionSource?) in
// Your action code here
}))BatchUserActionBlock alertActionBlock = ^(NSString * _Nonnull identifier, NSDictionary<NSString *,NSObject *> * _Nonnull arguments, id<BatchUserActionSource> _Nullable source) {
// Your action code here
};
[BatchActions registerAction:[BatchUserAction userActionWithIdentifier:@"<YOUR_ACTION_NAME>"
actionBlock:alertActionBlock]];Unregistering an action
Triggering an action
Built-in actions
batch.dismiss
batch.dismissbatch.deeplink
batch.deeplinkName
Value
batch.ios_request_notifications
batch.ios_request_notificationsbatch.ios_redirect_settings
batch.ios_redirect_settingsbatch.ios_smart_reoptin
batch.ios_smart_reoptinbatch.user.tag
batch.user.tagName
Value
batch.user.event
batch.user.eventName
Value
batch.group
batch.groupName
Value
batch.ios_tracking_consent
batch.ios_tracking_consentbatch.clipboard
batch.clipboardName
Value
batch.rating
batch.ratingLast updated

