Companion

Helper for calling swift-objc-mapped functions, and bridging exceptions across.

Usage:

swiftcall { SwiftObj.func(arg1, arg2, .., argN, error) }

error is provided by the implicit receiver object, and will be mapped to a SwiftException if the swift call throws.

Functions

Link copied to clipboard
operator fun <T> invoke(call: swiftcall.() -> T?): T