PxUiCameraScreen Class
@MainActor @objc(PxUiCameraScreen) final class PxUiCameraScreen
Batteries-included camera screen. Provides the live camera view plus the chrome (close / torch / shutter / border-detector buttons, autoshot progress overlay, detector label) that consumer apps previously had to build themselves.
Overview
Adoption (UIKit):
PxUiCameraScreen *screen = [[PxUiCameraScreen alloc] initWithDelegate:self];
screen.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:screen animated:YES completion:nil];
SwiftUI adopters use PxUiCameraScreenView instead and switch on PxUiCameraScreenResult.
Present a fresh instance for each scan — do not reuse one instance across presentations. The screen delivers exactly one terminal callback per presentation (didCapture / didFailWith / cameraScreenDidCancel) and runs an asynchronous capture pipeline whose in-flight work is bound to the instance; reusing an instance can race a prior presentation’s capture. The SwiftUI wrapper creates a fresh instance automatically.
Initializers
| Name | Summary |
|---|---|
| init(configuration:delegate:) | Creates the camera screen. |
| init(delegate:) | Creates the camera screen with a default configuration. |
Instance Properties
| Name | Summary |
|---|---|
| configuration | The configuration read when the screen is created. |
| delegate | The delegate that receives capture, cancel, and failure callbacks. |
Relationships
Inherits From
- UIKit.UIViewController
Conforms To
- Foundation.NSCoding
- Foundation.NSExtensionRequestHandling
- ObjectiveC.NSObjectProtocol
- Swift.CVarArg
- Swift.CustomDebugStringConvertible
- Swift.CustomStringConvertible
- Swift.Equatable
- Swift.Hashable
- Swift.Sendable
- Swift.SendableMetatype
- UIKit.UIActivityItemsConfigurationProviding
- UIKit.UIAppearanceContainer
- UIKit.UIContentContainer
- UIKit.UIFocusEnvironment
- UIKit.UIPasteConfigurationSupporting
- UIKit.UIResponderStandardEditActions
- UIKit.UIStateRestoring
- UIKit.UITraitChangeObservable
- UIKit.UITraitEnvironment
- UIKit.UIUserActivityRestoring