public class AgoraDeviceInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private long |
cptr
Native pointer to the device info instance.
|
| Constructor and Description |
|---|
AgoraDeviceInfo(long cptr)
Creates a device info wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the wrapper and releases native resources.
|
int |
getCapability(java.lang.String device_unique_id_utf8,
int device_capability_number,
Out<VideoFormat> capability)
Retrieves a specific device capability.
|
int |
getDeviceName(int deviceNum,
Out<java.lang.String> deviceName,
Out<java.lang.String> deviceUniqueId,
Out<java.lang.String> productUniqueId)
Retrieves information about a device.
|
private void |
ndestroy()
Releases the native device info object.
|
int |
numberOfCapabilities(java.lang.String device_unique_id_utf8)
Gets the number of capabilities for the specified device.
|
int |
numberOfDevices()
Gets the number of available devices.
|
public AgoraDeviceInfo(long cptr)
cptr - Native pointerprivate void ndestroy()
public void destroy()
public int numberOfDevices()
public int getDeviceName(int deviceNum,
Out<java.lang.String> deviceName,
Out<java.lang.String> deviceUniqueId,
Out<java.lang.String> productUniqueId)
deviceNum - Index of the devicedeviceName - Output buffer for the device namedeviceUniqueId - Output buffer for the unique idproductUniqueId - Output buffer for the product idpublic int numberOfCapabilities(java.lang.String device_unique_id_utf8)
device_unique_id_utf8 - Device unique idpublic int getCapability(java.lang.String device_unique_id_utf8,
int device_capability_number,
Out<VideoFormat> capability)
device_unique_id_utf8 - Device unique iddevice_capability_number - Capability indexcapability - Output capability descriptor