Skip to content

Commit

Permalink
Add doc for platformDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
federicofiori committed Jun 20, 2016
1 parent 022b3c4 commit 4ca9e54
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions source/js_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The JavaScript module ``axemas.js`` permits interaction with the native code of
- showProgressHUD
- hideProgressHUD
- getPlatform
- platformDetails
- storeData
- fetchData
- removeData
Expand Down Expand Up @@ -111,6 +112,26 @@ Uses the ``navigator.userAgent`` object to determine if the current platform. Re
}


platformDetails
---------------

Getting information about device: ``model``, ``systemName`` and ``systemVersion``.

For example::

axemas.platformDetails(function(device_info) {
console.log(device_info);
});
// Example of the device_infor

//iOS Device
{model: "iPhone", systemVersion: "9.3", systemName: "iPhone OS"}

//Android Device
{model: "Nexus 5", systemName: "Android", systemVersion: "6.0.1"}


storeData
---------

Expand Down

0 comments on commit 4ca9e54

Please sign in to comment.