Class UserAction


  • public class UserAction
    extends java.lang.Object
    Model that represents an user action, which can be triggered by Batch SDK in various contexts.
    • 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 - The UserActionRunnable that will be executed when Batch needs to perform your action.
    • Method Detail

      • getIdentifier

        @NonNull
        public java.lang.String getIdentifier()