XShortcuts class

The per-conversation targets the system share sheet offers above the app row — Android's Direct Share, iOS's share suggestions.

Two unrelated OS mechanisms behind one surface: Android donates dynamic shortcuts (which also fill the launcher icon's long-press menu, and need a matching <share-target> in the app's share-targets.xml), iOS donates INSendMessageIntent interactions to SiriKit and lets the system decide what to suggest. macOS has no equivalent.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

debugSupported ↔ bool?
Forces supported on a host that has no share targets, so a consumer's tests can exercise donate/clear against a mock ux/shortcuts handler instead of skipping the code path entirely.
getter/setter pair
supported → bool
Whether this platform offers per-conversation share targets.
no setter

Static Methods

clear() → Future<void>
Drops every donated target — logout, account switch.
Replaces the donated set with targets, ranked in list order. The OS caps how many it keeps; extras past the cap are dropped.