DJI Mobile SDK Documentation

      class AircraftLandedTrigger

      class AircraftLandedTrigger extends Trigger
      Package:dji.sdk.mission.timeline.triggers
      Inherits From:Trigger
      Description:

      It can be used to trigger an action during the execution of a timeline if the aircraft lands.

      Inherited Methods:
      dji.sdk.mission.timeline.triggers.Trigger
      method
      method isActive
      boolean isActive()
      Package:dji.sdk.mission.timeline.triggers
      Description:

      true if the trigger is currently active. The trigger is active when the Timeline element it is associated with is being executed in the Timeline.

      Return:
      booleantrue if active.
      method
      method setAction
      void setAction(Action action)
      Package:dji.sdk.mission.timeline.triggers
      Description:

      The action to execute. It is up to the trigger's implementation to decide when to call this action. The action should never be called by anything but the trigger. Actions can be implemented without using this property, but in addition notifyListenersOfEvent needs to be used to notify any listeners of the Trigger that an action was executed.

      In future subclasses of this property to be provided, this action block will be used to give developers control of an action when a set of criteria has been met. For example, a subclass of this may be a battery threshold trigger. Once the battery passes some threshold developers will be able to define the action they want to trigger.

      Input Parameters:
      Action actionAction to trigger.
      method
      method start
      void start()
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Begins trigger activity including monitoring the criteria required to trigger the action. When subclassing, the super class's start method should be called on the first line.

      method
      method stop
      void stop()
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Ends all trigger activities including monitoring the criteria required to trigger the action. When subclassing, the super class's stop method should be called at the end.

      method addListener
      void addListener(Listener listener)
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Adds a listener to all trigger events

      Input Parameters:
      Listener listenerA listener object
      method removeListener
      void removeListener(Listener listener)
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Removes the listener from the listeners pool of all trigger events.

      Input Parameters:
      Listener listenerA previously added listener object.
      method removeAllListeners
      void removeAllListeners()
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Removes all listeners from the listeners pool of all trigger events.

      method notifyListenersOfEvent
      void notifyListenersOfEvent(TriggerEvent event, DJIError error)
      Package:dji.sdk.mission.timeline.triggers
      Description:

      Notifies listeners about a trigger event. Should be used in subclasses especially after calling the action.

      Input Parameters:
      TriggerEvent eventA valid DJIMissionTriggerEvent.
      DJIError errorAn optional error.