You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/02 09:05:55 UTC

[GitHub] liushengyi commented on issue #1697: 请教几个问题 安卓上 callback.invoke 是同步还是异步的? callback.invoke是不是只能调用一次?

liushengyi commented on issue #1697: 请教几个问题 安卓上  callback.invoke 是同步还是异步的? callback.invoke是不是只能调用一次?
URL: https://github.com/apache/incubator-weex/issues/1697#issuecomment-435314996
 
 
   多看源码:
   public interface JSCallback {
     /**
      * invoke javascript callback method, this method will destoryed after invoke.
      * @param data
      */
     void invoke(Object data);
   
     /**
      * invoke javascript callback method and keep callback alive for later use.
      * @param data
      */
     void invokeAndKeepAlive(Object data);
   }
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services