Skip to main content
Skip table of contents

WidgetApi. iOS

Api to get information from server for device widgets.

Get list of cameras

Get the list of detailed information about cameras of given ids.

If request was successful you'll get the list of VMSWidgetCamera object. If any error would occur you would get an VMSApiError object.

CODE
getWidgetCameras(ids: [String], completion: ([VMSWidgetCamera]?, VMSApiError?))

Get camera preview

Get camera preview. You will receive .mp4 file of camera one frame.

If request was successful you'll get url to download frame. If any error would occur you would get an VMSApiError object.

If you need to cancel this request use cancelArchiveRequest() method with specified camera id.

CODE
getWidgetCameraPreview(cameraId: Int, completion: (String?, VMSApiError?))

Get list of intercoms

Get the list of detailed information about intercoms of given ids.

If request was successful you'll get the list of VMSWidgetIntercom object. If any error would occur you would get an VMSApiError` object.

CODE
getWidgetIntercoms(ids: [String], completion: ([VMSWidgetIntercom]?, VMSApiError?))

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.