Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): new property Ti.Android.sdkVersion #14151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,12 @@ public ServiceProxy createService(IntentProxy intentProxy)
return new ServiceProxy(intentProxy);
}

@Kroll.getProperty
public int getSdkVersion()
{
return android.os.Build.VERSION.SDK_INT;
}

@Override
public String getApiName()
{
Expand Down
6 changes: 6 additions & 0 deletions apidoc/Titanium/Android/Android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2566,6 +2566,12 @@ properties:
permission: read-only
since: "8.0.0"

- name: sdkVersion
summary: Android SDK version number (e.g. returns 35 for Android 15).
type: Number
permission: read-only
since: "12.7.0"

---
name: ServiceIntentOptions
summary: Options passed to <Titanium.Android.createServiceIntent>.
Expand Down
Loading