JniActuals

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class JniActuals(val className: String = "")(source)

Instead of duplicating the className parameter in each JniActual annotation, you can use this one.

This annotation is applied to top-level objects or classes and replaces JniActual by itself. Each public or internal function inside the annotated object or class will be treated in the same way as if it was annotated with JniActual with className as the parameter of the same name and its own name as methodName parameter.

Properties

Link copied to clipboard

The fully qualified name of the class. E.g., "com.example.NativeHelper". Optional: may be omitted if the annotated object has the same qualifier as the desired class.