DJI Mobile SDK Documentation
      Package:dji.open.pilot.server.common
      classSince MSDK 5.0.0

      KeyListener

      Used to monitor whether the key value is updated.

      Package dji.open.pilot.server.commonAndroid · Java / Kotlin

      Used to monitor whether the key value is updated.

      Supported since MSDK 5.0.0

      Members

      1 members

      Method

      1
      method

      onValueChange

      void onValueChange(@Nullable T oldValue, @Nullable T newValue)

      Called every time the key value is updated.

      Parameters

      NameTypeDescription
      oldValue@Nullable T Return the old value. Returns null if there is no old value.
      newValue@Nullable T Return the new value. Returns null if there is no new value.