This site permanently moved to
https://droidscript.github.io
. Please update links accordingly.
You are being forwarded automatically in 3...
[stay here]
Back
GetOSVersion
JS
Py
Hello World
GetOSVersion returns the API target level of the android version.
app.GetOSVersion() →
Number:
integer
Example - Show Android API Level
click to expand contents
function
OnStart
(
)
{
version
=
app
.
GetOSVersion
(
)
;
app
.
Alert
(
version
)
;
}
from
native
import
app
def
OnStart
(
)
:
version
=
app
.
GetOSVersion
(
)
app
.
Alert
(
version
)
Copy
Copy All
Run
loading