I see, would be very interesting how this works for the android lib and not for custom classes. simple work around would be to define a custom overload with a function reference which gets called by an anonymous interface implementation, but thats some weird overhead for it, when it works for the android library...