UI.AlertView.Android.ButtonType
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.
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();
Generated using TypeDoc
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