Set Tag Name
Set tag name for a mobile view
To simplify management of privacy for mobile applications and to enable individuals who have worked with Fullstory for the web to have a more familiar experience, Fullstory for Mobile Apps instrumentation creates virtual HTML-like elements for native Android or iOS views for the purposes of privacy management, funnel definition, and searches. read more here
By default, the tag name is mapped from the class name of the view in Android or iOS.
Call FS.setTagName
to set a custom tag name for a mobile view.
Additional Information
- Java
- Kotlin
public static void FS.setTagName(View view, String tagName);
Example Invocation
View view = findViewById(R.id.btn_add_to_cart);
FS.setTagName(view, "CartButton");
fun FS.setTagName(view: View, tagName: String): Unit
Example Invocation
val view = findViewById<View>(R.id.btn_add_to_cart)
FS.setTagName(view, "CartButton")