| java.lang.Object | |
| ↳ | com.pspdfkit.document.sharing.DocumentSharingIntentHelper |
Helper for creating share intents.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | MIME_TYPE_PDF | PDF mime type. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DocumentSharingIntentHelper() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static Intent |
createChooser(List<Intent> targetIntents, CharSequence title)
Convenience function for creating a ACTION_CHOOSER Intent.
| ||||||||||
| static Intent |
getShareIntent(Context context, Uri shareUri, ShareTarget shareTarget)
Creates share intent for sharing
shareUri to given shareTarget. | ||||||||||
| static Intent |
getShareIntent(Context context, Uri shareUri, ShareAction shareAction)
Creates share intent for sharing
shareUri using given shareAction. | ||||||||||
| static List<Intent> |
getShareIntents(Context context, Uri shareUri, ShareAction... shareActions)
Generates list of sharing intents for all apps supporting given
ShareAction. | ||||||||||
| static Observable<List<Intent>> |
getShareIntentsAsync(Context context, Uri shareUri, ShareAction shareAction)
Generates list of sharing intents for all apps supporting given
ShareAction asynchronously. | ||||||||||
| static ShareTarget | getShareTarget(Context context, ShareAction shareAction, String targetPackageName) | ||||||||||
| static ShareTarget | getShareTarget(Context context, ShareAction shareAction, String targetPackageName, String sharedFileName) | ||||||||||
| static List<ShareTarget> |
getShareTargets(Context context, List<Intent> intents)
Generates list of share targets for all apps handling given intents.
| ||||||||||
| static Observable<List<ShareTarget>> |
getShareTargetsAsync(Context context, List<Intent> intents)
Generates list of share targets for all apps handling given intents.
| ||||||||||
| static Intent |
getShareTextIntent(String text)
Generates intent for sharing plain text.
| ||||||||||
| static List<Intent> |
queryMailToActivities(Context context, Intent intent)
Retrieve all intents to email clients that can be target for the given intent.
| ||||||||||
| static void |
showShareTargetDetails(Context context, ShareTarget shareTarget)
Show application details settings screen for given share target.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Convenience function for creating a ACTION_CHOOSER Intent. Builds a new ACTION_CHOOSER Intent that wraps the given target intent, also optionally supplying a title.
null if targetIntents was emptyCreates share intent for sharing shareUri to given shareTarget.
Creates share intent for sharing shareUri using given shareAction.
Generates list of sharing intents for all apps supporting given ShareAction.
Note: this call may block for a while and should not be invoked on the main thread.
| shareUri | Uri that we want to share. |
|---|---|
| shareActions | Share actions that should be used. |
Generates list of sharing intents for all apps supporting given ShareAction asynchronously.
| context | Context to use. |
|---|---|
| shareUri | Uri that we want to share. |
| shareAction | Share actions that should be used. |
Creates ShareTarget for given shareAction and targetPackageName.
| context | The context to use. |
|---|---|
| shareAction | Share action to create share target for. |
| targetPackageName | Package name of share target. |
ShareTarget with data resolved from package manager or null if ShareTarget could not be resolved.
Creates ShareTarget for given shareAction and targetPackageName.
| context | The context to use. |
|---|---|
| shareAction | Share action to create share target for. |
| targetPackageName | Package name of share target. |
| sharedFileName | File name of the file that should be shared. |
ShareTarget with data resolved from package manager or null if ShareTarget could not be resolved.
Generates list of share targets for all apps handling given intents.
Note: this call may block for a while and should not be invoked on the main thread.
| intents | Intents used for sharing. |
|---|
Generates list of share targets for all apps handling given intents.
| intents | Intents used for sharing. |
|---|
Generates intent for sharing plain text.
| text | Text to be shared. |
|---|
Retrieve all intents to email clients that can be target for the given intent.
| context | Context of the calling component. |
|---|---|
| intent | Intent for querying possible email clients targeting this intent. |
Show application details settings screen for given share target.
| context | The context to use. |
|---|---|
| shareTarget | Share target for which to display app details. |