Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ControllerInfo

class ControllerInfo
kotlin.Any
   ↳ androidx.media2.session.MediaSession.ControllerInfo

Information of a controller.

Summary

Public methods

Boolean
equals(other: Any?)

Bundle

String

Int

Int

String

Public methods

equals

fun equals(other: Any?): Boolean

getConnectionHints

@NonNull fun getConnectionHints(): Bundle
Return
Bundle: connection hints sent from controller, or Bundle#EMPTY if none.

getPackageName

@NonNull fun getPackageName(): String
Return
String: package name of the controller. Can be androidx.media.MediaSessionManager.RemoteUserInfo#LEGACY_CONTROLLER if the package name cannot be obtained.

getUid

fun getUid(): Int
Return
Int: uid of the controller. Can be a negative value if the uid cannot be obtained.

hashCode

fun hashCode(): Int

toString

fun toString(): String