Merge "fix javadocs b/14414251" into klp-modular-dev
This commit is contained in:
@@ -2488,15 +2488,15 @@ public class Notification implements Parcelable
|
|||||||
/**
|
/**
|
||||||
* Helper class for generating large-format notifications that include a large image attachment.
|
* 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:
|
* Here's how you'd set the <code>BigPictureStyle</code> on a notification:
|
||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* Notification noti = new Notification.BigPictureStyle(
|
* Notification notif = new Notification.Builder(mContext)
|
||||||
* new Notification.Builder()
|
|
||||||
* .setContentTitle("New photo from " + sender.toString())
|
* .setContentTitle("New photo from " + sender.toString())
|
||||||
* .setContentText(subject)
|
* .setContentText(subject)
|
||||||
* .setSmallIcon(R.drawable.new_post)
|
* .setSmallIcon(R.drawable.new_post)
|
||||||
* .setLargeIcon(aBitmap))
|
* .setLargeIcon(aBitmap)
|
||||||
* .bigPicture(aBigBitmap)
|
* .setStyle(new Notification.BigPictureStyle()
|
||||||
|
* .bigPicture(aBigBitmap))
|
||||||
* .build();
|
* .build();
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
@@ -2584,15 +2584,15 @@ public class Notification implements Parcelable
|
|||||||
/**
|
/**
|
||||||
* Helper class for generating large-format notifications that include a lot of text.
|
* Helper class for generating large-format notifications that include a lot of text.
|
||||||
*
|
*
|
||||||
* This class is a "rebuilder": It consumes a Builder object and modifies its behavior, like so:
|
* Here's how you'd set the <code>BigTextStyle</code> on a notification:
|
||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* Notification noti = new Notification.BigTextStyle(
|
* Notification notif = new Notification.Builder(mContext)
|
||||||
* new Notification.Builder()
|
|
||||||
* .setContentTitle("New mail from " + sender.toString())
|
* .setContentTitle("New mail from " + sender.toString())
|
||||||
* .setContentText(subject)
|
* .setContentText(subject)
|
||||||
* .setSmallIcon(R.drawable.new_mail)
|
* .setSmallIcon(R.drawable.new_mail)
|
||||||
* .setLargeIcon(aBitmap))
|
* .setLargeIcon(aBitmap)
|
||||||
* .bigText(aVeryLongString)
|
* .setStyle(new Notification.BigTextStyle()
|
||||||
|
* .bigText(aVeryLongString))
|
||||||
* .build();
|
* .build();
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
@@ -2678,18 +2678,18 @@ public class Notification implements Parcelable
|
|||||||
/**
|
/**
|
||||||
* Helper class for generating large-format notifications that include a list of (up to 5) strings.
|
* Helper class for generating large-format notifications that include a list of (up to 5) strings.
|
||||||
*
|
*
|
||||||
* This class is a "rebuilder": It consumes a Builder object and modifies its behavior, like so:
|
* Here's how you'd set the <code>InboxStyle</code> on a notification:
|
||||||
* <pre class="prettyprint">
|
* <pre class="prettyprint">
|
||||||
* Notification noti = new Notification.InboxStyle(
|
* Notification notif = new Notification.Builder(mContext)
|
||||||
* new Notification.Builder()
|
|
||||||
* .setContentTitle("5 New mails from " + sender.toString())
|
* .setContentTitle("5 New mails from " + sender.toString())
|
||||||
* .setContentText(subject)
|
* .setContentText(subject)
|
||||||
* .setSmallIcon(R.drawable.new_mail)
|
* .setSmallIcon(R.drawable.new_mail)
|
||||||
* .setLargeIcon(aBitmap))
|
* .setLargeIcon(aBitmap)
|
||||||
|
* .setStyle(new Notification.InboxStyle()
|
||||||
* .addLine(str1)
|
* .addLine(str1)
|
||||||
* .addLine(str2)
|
* .addLine(str2)
|
||||||
* .setContentTitle("")
|
* .setContentTitle("")
|
||||||
* .setSummaryText("+3 more")
|
* .setSummaryText("+3 more"))
|
||||||
* .build();
|
* .build();
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user