PAM Native Share Extension
Start here
Section titled “Start here”Every PAM Native product runs on the PAM runtime. Install and verify PAM first, create a Native application, and add this package through PAM Composer:
curl -fsSL https://github.com/push-in/pam/releases/latest/download/install.sh | shpam doctorpam init my-app --template nativecd my-apppam composer require pushinbr/pam-native-share-extensionpam doctorpam native dev(new ShareInbox())->drain(function (array $items): void { foreach ($items as $item) handleSharedItem($item);});ShareInbox drains process-safe platform items; SharedItem exposes normalized
text, URL, or copied-file value; SharedItemKind is an integer-backed type.
Drain after launch and each resume. Returned entries are consumed, so move files
that must survive into application-owned storage before completion. iOS app and
extension share group.<application-id>.pam-native; Android intent filters are
generated from the package manifest. Never trust MIME, extension, contents, or
size—validate before parsing/upload.
ShareExtensionPluginProvider registers the extension and inbox contract.