DJIBaseProduct

@interface DJIBaseProduct : NSObject

Abstract class for all DJI Products.

  • Use this delegate to be notified of component changes and connectivity status changes.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) id<DJIBaseProductDelegate> _Nullable delegate;
  • Connectivity status. In case of aircraft, if the aircraft is out of range or turned off, the connectivity status changes to NOT connected.

    Declaration

    Objective-C

    @property (readonly, getter=isConnected, nonatomic) BOOL connected;
  • Contains a dictionary of all the available components.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        NSDictionary<NSString *, NSArray<DJIBaseComponent *> *>
            *_Nullable components;
  • Get the product’s firmware package version. For Products except Phantom 4, Phantom 4 Pro, Mavic Pro and Inspire 2, Internet connection is required and the execution time for this method highly depends on the Internet status.

    Declaration

    Objective-C

    - (void)getFirmwarePackageVersionWithCompletion:
        (nonnull void (^)(NSString *_Nullable, NSError *_Nullable))block;

    Parameters

    block

    Completion block to receive the result.

  • Returns the model of the product.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nullable model;