Contents

hasMediaType(_:)

Returns a Boolean value that indicates whether the device captures media of a particular type.

Declaration

func hasMediaType(_ mediaType: AVMediaType) -> Bool

Parameters

Return Value

true if the device captures media of the specified type; otherwise, false.

See Also

Inspecting device characteristics