to top
Android APIs
public static class

Notification.BigPictureStyle

extends Notification.Style
java.lang.Object
   ↳ android.app.Notification.Style
     ↳ android.app.Notification.BigPictureStyle

Class Overview

Helper class for generating large-format notifications that include a large image attachment. This class is a "rebuilder": It consumes a Builder object and modifies its behavior, like so:

 Notification noti = new Notification.BigPictureStyle(
      new Notification.Builder()
         .setContentTitle("New photo from " + sender.toString())
         .setContentText(subject)
         .setSmallIcon(R.drawable.new_post)
         .setLargeIcon(aBitmap))
      .bigPicture(aBigBitmap)
      .build();
 

See Also

Summary

[Expand]
Inherited Fields
From class android.app.Notification.Style
Public Constructors
Notification.BigPictureStyle()
Notification.BigPictureStyle(Notification.Builder builder)
Public Methods
Notification.BigPictureStyle bigLargeIcon(Bitmap b)
Override the large icon when the big notification is shown.
Notification.BigPictureStyle bigPicture(Bitmap b)
Provide the bitmap to be used as the payload for the BigPicture notification.
Notification.BigPictureStyle setBigContentTitle(CharSequence title)
Overrides ContentTitle in the big form of the template.
Notification.BigPictureStyle setSummaryText(CharSequence cs)
Set the first line of text after the detail section in the big form of the template.
[Expand]
Inherited Methods
From class android.app.Notification.Style
From class java.lang.Object

Public Constructors

public Notification.BigPictureStyle ()

Added in API level 16

public Notification.BigPictureStyle (Notification.Builder builder)

Added in API level 16

Public Methods

public Notification.BigPictureStyle bigLargeIcon (Bitmap b)

Added in API level 16

Override the large icon when the big notification is shown.

public Notification.BigPictureStyle bigPicture (Bitmap b)

Added in API level 16

Provide the bitmap to be used as the payload for the BigPicture notification.

public Notification.BigPictureStyle setBigContentTitle (CharSequence title)

Added in API level 16

Overrides ContentTitle in the big form of the template. This defaults to the value passed to setContentTitle().

public Notification.BigPictureStyle setSummaryText (CharSequence cs)

Added in API level 16

Set the first line of text after the detail section in the big form of the template.