MessageAlerts.getInstance().showMessage("Title", "Message Description.",
MessageAlerts.MessageType.ERROR,
MessageAlerts.OK_CANCEL_OPTION, new PopupCallbackAction() {
@Override
public void action(PopupController controller, int action) {
if(action==MessageAlerts.OK_OPTION){
// User click ok
}
}
});
Add message alerts
Simple show message
Message type
MessageType.SUCCESS
MessageType.ERROR
MessageType.WARNING
MessageType.DEFAULT
Action Button
MessageAlerts.DEFAULT_OPTION
MessageAlerts.YES_NO_OPTION
MessageAlerts.YES_NO_CANCEL_OPTION
MessageAlerts.OK_CANCEL_OPTION
Return option
MessageAlerts.YES_OPTION
MessageAlerts.NO_OPTION
MessageAlerts.CANCEL_OPTION
MessageAlerts.OK_OPTION
MessageAlerts.CLOSED_OPTION
Screenshot