class DJIShootPhotoAction
@interface DJIShootPhotoAction : 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:
method initWithSingleShootPhoto
- (instancetype _Nullable)initWithSingleShootPhoto
Header: DJIShootPhotoAction.h
Description:
Initialize object to shoot a single photo.
Return:
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.
int count Photo count. double interval Time interval in seconds between shooting photos. BOOL wait YES
if action should finish only after all photos are shot. NO
if action should return immediately after starting shoot photo action.
Return:
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:
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.