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 | |
---|---|
RemoteUserInfo(packageName: String, pid: Int, uid: Int) Create a new remote user information. |
Public methods | |
---|---|
Boolean |
Returns equality of two RemoteUserInfo. |
String! | |
Int |
getPid() |
Int |
getUid() |
Int |
hashCode() |
Public constructors
RemoteUserInfo
RemoteUserInfo(
packageName: String,
pid: Int,
uid: Int)
Create a new remote user information.
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 |