Package 

Object TrackScreenHelper


  • @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.

    • Method Summary

      Modifier and Type Method Description
      final static Unit trackScreen(Object instance, String screenName, String screenClass) Tracks a screen view for an Activity or Fragment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 instance
        screenName - The name of the screen to track
        screenClass - The class name of the screen