blob: 8be4e278503819b5be2404641633f98efa862fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package com.pitchedapps.frost.web
import android.webkit.JavascriptInterface
import com.pitchedapps.frost.events.WebLaunchEvent
import org.greenrobot.eventbus.EventBus
/**
* Created by Allan Wang on 2017-06-01.
*/
class FrostJSI {
@JavascriptInterface
fun loadUrl(url: String) = EventBus.getDefault().post(WebLaunchEvent(url))
}
|