Skip to main content

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

[FS removeAttribute:(nonnull UIView *) attributeName:(nonnull NSString *)]

Example Invocation

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

// .m file
- (void)viewDidLoad {
[super viewDidLoad];
[FS removeAttribute:self.cartButton attributeName:@"theme-color"];
}