Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] dart 中发送 activity/context 对象? #4

Open
chachako opened this issue Jun 17, 2020 · 2 comments
Open

[android] dart 中发送 activity/context 对象? #4

chachako opened this issue Jun 17, 2020 · 2 comments

Comments

@chachako
Copy link

rt,当 native 中某个方法需要一个 activity 或者 ctx 参数时该怎么处理

@Assuner-Lee
Copy link
Collaborator

使用nativeObject获取到你需要的对象

@chachako
Copy link
Author

使用nativeObject获取到你需要的对象

这个好像没办法得到吧...?
如果是原生 methodChannel 的话提供了一个 ActivityAware 接口,然后可以通过 binding.getActivity() 得到实例,那么在 dna 中呢,怎么做到这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants