Present custom dialog

  • Since SDK: 19

Display a custom subscription popup dialog. The dialog is a transaprent full screen webview that loads a url configured in the viewer. You dismiss this custom dialog by calling the dismissCustomDialog method from within the invoked webview.

adobe.dps.store.presentCustomDialog

API Snippet

presentCustomDialog

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>presentCustomDialog API</title>
<script type="text/javascript">
function presentCustomDialog()
{
  if (window.adobedpscontextloaded)
  {
    // call into the presentCustomDialog API
    adobe.dps.store.presentCustomDialog();
  }
}
</script>
</head>

<body>
<button type="button" onclick="presentCustomDialog()">Present Custom Dialog</button>
</body>
</html>