У нас вы можете посмотреть бесплатно Notifications Tutorial Part 9 - NOTIFICATION CHANNEL SETTINGS - Android Studio Tutorial или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In part 9 of the notifications tutorial, we will learn how to read and open the notification settings. After we have created a notification channel, we can only change it's name and description from code. We can not change things like the importance level, sound or vibration, because the user has ultimate control over these settings. However, we can query the notification and channel settings and forward the user directly to the settings screen if necessary. By calling areNotificationsEnabled on our NotificationManagerCompat, we can find out if the user disabled notifications altogether and send him to the settings screen with an Intent that contains either ACTION_APP_NOTIFICATION_SETTINGS on Oreo, or ACTION_APPLICATION_DETAILS_SETTINGS on lower API levels. By passing the package name with getPackageName as EXTRA_APP_PACKAGE, we can specify that we want to open the settings of our app. On API level 26 onwards, we can also query the settings for particular notification channels. For this we have to retrieve the channel by calling getNotificationChannel on the NotificationManager, and with methods like getImportance and shouldShowLights we can check for particular settings. If the importance level of the notification channel is IMPORTANCE_NONE (0), the channel is disabled and we should consider sending the user to the settings screen of this particular channel, by starting an activity with the ACTION_CHANNEL_NOTIFICATION_SETTINGS intent, where we pass again the package name as well as the channel id as EXTRA_CHANNEL_ID. By annotating these methods with @RequiresAPI(26), we make sure that calling them is only possible on Oreo and higher. Watch the whole playlist: • Плейлист Example code for this part: https://gist.github.com/codinginflow/... ____________________ 💻 Find the BEST programming tutorials on TutHub: https://tuthub.io ⭐ Get my MVVM Caching Course now: https://codinginflow.com/caching ❗ Subscribe to the channel: / codinginflo. . 📨 Subscribe to the Coding in Flow newsletter: https://codinginflow.com/newsletter ❓ Join our free developer community: / discord 📣 Follow Coding in Flow on other sites: Facebook: / codinginflow Instagram: / codinginflow TikTok: / codinginflow Twitter: / codinginflow Github: https://github.com/codinginflow 💰 Business requests, sponsoring, etc.: info@codinginflow.com