DJI Mobile SDK Documentation

      class DJICameraWhiteBalance

      @interface DJICameraWhiteBalance : NSObject
      Header:DJICameraSettingsDef.h
      Inherits From:NSObject
      SDK Key:DJICameraKey.DJICameraParamWhiteBalance
      Description:

      This class contains current values for some camera parameters related to white balance. Values for the camera's current white balance preset and color temperature can be obtained from this class.

      Class Members:
      White Balance Preset
      property
      property preset
      @property (nonatomic, readonly) DJICameraWhiteBalancePreset preset
      Header:DJICameraSettingsDef.h
      Description:

      The current preset for white balance.

      See Also:

      DJICameraWhiteBalancePreset

      Color Temperature
      property
      property colorTemperature
      @property (nonatomic, readonly) uint8_t colorTemperature
      Header:DJICameraSettingsDef.h
      Description:

      The current setting for color temperature. Real color temperature value (K) = value * 100. For example, 50 -> 5000K.

      Init with Preset
      method
      method initWithPreset
      -(nullable instancetype)initWithPreset:(DJICameraWhiteBalancePreset)preset
      Header:DJICameraSettingsDef.h
      Description:

      Create a DJICameraWhiteBalance instance with a white balance preset.

      Input Parameters:
      DJICameraWhiteBalancePreset presetWhite balance preset that is not DJICameraWhiteBalancePresetCustom.
      Return:
      nullable instancetypeA white balance instance. 'nil' if 'preset' is DJICameraWhiteBalancePresetCustom.
      method initWithCustomColorTemperature
      -(nullable instancetype)initWithCustomColorTemperature:(uint8_t)temperature
      Header:DJICameraSettingsDef.h
      Description:

      Create a DJICameraWhiteBalance instance with white balance preset and temperature.

      Input Parameters:
      uint8_t temperatureColor temperature value to be set in the range of [20, 100]. Real color temperature value (K) = value * 100. For example, 50 -> 5000K.
      Return:
      nullable instancetypeA white balance instance. 'nil' if 'temperature' is invalid.