DJI Mobile SDK Documentation

      class DJIActiveTrackMissionEvent

      @interface DJIActiveTrackMissionEvent : NSObject
      Header:DJIActiveTrackMissionOperator.h
      Inherits From:NSObject
      Description:

      This class encapsulates all the state changes of the ActiveTrack mission operator.

      Class Members:
      Previous State
      property
      property previousState
      @property (nonatomic, readonly) DJIActiveTrackMissionState previousState
      Header:DJIActiveTrackMissionOperator.h
      Description:

      The previous state of the operator.

      See Also:

      DJIActiveTrackMissionState

      Current State
      property
      property currentState
      @property (nonatomic, readonly) DJIActiveTrackMissionState currentState
      Header:DJIActiveTrackMissionOperator.h
      Description:

      The current state of the operator.

      See Also:

      DJIActiveTrackMissionState

      Tracking State
      property
      property trackingState
      @property (nonatomic, readonly, nullable) DJIActiveTrackTrackingState *trackingState
      Header:DJIActiveTrackMissionOperator.h
      Description:

      The tracking state of the executing ActiveTrack mission. It is only valid when currentState is one of the following:

      For the other states, it is nil.

      See Also:

      DJIActiveTrackTrackingState

      Error
      property
      property error
      @property (nonatomic, readonly, nullable) NSError *error
      Header:DJIActiveTrackMissionOperator.h
      Description:

      The encountered error if there is any. Otherwise, it is nil.

      enum DJIActiveTrackMissionState
      typedef NS_ENUM(NSInteger, DJIActiveTrackMissionState)
      Header:DJIActiveTrackMissionOperator.h
      Description:

      All the possible states of DJIActiveTrackMissionOperator.

      Enum Members:
      DJIActiveTrackMissionStateUnknownThe state of the operator is unknown. It is the initial state when the operator is just created.
      DJIActiveTrackMissionStateDisconnectedThe connection between the mobile device and aircraft is broken.
      DJIActiveTrackMissionStateRecoveringThe connection between the mobile device and aircraft is recovering. In this state, the operator is synchronizing the state from the aircraft.
      DJIActiveTrackMissionStateNotSupportedThe connected product does not support ActiveTrack mission.
      DJIActiveTrackMissionStateCannotStartThere is existing error stopping any ActiveTrack mission to start. Resolve persistentError of DJIActiveTrackMissionOperator to start a mission.
      DJIActiveTrackMissionStateReadyToStartThe operator is ready to start an ActiveTrack mission.
      DJIActiveTrackMissionStateAutoSensingAuto sensing is enabled and the aircraft is looking for humans automatically in the live view. Sensed subjects are pushed through autoSensedSubjects of DJIActiveTrackTrackingState.
      DJIActiveTrackMissionStateAutoSensingForQuickShotAuto sensing for QuickShot is enabled and the aircraft is looking for humans automatically in the live view. Sensed subjects are pushed through autoSensedSubjects of DJIActiveTrackTrackingState.
      DJIActiveTrackMissionStateDetectingHumanGesture mode is enabled and the aircraft is looking for a target automatically. If a target is found, the operator will go to state DJIActiveTrackMissionStateWaitingForConfirmation or DJIActiveTrackMissionStateCannotConfirm. Not supported by Mavic 2, Mavic 2 Pro, Mavic 2 Zoom, Mavic Air 2, DJI Air 2S.
      DJIActiveTrackMissionStateWaitingForConfirmationTarget is found. Camera is already tracking the target. In order to make the aircraft follow the target, the confirmation from user is required. Once the target is confirmed, the state will become DJIActiveTrackMissionStateAircraftFollowing. For Mavic Air 2, DJI Air 2S, only CIRCLE mode supprt this state, TRACE mode and PROFILE mode do not require confirmation.
      DJIActiveTrackMissionStateCannotConfirmTarget is found. Camera is already tracking the target but there is an error stopping the aircraft to follow the target. Use cannotConfirmReason in DJIActiveTrackTrackingState to check the reason.
      DJIActiveTrackMissionStateAircraftFollowingTarget is found. Camera is already tracking the target and the aircraft is following the target.
      DJIActiveTrackMissionStateOnlyCameraFollowingThe operator is executing an ActiveTrack mission in Splotlight mode or Spotlight Pro mode. The target is found and camera is following the target.
      DJIActiveTrackMissionStatePerformingQuickShotThe operator is executing a QuickShot ActiveTrack mission. Not supported by Mavic Air 2, DJI Air 2S.
      DJIActiveTrackMissionStateFindingTrackedTargetActiveTrack is started but the target is lost. The vision system is detecting the previously found target.