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

CallBackFunction只能用一次 #23

Closed
icetea0822 opened this issue Sep 26, 2022 · 1 comment
Closed

CallBackFunction只能用一次 #23

icetea0822 opened this issue Sep 26, 2022 · 1 comment

Comments

@icetea0822
Copy link

请问js调用Android端代码后的CallBackFunction回调,是只能用一次的吗?返回一次结果之后再调用CallBackFunction就收不到结果了

@smallbuer
Copy link
Owner

请问js调用Android端代码后的CallBackFunction回调,是只能用一次的吗?返回一次结果之后再调用CallBackFunction就收不到结果了

桥的调用是一次调用一次回调,调用的时候生成一个自增长的ID作为队列中的回调ID,使用一次就移除销毁了

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