ProxyHandler

fun interface ProxyHandler(source)

A handler for calls to Inspekt proxies. Will be called for all method or property accessors on the proxy object.

Any calls to functions, or access of properties, will result in a call to handle, or handleSuspend for suspending functions. By default, handleSuspend simply calls handle.

Functions

Link copied to clipboard
abstract fun SuperCall.handle(): Any?

Handle a call to this proxy.

Link copied to clipboard
open suspend fun SuperCall.handleSuspend(): Any?

Handle a suspending call to this proxy. Defaults to calling handle.