Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

16. Device

The PhoneGap Device object allows an application to access a limited amount of information about the application and device running a PhoneGap application. The device object represents the following properties:

device.name: Returns the name assigned to the device; this could be something assigned by the device manufacturer or assigned by the smartphone user depending on the mobile device platform.

device.phonegap: Returns the version of the PhoneGap framework used to build the application.

device.platform: On most platforms, returns the name of the mobile device platform the application is running on. Exceptions will be discussed later in the chapter.

device.uuid: Returns the universally unique identifier (UUID) associated with the device (http://en.wikipedia.org/wiki/Universally_Unique_Identifier).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial