MediaSession2Service.MediaNotification 构造函数

定义

重载

MediaSession2Service.MediaNotification(Int32, Notification)

默认构造函数

MediaSession2Service.MediaNotification(IntPtr, JniHandleOwnership)

MediaSession2Service.MediaNotification(Int32, Notification)

默认构造函数

[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

参数

notificationId
Int32

要用于 NotificationManager#notify(int, Notification)的通知 ID。

notification
Notification

一条通知,用于使会话服务在前台运行。 建议在此处使用媒体样式通知。

属性

注解

适用于 . 的 android.media.MediaSession2Service.MediaNotification.MediaSession2Service$MediaNotification(int, android.app.Notification)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

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

参数

javaReference
IntPtr

nativeint

适用于