Android SDK - 入力のトラッキング

Android トラッカーによる入力のトラッキングの詳細

Android SDK ⁠-⁠ 入力のトラッキング

トラッカーは値の変更イベント(デバウンス処理済み)をリッスンし、その結果の値を OpenReplay バックエンドに送信します。

トラッキング対象の入力の追加

Section titled トラッキング対象の入力の追加

.trackTextInput(label:masked) を使用して、入力イベントを監視します。

  • label: String - 記録される入力のラベル
  • masked: Bool - true の場合、トラッカーは入力イベント自体のみを記録し、値は記録しません。
import com.opnereplay.tracker.OpenReplay

val passwordEditText = binding.password
passwordEditText.trackTextInput(label = "password", masked = true)
import com.opnereplay.listeners.Analytics

Analytics.addObservedInput(inputEl)
import com.openreplay.tracker.listeners.trackTextInputChanges

OutlinedTextField(
        modifier = Modifier
            .fillMaxWidth()
            .trackTextInputChanges("Email Field", emailState.text),
        ...,
    )