Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
becvert committed Apr 25, 2017
1 parent 55d9bdd commit f73072b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ cordova plugin add cordova-plugin-device-name

```javascript
var deviceName = cordova.plugins.deviceName;

console.log(deviceName.name) // e.g: Becvert's iPad

deviceName.get(function success(name) {
console.log(name);
}, function failure(error) {
console.log(error);
});
```

## Credits
Expand Down

0 comments on commit f73072b

Please sign in to comment.