Skip to content

Commit

Permalink
docs(Device): fix getInfo response and add getBatteryInfo example (#2569
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jcesarmobile authored Mar 13, 2020
1 parent 5122527 commit 057512a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion site/docs-md/apis/device/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,21 @@ console.log(info);
"osVersion": "11.2",
"platform": "ios",
"memUsed": 93851648,
"battery": -1,
"diskTotal": 499054952448,
"model": "iPhone",
"manufacturer": "Apple",
"uuid": "84AE7AA1-7000-4696-8A74-4FD588A4A5C7",
"isVirtual":true
}

const info = await Device.getBatteryInfo();
console.log(info);

// Example output:
{
"batteryLevel": -1,
"isCharging": true
}
```

## API
Expand Down

0 comments on commit 057512a

Please sign in to comment.