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
- Objective-C
- Swift
[FS removeAttribute:(nonnull UIView *) attributeName:(nonnull NSString *)]
[view removeAttribute:(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"];
}
FS.removeAttribute(view: UIView, attributeName: String)
view.fsRemoveAttribute(String)
Example Invocation
@IBOutlet weak var cartButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
FS.removeAttribute(cartButton, attributeName: "theme-color")
}