Share via


MediaSessionManager.IsTrustedForMediaControl Method

Definition

Checks whether the remote user is a trusted app.

[Android.Runtime.Register("isTrustedForMediaControl", "(Landroid/media/session/MediaSessionManager$RemoteUserInfo;)Z", "", ApiSince=28)]
public bool IsTrustedForMediaControl (Android.Media.Session.MediaSessionManager.RemoteUserInfo userInfo);
[<Android.Runtime.Register("isTrustedForMediaControl", "(Landroid/media/session/MediaSessionManager$RemoteUserInfo;)Z", "", ApiSince=28)>]
member this.IsTrustedForMediaControl : Android.Media.Session.MediaSessionManager.RemoteUserInfo -> bool

Parameters

userInfo
MediaSessionManager.RemoteUserInfo

The remote user info from either MediaSession#getCurrentControllerInfo() or MediaBrowserService#getCurrentBrowserInfo().

Returns

true if the remote user is trusted and its package name matches with the UID. false otherwise.

Attributes

Remarks

Java documentation for android.media.session.MediaSessionManager.isTrustedForMediaControl(android.media.session.RemoteUserInfo).

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