File was renamed from app/src/main/java/com/dayu/pipirrapp/js/MyWebViewInterface.java |
| | |
| | | package com.dayu.pipirrapp.js; |
| | | package com.dayu.pipirrapp.tool; |
| | | |
| | | import android.os.Handler; |
| | | import android.os.Looper; |
| | |
| | | */ |
| | | public class MyWebViewInterface { |
| | | |
| | | private MapFragment myContext; |
| | | private final MapFragment myContext; |
| | | |
| | | |
| | | public MyWebViewInterface(MapFragment context) { |
| | |
| | | // 在主线程上执行UI操作 |
| | | // 更新或操作UI元素的代码 |
| | | // myContext.addMarker(); |
| | | myContext.jumpCenterPoint(); |
| | | myContext.setMapMarker(); |
| | | // myContext.jumpCenterPoint(); |
| | | // myContext.setMapMarker(); |
| | | } |
| | | }); |
| | | } |