Artenus 2D Framework
Artenus Reference
com.annahid.libs.artenus.unified

AdPlacementListener

Interface for classes that listen to ad placement events. Ad-driven games implement this interface to adjust game content according the size of ad units.
public interface AdPlacementListener

Method Summary

Modifier and TypeMethod and Description
public voidonAdVisibilityChange(boolean visible)
Called when the ad unit changes state from hidden to visible, or vice versa.
public voidonHeightChange(int height)
Called when the height of the ad unit changes.

Method Detail

onAdVisibilityChange
public void onAdVisibilityChange(
    boolean visible
)
Called when the ad unit changes state from hidden to visible, or vice versa.
Parameters:
visibletrue if the ad unit is visible, false otherwise
onHeightChange
public void onHeightChange(
    int height
)
Called when the height of the ad unit changes. This includes when it virtually becomes 0 as a result of hiding.
Parameters:
heightNew height of the ad unit