CameraSniffer (v3.0)

class CameraSniffer

CameraSniffer(CameraSnifferDelegate delegate);

Constructs CameraSniffer instance.

startSniffing();

Starts broadcasting for cloud cameras discovery.

stopSniffing();

Stops broadcasting.

Bool isSniffing();

Returns true if broadcasting is active.

Device[] getFoundDevices();

Returns list of founded devices.

protocol CameraSnifferDelegate

@required onFound(Device device);

Will get called when new camera has been detected in the network.

@required onLost(Device device);

Will get called when discovered camera don't response for broadcast message.

@required onError(MobileSDKError error);

Will get called if there's an error in the process of sniffing a camera.

class Address 

Address(String ip4, String mac);

Constructs Address instance.

String getIp4();

Returns IP4 address of device.

String getMac();

Returns MAC address of device.

class DeviceModelInfo 

String getBrand();

Returns brand of device.

String getModel();

Returns model of device.

class Device 

Device(Address address, Int typeId);

Constructs Device instance to be passed into CameraWizard.

Address getAddress();

Returns addresses of device.

DeviceModelInfo getModelInfo();

Returns model info of device.

Int getTypeId();

Returns type ID of device.