From: Hwankyu Jhun Date: Fri, 23 Sep 2022 07:29:18 +0000 (+0000) Subject: Modify dart generator implementation X-Git-Tag: accepted/tizen/unified/20220927.132322~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f84481657c8ca9a1e4f52d141d088dc00fee78c;p=platform%2Fcore%2Fappfw%2Ftidl.git Modify dart generator implementation The onReceiveEvent() method is modified. The parameter of the method is changed to the String from the integer. The connectSync() method is removed from the flutter/plugins. Change-Id: I0c232418b3941d8f6b97b2bb4d990b81a39169f6 Signed-off-by: Hwankyu Jhun --- diff --git a/idlc/gen/dart_proxy_gen_cb.h b/idlc/gen/dart_proxy_gen_cb.h index a47b8cc3..50352790 100644 --- a/idlc/gen/dart_proxy_gen_cb.h +++ b/idlc/gen/dart_proxy_gen_cb.h @@ -58,10 +58,12 @@ abstract class extends ProxyBase { /// This abstract method will be called when the connet() is succeed. Future onConnected(); + /// This abstract method will be called when the connection with the stub is disconnected. Future onDisconnected(); + /// This abstract method will be called when connect() is failed. - Future onRejected(int error); + Future onRejected(String errorMessage); @override Future onConnectedEvent() async { @@ -76,8 +78,8 @@ abstract class extends ProxyBase { } @override - Future onRejectedEvent(int error) async { - await onRejected(error); + Future onRejectedEvent(String errorMessage) async { + await onRejected(errorMessage); } @override @@ -128,13 +130,6 @@ abstract class extends ProxyBase { await super.connect(); } - /// Connects with the stub application synchronously. - @override - Future connectSync() async { - Log.info(_logTag, 'connectSync()'); - await super.connectSync(); - } - /// Dispose registered delegate interface. void disposeCallback(String tag) { Log.info(_logTag, 'disposeCallback($tag)');