Why is NotificationCompat needed?

前端 未结 3 816
孤街浪徒
孤街浪徒 2021-01-12 05:08

Specifically, I think anything done with NotificationCompat can be done using the default API (level 8). What am I missing here? What does NotificationCompat introduce that

3条回答
  •  别那么骄傲
    2021-01-12 05:52

    It allows you to use the NotificationCompat.Builder class, a compatibly version of Notification.Builder from API 11+. As its name suggests its an implementation of the builder pattern, which seems to be its main advantage over the pre Android 3.0 notifications.

提交回复
热议问题