Classes and Attributes
To simplify management of privacy for mobile applications, Fullstory for Mobile Apps creates virtual HTML-like elements for the nodes in your UI for the purposes of privacy management, funnel definition, and searches. Selector syntax is:
tag.class#id[attrKey="attrValue"]
Use the following Modifier extensions to configure the selector element of the node a Modifier is attached to. Read more about Fullstory for Mobile Apps Privacy Rules.
| Modifier | Behavior |
|---|---|
Modifier.fsTag(tag) | Sets the tag. Case-insensitive. A node has exactly one tag; if several are set, the last in the chain wins. Defaults to compose. |
Modifier.fsClass(className) | Adds a class. Case-sensitive and order-insensitive. A node may have many. |
Modifier.fsId(id) | Sets the id. Case-sensitive. Optional, one per node. |
Modifier.fsAttribute(key, value) | Sets an attribute. Keys are case-insensitive, values case-sensitive, and value may be null. One per key; the last in the chain wins. |
Modifier.fsSelector(tag, classNames, id, attributes) | Convenience that applies any non-null arguments using the modifiers above. |
Privacy Modifiers
These modifiers add pre-configured privacy classes. If a more restrictive privacy rule is applied to the same node, the more restrictive rule wins.
| Modifier | FSClass constant | Effect |
|---|---|---|
Modifier.fsMask() | FSClass.MASK (fs-mask) | Masks the node and its descendants. Text appears as randomized bars and images as solid boxes of the same bounds. |
Modifier.fsUnmask() | FSClass.UNMASK (fs-unmask) | Captures the node and its descendants as displayed. |
Modifier.fsExclude() | FSClass.EXCLUDE (fs-exclude) | Captures only the node's selector and bounds. Descendants are not captured at all, and masking or unmasking them has no effect. |
Modifier.fsWatch() | FSClass.WATCH (fs-watch) | Watches the node. |
Consent Modifiers
These modifiers depend on the value last set with fsConsent().
| Modifier | FSClass constant | With consent | Without consent |
|---|---|---|---|
Modifier.fsUnmaskWithConsent() | FSClass.UNMASK_WITH_CONSENT | Unmasked | Masked |
Modifier.fsMaskWithoutConsent() | FSClass.MASK_WITHOUT_CONSENT | Unmasked | Masked |
Modifier.fsExcludeWithoutConsent() | FSClass.EXCLUDE_WITHOUT_CONSENT | Unmasked | Excluded |
Modifier.fsWatchWithConsent() | FSClass.WATCH_WITH_CONSENT | Watched | No effect |