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.deeplink
Name
Value
batch.ios_request_notifications
batch.ios_redirect_settings
batch.ios_smart_reoptin
batch.user.tag
Name
Value
batch.user.event
Name
Value
batch.group
Name
Value
batch.ios_tracking_consent
batch.clipboard
Name
Value
batch.rating
Last updated

