FlutterTextureRegistry
@protocol FlutterTextureRegistry <NSObject>
A collection of registered FlutterTexture‘s.
-
Registers a
FlutterTexturefor 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. On success returns the pointer to the registered texture, else returns 0.Declaration
Objective-C
- (int64_t)registerTexture:(nonnull NSObject<FlutterTexture> *)texture; -
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.Declaration
Objective-C
- (void)textureFrameAvailable:(int64_t)textureId; -
Unregisters a
FlutterTexturethat has previously regeistered withregisterTexture:. Textures must be unregistered on the platform thread.Declaration
Objective-C
- (void)unregisterTexture:(int64_t)textureId;Parameters
textureIdThe result that was previously returned from
registerTexture:.
View on GitHub
Install in Dash
FlutterTextureRegistry Protocol Reference