Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/xml/Android.App/Notification+Action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@
</ReturnValue>
<Docs>
<summary>Returns the SemanticAction associated with this Action.</summary>
<value>Value is one of the following: <see cref="F:Android.App.SemanticAction.None" /> <see cref="F:Android.App.SemanticAction.Reply" /> <see cref="F:Android.App.SemanticAction.MarkAsRead" /> <see cref="F:Android.App.SemanticAction.MarkAsUnread" /> <see cref="F:Android.App.SemanticAction.Delete" /> <see cref="F:Android.App.SemanticAction.Archive" /> <see cref="F:Android.App.SemanticAction.Mute" /> <see cref="F:Android.App.SemanticAction.Unmute" /> <see cref="F:Android.App.SemanticAction.ThumbsUp" /> <see cref="F:Android.App.SemanticAction.ThumbsDown" /> <see cref="F:Android.App.SemanticAction.Call" /> <see cref="F:Android.App.SemanticAction.Play" /> <see cref="F:Android.App.SemanticAction.Pause" /> <see cref="F:Android.App.SemanticAction.Stop" /></value>
<value>The semantic action stored for this action. The value is not checked, so it can be a value that has no public member, for example a value that a notification assistant service sets. Public values are: <see cref="F:Android.App.SemanticAction.None" /> <see cref="F:Android.App.SemanticAction.Reply" /> <see cref="F:Android.App.SemanticAction.MarkAsRead" /> <see cref="F:Android.App.SemanticAction.MarkAsUnread" /> <see cref="F:Android.App.SemanticAction.Delete" /> <see cref="F:Android.App.SemanticAction.Archive" /> <see cref="F:Android.App.SemanticAction.Mute" /> <see cref="F:Android.App.SemanticAction.Unmute" /> <see cref="F:Android.App.SemanticAction.ThumbsUp" /> <see cref="F:Android.App.SemanticAction.ThumbsDown" /> <see cref="F:Android.App.SemanticAction.Call" /> <see cref="F:Android.App.SemanticAction.Play" /> <see cref="F:Android.App.SemanticAction.Pause" /> <see cref="F:Android.App.SemanticAction.Stop" /></value>
<remarks>
<para>Returns the SemanticAction associated with this Action. A SemanticAction denotes what an Action's PendingIntent will do (eg. reply, mark as read, delete, etc).</para>
<para>
Expand Down
2 changes: 1 addition & 1 deletion docs/xml/Android.App/Notification+BubbleMetadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>See also:</summary>
<summary>Gets whether this bubble should auto expand when it is posted.</summary>
<value>whether this bubble should auto expand when it is posted</value>
<remarks>
<para>
Expand Down
9 changes: 8 additions & 1 deletion docs/xml/Android.App/Notification+CarExtender.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@
<Docs>
<summary>Helper class to add Android Auto extensions to notifications.</summary>
<remarks>
<para>Helper class to add Android Auto extensions to notifications. To create a notification with car extensions: Create an Notification.Builder, setting any desired properties. Create a CarExtender. Set car-specific properties using the add and set methods of CarExtender. Call Notification.Builder.extend(Notification.Extender) to apply the extensions to a notification. Car extensions can be accessed on an existing notification by using the CarExtender(Notification) constructor, and then using the get methods to access values.</para>
<para>Helper class to add Android Auto extensions to notifications. To create a notification with car extensions: Create an Notification.Builder, setting any desired properties. Create a CarExtender. Set car-specific properties using the add and set methods of CarExtender. Call Notification.Builder.extend(Notification.Extender) to apply the extensions to a notification.</para>
<para>The example uses <c>CHANNEL_ID</c> for a notification channel that has already been created with <c>NotificationManager.createNotificationChannel</c>.</para>
<code lang="text/java">Notification notification = new Notification.Builder(context, CHANNEL_ID)
...
.extend(new CarExtender()
.set*(...))
.build();</code>
<para>Car extensions can be accessed on an existing notification by using the CarExtender(Notification) constructor, and then using the get methods to access values.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/Notification.CarExtender" title="Reference documentation">Android reference for <code>android.app.Notification.CarExtender</code>.</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/xml/Android.App/Notification+Metric+MetricValue.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</Parameters>
<Docs>
<param name="javaReference">A JNI reference to the Java object.</param>
<param name="transfer">Specifies whether ownership of the JNI reference transfers to this instance.</param>
<param name="transfer">Specifies how the runtime handles the JNI reference, including its release and peer registration.</param>
<summary>Creates a managed instance that represents an existing Java object.</summary>
<remarks>
<para>The runtime calls this constructor to create a managed representation of an existing Java object.</para>
Expand Down
9 changes: 8 additions & 1 deletion docs/xml/Android.App/Notification+TvExtender.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@
<Docs>
<summary>Helper class to add Android TV extensions to notifications.</summary>
<remarks>
<para>Helper class to add Android TV extensions to notifications. To create a notification with a TV extension: Create an Notification.Builder, setting any desired properties. Create a TvExtender. Set TV-specific properties using the set methods of TvExtender. Call Notification.Builder.extend(Notification.Extender) to apply the extension to a notification. TV extensions can be accessed on an existing notification by using the TvExtender(Notification) constructor, and then using the get methods to access values.</para>
<para>Helper class to add Android TV extensions to notifications. To create a notification with a TV extension: Create an Notification.Builder, setting any desired properties. Create a TvExtender. Set TV-specific properties using the set methods of TvExtender. Call Notification.Builder.extend(Notification.Extender) to apply the extension to a notification.</para>
<para>The example uses <c>CHANNEL_ID</c> for a notification channel that has already been created with <c>NotificationManager.createNotificationChannel</c>.</para>
<code lang="text/java">Notification notification = new Notification.Builder(context, CHANNEL_ID)
...
.extend(new TvExtender()
.set*(...))
.build();</code>
<para>TV extensions can be accessed on an existing notification by using the TvExtender(Notification) constructor, and then using the get methods to access values.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/Notification.TvExtender" title="Reference documentation">Android reference for <code>android.app.Notification.TvExtender</code>.</a>
Expand Down
17 changes: 16 additions & 1 deletion docs/xml/Android.App/Notification+WearableExtender.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,22 @@
<Docs>
<summary>Helper class to add wearable extensions to notifications.</summary>
<remarks>
<para>Helper class to add wearable extensions to notifications. See Creating Notifications for Android Wear for more information on how to use this class. To create a notification with wearable extensions: Create a Notification.Builder, setting any desired properties. Create a Notification.WearableExtender. Set wearable-specific properties using the add and set methods of Notification.WearableExtender. Call Notification.Builder.extend(Extender) to apply the extensions to a notification. Post the notification to the notification system with the NotificationManager.notify(...) methods. Wearable extensions can be accessed on an existing notification by using the WearableExtender(Notification) constructor, and then using the get methods to access values.</para>
<para>Helper class to add wearable extensions to notifications. See Creating Notifications for Android Wear for more information on how to use this class. To create a notification with wearable extensions: Create a Notification.Builder, setting any desired properties. Create a Notification.WearableExtender. Set wearable-specific properties using the add and set methods of Notification.WearableExtender. Call Notification.Builder.extend(Extender) to apply the extensions to a notification. Post the notification to the notification system with the NotificationManager.notify(...) methods.</para>
<para>The example uses <c>CHANNEL_ID</c> for a notification channel that has already been created with <c>NotificationManager.createNotificationChannel</c>.</para>
<code lang="text/java">Notification notif = new Notification.Builder(mContext, CHANNEL_ID)
.setContentTitle("New mail from " + sender.toString())
.setContentText(subject)
.setSmallIcon(R.drawable.new_mail)
.extend(new Notification.WearableExtender()
.setContentIcon(R.drawable.new_mail))
.build();
NotificationManager notificationManger =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
notificationManger.notify(0, notif);</code>
<para>Wearable extensions can be accessed on an existing notification by using the WearableExtender(Notification) constructor, and then using the get methods to access values.</para>
<code lang="text/java">Notification.WearableExtender wearableExtender = new Notification.WearableExtender(
notification);
List&lt;Notification&gt; pages = wearableExtender.getPages();</code>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/Notification.WearableExtender" title="Reference documentation">Android reference for <code>android.app.Notification.WearableExtender</code>.</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/xml/Android.App/Notification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4067,7 +4067,7 @@ myBuilder.getExtras().putString(EXTRA_AUDIO_CONTENTS_URI, myAudioUri.toString())
</ReturnValue>
<Docs>
<summary>Gets or sets the notification behavior flag mask.</summary>
<value>The ordinary notification flags stored in the native <c>flags</c> field.</value>
<value>The notification flags stored in the native <c>flags</c> field.</value>
<remarks>
<para>
<format type="text/html">
Expand Down Expand Up @@ -4518,7 +4518,7 @@ myBuilder.getExtras().putString(EXTRA_AUDIO_CONTENTS_URI, myAudioUri.toString())
</ReturnValue>
<Docs>
<summary>Returns whether the notification has all the characteristics that make it eligible for FLAG_PROMOTED_ONGOING.</summary>
<value><see langword="true" /> when the notification passes the content and style checks for promoted ongoing presentation; otherwise, <see langword="false" />. Passing these checks does not guarantee promotion.</value>
<value><see langword="true" /> when the notification has all the characteristics that make it eligible for promoted ongoing presentation; otherwise, <see langword="false" />. Having these characteristics does not guarantee promotion.</value>
<remarks>
<para>Returns whether the notification has all the characteristics that make it eligible for FLAG_PROMOTED_ONGOING. This method does not factor in other criteria such user preferences for the app or channel. If this returns true, it does not guarantee that the notification will be assigned FLAG_PROMOTED_ONGOING by the system, but if this returns false, it will not.</para>
<para>
Expand Down