MediaSessionManager.IsTrustedForMediaControl 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.
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
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.