Package com.castlabs.android.hybridads.ui

# Class HybridAdView

java.lang.Object
com.castlabs.android.hybridads.ui.HybridAdView

public class HybridAdView extends Object
View for displaying hybrid ads.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HybridAdView(Context context, FrameLayout adContainer)`
  Constructor for HybridAdView.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Surface`
  `getAdSurface()`
  Returns the ad surface.
  `void`
  `hidePlayerView(boolean mute)`
  Hides the player view.
  `boolean`
  `isAdStarted()`
  Returns true if the ad has started, false otherwise.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### HybridAdView

    public HybridAdView(Context context, FrameLayout adContainer)
    Constructor for HybridAdView.
    Parameters:
      `context` - The context.
      `adContainer` - The container for the ad.

- ## Method Details

  - ### isAdStarted

    public boolean isAdStarted()
    Returns true if the ad has started, false otherwise.
    Returns:
      true if the ad has started, false otherwise.

  - ### hidePlayerView

    public void hidePlayerView(boolean mute)
    Hides the player view.
    Parameters:
      `mute` - true to mute the main video, false otherwise.

  - ### getAdSurface

    public Surface getAdSurface()
    Returns the ad surface.
    Returns:
      The ad surface.