Interface ITaskResult
interface ITaskResult
Extends com.amazon.apmf.IStandard
The ITaskResult interface contract is used to post updates about Task execution and to finally
indicate success or failure to active Task Observers. It is returned as param to
ITaskObserver::onUpdate. The Task Result is delivered to all observer objects registered with
the Task Manager at the time a result is posted. Task Results are not cached by the Task Manager.
Methods
getTaskRegistration()
Get theITaskRegistration*getTaskRegistration()
ITaskRegistration object for the Task.
Returns
ITaskRegistration*
The ITaskRegistration of the task.
getData()
Retrieve the strongly typed result payload posted by the Task. The payload may be any valid Omnikit Data Object.com.amazon.apmf.IStandard?getData()
Returns
com.amazon.apmf.IStandard?
The return value is optional and might be absent.
The optional data object.
getCompletionStatus()
TaskCompletionStatus getCompletionStatus()
Get the completion status of the task.
Returns
TaskCompletionStatus
TaskCompletionStatus for the built task result.

