public final class AVSessionManager extends Object
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static AVSessionManager |
getInstance(Context context) |
Obtains an
AVSessionManager instance. |
List<AVController> |
getOngoingAVControllers(ElementName elementName) |
Obtains controllers of ongoing media sessions.
|
boolean |
isRemoteUserTrusted(AVCallerUserInfo userInfo) |
Checks whether a remote application is trusted.
|
public static AVSessionManager getInstance(Context context) throws IllegalArgumentException
AVSessionManager instance.context - Indicates the application context.AVSessionManager instance.IllegalArgumentException - Throws this exception if context is null.public boolean isRemoteUserTrusted(AVCallerUserInfo userInfo) throws IllegalArgumentException
userInfo - Indicates information about the remote application.true if the remote application is trusted; returns false otherwise.IllegalArgumentException - Throws this exception if userInfo is null.public List<AVController> getOngoingAVControllers(ElementName elementName)
This method is available for system applications only.
elementName - Indicates ability information of the calling application.