DJI Mobile SDK Documentation
      包:dji.open.pilot.base.ui
      classSince MSDK 5.20.1

      IRemoteViewTextWatcher

      视图文本变化监听器。

      Package dji.open.pilot.base.uiAndroid · Java / Kotlin

      视图文本变化监听器。

      MSDK 5.20.1开始支持

      成员

      3 个成员

      方法

      3
      method

      beforeTextChanged

      Since MSDK 5.20.1
      fun beforeTextChanged(s: String, start: Int, count: Int, after: Int)

      在文本变更前触发。

      参数

      名称类型说明
      sString 变更前的完整文本内容。
      startInt 变更起始位置(从0开始索引)。
      countInt 将被替换的字符数量。
      afterInt 新插入字符的数量。
      method

      onTextChanged

      Since MSDK 5.20.1
      fun onTextChanged(s: String, start: Int, before: Int, count: Int)

      在文本变更时触发。

      参数

      名称类型说明
      sString 变更后的完整文本内容。
      startInt 变更起始位置(从0开始索引)。
      beforeInt 被替换的原字符数量。
      countInt 新插入字符的数量。
      method

      afterTextChanged

      Since MSDK 5.20.1
      fun afterTextChanged(s: String)

      在文本变更完成后触发。

      参数

      名称类型说明
      sString 最终生效的完整文本内容。