Search code examples
androidpython-3.xchaquopy

Sending multiple return values in python and get in android using chaquopy


Is it possible to get multiple values in android which is sent by python class using Chaquopy?


Solution

  • When a Python function returns multiple values (using the return a, b, c syntax), it's actually returning a tuple. The easiest way to access the individual values in Java or Kotlin is to use PyObject.asList.