-
public class HeatmapIdentifier.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static HeatmapIdentifier.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final HeatmapIdentifiercreate(List<String> elementPath, String screenName, String appPackageName, Function1<Throwable, Unit> onHashingFailure)Creates a HeatmapIdentifier for the given UI element by hashing its canonical path, or null if hashing fails. -
-
Method Detail
-
create
final HeatmapIdentifier create(List<String> elementPath, String screenName, String appPackageName, Function1<Throwable, Unit> onHashingFailure)
Creates a HeatmapIdentifier for the given UI element by hashing its canonical path, or null if hashing fails.
All string parameters must be raw, unencoded values — this function applies percent-encoding internally. Cross-platform SDKs must pass raw strings (e.g. the literal screen name returned by
getCurrentViewUrl(), not a pre-encoded version) so that the identifier is always produced by the same Android encoding logic.- Parameters:
elementPath- the path segments from the root view down to this element, where each segment identifies a view in the hierarchy (e.g.screenName- the current RUM view URL, used to scope identifiers to a screen.appPackageName- the application package name (e.g.onHashingFailure- invoked with the caught exception if hashing fails.
-
-
-
-