java.lang.Object | ||||
↳ | android.content.Context | |||
↳ | android.content.ContextWrapper | |||
↳ | android.app.Service | |||
↳ | com.urbanairship.actions.ActionService |
Service class for running actions via push payload.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_RUN_ACTIONS | Intent action for running actions. | |||||||||
String | EXTRA_ACTIONS_BUNDLE | Intent extra for storing the actions as a bundle of action name to action values. | |||||||||
String | EXTRA_ACTIONS_PAYLOAD |
This constant is deprecated.
Marked to be removed in 7.0.0 . Use EXTRA_ACTIONS_BUNDLE to specify
the actions as a bundle rather than a JSON string.
|
|||||||||
String | EXTRA_METADATA | Intent extra for storing metadata as a bundle. | |||||||||
String | EXTRA_PUSH_BUNDLE |
This constant is deprecated.
Marked to be removed in 7.0.0. Use EXTRA_METADATA to specify a bundle with
the PushMessage parcelable stored under the PUSH_MESSAGE_METADATA key.
|
|||||||||
String | EXTRA_SITUATION | Intent extra for storing the current situation. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ActionService()
Default ActionService constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
IBinder | onBind(Intent intent) | ||||||||||
void | onCreate() | ||||||||||
int | onStartCommand(Intent intent, int flags, int startId) | ||||||||||
static void |
runActions(Context context, Map<String, ActionValue> actions, Situation situation, Bundle metadata)
Convenience method for running actions in the action service.
| ||||||||||
static void |
runActions(Context context, String actionsPayload, Situation situation, Bundle metadata)
Convenience method for running actions in the action service.
| ||||||||||
static void |
runActionsPayload(Context context, String payload, Situation situation, PushMessage message)
This method is deprecated.
Marked to be removed in 7.0.0. Use
runActions(Context, String, Situation, Bundle) instead.
| ||||||||||
static void |
runActionsPayload(Context context, String payload, Situation situation)
This method is deprecated.
Marked to be removed in 7.0.0. Use
runActions(Context, String, Situation, Bundle) instead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Intent action for running actions.
Intent extra for storing the actions as a bundle of action name to action values.
This constant is deprecated.
Marked to be removed in 7.0.0 . Use EXTRA_ACTIONS_BUNDLE
to specify
the actions as a bundle rather than a JSON string.
Intent extra for storing the actions payload
Intent extra for storing metadata as a bundle.
This constant is deprecated.
Marked to be removed in 7.0.0. Use EXTRA_METADATA
to specify a bundle with
the PushMessage parcelable stored under the PUSH_MESSAGE_METADATA
key.
Intent extra for storing the push bundle that triggered the actions.
Intent extra for storing the current situation.
Default ActionService constructor.
Convenience method for running actions in the action service.
context | The application context. |
---|---|
actions | Map of action name to action values. |
situation | The action situation. |
metadata | The action metadata. |
Convenience method for running actions in the action service.
context | The application context. |
---|---|
actionsPayload | Actions payload. |
situation | The action situation. |
metadata | The action metadata. |
This method is deprecated.
Marked to be removed in 7.0.0. Use runActions(Context, String, Situation, Bundle)
instead.
Convenience method for running actions in the action service with added PushMessage metadata.
context | The application context. |
---|---|
payload | Actions payload. |
situation | The current situation. |
message | The push message that triggered the actions. |
This method is deprecated.
Marked to be removed in 7.0.0. Use runActions(Context, String, Situation, Bundle)
instead.
Convenience method for running actions in the action service.
context | The application context. |
---|---|
payload | Actions payload. |
situation | The current situation. |