Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

cabrillo.message - Client

Cabrillo JS functions to display messages in the native UI.

Parent Topic:Client mobile API reference

cabrillo.message - showMessage(String style, String title)

Displays a message in the native UI.

NameTypeDescription
styleStringStyle of the banner.Possible values: - cabrillo.message.ERROR\_MESSAGE\_STYLE - cabrillo.message.INFO\_MESSAGE\_STYLE - cabrillo.message.SUCCESS\_MESSAGE\_STYLE - cabrillo.message.WARNING\_MESSAGE\_STYLE For more information, see Cabrillo JS constants - message styles.
titleStringText to display in the banner.
TypeDescription
promiseIf successful, an unresolved object, otherwise an error.
var style = cabrillo.message.SUCCESS_MESSAGE_STYLE;
var title = "You did it!";

cabrillo.message.showMessage(
   style,
   title
).then(function(response) {
   console.log('success');
}, function(error) {
   console.log(error);
});