Contents

captureView(shouldPresent:error:)

Indicates that the app receives and displays post-processed scan results when the scan session stops.

Declaration

func captureView(shouldPresent roomDataForProcessing: CapturedRoomData, error: (any Error)?) -> Bool

Parameters

  • roomDataForProcessing:

    A data object that contains the raw scan results.

  • error:

    An object that describes the problem when an error occurs; otherwise, nil.

Return Value

This implementation always returns true.

Discussion

If your app’s room-capture view delegate doesn’t implement captureView(shouldPresent:error:), then the framework calls this default implementation.

See Also

Default implementations