MediaSession2Service.MediaNotification Constructors
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.
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
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
- transfer
- JniHandleOwnership