Skip to content

Quick Tip: Mobile Popup Messages

Sometimes you want to display a message on your mobile screen, but also want it to disappear after a short period of time. A great way to do that is to use the MobilePopupMessage class.

This class, which was added to Xojo iOS in 2020 Release 2, only has a single shared method on it called Show, so you can use it with one line of code:

MobilePopupMessage.Show("Time to walk the dog")

By default the message is shown for the “Long” duration, but you can specify a shorter duration with the Short enumeration:

MobilePopupMessage.Show("Time to walk the dog", MobilePopupMessage.Durations.Short)
MobilePopupMessage on iOS
Android Sneak Peek