Android intent_result
is not documented
#1798
Labels
android
The issue relates to Android mobile support.
documentation
An improvement required in the project's documentation.
#1217 added an Android-specific
intent_result
method, but it isn't documented. Normally we wouldn't document anything that uses a private, underscore-prefixed API, but in this case we can't simply tell people "call the standard Android APIs via Chaquopy", because the API for calling Intents is bound up with Toga's Activity class.The documentation should be something like this:
Once you've created an Intent object, you should
await self._impl.intent_result(intent)
, whereself
is yourApp
object. That will return a dict with two keys:resultCode
andresultData
, which correspond to the arguments of theonActivityResult
method.For a complete example, see #1158 (comment).
The text was updated successfully, but these errors were encountered: