PxUiCameraScreenDelegate Protocol

@objc(PxUiCameraScreenDelegate) protocol PxUiCameraScreenDelegate

Completion contract for PxUiCameraScreen. UIKit-canonical surface (Obj-C-bridgeable). SwiftUI adopters use PxUiCameraScreenView and switch on PxUiCameraScreenResult instead.

Instance Methods

NameSummary
cameraScreen(_:didCapture:cutout:)Capture succeeded. The screen has dismissed itself by the time this fires (UIViewController.dismiss(animated:) was called).
cameraScreen(_:didFailWith:)Camera initialisation or capture failed. error.code is a PxUiCameraScreenError raw value; error.domain is PxUiCameraScreenErrorDomain. The screen has dismissed itself. The framework does NOT present any error UI — the adopter decides how to surface the failure.
cameraScreenDidCancel(_:)User tapped the close button. The screen has dismissed itself.

Relationships

Conforming Types

Top