Flutter Engine
The Flutter Engine
|
#import <FlutterTextureRegistryRelay.h>
Instance Methods | |
(instancetype) | - initWithParent: |
(int64_t) | - registerTexture: [implementation] |
(void) | - textureFrameAvailable: [implementation] |
(void) | - unregisterTexture: [implementation] |
(int64_t) | - registerTexture: |
(void) | - textureFrameAvailable: |
(void) | - unregisterTexture: |
Properties | |
NSObject< FlutterTextureRegistry > * | parent |
Wrapper around a weakly held collection of registered textures.
Avoids a retain cycle between plugins and the engine.
Definition at line 20 of file FlutterTextureRegistryRelay.h.
- (instancetype) initWithParent: | (NSObject< FlutterTextureRegistry > *) | parent |
|
implementation |
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.
Reimplemented from <FlutterTextureRegistry>.
Definition at line 19 of file FlutterTextureRegistryRelay.mm.
|
implementation |
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.
Reimplemented from <FlutterTextureRegistry>.
Definition at line 19 of file FlutterTextureRegistryRelay.mm.
|
implementation |
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: . |
Reimplemented from <FlutterTextureRegistry>.
Definition at line 19 of file FlutterTextureRegistryRelay.mm.
|
readwritenonatomicweak |
A weak reference to a FlutterEngine that will be passed texture registration.
Definition at line 25 of file FlutterTextureRegistryRelay.h.