public final class AVCallerUserInfo extends Object
AVCallerUserInfo instance is usually used in
AVSession and AVBrowserService.SystemCapability.Multimedia#MEDIA| 构造器 | 说明 |
|---|---|
AVCallerUserInfo(String callerPackageName,
int callerPid,
int callerUid) |
A constructor used to create an
AVCallerUserInfo instance to check whether a user if from
a trusted application. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object obj) |
Checks whether this
AVCallerUserInfo instance equals the specified AVCallerUserInfo instance. |
String |
getCallerPackageName() |
Obtains the application bundle name in this
AVCallerUserInfo instance. |
int |
getCallerPid() |
Obtains the application process ID in this
AVCallerUserInfo instance. |
int |
getCallerUid() |
Obtains the user ID in this
AVCallerUserInfo instance. |
int |
hashCode() |
Returns the hash code of this
AVCallerUserInfo instance. |
public AVCallerUserInfo(String callerPackageName, int callerPid, int callerUid)
AVCallerUserInfo instance to check whether a user if from
a trusted application.callerPackageName - Indicates the application bundle name. This parameter cannot be null.callerPid - Indicates the application process ID.callerUid - Indicates the user ID.IllegalArgumentException - Throws this exception if the application bundle name is null.public int getCallerUid()
AVCallerUserInfo instance.public int getCallerPid()
AVCallerUserInfo instance.public String getCallerPackageName()
AVCallerUserInfo instance.public boolean equals(Object obj)
AVCallerUserInfo instance equals the specified AVCallerUserInfo instance.
Two instances are considered equal only when all of their input parameters (callerPackageName,
callerPid, and callerUid) are the same.
equals 在类中 Objectobj - Indicates the AVCallerUserInfo to compare.true if the two instances are equal; returns false otherwise.Object.hashCode(),
HashMappublic int hashCode()
AVCallerUserInfo instance.hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)