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