Skip to main content

Crate kael_share

Crate kael_share 

Source
Expand description

Validated outbound share services for Kael applications.

use kael_share::{ShareSheet, ShareType};

let sheet = ShareSheet::builder()
    .subject("Release notes")
    .text("Kael 0.4 is ready")
    .url("https://example.com/releases/0.4")
    .exclude(ShareType::Social)
    .build_checked()?;

assert_eq!(sheet.item_count(), 2);
assert!(sheet.excluded().contains(&ShareType::Social));

Structs§

PlatformShareSupport
Summary of the destinations the current platform backend can launch today.
ShareFile
A bounded in-memory file that can cross both native and browser share APIs.
ShareFileType
File-type identifier used when registering as a share target.
ShareImage
An in-memory image payload that can be materialized for sharing.
ShareItem
A single unit of content to share through the operating system.
ShareReceiver
Registration handle for share-target callbacks.
ShareSheet
A share request configured with payloads and excluded destination types.
ShareSheetBuilder
Builder for composing a checked share sheet from common payload types.

Enums§

ShareError
A checked share failure that applications can handle without parsing text.
ShareResult
The outcome reported by a share backend.
ShareType
High-level share destinations that a backend may support.

Functions§

cleanup_share_temps
Removes stale kael-share-* temporary directories older than max_age.

Type Aliases§

ShareOperationResult
Result returned by the typed portable share API.