Expand description
System share sheet: hand a file (and optional text) to the OS share UI so the user can send it to another app.
Like crate::uri_handler, the compiled-in default is a no-op that reports
ShareError::Unsupported; platform backends install a real implementation
through set_platform_share_sheet (iOS UIActivityViewController, Android
ACTION_SEND, the Web Share API). Desktop has no system share sheet — apps
export through a save dialog instead — so is_supported is false there and
the UI can offer “Save…” rather than “Share”.
Structs§
- Share
Content - A single file to share, with an optional accompanying message/subject.
Enums§
Traits§
- Share
Sheet - The OS share sheet. Installed by the platform backend; the default is a
no-op that reports
ShareError::Unsupported.
Functions§
- Provide
Share Sheet - clear_
platform_ share_ sheet - Removes any registered platform share sheet (tests and teardown).
- default_
share_ sheet - local_
share_ sheet - set_
platform_ share_ sheet - Installs a platform share sheet, replacing any previously installed one. Backends with main-thread UIKit / Activity access register here.