You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apidoc/Titanium/Android/Android.yml
+148-14
Original file line number
Diff line number
Diff line change
@@ -1827,65 +1827,199 @@ properties:
1827
1827
summary: |
1828
1828
A special value indicates to use all types set in manifest file.
1829
1829
description: |
1830
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MANIFEST).
1830
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1831
+
1832
+
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_MANIFEST](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MANIFEST)
1833
+
documentation for more details.
1831
1834
type: Number
1832
1835
permission: read-only
1833
1836
since: "8.3.0"
1834
1837
1835
1838
- name: FOREGROUND_SERVICE_TYPE_NONE
1836
-
summary: |
1837
-
The default foreground service type if not been set in manifest file.
1839
+
summary: The default foreground service type.
1838
1840
description: |
1839
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_NONE).
1841
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1842
+
1843
+
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_NONE](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_NONE)
1844
+
documentation for more details.
1840
1845
type: Number
1841
1846
permission: read-only
1842
1847
since: "8.3.0"
1843
1848
1844
1849
- name: FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
1845
1850
summary: |
1846
-
Constant corresponding to mediaPlayback in the R.attr.foregroundServiceType attribute. Music, video, news or other media playback.
1851
+
Allows music, video, news or other media playback while the app is in the background.
1847
1852
description: |
1848
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK).
1853
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1854
+
1855
+
To use this constant, you must also set your `<service/>` element to the
1856
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK)
1869
+
documentation for more details.
1849
1870
type: Number
1850
1871
permission: read-only
1851
1872
since: "8.3.0"
1852
1873
1853
1874
- name: FOREGROUND_SERVICE_TYPE_PHONE_CALL
1854
1875
summary: |
1855
-
Constant corresponding to phoneCall in the R.attr.foregroundServiceType attribute. Ongoing phone call or video conference.
1876
+
Allows ongoing phone call or video conferencing access while the app is in the background.
1856
1877
description: |
1857
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_PHONE_CALL).
1878
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1879
+
1880
+
To use this constant, you must also set your `<service/>` element to the
1881
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_PHONE_CALL)
1894
+
documentation for more details.
1858
1895
type: Number
1859
1896
permission: read-only
1860
1897
since: "8.3.0"
1861
1898
1862
1899
- name: FOREGROUND_SERVICE_TYPE_LOCATION
1863
1900
summary: |
1864
-
Constant corresponding to location in the R.attr.foregroundServiceType attribute. GPS, map, navigation location update.
1901
+
Allows accessing location from the GPS, map, etc. while the app is in the background.
1865
1902
description: |
1866
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_LOCATION).
1903
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1904
+
1905
+
To use this constant, you must also set your `<service/>` element to the
1906
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_LOCATION](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_LOCATION)
1919
+
documentation for more details.
1867
1920
type: Number
1868
1921
permission: read-only
1869
1922
since: "8.3.0"
1870
1923
1871
1924
- name: FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
1872
1925
summary: |
1873
-
Constant corresponding to connectedDevice in the R.attr.foregroundServiceType attribute. Auto, bluetooth, TV or other devices connection, monitoring and interaction.
1926
+
Allows connecting to Android Auto, bluetooth, TV or other devices while app is in the background.
1874
1927
description: |
1875
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE).
1928
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1929
+
1930
+
To use this constant, you must also set your `<service/>` element to the
1931
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE)
1944
+
documentation for more details.
1876
1945
type: Number
1877
1946
permission: read-only
1878
1947
since: "8.3.0"
1879
1948
1880
1949
- name: FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION
1881
1950
summary: |
1882
-
Constant corresponding to mediaProjection in the R.attr.foregroundServiceType attribute. Managing a media projection session, e.g for screen recording or taking screenshots.
1951
+
Allows managing a media projection session for screen recording or taking screenshots
1952
+
while app is in the background.
1883
1953
description: |
1884
-
See [ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION in the Android API Reference](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION).
1954
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1955
+
1956
+
To use this constant, you must also set your `<service/>` element to the
1957
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION)
1970
+
documentation for more details.
1885
1971
type: Number
1886
1972
permission: read-only
1887
1973
since: "8.3.0"
1888
1974
1975
+
- name: FOREGROUND_SERVICE_TYPE_MICROPHONE
1976
+
summary: Allows the microphone to be used while the app is in the background.
1977
+
description: |
1978
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
1979
+
1980
+
To use this constant, you must also set your `<service/>` element to the
1981
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_MICROPHONE)
1994
+
documentation for more details.
1995
+
type: Number
1996
+
permission: read-only
1997
+
since: "9.3.0"
1998
+
1999
+
- name: FOREGROUND_SERVICE_TYPE_CAMERA
2000
+
summary: Allows the camera to be used while the app is in the background.
2001
+
description: |
2002
+
This constant is passed to the <Titanium.Android.Service.foregroundNotify> method.
2003
+
2004
+
To use this constant, you must also set your `<service/>` element to the
2005
+
`foregroundServieType` attribute value as shown below.
See Google's [ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA](https://developer.android.com/reference/android/content/pm/ServiceInfo.html#FOREGROUND_SERVICE_TYPE_CAMERA)
2018
+
documentation for more details.
2019
+
type: Number
2020
+
permission: read-only
2021
+
since: "9.3.0"
2022
+
1889
2023
- name: FLAG_AUTO_CANCEL
1890
2024
summary: Cancel the notification when it is clicked by the user.
0 commit comments