Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

MediaSession.ControllerInfo

public static final class MediaSession.ControllerInfo
extends Object

java.lang.Object
   ↳ androidx.media2.MediaSession.ControllerInfo


Information of a controller.

Summary

Public methods

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

Inherited methods

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 MediaSessionManager.RemoteUserInfo.LEGACY_CONTROLLER if the package name cannot be obtained.

getUid

public int getUid ()

Returns
int uid of the controller. Can be a negative value if the uid cannot be obtained.

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String