DJI Mobile SDK Documentation

      class IRemoteViewTextWatcher

      @Keep
      interface IRemoteViewTextWatcher

      Package:dji.open.pilot.base.ui
      Description:

      View text change listener.

      Supported since MSDK 5.20.1

      Class Members:
      method beforeTextChanged
      fun beforeTextChanged(s: String, start: Int, count: Int, after: Int)

      Package:dji.open.pilot.base.ui
      Description:

      Triggered before the text is changed.

      Supported since MSDK 5.20.1

      Input Parameters:
      String sThe complete text content before the change.
      Int startThe starting position of the change (0-based index).
      Int countThe number of characters to be replaced.
      Int afterThe number of newly inserted characters.
      method onTextChanged
      fun onTextChanged(s: String, start: Int, before: Int, count: Int)

      Package:dji.open.pilot.base.ui
      Description:

      Triggered when the text is changed.

      Supported since MSDK 5.20.1

      Input Parameters:
      String sThe complete text content after the change.
      Int startThe starting position of the change (0-based index).
      Int beforeThe number of original characters replaced.
      Int countThe number of newly inserted characters.
      method afterTextChanged
      fun afterTextChanged(s: String)

      Package:dji.open.pilot.base.ui
      Description:

      Triggered after the text change is completed.

      Supported since MSDK 5.20.1

      Input Parameters:
      String sThe final effective complete text content.