Interface InstreamAd

  • All Implemented Interfaces:

    
    public interface InstreamAd
    
                        

    Interface for managing the in-stream ad.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • attachPlayerView

         abstract Unit attachPlayerView(ViewGroup container)

        Attaches the in-stream ad's player view to the specified container.

        Parameters:
        container - The root view in which the ad player should be embedded.
      • start

         abstract Unit start()

        Starts playback of the in-stream ad.

      • stop

         abstract Unit stop()

        Stops the playback of the in-stream ad.

        After calling this method, the ad cannot be played again.

      • handleClick

         abstract Unit handleClick()

        Handles a user click on the in-stream ad.

        If you use a custom clickable area, call this method to notify the in-stream ad of the click.

      • setVolume

         abstract Unit setVolume(Float volume)

        Sets the playback volume for the in-stream ad.

        The default volume is 0 (muted).

        Parameters:
        volume - The desired volume as a percentage of the device's current volume.
      • getVideoCount

         abstract Integer getVideoCount()

        The number of video ads contained in this in-stream ad.