Skip to content

Commit 721542f

Browse files
committed
docs: add giagram about native GUI entities.
1 parent 36e21e6 commit 721542f

File tree

2 files changed

+228
-0
lines changed

2 files changed

+228
-0
lines changed

docs/design/GUI.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Unlike Web UI protocol, we don't need DSP controllers as it is basically a matte
156156

157157
### SurfaceControlViewHost: controller from Kotlin API
158158

159+
![Native UI boundary](../images/native-ui.drawio.svg)
160+
159161
The host will instantiate the plugin's View by sending an independent Message to an independent GUI controller (i.e. not `AudioPluginService`, not in the .aidl). It is due to current limitation on AIDL that cannot handle Message/Parcelables in .aidl that are being used in both Java and NDK.
160162

161163
It is done in Kotlin land, as it requires couple of Java/Kotlin classes e.g. `Service`, `SurfaceView` and `SurfaceControlViewHost.SurfacePackage` instances. Here is these internal steps to use it:

docs/images/native-ui.drawio.svg

Lines changed: 226 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)