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);
Content copied to clipboard
See also
ModalRichmediaConfig#setViewPosition(ModalRichMediaViewPosition)
Entries
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.