CRecordWebDismissDialog

By sending the CRecordWebDismissDialog message, open web dialogs can be terminated programmatically.

The message is part of the Web Dialog API of RemoteSkin for Web. The API is part of the NY_RemoteSkinWebProtocolAPI plugin.

{
  "id": "66da8a3a-48c9-4da1-a1f2-cea0f006431b",
  "name": "WEB_DISMISS_DIALOG",
  "description": "Dismiss the web dialog.",
  "slots": [
  ]
}

Usage

The target address of the dialog is required. This is obtained in the response of the message for starting the dialog.

void dismissDialog(@NotNull final CTargetAddress aAddress) throws CException
{
    final CEnvelope env = CEnvelope.forSingleTarget(aAddress);
    final CRecord record = CRecordWebDismissDialog.create();
    sendNotification(env,
                     record);
}

See also: