MediaSession2Service.MediaNotification 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 开放源代码项目创建和共享的工作进行的修改,并根据 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
- transfer
- JniHandleOwnership