MediaSessionManager.RemoteUserInfo

public static final class MediaSessionManager.RemoteUserInfo
extends Object

java.lang.Object
   ↳ androidx.media.MediaSessionManager.RemoteUserInfo


Information of a remote user of MediaSessionCompat or MediaBrowserServiceCompat. This can be used to decide whether the remote user is trusted app, and also differentiate caller of MediaSessionCompat and MediaBrowserServiceCompat callbacks.

See equals(Object) to take a look at how it differentiate media controller.

Summary

Constants

String LEGACY_CONTROLLER

Used by getPackageName() when the session is connected to the legacy controller whose exact package name cannot be obtained.

Public constructors

RemoteUserInfo(String packageName, int pid, int uid)

Public constructor.

Public methods

boolean equals(Object obj)

Returns equality of two RemoteUserInfo by comparing their package name, UID, and PID.

String getPackageName()
int getPid()
int getUid()
int hashCode()

Inherited methods