# WebMessagePortBoundaryInterface

# WebMessagePortBoundaryInterface

<br />

```
interface WebMessagePortBoundaryInterface
```

<br />

*** ** * ** ***

Boundary interface for WebMessagePort.

## Summary

|                                                                                                                                                                                                                                                ### Public functions                                                                                                                                                                                                                                                 ||
|------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [close](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface#close())`()`                                                                                                                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [postMessage](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface#postMessage(java.lang.reflect.InvocationHandler))`(message: `[InvocationHandler](https://developer.android.com/reference/java/lang/reflect/InvocationHandler.html)`?)`                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setWebMessageCallback](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface#setWebMessageCallback(java.lang.reflect.InvocationHandler))`(callback: `[InvocationHandler](https://developer.android.com/reference/java/lang/reflect/InvocationHandler.html)`?)`                                                                                                            |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [setWebMessageCallback](https://developer.android.com/reference/kotlin/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface#setWebMessageCallback(java.lang.reflect.InvocationHandler,android.os.Handler))`(callback: `[InvocationHandler](https://developer.android.com/reference/java/lang/reflect/InvocationHandler.html)`?, handler: `[Handler](https://developer.android.com/reference/android/os/Handler.html)`?)` |

## Public functions

### close

```
fun close(): Unit
```  

### postMessage

```
fun postMessage(message: InvocationHandler?): Unit
```  

### setWebMessageCallback

```
fun setWebMessageCallback(callback: InvocationHandler?): Unit
```  

### setWebMessageCallback

```
fun setWebMessageCallback(callback: InvocationHandler?, handler: Handler?): Unit
```