Flutter iOS Embedder
<FlutterTexture> Protocol Reference

#import <FlutterTexture.h>

Inheritance diagram for <FlutterTexture>:

Instance Methods

(CVPixelBufferRef _Nullable) - copyPixelBuffer
 
(void) - onTextureUnregistered:
 

Detailed Description

Represents a texture that can be shared with Flutter.

See also: https://github.com/flutter/plugins/tree/master/packages/camera

Definition at line 21 of file FlutterTexture.h.

Method Documentation

◆ copyPixelBuffer

- (CVPixelBufferRef _Nullable) copyPixelBuffer

Copy the contents of the texture into a CVPixelBuffer.

The type of the pixel buffer is one of the following:

  • kCVPixelFormatType_32BGRA
  • kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange
  • kCVPixelFormatType_420YpCbCr8BiPlanarFullRange

◆ onTextureUnregistered:

- (void) onTextureUnregistered: (NSObject< FlutterTexture > *)  texture
optional

Called when the texture is unregistered.

Called on the raster thread.


The documentation for this protocol was generated from the following file: