init
TypeScriptstatic init(player?: (AVPlayer) | null): AVPlayerLayerSwift declarationinit(player: AVPlayer?)class · iOS 4.0+ · SDK 27.1
class AVPlayerLayerstatic init(player?: (AVPlayer) | null): AVPlayerLayerSwift declarationinit(player: AVPlayer?)displayedPixelBuffer(): (_CoreVideo_CVBuffer) | nullSwift declarationfunc displayedPixelBuffer() -> CVPixelBuffer?setCaptionPreviewProfileID(profileID: string, position: { x: number; y: number }, text?: (string) | null): voidSwift declarationfunc setCaptionPreviewProfileID(_ profileID: String, position: CGPoint, text: String?)stopShowingCaptionPreview(): voidSwift declarationfunc stopShowingCaptionPreview()get pixelBufferAttributes(): (Record<string, unknown>) | nullSwift declarationvar pixelBufferAttributes: [String : Any]? { get set }set pixelBufferAttributes(value: (Record<string, unknown>) | null)Swift declarationvar pixelBufferAttributes: [String : Any]? { get set }get player(): (AVPlayer) | nullSwift declarationvar player: AVPlayer? { get set }set player(value: (AVPlayer) | null)Swift declarationvar player: AVPlayer? { get set }get isReadyForDisplay(): booleanSwift declarationvar isReadyForDisplay: Bool { get }get videoGravity(): AVLayerVideoGravitySwift declarationvar videoGravity: AVLayerVideoGravity { get set }set videoGravity(value: AVLayerVideoGravity)Swift declarationvar videoGravity: AVLayerVideoGravity { get set }get videoRect(): { x: number; y: number; width: number; height: number }Swift declarationvar videoRect: CGRect { get }displayedReadOnlyPixelBuffer(): (_CoreVideo_CVReadOnlyPixelBuffer) | nullSwift declarationfunc displayedReadOnlyPixelBuffer() -> CVReadOnlyPixelBuffer?Returns the pixel buffer which is currently being displayed. CVReadOnlyPixelBuffer can be nil if the current player's rate is non-zero, displayed pixel buffer is protected, no image is currently being displayed, or if the image is unavailable. - Returns: A CVReadOnlyPixelBuffer object.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVPlayerLayer.init()
inherited init: cannot prove legal (class declares 1 custom initializer)