# 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

- `-copyPixelBuffer`

  Copy the contents of the texture into a `CVPixelBuffer`.

  #### Declaration

  Objective-C

      - (CVPixelBufferRef _Nullable)copyPixelBuffer;

  Swift

      func copyPixelBuffer() -> Unmanaged<CVPixelBuffer>?

- `-onTextureUnregistered:`

  Undocumented

  #### Declaration

  Objective-C

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

  Swift

      optional func onTextureUnregistered(_ texture: FlutterTexture)

© 2023 Flutter. All rights reserved. (Last updated: 2023-01-31)

Generated by jazzy ♪♫ v0.14.3, a Realm project.