DJI Mobile SDK Documentation

      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

      State
      method
      method onStart
      @Override
      void onStart(TimelineElement element)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of their successful start.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      method onStartWithError
      @Override
      void onStartWithError(TimelineElement element, DJIError error)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of a failure preventing to start.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      DJIError errorA valid error object.
      method onProgressWithError
      @Override
      void onProgressWithError(TimelineElement element, @Nullable DJIError error)
      Package:dji.sdk.mission
      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.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      @Nullable DJIError errorAn optional error if something went wrong.
      method
      method onPause
      @Override
      void onPause(TimelineElement element)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of a successful pausing.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      method onPauseWithError
      @Override
      void onPauseWithError(TimelineElement element, DJIError error)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of a failure to pause. The element is expected to be still running.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      DJIError errorA valid error object.
      method
      method onResume
      @Override
      void onResume(TimelineElement element)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of a successful resuming of a previously paused element.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      method onResumeWithError
      @Override
      void onResumeWithError(TimelineElement element, DJIError error)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of a failure to resume. The element is expected to be still paused.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      DJIError errorA valid error object.
      method onFinishWithError
      @Override
      void onFinishWithError(TimelineElement element, DJIError error)
      Package:dji.sdk.mission
      Description:

      Used by elements to notify Mission Control of the end of the execution of it.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      DJIError errorAn optional error if the execution end was the result of it.
      method onStopWithError
      @Override
      void onStopWithError(TimelineElement element, DJIError error)
      Package:dji.sdk.mission
      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.

      Input Parameters:
      TimelineElement elementA previously scheduled element. Should also be the element running.
      DJIError errorA valid error object.