DJI Mobile SDK Documentation

      class KeyListener

      interface KeyListener
      Package:dji.keysdk.callback
      Description:

      Interface to check if the value behind a key is updated.

      Class Members:
      method onValueChange
      void onValueChange(@Nullable Object oldValue, @Nullable Object newValue)
      Package:dji.keysdk.callback
      Description:

      The callback, called every time the value behind a key is updated.

      Input Parameters:
      @Nullable Object oldValueThe old value. null if no value was present before.
      @Nullable Object newValueThe new value. null if the stored values are being flushed.