View folio

  • Since SDK: 1.0.0

Download or view the folio with the given product ID. If the folio is already on the device the viewer will open it for viewing otherwise the viewer will start the download of the folio. In either case the store web view will get closed immediately. Notice that there is no callback for this function. If the view/download fails the error is handled by the viewer in whatever way is appropriate.

adobe.dps.store.viewFolio

Parameter Type Description
folioProductId

string

A string containing the product id of the folio to view or download.

API Snippet

viewFolio

<!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>viewFolio API</title>
<script type="text/javascript">
function viewFolio()
{
  if (window.adobedpscontextloaded)
  {
    var productId = document.getElementById("viewfolio").value;
    // call into the viewFolio API
    adobe.dps.store.viewFolio(productId);
  }
}
</script>
</head>

<body>
<p>View Folio</p> 
<input type="text" id="viewfolio" value="folioProductId"/>
<button type="button" onclick="viewFolio()">View Now</button>
</body>
</html>