Millennial Media Android Ad SDK Public Documentation  6.6.1
Public Member Functions | List of all members
AdPlacement.DisplayOptions Class Reference

Public Member Functions

DisplayOptions setImmersive (boolean immersive)
 
DisplayOptions setTransitionAnimation (int enterAnimationId, int exitAnimationId)
 
boolean isImmersive ()
 
Integer getEnterAnimationId ()
 
Integer getExitAnimationId ()
 

Detailed Description

Provides access to configurable options related to the display of the AdPlacement.

Member Function Documentation

◆ getEnterAnimationId()

Integer getEnterAnimationId ( )

Gets the value of the enter animation ID.

Returns
the enter animation ID value

◆ getExitAnimationId()

Integer getExitAnimationId ( )

Gets the value of the exit animation ID.

Returns
the exit animation ID value

◆ isImmersive()

boolean isImmersive ( )

Gets the value of the immersive setting.

Returns
the immersive setting value

◆ setImmersive()

DisplayOptions setImmersive ( boolean  immersive)

Sets the behavior for immersive mode if the device OS is KitKat (4.4) or greater. If immersive is not set then true will be used by default.

Parameters
immersivetrue for immersive, false for full screen as default.
Returns
DisplayOptions

◆ setTransitionAnimation()

DisplayOptions setTransitionAnimation ( int  enterAnimationId,
int  exitAnimationId 
)

Sets the behavior for entering and exiting full screen creative animation. If animation values are not set, no animation will be used by default.

Parameters
enterAnimationIdA resource ID of the animation resource to use for the incoming creative activity. Use 0 for no animation.
exitAnimationIdA resource ID of the animation resource to use for the outgoing creative activity. Use 0 for no animation.
Returns
DisplayOptions