Class HybridAdView

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

public class HybridAdView extends Object
View for displaying hybrid ads.
  • 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.