Package 

Interface PageTracker

  • All Implemented Interfaces:
    com.permutive.android.EventTracker , java.io.Closeable , java.lang.AutoCloseable

    
    public interface PageTracker
     implements EventTracker, Closeable
                        

    Tracks a page's lifecycle and generates Pageview and PageviewEngagementAggregrate events automatically. A PageTracker is also an EventTracker, tracking events against this object will associate those events with this page.

    Calling close signals that viewing the page has completed.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit pause() Call when the page is no longer being viewed, but may be resumed.
      abstract Unit resume() Call when the page is being viewed.
      abstract Unit updatePercentageViewed(Float percentage) Updates the percentage of the page that has been viewed by the user.
      • Methods inherited from class com.permutive.android.EventTracker

        track, track
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • pause

         abstract Unit pause()

        Call when the page is no longer being viewed, but may be resumed. This may be when your Activity/Fragment has Stopped or Paused.

      • resume

         abstract Unit resume()

        Call when the page is being viewed. This may be when your Activity/Fragment has Started or Resumed.

      • updatePercentageViewed

         abstract Unit updatePercentageViewed(Float percentage)

        Updates the percentage of the page that has been viewed by the user.

        Parameters:
        percentage - A float value between 0 and 1