Share directly to a specific social app when available, otherwise fall back to the share sheet.
SocialComposerIsComposerAvailable
SocialShareComposerShow
SocialShareComposerGetError (optional)
SocialShareComposerGetError
ShareSheetShow (fallback)
ShareSheetShow
isAvailable (Bool)
isAvailable
State: CheckAvailability
CheckAvailability
Action: SocialComposerIsComposerAvailable β isAvailable
Branch:
If isAvailable β ShowSocialComposer
ShowSocialComposer
Else β ShowShareSheet (fallback)
ShowShareSheet
State: ShowSocialComposer
Action: SocialShareComposerShow
Events:
closedWithDoneEvent β Done
closedWithDoneEvent
closedWithCancelledEvent β Cancelled
closedWithCancelledEvent
closedWithUnknownEvent β Unknown (optional handling)
closedWithUnknownEvent
closedWithFailedEvent β SocialShareComposerGetError (optional) then fallback or show error
closedWithFailedEvent
Availability depends on platform + whether the target app is installed/configured.
Last updated 1 month ago