KoInterfaceDelegateProvider

An interface representing a Kotlin declaration that provides access to interface delegate information.

Implementations of this interface offer access to details about an interface delegate, allowing classes to delegate implementation of an interface to another object. Interface delegation is useful for reusing functionality and composing behavior without inheritance.

For example, in Kotlin, you can delegate an interface implementation to an object using the by keyword:

interface SampleSuperInterface

class SampleClass(sampleProperty: SampleSuperInterface) : SampleSuperInterface by sampleProperty

Inheritors

Properties

Link copied to clipboard
abstract val delegateName: String?

Name of the delegate.

Functions

Link copied to clipboard
abstract fun hasDelegate(delegateName: String? = null): Boolean

Determines whatever declaration has a delegate with given name.