Flutter Engine
<FlutterTextureRegistry > Protocol Reference

#import <FlutterTexture.h>

Inheritance diagram for <FlutterTextureRegistry >:

Instance Methods

(int64_t) - registerTexture:
(void) - textureFrameAvailable:
(void) - unregisterTexture:

Detailed Description

A collection of registered FlutterTexture's.

Definition at line 38 of file FlutterTexture.h.

Method Documentation

◆ registerTexture:()

- (int64_t FlutterTextureRegistry) registerTexture: (NSObject< FlutterTexture > *)  texture

Registers a FlutterTexture for usage in Flutter and returns an id that can be used to reference that texture when calling into Flutter with channels. Textures must be registered on the platform thread.

◆ textureFrameAvailable:()

- (void FlutterTextureRegistry) textureFrameAvailable: (int64_t)  textureId

Notifies Flutter that the content of the previously registered texture has been updated.

This will trigger a call to -[FlutterTexture copyPixelBuffer] on the raster thread.

◆ unregisterTexture:()

- (void FlutterTextureRegistry) unregisterTexture: (int64_t)  textureId

Unregisters a FlutterTexture that has previously regeistered with registerTexture:. Textures must be unregistered on the the platform thread.

textureIdThe result that was previously returned from registerTexture:.

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