Package com.batch.android.actions
Class DeeplinkActionRunnable
- java.lang.Object
-
- com.batch.android.actions.DeeplinkActionRunnable
-
- All Implemented Interfaces:
UserActionRunnable
public class DeeplinkActionRunnable extends java.lang.Object implements UserActionRunnable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARGUMENT_DEEPLINK_URLstatic java.lang.StringARGUMENT_SHOW_LINK_INAPPstatic java.lang.StringIDENTIFIER
-
Constructor Summary
Constructors Constructor Description DeeplinkActionRunnable(ActionModule actionModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidperformAction(android.content.Context context, java.lang.String identifier, JSONObject args, UserActionSource source)Perform the requested action defined by the given parameters.
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
ARGUMENT_DEEPLINK_URL
public static final java.lang.String ARGUMENT_DEEPLINK_URL
- See Also:
- Constant Field Values
-
ARGUMENT_SHOW_LINK_INAPP
public static final java.lang.String ARGUMENT_SHOW_LINK_INAPP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeeplinkActionRunnable
public DeeplinkActionRunnable(@NonNull ActionModule actionModule)
-
-
Method Detail
-
performAction
public void performAction(@Nullable android.content.Context context, @NonNull java.lang.String identifier, @NonNull JSONObject args, @Nullable UserActionSource source)Description copied from interface:UserActionRunnablePerform the requested action defined by the given parameters.
Note: This can be run from any thread. Do not make assumptions about the thread you're currently on.- Specified by:
performActionin interfaceUserActionRunnable- Parameters:
context- The current context, if applicable. Be careful, as this may be any context, and not just an activity one. It can also be null.identifier- The action identifier.args- Action arguments. Can be empty.source- The action source. Used to get more info about the what triggered the action (for example, the full payload of the push that triggered this action). In some cases, this can be null.
-
-