CameraButtonDelegate

public protocol CameraButtonDelegate : AnyObject

Delegate to receive updates for camera button view

  • Called when user taps camera button

    Declaration

    Swift

    func cameraButtonTapped(_ cameraButton: CameraButton)

    Parameters

    cameraButton

    camera button view

  • Called when user starts holding down camera button

    Declaration

    Swift

    func cameraButtonHoldBegan(_ cameraButton: CameraButton)

    Parameters

    cameraButton

    camera button view

  • Called when user released their hold before the minimum threshold has been reached

    Declaration

    Swift

    func cameraButtonHoldCancelled(_ cameraButton: CameraButton)

    Parameters

    cameraButton

    camera button view NOTE: this will be followed by a call to cameraButtonTapped(_:)

  • Called when user stops holding down camera button

    Declaration

    Swift

    func cameraButtonHoldEnded(_ cameraButton: CameraButton)

    Parameters

    cameraButton

    camera button view