WebMessagePortBoundaryInterface

interface WebMessagePortBoundaryInterface


Boundary interface for WebMessagePort.

Summary

Public methods

abstract @NonNull void
abstract @NonNull void
abstract @NonNull void
abstract @NonNull void
setWebMessageCallback(
    @NonNull InvocationHandler callback,
    @NonNull Handler handler
)

Public methods

close

@NonNull
public abstract void close()

postMessage

@NonNull
public abstract void postMessage(@NonNull InvocationHandler message)

setWebMessageCallback

@NonNull
public abstract void setWebMessageCallback(@NonNull InvocationHandler callback)

setWebMessageCallback

@NonNull
public abstract void setWebMessageCallback(
    @NonNull InvocationHandler callback,
    @NonNull Handler handler
)