DJI Mobile SDK Documentation

      class DJIShootPhotoAction

      @interface DJIShootPhotoAction : DJIMissionAction
      Header:DJIShootPhotoAction.h
      Inherits From:DJIMissionAction
      Description:

      This class represents a shoot photo action used as an element in a Timeline mission. By creating an object of this class and adding it to Mission Control's Timeline, the camera can shoot a photo when the Timeline reaches the action.

      Class Members:
      Constructor
      method
      method initWithSingleShootPhoto
      - (instancetype _Nullable)initWithSingleShootPhoto
      Header:DJIShootPhotoAction.h
      Description:

      Initialize object to shoot a single photo.

      Return:
      instancetype _NullableAn instance of DJIShootPhotoAction.
      method initWithPhotoCount:timeInterval:waitUntilFinish
      - (instancetype _Nullable)initWithPhotoCount:(int)count timeInterval:(double)interval waitUntilFinish:(BOOL)wait
      Header:DJIShootPhotoAction.h
      Description:

      Initialize object to shoot multiple photos.

      Input Parameters:
      int countPhoto count.
      double intervalTime interval in seconds between shooting photos.
      BOOL waitYES if action should finish only after all photos are shot. NO if action should return immediately after starting shoot photo action.
      Return:
      instancetype _NullableAn instance of DJIShootPhotoAction.
      method initWithStopShootPhoto
      - (instancetype _Nullable)initWithStopShootPhoto
      Header:DJIShootPhotoAction.h
      Description:

      Initialize object to stop shooting photos. Only works if there was a previous DJIShootPhotoAction in the timeline which started shooting photos using the initWithPhotoCount:timeInterval:waitUntilFinish initializer with wait set to NO.

      Return:
      instancetype _NullableAn instance of DJIShootPhotoAction.
      ShootPhotoAction
      const
      const DJIShootPhotoActionErrorDomain
      extern const NSErrorDomain DJIShootPhotoActionErrorDomain
      Header:DJIShootPhotoAction.h
      Description:

      The error domain used for all errors specific to DJIShootPhotoAction.

      enum DJIShootPhotoActionError
      typedef NS_ENUM(NSInteger, DJIShootPhotoActionError)
      Header:DJIShootPhotoAction.h
      Description:

      Error codes for DJIShootPhotoAction specific errors.

      Enum Members:
      DJIShootPhotoActionErrorUnknownDefault error in case no other matches.
      DJIShootPhotoActionErrorInvalidPhotoCountInvalid value for photo count.
      DJIShootPhotoActionErrorInvalidTimeIntervalInvalid value for time interval.