Skip to content

Commit

Permalink
feat(android): new property Ti.Android.sdkVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Dec 4, 2024
1 parent e3a9364 commit 7b5fbb1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
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

0 comments on commit 7b5fbb1

Please sign in to comment.