You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/canvas/src-native/canvas-ios/CanvasNative/Dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h
Copy file name to clipboardExpand all lines: packages/canvas/src-native/canvas-ios/CanvasNative/Dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h
+122
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,14 @@ typedef enum {
92
92
93
93
typedefstructContextContext;
94
94
95
+
typedefstruct {
96
+
uint8_t_unused[0];
97
+
} ANativeWindow;
98
+
99
+
typedefstruct {
100
+
uint8_t_unused[0];
101
+
} ASurfaceTexture;
102
+
95
103
typedefstruct {
96
104
long longvalue;
97
105
PaintStyleValueTypevalue_type;
@@ -137,6 +145,120 @@ typedef struct {
137
145
uintptr_tdata_len;
138
146
} U32Array;
139
147
148
+
/**
149
+
* Returns a reference to an ANativeWindow (i.e. the Producer) for this SurfaceTexture.
150
+
* This is equivalent to Java's: Surface sur = new Surface(surfaceTexture);
151
+
*
152
+
* Available since API level 28.
153
+
*
154
+
* \param st A ASurfaceTexture reference acquired with ASurfaceTexture_fromSurfaceTexture()
155
+
* @return A reference to an ANativeWindow. This reference MUST BE released when no longer needed
156
+
* using ANativeWindow_release(). Failing to do so will result in leaked resources. nullptr is
157
+
* returned if \p st is null or if it's not an instance of android.graphics.SurfaceTexture
Copy file name to clipboardExpand all lines: packages/canvas/src-native/canvas-ios/CanvasNative/Dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface
+3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
// swift-interface-format-version: 1.0
2
2
// swift-compiler-version: Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Copy file name to clipboardExpand all lines: packages/canvas/src-native/canvas-ios/CanvasNative/Dist/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface
+3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
// swift-interface-format-version: 1.0
2
2
// swift-compiler-version: Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
0 commit comments