Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c563e0b9 authored by Eric Schmidt's avatar Eric Schmidt
Browse files

docs: Continue CL of notifications updates

Bug: 28520914
Change-Id: If0bbd5c503e4149fcd8f1db34fe7847a6cbefd20
parent f0e6b1ae
Loading
Loading
Loading
Loading
+16 −7
Original line number Original line Diff line number Diff line
@@ -204,6 +204,16 @@ notificationManager.notify(notificationId, repliedNotification);
  android.support.v4.app.RemoteInput}, you can update the reply history
  android.support.v4.app.RemoteInput}, you can update the reply history
  using the {@code setRemoteInputHistory()} method.
  using the {@code setRemoteInputHistory()} method.
</p>
</p>

<p>
  The notification must be either updated or cancelled after the app has
  received remote input. When the user replies to a remote update
  using Direct Reply,
  do not cancel the notification. Instead, update the notification to display the user's reply. You can update the notification using a
  <code>MessagingStyle</code>, or you can append the user's reply to the remote
  input history.
</p>

<h2 id="bundle">Bundled Notifications</h2>
<h2 id="bundle">Bundled Notifications</h2>


<p>Android N provides developers with a new way to represent
<p>Android N provides developers with a new way to represent
@@ -364,7 +374,7 @@ Notification notification = new Notification.Builder()


</pre>
</pre>


<h2 id="style">Message Style</h2>
<h2 id="style">Messaging Style</h2>
<p>
<p>
  Android N introduces a new API for customizing the style of a notification.
  Android N introduces a new API for customizing the style of a notification.
  Using the <code>MessageStyle</code> class, you can change several of the
  Using the <code>MessageStyle</code> class, you can change several of the
@@ -384,6 +394,5 @@ Notification notification = new Notification.Builder()
                 .addMessage("Hi", timestamp1, null) // Pass in null for user.
                 .addMessage("Hi", timestamp1, null) // Pass in null for user.
                 .addMessage("What's up?", timestamp2, "Coworker")
                 .addMessage("What's up?", timestamp2, "Coworker")
                 .addMessage("Not much", timestamp3, null)
                 .addMessage("Not much", timestamp3, null)
             .addMessage("How about lunch?", timestamp4, "Coworker")
                 .addMessage("How about lunch?", timestamp4, "Coworker"));
             .setAllow());
</pre>
</pre>
 No newline at end of file