-
@RestrictTo(value = {RestrictTo.Scope.LIBRARY}) public class TrackScreenHelper
Internal helper class for screen tracking, called by ASM-injected code.
This class simplifies bytecode generation by providing simple static methods that handle complex logic like parameter collection and error handling.
These methods should not be called directly by library users.
-
-
Field Summary
Fields Modifier and Type Field Description public final static TrackScreenHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnittrackScreen(Object instance, String screenName, String screenClass)Tracks a screen view for an Activity or Fragment. -
-
Method Detail
-
trackScreen
final static Unit trackScreen(Object instance, String screenName, String screenClass)
Tracks a screen view for an Activity or Fragment.
This method is called by ASM-injected code in Activity.onCreate() or Fragment.onViewCreated().
- Parameters:
instance- The Activity or Fragment instancescreenName- The name of the screen to trackscreenClass- The class name of the screen
-
-
-
-