@protocol FlutterTextureRegistry <NSObject>
protocol FlutterTextureRegistry : NSObjectProtocol
A collection of registered
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.
- (int64_t)registerTexture:(nonnull NSObject<FlutterTexture> *)texture;
func register(_ texture: FlutterTexture) -> Int64
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.
func textureFrameAvailable(_ textureId: Int64)
FlutterTexturethat has previously regeistered with
registerTexture:. Textures must be unregistered on the platform thread.
func unregisterTexture(_ textureId: Int64)
The result that was previously returned from