次の方法で共有


RemoteControlClient.MediaSession Property

Definition

Caution

deprecated

Get a MediaSession associated with this RCC.

[System.Obsolete("deprecated")]
public virtual Android.Media.Session.MediaSession? MediaSession { [Android.Runtime.Register("getMediaSession", "()Landroid/media/session/MediaSession;", "GetGetMediaSessionHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getMediaSession", "()Landroid/media/session/MediaSession;", "GetGetMediaSessionHandler")>]
member this.MediaSession : Android.Media.Session.MediaSession

Property Value

A media session object or null.

Attributes

Remarks

Get a MediaSession associated with this RCC. It will only have a session while it is registered with AudioManager#registerRemoteControlClient. The session returned should not be modified directly by the application but may be used with other APIs that require a session.

Java documentation for android.media.RemoteControlClient.getMediaSession().

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