具有回调事件的Android外部对象 [英] External Object for Android with callback Event

查看:79
本文介绍了具有回调事件的Android外部对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android构建外部对象. 我有一个异步方法,我想我必须在外部对象中使用事件才能在Genexus中接收它的回调.

I'm building an External Object for Android. I have an asynchronous method and I guess I must to use an Event into the External Object to receive it's callback in Genexus.

但是,有人能告诉我如何从android java类中的GX中触发此事件吗?

But, can anyone show me how to trigger this event in GX from the android java class?

推荐答案

此方法:

mCoordinator.runAction("yourEvent", null);

还有mCoordinator,您可以在构造函数中获取它:

And the mCoordinator you can get it at the constructor:

public YourUC(Context context, Coordinator coordinator, LayoutItemDefinition definition){ }

public YourUC(Context context, Coordinator coordinator, LayoutItemDefinition definition){ }

这篇关于具有回调事件的Android外部对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆