DJI Mobile SDK Documentation

      class KeyListener

      interface KeyListener<T>
      Package:dji.v5.common.callback
      Description:

      Used to monitor whether the key value is updated.

      Supported since MSDK 5.0.0

      Class Members:
      method onValueChange
      void onValueChange(@Nullable T oldValue, @Nullable T newValue)
      Package:dji.v5.common.callback
      Description:

      Called every time the key value is updated.

      Supported since MSDK 5.0.0

      Input Parameters:
      @Nullable T oldValueReturn the old value. Returns null if there is no old value.
      @Nullable T newValueReturn the new value. Returns null if there is no new value.