-
-
Save kururu-abdo/a6aa56d89ea2bcf97fbe733340cda713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun createNativeView(handle: Long) { | |
FlutterMain.ensureInitializationComplete(this, arrayOf()) | |
val nativeView = FlutterNativeView(this, true) | |
val callback = FlutterCallbackInformation.lookupCallbackInformation(handle) | |
nativeView.runFromBundle(FlutterRunArguments().apply { | |
bundlePath = FlutterMain.findAppBundlePath(this@Service) | |
libraryPath = callback.callbackLibraryPath | |
entrypoint = callback.callbackName | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment