You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2022/07/08 08:42:46 UTC
[cordova-plugin-device] branch master updated: doc(android): clarify documentation and types for sdkVersion field (#174)
This is an automated email from the ASF dual-hosted git repository.
niklasmerz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git
The following commit(s) were added to refs/heads/master by this push:
new 901bd8a doc(android): clarify documentation and types for sdkVersion field (#174)
901bd8a is described below
commit 901bd8ad3663d2eea2c9d62f6cb73b0918576bf7
Author: Philip Peitsch <ph...@gmail.com>
AuthorDate: Fri Jul 8 18:42:40 2022 +1000
doc(android): clarify documentation and types for sdkVersion field (#174)
---
README.md | 6 +-----
types/index.d.ts | 2 ++
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index ac8cacf..93ed8fa 100644
--- a/README.md
+++ b/README.md
@@ -264,15 +264,11 @@ var isSim = device.isVirtual;
## device.sdkVersion (Android only)
-Will return the Android device's SDK version.
+Get the Android device's SDK version ([SDK_INT](https://developer.android.com/reference/android/os/Build.VERSION#SDK_INT)).
### Supported Platforms
- Android
-- Browser
-- iOS
-- Windows
-- OS X
### OS X and Browser Quirk
diff --git a/types/index.d.ts b/types/index.d.ts
index 808e2dd..c7fb863 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -30,6 +30,8 @@ interface Device {
isVirtual: boolean;
/** Get the device hardware serial number. */
serial: string;
+ /** Get the Android device's SDK version. (Android-only) */
+ sdkVersion?: string;
}
declare var device: Device;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org