cabrillo.message - Client

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • Cabrillo JS functions to display messages in the native UI.

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

    Displays a message in the native UI.

    표 1. Parameters
    Name Type Description
    style String Style 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.

    title String Text to display in the banner.
    표 2. Returns
    Type Description
    promise If 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);
    });