Why is NotificationCompat needed?

前端 未结 3 848
孤街浪徒
孤街浪徒 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条回答
  •  Happy的楠姐
    2021-01-12 06:01

    You can use things like NotificationCompat.Builder#setLargeIcon(Bitmap) to allow you to take full advantage of Android 3.0+ with things like the large icon, while maintaining compatibility on versions of Android prior to 3.0 that do not support such things.

提交回复
热议问题