RemoteUserInfo

class RemoteUserInfo
kotlin.Any
   ↳ androidx.media.MediaSessionManager.RemoteUserInfo

Information of a remote user of android.support.v4.media.session.MediaSessionCompat or MediaBrowserServiceCompat. This can be used to decide whether the remote user is trusted app.

Summary

Public constructors
<init>(packageName: String, pid: Int, uid: Int)

Public methods
Int

Int

Boolean
equals(other: Any?)

Int

String

Properties
static String!

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

Public constructors

<init>

RemoteUserInfo(packageName: String, pid: Int, uid: Int)

Public methods

getUid

fun getUid(): Int
Return
Int: uid of the controller

hashCode

fun hashCode(): Int

equals

fun equals(other: Any?): Boolean

getPid

fun getPid(): Int
Return
Int: pid of the controller

getPackageName

fun getPackageName(): String
Return
String: package name of the controller. Can be #LEGACY_CONTROLLER if the package name cannot be obtained.

Properties

LEGACY_CONTROLLER

static var LEGACY_CONTROLLER: String!

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