CameraHelper

@available(macCatalyst 14.0, *)
public final class CameraHelper

CameraHelper is used to access the information about the camera.

Author

Adamas

Version

1.5.0

Date

18/08/2019
  • The delegate.

    Declaration

    Swift

    public weak var delegate: CameraHelperDelegate?
  • Whether the camera is enabled by the user or not.

    Declaration

    Swift

    public var isCameraAuthorized: Bool { get }
  • Whether the camera authorization is still not determinated or not.

    Declaration

    Swift

    public var isCameraUndetermined: Bool { get }
  • Whether the library is enabled by the user or not.

    Declaration

    Swift

    public var isLibraryAuthorized: Bool { get }
  • Whether the library authorization is still not determinated or not.

    Declaration

    Swift

    public var isLibraryUndetermined: Bool { get }
  • Authorize the camera.

    Declaration

    Swift

    public func requestCameraAuthorization()
  • Authorize the camera.

    Declaration

    Swift

    public func requestCameraAuthorization() async throws -> Bool

    Return Value

    Whether the permission is granted.

  • Authorize the library.

    Declaration

    Swift

    public func requestLibraryAuthorization()
  • CLLocationManager

    Declaration

    Swift

    public init(bundle: Bundle = Bundle.main)

    Parameters

    bundle

    The bundle where the Info.plist file exists.