Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leoando/android13-quick-settings-placement-api-samples
Sample for Quick Settings placement API(Android 13+)
https://github.com/leoando/android13-quick-settings-placement-api-samples
android-java android-kotlin android13 java11 material2 material3 tileservice tiramisu
Last synced: 2 months ago
JSON representation
Sample for Quick Settings placement API(Android 13+)
- Host: GitHub
- URL: https://github.com/leoando/android13-quick-settings-placement-api-samples
- Owner: LeoAndo
- Created: 2022-02-21T13:22:22.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T06:27:44.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T19:34:44.718Z (almost 2 years ago)
- Topics: android-java, android-kotlin, android13, java11, material2, material3, tileservice, tiramisu
- Language: Kotlin
- Homepage:
- Size: 11.8 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
Sample for Quick Settings placement API(Android 13+)Using a new [tile placement API](https://developer.android.com/reference/android/app/StatusBarManager#requestAddTileService(android.content.ComponentName,%20java.lang.CharSequence,%20android.graphics.drawable.Icon,%20java.util.concurrent.Executor,%20java.util.function.Consumer%3Cjava.lang.Integer%3E)), your app can now prompt the user to directly add your custom tile to the set of active Quick Settings tiles.
[about Quick Settings placement API](https://developer.android.com/about/versions/13/features#quick-settings)
[about TileService API](https://developer.android.com/reference/android/service/quicksettings/TileService)# dev memo
[RequestResult not found!!](https://developer.android.com/reference/android/app/StatusBarManager.RequestResult)
[use constants](https://github.com/LeoAndo/android-quick-settings-placement-api-samples/blob/main/TileServiceKotlinSample/app/src/main/java/com/example/tileservicekotlinsample/RequestResult.kt#L6:L14)# [For Kotlin](https://github.com/LeoAndo/android-quick-settings-placement-api-samples/tree/main/TileServiceKotlinSample)
- material3# [For Java](https://github.com/LeoAndo/android-quick-settings-placement-api-samples/tree/main/TileServiceJavaSample)
- material2# capture Pixel 4 API Level Tiramisu
| [startService(API Level 1)](https://developer.android.com/reference/android/content/Context?hl=ja#startService(android.content.Intent)) | [requestAddTileService(API Level Tiramisu)](https://developer.android.com/reference/android/app/StatusBarManager#requestAddTileService(android.content.ComponentName,%20java.lang.CharSequence,%20android.graphics.drawable.Icon,%20java.util.concurrent.Executor,%20java.util.function.Consumer%3Cjava.lang.Integer%3E)) |
|:---|:---:|
| | |