Class AdViewProgressUpdateTask
Created by matthew.rolufs on 9/1/15.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status -
Field Summary
Fields inherited from class android.os.AsyncTask
SERIAL_EXECUTOR, THREAD_POOL_EXECUTOR -
Constructor Summary
ConstructorsConstructorDescriptionAdViewProgressUpdateTask(VideoCreativeViewListener trackEventListener, int videoDuration, AdUnitConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionprotected VoiddoInBackground(Void... params) longbooleanbooleanbooleanprotected static IntegergetVideoLengthPercentageForReward(int videoDuration, AdUnitConfiguration config) Returns video length percentage for receiving reward.protected voidonPostExecute(Void aVoid) protected voidonProgressUpdate(Long... values) voidsetVastTagDuration(long vastTagDuration) Methods inherited from class android.os.AsyncTask
cancel, execute, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onPreExecute, publishProgress
-
Constructor Details
-
AdViewProgressUpdateTask
public AdViewProgressUpdateTask(VideoCreativeViewListener trackEventListener, int videoDuration, AdUnitConfiguration config) throws AdException - Throws:
AdException
-
-
Method Details
-
doInBackground
-
onPostExecute
-
onProgressUpdate
-
getCurrentPosition
public long getCurrentPosition() -
getFirstQuartile
public boolean getFirstQuartile() -
getMidpoint
public boolean getMidpoint() -
getThirdQuartile
public boolean getThirdQuartile() -
setVastTagDuration
public void setVastTagDuration(long vastTagDuration) -
getVideoLengthPercentageForReward
protected static Integer getVideoLengthPercentageForReward(int videoDuration, AdUnitConfiguration config) Returns video length percentage for receiving reward.
-