Package com.my.target.nativeads
Interface NativeAd.NativeAdVideoPlayer
-
- All Implemented Interfaces:
public interface NativeAd.NativeAdVideoPlayerInterface for managing native ad video player
-
-
Method Summary
Modifier and Type Method Description abstract floatgetCurrentPosition()Method for getting current video position in seconds. abstract floatgetDuration()Method for getting current video duration in seconds. abstract booleanisVolumeOn()Method for getting native ad player volume state abstract voidpause()Method for pausing native ad video abstract voidplay()Method for playing native ad video abstract voidreplay()Method for replaying native ad video abstract voidsetVolumeOff()Method for setting volume off to native ad video abstract voidsetVolumeOn()Method for setting volume on to native ad video -
-
Method Detail
-
getCurrentPosition
abstract float getCurrentPosition()
Method for getting current video position in seconds.
- Returns:
Default - 0.0f, position time seconds otherwise.
-
getDuration
abstract float getDuration()
Method for getting current video duration in seconds.
- Returns:
Default - 0.0f, total video duration seconds otherwise.
-
isVolumeOn
abstract boolean isVolumeOn()
Method for getting native ad player volume state
-
pause
abstract void pause()
Method for pausing native ad video
-
play
abstract void play()
Method for playing native ad video
-
replay
abstract void replay()
Method for replaying native ad video
-
setVolumeOff
abstract void setVolumeOff()
Method for setting volume off to native ad video
-
setVolumeOn
abstract void setVolumeOn()
Method for setting volume on to native ad video
-
-
-
-