Class Info |
|---|
public class InteractionQueryModemController implements IInteractionQueryModem 定义注册回调、交互以及注销回调的类。IInteractionQueryModem接口的实现类。 |
Qualifier and Type | Method Name and Description |
|---|---|
static InteractionQueryModemController | 获取InteractionQueryModemController实例,并初始化实例。 |
synchronized boolean | registerCallback(Context context, IInteractionResProcess resProcess, IInteractionConnectProcess connectProcess, int appType) 注册回调函数。 |
void | 注销回调。 |
boolean | query(InteractionArg arg) 当前为空接口,为后续查询类功能预留接口 |
boolean | 获取您的App当前连接状态。 |
boolean | setState(InteractionArg arg) 设置类接口。 |
boolean | notify(InteractionArg arg) 通知类接口。 |
Method |
|---|
public static InteractionQueryModemController getInstance() 获取InteractionQueryModemController实例,并初始化实例。 |
Returns
Type | Description |
|---|---|
InteractionQueryModemController | 与Modem交互实体类。 |
Method |
|---|
public synchronized boolean registerCallback(Context context, IInteractionResProcess resProcess, IInteractionConnectProcess connectProcess, int appType) 注册回调函数和应用类型。 |
Parameters
Name | Description |
|---|---|
context | App的应用上下文,不可为null。 |
resProcess | Modem交互信息回调接口,不可为null。 |
connectProcess | AIDL和HIDL连接信息回调接口,不可为null。 |
appType | 应用类型,不可为null,取值范围可见AppType定义。 |
Returns
Type | Description |
|---|---|
boolean | 注册结果。
|
Method |
|---|
public boolean query(InteractionArg arg) 当前为空接口,为后续查询类功能预留接口。 |
Parameters
Name | Description |
|---|---|
arg | 查询请求参数。 |
Returns
Type | Description |
|---|---|
boolean | 查询是否下发成功。
|
Method |
|---|
public boolean getAidlConnectStatus() 获取您的App当前连接状态。 |
Returns
Type | Description |
|---|---|
boolean | 获取您的App当前连接状态。
|