Partilhar via


DeviceManager Class

  • java.lang.Object
    • com.azure.android.communication.calling.DeviceManager

public class DeviceManager

Device manager

Method Summary

Modifier and Type Method and Description
void addOnCamerasUpdatedListener(VideoDevicesUpdatedListener listener)

Adds the specified listener to receive OnCamerasUpdated events. CamerasUpdated Event. Occurs when the video devices are added or removed on the current DeviceManager

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

List<VideoDeviceInfo> getCameras()

Get the list of currently connected video devices

void removeOnCamerasUpdatedListener(VideoDevicesUpdatedListener listener)

Removes the specified listener to receive OnCamerasUpdated events. CamerasUpdated Event. Occurs when the video devices are added or removed on the current DeviceManager

Method Details

addOnCamerasUpdatedListener

public void addOnCamerasUpdatedListener(VideoDevicesUpdatedListener listener)

Adds the specified listener to receive OnCamerasUpdated events. CamerasUpdated Event. Occurs when the video devices are added or removed on the current DeviceManager

Parameters:

listener

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getCameras

public List getCameras()

Get the list of currently connected video devices

removeOnCamerasUpdatedListener

public void removeOnCamerasUpdatedListener(VideoDevicesUpdatedListener listener)

Removes the specified listener to receive OnCamerasUpdated events. CamerasUpdated Event. Occurs when the video devices are added or removed on the current DeviceManager

Parameters:

listener

Applies to