Class

MobilePopupMessage


Description

Displays a message for a period of time before automatically disappearing.

Methods

Name

Parameters

Returns

Shared

Show

message As String, duration As MobilePopupMessage.Durations

message As String, duration As Double

Enumerations

MobilePopupMessage.Durations

Durations

Indicates the various lengths of which the message can appear.

Enum

Description

Short

The message displays for a very short period of time as defined by the OS.

Long

The message displays for a longer period of time as defined by the OS.

Method descriptions


MobilePopupMessage.Show

Show(message As String, duration As MobilePopupMessage.Durations)

Displays the message for the duration specified before automatically disappearing.

This method is shared.

The example displays the message for a long duration since that is the default duration:

MobilePopupMessage.Show("Your message has been sent.")

The example displays the message for a short duration:

MobilePopupMessage.Show("Your message has been sent.", MobilePopupMessage.Durations.Short)

MobilePopupMessage.Show

Show(message As String, duration As Double)

Displays the message for the duration specified before automatically disappearing.

This method is shared.

Important

Passing the duration in seconds is not currently supported for Android.

The example displays the message for 10 seconds:

MobilePopupMessage.Show("Your message has been sent.", 10)

Sample code

MobilePopupMessage.Show("Your message has been sent.")

Compatibility

Mobile projects on all supported mobile operating systems.

See also

Object parent class; MessageBox method, MobileMessageBox class.