PlanetKitCameraDelegate

@objc
public protocol PlanetKitCameraDelegate

A protocol that defines methods for receiving event from the camera.

  • Called when the camera starts capturing video.

    Declaration

    Swift

    func didStart()
  • Called when the camera stops capturing video.

    Remark

    If an error occurs while starting or stopping the camera, the error parameter will contain the error information. In case of an error during camera startup, didStop() can be called with error information without calling didStart().

    Declaration

    Swift

    func didStop(_ error: NSError?)