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 |
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 void |
showShareTargetDetails(Context context, ShareTarget shareTarget)
Show application details settings screen for given share target.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates 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. |
---|
Show application details settings screen for given share target.
context | The context to use. |
---|---|
shareTarget | Share target for which to display app details. |