Android Notification Channel Android O

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

Notification channels enable us app developers to group our notifications into groups—channels—with the user having the ability to modify notification settings for the entire channel at once.In Android O this feature is introduced.Right now it is available developers preview.

Syntax

  1. class NotificationUtils{} //For create notification channel
  2. createChannel()//Generic method for creating notification

Parameters

MethodDescription
IMPORTANCE_MAXunused
IMPORTANCE_HIGHshows everywhere, makes noise and peeks
IMPORTANCE_DEFAULTshows everywhere, makes noise, but does not visually intrude
IMPORTANCE_LOWshows everywhere, but is not intrusive
IMPORTANCE_MINonly shows in the shade, below the fold
IMPORTANCE_NONEa notification with no importance; does not show in the shade


Got any Android Question?