class

NativeViewFactory

PlatformViewFactory

StandardMessageCodec

INSTANCE

override

fun

create

context

Context

viewId

Int

args

Any

?):

PlatformView

val

creationParams

args

as

Map

String

?,

Any

?>?

return

NativeView

context

viewId

creationParams

Finally, register the platform view.
You can do this in an app or a plugin.

For app registration,
modify the app’s main activity
(for example, MainActivity.kt):