Remove Class
Remove one or more classes 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
Call FS.removeClass
to remove a class name from a mobile view, and FS.removeAllClasses
to remove all class names from a mobile view. Call FS.removePopupMenuClass
to remove a class name from a shown PopupMenu.
Additional Information
- Java
- Kotlin
public static void FS.removeClass(View view, String className);
// remove multiple classes
public static void FS.removeClasses(View view, Collection<String> classNames);
// remove all classes
public static void FS.removeAllClasses(View view);
// remove class from a shown PopupMenu (added in version 1.30)
public static void FS.removePopupMenuClass(Object popupMenu, String className);
Example Invocation
View view = findViewById(R.id.btn_add_to_cart);
FS.removeClass(view, "fs-unmask");
// or remove multiple classes
List<String> cls = Arrays.asList("fs-unmask", "my-other-class");
FS.removeClasses(view, cls);
// or remove all classes
FS.removeAllClasses(view);
// remove a class from a shown PopupMenu
FS.removePopupMenuClass(popupMenu, "fs-unmask");
fun FS.removeClass(view: View, className: String): Unit
// remove multiple classes
fun FS.removeClasses(view: View, classNames: Collection<String>): Unit
// remove all classes
fun FS.removeAllClasses(view: View): Unit
// remove class from a shown PopupMenu (added in version 1.30)
fun FS.removePopupMenuClass(popupMenu: Any, className: String)
Example Invocation
val view = findViewById<View>(R.id.btn_add_to_cart)
FS.removeClass(view, "fs-unmask")
// or remove multiple classes
val cls = listOf("fs-unmask", "my-other-class")
FS.removeClasses(view, cls)
// or remove all classes
FS.removeAllClasses(view)
// remove a class from a shown PopupMenu
FS.removePopupMenuClass(popupMenu, "fs-unmask")