public static class NotificationCompat.BigPictureStyle extends NotificationCompat.Style
Notification notif = new Notification.Builder(mContext) .setContentTitle("New photo from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_post) .setLargeIcon(aBitmap) .setStyle(new Notification.BigPictureStyle() .bigPicture(aBigBitmap)) .build();
Notification.bigContentView
Constructor and Description |
---|
BigPictureStyle() |
BigPictureStyle(NotificationCompat.Builder builder) |
Modifier and Type | Method and Description |
---|---|
NotificationCompat.BigPictureStyle |
bigLargeIcon(Bitmap b)
Override the large icon when the big notification is shown.
|
NotificationCompat.BigPictureStyle |
bigPicture(Bitmap b)
Provide the bitmap to be used as the payload for the BigPicture notification.
|
NotificationCompat.BigPictureStyle |
setBigContentTitle(CharSequence title)
Overrides ContentTitle in the big form of the template.
|
NotificationCompat.BigPictureStyle |
setSummaryText(CharSequence cs)
Set the first line of text after the detail section in the big form of the template.
|
addCompatExtras, build, restoreFromCompatExtras, setBuilder
public BigPictureStyle()
public BigPictureStyle(NotificationCompat.Builder builder)
public NotificationCompat.BigPictureStyle setBigContentTitle(CharSequence title)
public NotificationCompat.BigPictureStyle setSummaryText(CharSequence cs)
public NotificationCompat.BigPictureStyle bigPicture(Bitmap b)
public NotificationCompat.BigPictureStyle bigLargeIcon(Bitmap b)