PlanetKitCameraDeviceChangeDelegate
@objc
public protocol PlanetKitCameraDeviceChangeDelegate
A delegate protocol for handling camera device changes in the PlanetKitCamera class.
-
Called when a camera device is connected.
Declaration
Swift
func didCameraDeviceConnect(deviceInfo: PlanetKitVideoCaptureDeviceInfo)
-
Called when a camera device is disconnected.
Declaration
Swift
func didCameraDeviceDisconnect(deviceInfo: PlanetKitVideoCaptureDeviceInfo)
Parameters
device
The disconnected camera device.
-
Called when a camera device is selected with a specific preset.
Declaration
Swift
func didCameraDeviceSelect(deviceInfo: PlanetKitVideoCaptureDeviceInfo, preset: PlanetKitCameraPreset)
Parameters
device
The selected camera device.
preset
The selected camera preset.