Search code examples
javaandroidpythonkivypyjnius

Implement Java interface from Python using PyJnius


Is there a way to implement Java interface from Python, for example this OnPreparedListener interface?

I've tried Pyjinius but not successful.


Solution

  • After searching some documents, I found that Pyjinius can also implement Java interface.

    Refer to this document if you want to do this: https://github.com/kivy/pyjnius/blob/98596b37be14b7e0342342c1eaaae740574ba040/docs/source/api.rst