Udostępnij za pośrednictwem


MediaSession2Service.MediaNotification Constructors

Definition

Overloads

MediaSession2Service.MediaNotification(Int32, Notification)

Default constructor

MediaSession2Service.MediaNotification(IntPtr, JniHandleOwnership)

MediaSession2Service.MediaNotification(Int32, Notification)

Default constructor

[Android.Runtime.Register(".ctor", "(ILandroid/app/Notification;)V", "", ApiSince=29)]
public MediaNotification (int notificationId, Android.App.Notification notification);
[<Android.Runtime.Register(".ctor", "(ILandroid/app/Notification;)V", "", ApiSince=29)>]
new Android.Media.MediaSession2Service.MediaNotification : int * Android.App.Notification -> Android.Media.MediaSession2Service.MediaNotification

Parameters

notificationId
Int32

notification id to be used for NotificationManager#notify(int, Notification).

notification
Notification

a notification to make session service run in the foreground. Media style notification is recommended here.

Attributes

Remarks

Java documentation for android.media.MediaSession2Service.MediaNotification.MediaSession2Service$MediaNotification(int, android.app.Notification).

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

MediaSession2Service.MediaNotification(IntPtr, JniHandleOwnership)

protected MediaNotification (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.MediaSession2Service.MediaNotification : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.MediaSession2Service.MediaNotification

Parameters

javaReference
IntPtr

nativeint

Applies to