Skip to main content

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.

Additional Information

[FS removeClass:(nonnull UIView *) className:(nonnull NSString *)]
[view fsRemoveClass:(nonnull NSString *)]
// remove multiple classes
[FS removeClasses:(nonnull UIView *) classNames:(nonnull NSArray<NSString *> *)]
[view fsRemoveClasses:(nonnull NSArray<NSString *> *)]
// remove all classes
[FS removeAllClasses:(nonnull UIView *)]
[view fsRemoveAllClasses]

Example Invocation

// .h file
@property (nonatomic, retain) IBOutlet UIButton *cartButton;

// .m file
- (void)viewDidLoad {
[super viewDidLoad];
[FS removeClass:self.cartButton className:@"fs-unmask"];

// or remove multiple classes
[FS removeClasses:self.cartButton classNames:@[@"fs-unmask",@"my-other-class"]];

// or remove all classes
[FS removeAllClasses:self.cartButton];
}