Contents

sample(for:)

Returns the camera frame sample for a given camera position.

Declaration

func sample(for position: CameraFrameProvider.CameraPosition) -> CameraFrame.Sample?

Parameters

  • position:

    The camera position to get the sample for.

Return Value

The camera frame sample, or nil if no sample is available for the given camera position.

See Also

Getting camera frame information