Package com.batch.android
Class UserAction
- java.lang.Object
-
- com.batch.android.UserAction
-
public class UserAction extends java.lang.ObjectModel that represents an user action, which can be triggered by Batch SDK in various contexts.
-
-
Constructor Summary
Constructors Constructor Description UserAction(java.lang.String identifier, UserActionRunnable runnable)Construct an Action for the specified parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetIdentifier()UserActionRunnablegetRunnable()
-
-
-
Constructor Detail
-
UserAction
public UserAction(@NonNull java.lang.String identifier, @NonNull UserActionRunnable runnable)Construct an Action for the specified parameters- Parameters:
identifier- Action identifier. Must uniquely define an action in your app. Might be lowercased, so be sure to compare it with case unsensitive methods.runnable- TheUserActionRunnablethat will be executed when Batch needs to perform your action.
-
-
Method Detail
-
getIdentifier
@NonNull public java.lang.String getIdentifier()
-
getRunnable
@NonNull public UserActionRunnable getRunnable()
-
-