Stats

287 Contributors: 1
Sunday, May 21, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Notification Channel Android O

Download android eBook

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

Related Examples