Sharing Menu
Bottom sheet menu displaying list of targets for sharing a document. The menu will automatically resolve share targets (i.e. apps installed on the current device) by querying the Android package manager. You can configure the menu to only show specific targets based on a ShareAction or filter Intent.
There are two ways to configure the menu:
- Calling setShareAction will tell the menu to display all apps that can handle the given share action. Valid actions are SEND and VIEW.
- Calling setShareIntents will make the menu display all apps that handle the provided intents. Use this if you only want to share with a small subset of apps (for example email clients).
Inheritors
Constructors
Link copied to clipboard
constructor(@NonNull activity: FragmentActivity, @Nullable listener: SharingMenu.SharingMenuListener)
Creates a new instance of SharingMenu.
Types
Link copied to clipboard
interface SharingMenuListener
Listener for being notified of UI events on a SharingMenu.