mirror of
https://github.com/Drop-OSS/wry-cef.git
synced 2026-01-30 20:55:24 +01:00
25 lines
471 B
Kotlin
25 lines
471 B
Kotlin
// Copyright 2020-2023 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package {{package}}
|
|
|
|
import android.webkit.*
|
|
|
|
class Ipc {
|
|
@JavascriptInterface
|
|
fun postMessage(message: String) {
|
|
this.ipc(message)
|
|
}
|
|
|
|
companion object {
|
|
init {
|
|
System.loadLibrary("{{library}}")
|
|
}
|
|
}
|
|
|
|
private external fun ipc(message: String)
|
|
|
|
{{class-extension}}
|
|
}
|