Android SDK - 入力のトラッキング
トラッカーは値の変更イベント(デバウンス処理済み)をリッスンし、その結果の値を OpenReplay バックエンドに送信します。
トラッキング対象の入力の追加
Section titled トラッキング対象の入力の追加EditText
Section titled EditText.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)
Jetpack Compose
Section titled Jetpack Composeimport com.openreplay.tracker.listeners.trackTextInputChanges
OutlinedTextField(
modifier = Modifier
.fillMaxWidth()
.trackTextInputChanges("Email Field", emailState.text),
...,
)