MediaSession2Service.OnUpdateNotification(MediaSession2) Method
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.
Called when notification UI needs update.
[Android.Runtime.Register("onUpdateNotification", "(Landroid/media/MediaSession2;)Landroid/media/MediaSession2Service$MediaNotification;", "GetOnUpdateNotification_Landroid_media_MediaSession2_Handler", ApiSince=29)]
public abstract Android.Media.MediaSession2Service.MediaNotification? OnUpdateNotification (Android.Media.MediaSession2 session);
[<Android.Runtime.Register("onUpdateNotification", "(Landroid/media/MediaSession2;)Landroid/media/MediaSession2Service$MediaNotification;", "GetOnUpdateNotification_Landroid_media_MediaSession2_Handler", ApiSince=29)>]
abstract member OnUpdateNotification : Android.Media.MediaSession2 -> Android.Media.MediaSession2Service.MediaNotification
Parameters
- session
- MediaSession2
a session that needs notification update.
Returns
a MediaNotification
. Can be null
.
- 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.