Interface InstreamAdPostViewPlayer
-
- All Implemented Interfaces:
public interface InstreamAdPostViewPlayerPlayer that responsible for PostView playback and management
-
-
Method Summary
Modifier and Type Method Description abstract ViewGroupgetView()Required for the visibility monitoring purposes. abstract voidhide()Triggers when InstreamAdPostViewPlayer player needs to hide a PostViewData abstract voidpause()Pause updateProgress if $PostViewInfo. abstract voidresume()Resume updateProgress after pause if PostView is visible abstract voidshow(@NonNull() PostViewData postViewData)Triggers when InstreamAdPostViewPlayer player needs to present a PostViewData abstract voidupdateProgress(int progress, int totalDuration)Triggers every time when InstreamAdPostViewPlayer needs to update playback progress Will be trigger automatically -
-
Method Detail
-
getView
@NonNull() abstract ViewGroup getView()
Required for the visibility monitoring purposes.
- Returns:
player's view ViewGroup
-
hide
abstract void hide()
Triggers when InstreamAdPostViewPlayer player needs to hide a PostViewData
-
pause
abstract void pause()
Pause updateProgress if $PostViewInfo.getPauseOnHide() is true and PostView is invisible
-
resume
abstract void resume()
Resume updateProgress after pause if PostView is visible
-
show
abstract void show(@NonNull() PostViewData postViewData)
Triggers when InstreamAdPostViewPlayer player needs to present a PostViewData
- Parameters:
postViewData- represents required data for the PostView rendering
-
updateProgress
abstract void updateProgress(int progress, int totalDuration)
Triggers every time when InstreamAdPostViewPlayer needs to update playback progress Will be trigger automatically
- Parameters:
progress- exact value of current progress in millisecondstotalDuration- total duration of PostView showing time in milliseconds
-
-
-
-