lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.media:media:1.0.0-alpha3

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.

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

MediaSessionManager.RemoteUserInfo(String packageName, int pid, int uid)

Public methods

boolean equals(Object obj)
String getPackageName()
int getPid()
int getUid()
int hashCode()

Inherited methods

Constants

LEGACY_CONTROLLER

public static final String LEGACY_CONTROLLER

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

Constant Value: "android.media.session.MediaController"

Public constructors

MediaSessionManager.RemoteUserInfo

public MediaSessionManager.RemoteUserInfo (String packageName, 
                int pid, 
                int uid)

Parameters
packageName String

pid int

uid int

Public methods

equals

public boolean equals (Object obj)

Parameters
obj Object

Returns
boolean

getPackageName

public String getPackageName ()

Returns
String package name of the controller. Can be LEGACY_CONTROLLER if the package name cannot be obtained.

getPid

public int getPid ()

Returns
int pid of the controller

getUid

public int getUid ()

Returns
int uid of the controller

hashCode

public int hashCode ()

Returns
int