private SemanticsServer.Proxy createSemanticsServer() { Core core = CoreImpl.getInstance(); Pair<SemanticsServer.Proxy, InterfaceRequest<SemanticsServer>> server = SemanticsServer.MANAGER.getInterfaceRequest(core); mDartServiceProvider.connectToService( SemanticsServer.MANAGER.getName(), server.second.passHandle()); return server.first; }
private void postRun() { Core core = CoreImpl.getInstance(); // Connect to the ApplicationMessages service exported by the Flutter framework Pair<ApplicationMessages.Proxy, InterfaceRequest<ApplicationMessages>> appMessages = ApplicationMessages.MANAGER.getInterfaceRequest(core); mDartServiceProvider.connectToService( ApplicationMessages.MANAGER.getName(), appMessages.second.passHandle()); mFlutterAppMessages = appMessages.first; }