DevicePopups

Wisej.Hybrid.DevicePopups

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid (3.5.0.0)

Provides methods to show popups.

public class DevicePopups

Access this class through the Device singleton.

Constructors

DevicePopups()

Initializes a new instance of DevicePopups.

Methods

DisplayActionSheet(title, cancel, destruction, direction, buttons)

Displays a native platform action sheet, allowing the application user to choose from several buttons.

Parameter
Type
Description

title

Title of the displayed action sheet. Must not be null.

cancel

Text to be displayed in the 'Cancel' button. Can be null to hide the cancel action.

destruction

Text to be displayed in the 'Destruct' button. Can be null to hide the destructiveoption.

direction

The flow direction of the items.

buttons

Text labels for additional buttons. Must not be null.

Returns: String. The selected button.

DisplayAlert(title, message, cancel)

Presents an alert dialog to the application user with a single cancel button.

Parameter
Type
Description

title

The title of the alert dialog.

message

The body text of the alert dialog.

cancel

Text to be displayed on the 'Cancel' button.

DisplayPrompt(title, message, accept, cancel, placeholder, maxLength, keyboard, initialValue)

Shows a modal prompt.

Parameter
Type
Description

title

The title of the prompt

message

The message of the prompt

accept

The accept button text

cancel

The cancel button text

placeholder

The text placeholder

maxLength

The maximum length of the text

keyboard

The keyboard to use

initialValue

The initial text value

Returns: String. The result of the prompt.

Last updated