DevicePopups
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods to show popups.
- C#
- VB.NET
public class DevicePopups
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 | String | Title of the displayed action sheet. Must not be null. |
| cancel | String | Text to be displayed in the 'Cancel' button. Can be null to hide the cancel action. |
| destruction | String | Text to be displayed in the 'Destruct' button. Can be null to hide the destructiveoption. |
| direction | FlowDirection | The flow direction of the items. |
| buttons | String[] | 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 | String | The title of the alert dialog. |
| message | String | The body text of the alert dialog. |
| cancel | String | 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 | String | The title of the prompt |
| message | String | The message of the prompt |
| accept | String | The accept button text |
| cancel | String | The cancel button text |
| placeholder | String | The text placeholder |
| maxLength | Int32 | The maximum length of the text |
| keyboard | Keyboard | The keyboard to use |
| initialValue | String | The initial text value |
Returns: String. The result of the prompt.