NotificationListenerService.SnoozeNotification(String, Int64) Method

Definition

Inform the notification manager about snoozing a specific notification.

[Android.Runtime.Register("snoozeNotification", "(Ljava/lang/String;J)V", "", ApiSince=26)]
public void SnoozeNotification (string? key, long durationMs);
[<Android.Runtime.Register("snoozeNotification", "(Ljava/lang/String;J)V", "", ApiSince=26)>]
member this.SnoozeNotification : string * int64 -> unit

Parameters

key
String

The key of the notification to snooze

durationMs
Int64

A duration to snooze the notification for, in milliseconds.

Attributes

Remarks

Java documentation for android.service.notification.NotificationListenerService.snoozeNotification(java.lang.String, long).

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.

Applies to