FlutterTexture

Objective-C

@protocol FlutterTexture <NSObject>

Swift

protocol FlutterTexture : NSObjectProtocol

Represents a texture that can be shared with Flutter.

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

  • Copy the contents of the texture into a CVPixelBuffer.

    Declaration

    Objective-C

    - (CVPixelBufferRef _Nullable)copyPixelBuffer;

    Swift

    func copyPixelBuffer() -> Unmanaged<CVPixelBuffer>?
  • Undocumented

    Declaration

    Objective-C

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

    Swift

    optional func onTextureUnregistered(_ texture: FlutterTexture)