合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
Interface Info |
|---|
public interface IVirtualizationCallback 事件监听回调接口。 |
Type |
Constant Field |
Description |
|---|---|---|
int |
DeviceEvent.CONNECT |
设备已连接。 |
int |
DeviceEvent.DISCONNECT |
设备已断连。 |
int |
DeviceEvent. REQUEST_CONNECTION |
设备请求连接,可调用acceptConnection接受或者disconnectDevice拒绝连接。 |
int |
DeviceEvent. START_PROJECTION |
投屏通道已准备,应用此时需显示surface并调用startProjection。 |
int |
DeviceEvent. STOP_PROJECTION |
投屏已停止,应用需取消surface的显示。 |
Class |
Method |
|---|---|
abstract void |
onDeviceChange(String deviceName, intstate) 设备事件回调,主要为与手机通信连接事件。在该回调方法中携带远端设备信息,事件类型信息。 |
abstract void |
onPinCode(String deviceName, int state) 该回调通知应用显示或停止显示PIN码。 |
long |
getSecureFileSize(String fileName) 获取认证文件大小,单位是byte。 |
byte[] |
readSecureFile(String fileName) 获取认证信息。 |
boolean |
writeSecureFile(String fileName, byte[] data) 存储认证信息,需要进行安全存储,true成功;false失败。 |
Method |
|---|
public abstract void onDeviceChange(String deviceName, intstate) 设备事件回调,主要为与手机通信连接事件。在该回调方法中携带远端设备信息,事件类型信息。 |
Parameters
Name |
Description |
|---|---|
deviceName |
远端设备名称。 |
state |
参考Constant SummaryEVENT_DEVICE取值。 |
Method |
|---|
public abstract void onPinCode(String deviceName, int state) 该回调通知应用显示或停止显示PIN码。 |
Parameters
Name |
Description |
|---|---|
deviceName |
远端设备名称。 |
pinCode |
设备认证生成的PIN码,若是空串,表示可以取消pinCode的显示。 |
Method |
|---|
public abstract long getSecureFileSize(String fileName) 获取认证文件大小,单位是byte。 |
Parameters
Name |
Description |
|---|---|
fileName |
存储认证信息的文件名。 |
Method |
|---|
public abstract byte[] readSecureFile(String fileName) 获取认证信息。 |
Parameters
Name |
Description |
|---|---|
fileName |
存储认证信息的文件名。 |
Method |
|---|
public abstract boolean writeSecureFile(String fileName, byte[] data) 存储认证信息,需要进行安全存储,true成功;false失败。 |
Parameters
Name |
Description |
|---|---|
fileName |
存储认证信息的文件名。 |
data |
需要存储的信息。 |