Exemplo n.º 1
0
 @SFIntegerMessage(messageId = ActivityMessageId.OBJECTTEST1, theadId = ThreadId.BackThread)
 public void objectTest1(String str, Integer num) {
   Log.e(TAG, "method->objectTest1,str: " + str + " num: " + num);
   L.error(TAG, "method->objectTest1,thread name: " + Thread.currentThread().getName());
   if (num == 4) {
     SFBridgeManager.unregister(this);
   }
   SFBridgeManager.send(ActivityMessageId.OBJECTTEST1, "object hello", ++num);
 }
Exemplo n.º 2
0
 private void doTest2() {
   SFBridgeManager.send(ActivityMessageId.TEST2);
 }
Exemplo n.º 3
0
 private void doObjectTest1() {
   SFBridgeManager.send(ActivityMessageId.OBJECTTEST1, "object hello", 1);
 }
Exemplo n.º 4
0
 private void doTest1() {
   SFBridgeManager.send(ActivityMessageId.TEST1, "hello");
 }