Class HybridAdView
java.lang.Object
com.castlabs.android.hybridads.ui.HybridAdView
View for displaying hybrid ads.
-
Constructor Summary
ConstructorsConstructorDescriptionHybridAdView(Context context, FrameLayout adContainer) Constructor for HybridAdView. -
Method Summary
Modifier and TypeMethodDescriptionReturns the ad surface.voidhidePlayerView(boolean mute) Hides the player view.booleanReturns true if the ad has started, false otherwise.
-
Constructor Details
-
HybridAdView
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
Returns the ad surface.- Returns:
- The ad surface.
-