beeware / toga

A Python native, OS native GUI toolkit.
https://toga.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
4.29k stars 668 forks source link

Implement sharing API #2858

Open hyuri opened 1 day ago

hyuri commented 1 day ago

What is the problem or limitation you are having?

At least iOS, Android and macOS seem to offer an API to share a document with another app. As seen in:

iOS Android macOS
image image image

Toga doesn't currently offer that.

I'm writing an app that produces a file, and it would be handy if the user could simply share this file with other apps, directly from my app.

Describe the solution you'd like

Implement sharing API, that allows us to present the user with the option to share a document/file with another app.

Describe alternatives you've considered

None

Additional context

No response

freakboy3742 commented 1 day ago

I can see how this could be possible and/or useful. What's the "common subset" of sharing features on iOS, macOS and Android? What (if any) permission controls are needed? What's the proposed API design? Are there any prospects of an analogous API for Windows, GTK, Console, Web...?

hyuri commented 19 hours ago

I can see how this could be possible and/or useful. What's the "common subset" of sharing features on iOS, macOS and Android? What (if any) permission controls are needed? What's the proposed API design? Are there any prospects of an analogous API for Windows, GTK, Console, Web...?

Honestly, I have no idea. Those questions fall outside of my domain. Just wanted to propose the idea. Hoping someone more knowledgeable can answer those.