DJI Mobile SDK Documentation

      class PanoramaMissionOperator

      class PanoramaMissionOperator
      Package:dji.sdk.mission.panorama
      Description:

      The panorama mission operator is the only object that controls, runs and monitors Panorama Missions. It can be accessed from MissionControl.

      Class Members:
      Current State
      method
      method getCurrentState
      @NonNull
      PanoramaMissionState getCurrentState()
      Package:dji.sdk.mission.panorama
      Description:

      The current state of the operator.

      Return:
      PanoramaMissionStateAn object of PanoramaMissionState.
      Add Listener
      method
      method addListener
      void addListener(@NonNull PanoramaMissionOperatorListener listener)
      Package:dji.sdk.mission.panorama
      Description:

      Adds listener to receive all events of the Panorama mission operator.

      Input Parameters:
      @NonNull PanoramaMissionOperatorListener listenerAn interface of PanoramaMissionOperatorListener.
      Remove Listener
      method
      method removeListener
      void removeListener(@NonNull PanoramaMissionOperatorListener listener)
      Package:dji.sdk.mission.panorama
      Description:

      Removes listener. The listener will not receive any update after calling this method.

      Input Parameters:
      @NonNull PanoramaMissionOperatorListener listenerListener to be removed.
      method removeAllListeners
      void removeAllListeners()
      Package:dji.sdk.mission.panorama
      Description:

      Remove all listeners.

      Setup Mission
      method
      method setup
      void setup(@NonNull PanoramaMode mode, @Nullable CompletionCallback callback)
      Package:dji.sdk.mission.panorama
      Description:

      Sets up the Panorama mission with the specific mode. It can only be called when the getCurrentState is one of the following:

      If the setup starts successfully, getCurrentState will become SETTING_UP. Normally, it will take seconds to complete the setup. Once setup is completed successfully, getCurrentState will become READY_TO_EXECUTE.

      Input Parameters:
      @NonNull PanoramaMode modeAn enum value of PanoramaMode.
      @Nullable CompletionCallback callbackThe execution callback with the returned execution result.
      Start Mission
      method
      method startMission
      void startMission(@Nullable CompletionCallback callback)
      Package:dji.sdk.mission.panorama
      Description:

      Starts to execute the mission that has been setup.
      It can only be called when the getCurrentState is READY_TO_EXECUTE.
      If the mission is started successfully, the getCurrentState will become EXECUTING.

      Input Parameters:
      @Nullable CompletionCallback callbackThe execution callback with the returned execution result.
      Stop Mission
      method
      method stopMission
      void stopMission(@Nullable CompletionCallback callback)
      Package:dji.sdk.mission.panorama
      Description:

      Stops the executing mission. It can only be called when the getCurrentState is EXECUTING. After a mission is stopped successfully, getCurrentState will become READY_TO_EXECUTE.

      Input Parameters:
      @Nullable CompletionCallback callbackThe execution callback with the returned execution result.
      method getRecentPanoramaMediaFile
      void getRecentPanoramaMediaFile(@NonNull final CompletionCallbackWith<MediaFile> callback)
      Package:dji.sdk.mission.panorama
      Description:

      Retrieves the MediaFile object for the recently finished panorama mission.

      Input Parameters:
      @NonNull final CompletionCallbackWith<MediaFile> callbackThe execution callback with the returned execution result.
      enum PanoramaMode
      @EXClassNullAway
      enum PanoramaMode
      Package:dji.common.mission.panorama
      Description:

      Defines options for different types of modes for Panorama mission.

      Enum Members:
      FULL_CIRCLE360 Degree Panorama mode.
      HALF_CIRCLE180 Degree Panorama mode. Also known as selfie mode.
      UNKNOWNUnknown mode.
      Class Members: