Android SDK - tracking inputs
Tracker will listen to value change event (debounced) and send resulting value to OpenReplay backend.
Adding tracked inputs
Section titled Adding tracked inputsEditText
Section titled EditTextuse .trackTextInput(label:masked)
to observe input events,
label: String
- label for recorded inputmasked: Bool
- iftrue
, tracker will only record the input event itself, not the value.
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),
...,
)