DJI Mobile SDK Documentation

      class SpotlightState

      class SpotlightState
      Package:dji.common.accessory
      Description:

      The state of the spotlight accessory.

      Class Members:
      Temperature
      method
      method getTemperature
      float getTemperature()
      Package:dji.common.accessory
      Description:

      Returns the temperature of the Spotlight in Celsius.

      Return:
      floatAn float value.
      Brightness
      method
      method getBrightness
      int getBrightness()
      Package:dji.common.accessory
      Description:

      The configurable brightness of the spotlight.

      Return:
      intAn int value.
      State Updates
      interface
      interface Callback
      interface Callback
      Package:dji.common.accessory
      Description:

      This interface provides a callback to update the spotlight's current state.

      Interface Methods:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(SpotlightState state)
      Package:dji.common.accessory
      Description:

      Callback to update spotlight state.

      Input Parameters:
      SpotlightState stateThe spotlight's state.