Details
Description
The mobi openResource component provides a link to a resource that will be opened on a mobile device.
<mobi:openResource value="#{bean.resourceurl}" />
For desktop, this falls back to a simple hyperlink. For the short term it can be styled as a button or a link, whichever is easier. On compatible devices, this is a device command where the value of the link is passed to an "open" command.
ice.mobi.open(url)
or ice.mobi.invoke(this) with data-command set to open.
An "open" command allows the device to download and directly open a PDF. This is implemented in mobileshowcase and for iOS. On Android, the feature might be fairly powerful, such as allowing a PDF to be opened in Adobe Acrobat, or a movie opened in an external video player.