ModalRichMediaSwipeGesture

Defines swipe gestures that users can perform to dismiss modal in-app messages.

Swipe gestures provide intuitive ways for users to close modal messages without having to find and tap a close button. Multiple gestures can be enabled simultaneously to give users flexible dismissal options.

Usage Example:


// Enable swipe down for top-positioned modals
Set<ModalRichMediaSwipeGesture> topModalSwipes = new HashSet<>();
topModalSwipes.add(ModalRichMediaSwipeGesture.DOWN);

ModalRichmediaConfig topConfig = new ModalRichmediaConfig()
    .setViewPosition(ModalRichMediaViewPosition.TOP)
    .setSwipeGestures(topModalSwipes);

// Enable multiple swipe directions for maximum flexibility
Set<ModalRichMediaSwipeGesture> flexibleSwipes = new HashSet<>();
flexibleSwipes.add(ModalRichMediaSwipeGesture.UP);
flexibleSwipes.add(ModalRichMediaSwipeGesture.DOWN);
flexibleSwipes.add(ModalRichMediaSwipeGesture.LEFT);
flexibleSwipes.add(ModalRichMediaSwipeGesture.RIGHT);

ModalRichmediaConfig flexibleConfig = new ModalRichmediaConfig()
    .setSwipeGestures(flexibleSwipes);

See also

ModalRichmediaConfig#setSwipeGestures(Set)

Entries

Link copied to clipboard

Swipe upward to dismiss modal, commonly used for bottom-positioned modals

Link copied to clipboard

Swipe left to dismiss modal, useful for side-by-side content or pagination

Link copied to clipboard

Swipe right to dismiss modal, useful for side-by-side content or pagination

Link copied to clipboard

Swipe downward to dismiss modal, commonly used for top or center-positioned modals

Link copied to clipboard

No swipe gesture enabled - used internally, not for configuration

Properties

Link copied to clipboard
val bit: Int
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.