ModalRichMediaViewPosition

Defines the positioning of modal in-app messages on the screen.

The position affects both the visual placement and the user interaction patterns for modal messages. Each position works best for different types of content and user contexts.

Usage Example:


// Top position for notifications and alerts
ModalRichmediaConfig alertConfig = new ModalRichmediaConfig()
    .setViewPosition(ModalRichMediaViewPosition.TOP)
    .setPresentAnimationType(ModalRichMediaPresentAnimationType.DROP_DOWN);

// Center position for important messages and confirmations
ModalRichmediaConfig confirmConfig = new ModalRichmediaConfig()
    .setViewPosition(ModalRichMediaViewPosition.CENTER)
    .setPresentAnimationType(ModalRichMediaPresentAnimationType.FADE_IN);

// Bottom position for non-intrusive content
ModalRichmediaConfig tipConfig = new ModalRichmediaConfig()
    .setViewPosition(ModalRichMediaViewPosition.BOTTOM)
    .setPresentAnimationType(ModalRichMediaPresentAnimationType.SLIDE_UP);

// Fullscreen for rich content and videos
ModalRichmediaConfig richConfig = new ModalRichmediaConfig()
    .setViewPosition(ModalRichMediaViewPosition.FULLSCREEN)
    .setStatusBarCovered(true);

See also

ModalRichmediaConfig#setViewPosition(ModalRichMediaViewPosition)

Entries

Link copied to clipboard

Modal appears at the top of the screen, ideal for notifications and alerts

Link copied to clipboard

Modal appears in the center of the screen, ideal for important messages and confirmations

Link copied to clipboard

Modal appears at the bottom of the screen, ideal for non-intrusive content and tips

Link copied to clipboard

Modal covers the entire screen, ideal for rich content, videos, and immersive experiences

Properties

Link copied to clipboard
val code: Int

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.