Flutter macOS Embedder
FlutterTextureRegistrar.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #import <Cocoa/Cocoa.h>
6 
9 
10 /*
11  * Delegate methods for FlutterTextureRegistrar.
12  */
14 
15 /*
16  * Called by the FlutterTextureRegistrar when a texture is registered.
17  */
18 - (nonnull FlutterExternalTexture*)onRegisterTexture:(nonnull id<FlutterTexture>)texture;
19 
20 @end
21 
22 /*
23  * Holds the external textures and implements the FlutterTextureRegistry.
24  */
26 
27 /*
28  * Use `initWithDelegate:engine:` instead.
29  */
30 - (nullable instancetype)init NS_UNAVAILABLE;
31 
32 /*
33  * Use `initWithDelegate:engine:` instead.
34  */
35 + (nullable instancetype)new NS_UNAVAILABLE;
36 
37 /*
38  * Initialzes the texture registrar.
39  */
40 - (nullable instancetype)initWithDelegate:(nonnull id<FlutterTextureRegistrarDelegate>)delegate
41  engine:(nonnull FlutterEngine*)engine NS_DESIGNATED_INITIALIZER;
42 
43 /*
44  * Returns the registered texture with the provided `textureID`.
45  */
46 - (nullable FlutterExternalTexture*)getTextureWithID:(int64_t)textureID;
47 
48 @end
FlutterEngine
Definition: FlutterEngine.h:30
FlutterTextureRegistrar
Definition: FlutterTextureRegistrar.h:25
FlutterEngine.h
FlutterTextureRegistry-p
Definition: FlutterTexture.h:38
FlutterExternalTexture.h
FlutterExternalTexture
Definition: FlutterExternalTexture.h:15
-[FlutterTextureRegistrar NS_UNAVAILABLE]
nullable instancetype NS_UNAVAILABLE()
FlutterTextureRegistrarDelegate-p
Definition: FlutterTextureRegistrar.h:13
FlutterTexture-p
Definition: FlutterTexture.h:21