Package zendesk.support
Class CreateRequestActionHandler
- java.lang.Object
-
- zendesk.support.CreateRequestActionHandler
-
- All Implemented Interfaces:
- ActionHandler
public final class CreateRequestActionHandler extends java.lang.Object implements ActionHandler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanHandle(java.lang.String actionName)Determines whether or not the ActionHandler object can handle the given action String.ActionDescriptiongetActionDescription()intgetPriority()Returns the priority of the ActionHandler.voidhandle(java.util.Map<java.lang.String,java.lang.Object> data, Context context)Invokes an action on the given action String.
-
-
-
Method Detail
-
canHandle
public boolean canHandle(java.lang.String actionName)
Description copied from interface:ActionHandlerDetermines whether or not the ActionHandler object can handle the given action String.- Specified by:
canHandlein interfaceActionHandler- Parameters:
actionName- the action String to check against.- Returns:
- true if the action String can be handled, false if it can't.
-
handle
public void handle(java.util.Map<java.lang.String,java.lang.Object> data, Context context)Description copied from interface:ActionHandlerInvokes an action on the given action String. This is expected to be the starting of an Activity, hence theContextparameter. This method can be called before init for a given SDK is performed so you need to check if any SDK's called here are initialised before any action takes place.- Specified by:
handlein interfaceActionHandler- Parameters:
data- an optional map of key-value pairs for theActionHandlerto use in handling the action.context- theContextto use in invoking the action, such as starting an Activity.
-
getPriority
public int getPriority()
Description copied from interface:ActionHandlerReturns the priority of the ActionHandler. The higher the number, the higher the priority.- Specified by:
getPriorityin interfaceActionHandler- Returns:
- the priority of the ActionHandler.
-
getActionDescription
public ActionDescription getActionDescription()
- Specified by:
getActionDescriptionin interfaceActionHandler- Returns:
- a description for this action.
-
-