Notification.Builder.SetPriority(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method was deprecated in API level 26.
[Android.Runtime.Register("setPriority", "(I)Landroid/app/Notification$Builder;", "GetSetPriority_IHandler")]
public virtual Android.App.Notification.Builder? SetPriority(int pri);
[<Android.Runtime.Register("setPriority", "(I)Landroid/app/Notification$Builder;", "GetSetPriority_IHandler")>]
abstract member SetPriority : int -> Android.App.Notification.Builder
override this.SetPriority : int -> Android.App.Notification.Builder
Parameters
- pri
- Int32
int: Value is one of the following: Notification.PRIORITY_DEFAULT Notification.PRIORITY_LOW Notification.PRIORITY_MIN Notification.PRIORITY_HIGH Notification.PRIORITY_MAX
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
This method was deprecated in API level 26. use NotificationChannel.setImportance(int) instead.
Set the priority of this notification.
See also:
Android reference for android.app.Notification.Builder.setPriority.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.