Stay organized with collections
Save and categorize content based on your preferences.
RemoteUserInfo
class RemoteUserInfo
Information of a remote user of MediaSession
or MediaBrowserService
. This can be used to decide whether the remote user is trusted app, and also differentiate caller of MediaSession
and MediaBrowserService
callbacks.
See equals(java.lang.Object)
to take a look at how it differentiate media controller.
Summary
Public constructors |
Create a new remote user information.
|
Public constructors
RemoteUserInfo
RemoteUserInfo(
packageName: String,
pid: Int,
uid: Int)
Create a new remote user information.
Parameters |
packageName |
String: The package name of the remote user This value cannot be null . |
pid |
Int: The pid of the remote user |
uid |
Int: The uid of the remote user |
Public methods
equals
fun equals(other: Any?): Boolean
Returns equality of two RemoteUserInfo. Two RemoteUserInfo objects are equal if and only if they have the same package name, same pid, and same uid.
Parameters |
obj |
the reference object with which to compare. This value may be null . |
Return |
Boolean |
true if equals, false otherwise |
getPackageName
fun getPackageName(): String!
Return |
String! |
package name of the controller |
getPid
fun getPid(): Int
Return |
Int |
pid of the controller |
getUid
fun getUid(): Int
Return |
Int |
uid of the controller |
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-04 UTC.",
"state": ""
}