Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class AndroidContext
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
expect annotation class AndroidContext

Annotation for class which require an instance of Android Context.

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class AndroidContext
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class AndroidContext
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Controller(val type: ControllerType)
@Target(allowedTargets = [AnnotationTarget.CLASS])
expect annotation class Controller(val type: ControllerType = ControllerType.Default)

All methods contained by a class annotated with Controller will be added to the generated iOS/Android adapters.

@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Controller(val type: ControllerType)

Annotation which informs Klutter to implement multiple method channel calls to pass KlutterEvents to this Controller class.

@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Controller(val type: ControllerType)
Link copied to clipboard
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class Event(val name: String)
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
expect annotation class Event(val name: String = "")

Annotation which denotes the annotated function as part of the Flutter - KMP interface.
When a function with this annotation is scanned, a method channel call delegation will be generated.

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class Event(val name: String)
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class Event(val name: String)
Link copied to clipboard
@Serializable
abstract class JSON<T>

Parent Type for all custom classes which are passed between Flutter and KMP.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Response
@Target(allowedTargets = [AnnotationTarget.CLASS])
expect annotation class Response

Annotation for data classes in the KMP module which are possibly used by functions annotated with dev.buijs.klutter.annotations.Event.

@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Response
@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class Response