DJI Mobile SDK Documentation

      class DJIAccessoryAggregation

      @interface DJIAccessoryAggregation : DJIBaseComponent
      Header:DJIAccessoryAggregation.h
      Inherits From:DJIBaseComponent
      Description:

      This class contains all possible accessories (spotlight, beacon and speaker) supported by the aircraft. The accessory aggregation component is available when Mavic 2 Enterprise is connected. An accessory becomes available only when the accessory is connected to the aircraft.

      Class Members:
      Delegate
      property
      property delegate
      @property(nonatomic, weak) id<DJIAccessoryAggregationDelegate> delegate
      Header:DJIAccessoryAggregation.h
      Description:

      Delegate to receive the state change of accessories.

      See Also:

      DJIAccessoryAggregationDelegate

      Spotlight Accessory
      property
      property spotlight
      @property (nonatomic, readonly) DJISpotlight *spotlight
      Header:DJIAccessoryAggregation.h
      Description:

      The spotlight accessory. nil if it is not connected.

      See Also:

      DJISpotlight

      Beacon
      property
      property beacon
      @property (nonatomic, readonly) DJIBeacon *beacon
      Header:DJIAccessoryAggregation.h
      Description:

      The beacon accessory. nil if it is not connected.

      See Also:

      DJIBeacon

      Speaker
      property
      property speaker
      @property (nonatomic, readonly) DJISpeaker *speaker
      Header:DJIAccessoryAggregation.h
      Description:

      The speaker accessory. nil if it is not connected.

      See Also:

      DJISpeaker

      State Updates
      protocol
      protocol DJIAccessoryAggregationDelegate
      @protocol DJIAccessoryAggregationDelegate <NSObject>
      Header:DJIAccessoryAggregation.h
      Inherits From:NSObject
      Description:

      Delegate to receive the state change of accessories.

      Protocol Methods:

      Protocol Method

      method accessoryAggregation:didUpdateState
      @optional
      - (void)accessoryAggregation:(DJIAccessoryAggregation *_Nonnull)aggregation didUpdateState:(DJIAccessoryAggregationState *_Nonnull)state
      Header:DJIAccessoryAggregation.h
      Description:

      The accessory aggregation updates the accessory aggregation state.

      Input Parameters:
      DJIAccessoryAggregation *_Nonnull aggregationThe accessory aggregation that updates connectivity state.
      DJIAccessoryAggregationState *_Nonnull stateThe accessory aggregation state.