Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

ITaskRegistration* getTaskRegistration()
Get the ITaskRegistration object for the Task.

Returns

ITaskRegistration* The ITaskRegistration of the task.

getData()

com.amazon.apmf.IStandard? getData()
Retrieve the strongly typed result payload posted by the Task. The payload may be any valid Omnikit Data Object.

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.
Last modified on October 29, 2026