#import <FlutterTexture.h>
Instance Methods | |
(int64_t) | - registerTexture: |
(void) | - textureFrameAvailable: |
(void) | - unregisterTexture: |
A collection of registered FlutterTexture
's.
Definition at line 45 of file FlutterTexture.h.
- (int64_t) 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. On success returns the pointer to the registered texture, else returns 0.
- (void) 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.
- (void) unregisterTexture: | (int64_t) | textureId |
Unregisters a FlutterTexture
that has previously regeistered with registerTexture:
. Textures must be unregistered on the platform thread.
textureId | The result that was previously returned from registerTexture: . |