Miniwall Docs
Mobile SDK

Display modes

How a placement's display format maps to a phone, how to override it in code, and how the call and the placement decide which one is used.

On the web a screen opens in one of seven formats. On a phone the SDK maps each format to what feels native. You set the format on the placement in the dashboard, or pass style in code.

Which one is used

For present:

  1. style from your call, if you pass one.
  2. Otherwise the placement's format from the dashboard.
  3. Otherwise a full-screen cover.

Embedded screens ignore all of this: they are drawn inline.

Formats on a phone

Display in the dashboardOn iOSOn Androidstyle in code
PopupFull-height sheet (a form sheet on iPad)Full-height sheetmodal
Full screenFull-screen coverFull-screen activityfullscreen
Slide-inBottom sheet as tall as the screen's contentBottom sheet as tall as the screen's contentsheet
BannerPinned to the top or bottom edgePinned to the top or bottom edgebanner (top or bottom)
ToastSmall card at the bottom that closes itselfSmall card at the bottom that closes itselftoast (seconds)
Side drawerSame as PopupSame as Popupmodal
LauncherSame as Popup, opened by the trigger (there is no floating button)Same as Popup, opened by the triggermodal

Position and size settings of the dashboard apply to the web only. A banner uses its top or bottom position. A toast uses its duration.

Setting style

options.style = .banner(top: false)
options.style = .toast(seconds: 5)
options.style = .sheet

Also .fullscreen and .modal.

Behaviour

The app behindCloses with
Full screenCoveredA Close the screen button in the design; system back on Android
Popup (modal)Covered by a sheetSwipe down on iOS, tap outside or system back on Android; or a button in the design
Slide-in (sheet)The sheet covers the lower partSwipe down on iOS, tap outside or system back on Android; or a button in the design
BannerUsableA button in the design
ToastUsableBy itself after its duration (3 to 60 seconds, default 6), or a button in the design
  • A toast closing by itself finishes with closed and records a close event.
  • The SDK adds no close button. Give the screen one with the action Close the screen.
  • Screens respect the safe areas: the notch, the home indicator and system bars.
  • Animations follow the system setting for reduced motion.

On this page