DJI Mobile SDK Documentation

      class FollowMeMissionEvent

      @EXClassNullAway
      class FollowMeMissionEvent
      Package:dji.common.mission.followme
      Description:

      This class encapsulates all the state change of the Follow Me mission operator.

      Class Members:
      Previous State
      method
      method getPreviousState
      @Nullable
      FollowMeMissionState getPreviousState()
      Package:dji.common.mission.followme
      Description:

      The previous follow me mission state, check the FollowMeMissionState enum value.

      Return:
      FollowMeMissionStateAn object of FollowMeMissionState.
      Current State
      method
      method getCurrentState
      @NonNull
      FollowMeMissionState getCurrentState()
      Package:dji.common.mission.followme
      Description:

      The current follow me mission state, check the FollowMeMissionState enum value.

      Return:
      FollowMeMissionStateAn object of FollowMeMissionState.
      Distance to Target
      method
      method getDistanceToTarget
      float getDistanceToTarget()
      Package:dji.common.mission.followme
      Description:

      Get the distance to the target.

      Return:
      floatA float value of the distance to the target.
      Error
      method
      method getError
      @Nullable
      DJIError getError()
      Package:dji.common.mission.followme
      Description:

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

      Return:
      DJIErrorAn object of DJIError.