Udostępnij za pośrednictwem


MediaSession2Service.OnUpdateNotification(MediaSession2) Method

Definition

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

Java documentation for android.media.MediaSession2Service.onUpdateNotification(android.media.MediaSession2).

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