Skip to content

Commit f1e265a

Browse files
committed
doc(android): clarify documentation and types for sdkVersion field
1 parent a0c12d7 commit f1e265a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,11 @@ var isSim = device.isVirtual;
264264

265265
## device.sdkVersion (Android only)
266266

267-
Will return the Android device's SDK version.
267+
Get the Android device's SDK version ([SDK_INT](https://developer.android.com/reference/android/os/Build.VERSION#SDK_INT)).
268268

269269
### Supported Platforms
270270

271271
- Android
272-
- Browser
273-
- iOS
274-
- Windows
275-
- OS X
276272

277273
### OS X and Browser Quirk
278274

types/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ interface Device {
3030
isVirtual: boolean;
3131
/** Get the device hardware serial number. */
3232
serial: string;
33+
/** Get the SDK version of the Android operating system. (Android-only) */
34+
sdkVersion?: string;
3335
}
3436

3537
declare var device: Device;

0 commit comments

Comments
 (0)