UI.AlertView.Android.ButtonType

Since

0.1

ButtonType is used to indicate the behaviors of buttons in UI.AlertView. You can specify a button have negative, positive or neutral user experience. According to operating system button appearance or positions may change.

Example

import AlertView from '@smartface/native/ui/alertview';

const myAlertView = new AlertView({
title: "Alert Title",
message: "Alert Message"
});
myAlertView.addButton({
type: AlertView.Android.ButtonType.NEUTRAL,
text: "Ignore",
});
myAlertView.addButton({
type: AlertView.Android.ButtonType.NEGATIVE,
text: "Cancel"
});
myAlertView.addButton({
type: AlertView.Android.ButtonType.POSITIVE,
text: "Okay"
});

myAlertView.show();

Enumeration Members

Enumeration Members

POSITIVE: 0
NEUTRAL: 1
NEGATIVE: 2

Generated using TypeDoc