class TimelineElementFeedback
interface TimelineElementFeedback
Package: dji.sdk.mission.timeline
Description:
This protocol defines how the timeline element may contact mission control to notify it of its own execution. This protocol is not intended to be implemented by any other object and the use of a protocol is primarily organizational.
Class Members:
Callback Method
method onStart
@Override void onStart (TimelineElement element)
Description:
Used by elements to notify Mission Control of their successful start.
TimelineElement element A previously scheduled element. Should also be the element running.
method onStartWithError
@Override void onStartWithError (TimelineElement element, DJIError error)
Description:
Used by elements to notify Mission Control of a failure preventing to start.
TimelineElement element A previously scheduled element. Should also be the element running. DJIError error A valid error object.
method onProgressWithError
@Override void onProgressWithError (TimelineElement element, @Nullable DJIError error)
Description:
Used by elements to notify Mission Control of a progress in the execution. Additional information may be pulled by mission control depending on the element. Calling this method with an error means the element is still running and the error did not cause it to stop.
TimelineElement element A previously scheduled element. Should also be the element running. @Nullable DJIError error An optional error if something went wrong.
method onPause
@Override void onPause (TimelineElement element)
Description:
Used by elements to notify Mission Control of a successful pausing.
TimelineElement element A previously scheduled element. Should also be the element running.
method onPauseWithError
@Override void onPauseWithError (TimelineElement element, DJIError error)
Description:
Used by elements to notify Mission Control of a failure to pause. The element is expected to be still running.
TimelineElement element A previously scheduled element. Should also be the element running. DJIError error A valid error object.
method onResume
@Override void onResume (TimelineElement element)
Description:
Used by elements to notify Mission Control of a successful resuming of a previously paused element.
TimelineElement element A previously scheduled element. Should also be the element running.
method onResumeWithError
@Override void onResumeWithError (TimelineElement element, DJIError error)
Description:
Used by elements to notify Mission Control of a failure to resume. The element is expected to be still paused.
TimelineElement element A previously scheduled element. Should also be the element running. DJIError error A valid error object.
method onFinishWithError
@Override void onFinishWithError (TimelineElement element, DJIError error)
Description:
Used by elements to notify Mission Control of the end of the execution of it.
TimelineElement element A previously scheduled element. Should also be the element running. DJIError error An optional error if the execution end was the result of it.
method onStopWithError
@Override void onStopWithError (TimelineElement element, DJIError error)
Description:
Used by elements to notify Mission Control of a failure to stop the execution of the element. This should only be used to handle error after stopRun is called.
TimelineElement element A previously scheduled element. Should also be the element running. DJIError error A valid error object.