How to implement a interface dynamically for kotlin native