-
- 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.
-
-
Method Summary
Modifier and Type Method Description abstract Unitpause()Call when the page is no longer being viewed, but may be resumed. abstract Unitresume()Call when the page is being viewed. abstract UnitupdatePercentageViewed(Float percentage)Updates the percentage of the page that has been viewed by the user. -
-
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
-
-
-
-