BatchUserAction
@interface BatchUserAction
Represents an action that can be triggered by the user from anywhere.
-
Create a new BatchUserAction object with the following parameters Be careful, as the action block can be invoked on any thread. You should never make any assumption about which thread you’re on when this is called.
@returns A BatchUserAction instance constructed from the given parameters.
Declaration
Objective-C
+ (nonnull instancetype)userActionWithIdentifier:(id)identifier actionBlock:(nonnull BatchUserActionBlock) actionBlock;
Parameters
identifier
The unique action identifier. Should be unique in your app (not case-sensitive).
actionBlock
The action block that will be invoked when Batch wants to execute your action. Can be called from any thread: never make any assumption about which thread you’re on when this is called.
-
Action identifier. Should be unique in your app.
Declaration
Objective-C
@property (readonly, nonnull) int *identifier;
-
Action block to invoke when Batch wants to perform your action. Be careful, as it can be invoked on any thread. You should never make any assumption about which thread you’re on when this is called.
Declaration
Objective-C
@property (readonly, nonnull) BatchUserActionBlock actionBlock;