CameraHelper
@available(macCatalyst 14.0, *)
public final class CameraHelper
CameraHelper is used to access the information about the camera.
Version
1.5.0Date
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() -
requestCameraAuthorization()AsynchronousAuthorize the camera.
Declaration
Swift
public func requestCameraAuthorization() async throws -> BoolReturn Value
Whether the permission is granted.
-
Authorize the library.
Declaration
Swift
public func requestLibraryAuthorization() -
CLLocationManager
Declaration
Swift
public init(bundle: Bundle = Bundle.main)Parameters
bundleThe bundle where the Info.plist file exists.
CameraHelper Class Reference