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.
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.
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.
getWidgetIntercoms(ids: [String], completion: ([VMSWidgetIntercom]?, VMSApiError?))