Class AdViewProgressUpdateTask

java.lang.Object
android.os.AsyncTask<Void,Long,Void>
org.prebid.mobile.rendering.video.AdViewProgressUpdateTask

public class AdViewProgressUpdateTask extends android.os.AsyncTask<Void,Long,Void>
Created by matthew.rolufs on 9/1/15.
  • Constructor Details

  • Method Details

    • doInBackground

      protected Void doInBackground(Void... params)
      Specified by:
      doInBackground in class android.os.AsyncTask<Void,Long,Void>
    • onPostExecute

      protected void onPostExecute(Void aVoid)
      Overrides:
      onPostExecute in class android.os.AsyncTask<Void,Long,Void>
    • onProgressUpdate

      protected void onProgressUpdate(Long... values)
      Overrides:
      onProgressUpdate in class android.os.AsyncTask<Void,Long,Void>
    • getCurrentPosition

      public long getCurrentPosition()
    • getFirstQuartile

      public boolean getFirstQuartile()
    • getMidpoint

      public boolean getMidpoint()
    • getThirdQuartile

      public boolean getThirdQuartile()
    • setVastVideoDuration

      public void setVastVideoDuration(long vastVideoDuration)
    • getVideoLengthPercentageForReward

      protected static Integer getVideoLengthPercentageForReward(int videoDuration, AdUnitConfiguration config)
      Returns video length percentage for receiving reward.