Type Definitions

The following type definitions are available globally.

  • Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIActiveTrackModeCompletionBlock)(DJIActiveTrackMode,
                                                                NSError *_Nullable)

    Parameters

    activeTrackMode

    Active track mode to return. The value is undefined if error is not nil.

    error

    An error object if an error occured during async operation, or nil if no error occurred.

  • Returns the progress status using a range of 0.0 to 1.0.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIMissionProgressHandler)(float)
  • Download mission completion block.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIMissionDownloadCompletionBlock)(
        DJIMission *_Nullable, NSError *_Nullable)

    Parameters

    newMission

    New downloaded mission.

    error

    An error occurred while downloading.

  • Block invoked when preparing a file for download.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIFileDownloadPreparingBlock)(NSString *_Nullable,
                                                            DJIDownloadFileType,
                                                            NSUInteger,
                                                            BOOL *_Nonnull)
  • Block invoked when a file is downloading.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIFileDownloadingBlock)(NSData *_Nullable,
                                                      NSError *_Nullable)
  • Block invoked after a file has been downloaded.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIFileDownloadCompletionBlock)()
  • Remote Controller’s unique identification number. This is given to each Remote Controller during manufacturing and cannot be changed.

    Declaration

    Objective-C

    typedef uint32_t DJIRCID
  • Signal quality of a connected master or slave Remote Controller in percent [0, 100].

    Declaration

    Objective-C

    typedef uint8_t DJIRCSignalQualityOfConnectedRC
  • Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.

    Declaration

    Objective-C

    typedef void (^_Nullable DJICompletionBlock)(NSError *_Nullable)

    Parameters

    error

    An error object if an error occured during async operation, or nil if no error occurred.

  • Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIBooleanCompletionBlock)(BOOL, NSError *_Nullable)

    Parameters

    boolean

    Boolean value returned by the command. If the error is not nil, the value is undefined.

    error

    An error object if an error occured during async operation, or nil if no error occurred.

  • Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.

    Declaration

    Objective-C

    typedef void (^_Nullable DJIFloatCompletionBlock)(float, NSError *_Nullable)

    Parameters

    floatValue

    Float value returned by the command. If the error is not nil, the value is undefined.

    error

    An error object if an error occured during async operation, or nil if no error occurred.

  • Completion block for asynchronous operations. This completion block is used for methods that return at an unknown future time.

    Declaration

    Objective-C

    typedef void (^_Nullable DJITapFlyModeCompletionBlock)(DJITapFlyMode,
                                                           NSError *_Nullable)

    Parameters

    tapFlyMode

    TapFly mode to return. The value is undefined if error is not nil.

    error

    An error object if an error occured during async operation, or nil if no error occurred.