Remove Attribute
Remove Attribute 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
Virtual attributes can be added to a mobile view by setAttribute.
Call FS.removeAttribute
to remove an attribute from a mobile view.
Additional Information
- Java
- Kotlin
public static void FS.removeAttribute(View view, String attributeName);
Example Invocation
View view = findViewById(R.id.btn_add_to_cart);
FS.removeAttribute(view, "theme-color");
fun FS.removeAttribute(view: View, attributeName: String): Unit
Example Invocation
val view = findViewById<View>(R.id.btn_add_to_cart)
FS.removeAttribute(view, "theme-color")