ActionCameraListener

@objc public class ActionCameraListener: NSObject

Define the callback to receive camera notifications.

  • When ActionCamera.connect() success, this callback will be invoked.

    Declaration

    Swift

    public func onConnected()
  • When the connection to camera is closed, this callback will be invoked.

    • Parameters:
      • error: If the connection is closed due to any error, this parameter will be set. If it is nil, means the connection is closed by app.

    Declaration

    Swift

    public func onClosed(error error: Error?)

    Parameters

    error

    If the connection is closed due to any error, this parameter will be set. If it is nil, means the connection is closed by app.

  • When recording is started on camera, this callback will be invoked.

    Declaration

    Swift

    public func onRecordStarted()
  • When recording is stopped on camera, this callback will be invoked.

    Declaration

    Swift

    public func onRecordStopped()
  • When capture is started on camera, this callback will be invoked.

    Declaration

    Swift

    public func onCaptureStarted()
  • When capture is stopped on camera, this callback will be invoked.

    Declaration

    Swift

    public func onCaptureStopped()
  • When view finder started, this callback will be invoked. After received this event, you can start play video stream vi rtsp protocol.

    Declaration

    Swift

    public func onViewFinderStarted()
  • When view finder stoped, this callback will be invoked.

    Declaration

    Swift

    public func onViewFinderStopped()
  • When battery life is changed, this callback will be invoked.

    Declaration

    Swift

    public func onBatteryLifeChanged(restBattery restBattery: Int)
  • When formatting sd card finished, this callback will be invoked.

    Declaration

    Swift

    public func onSDCardFormatted()