Package com.pspdfkit.document.sharing
Class ShareTarget
-
- All Implemented Interfaces:
public class ShareTarget
Defines single target for share action.
-
-
Field Summary
Fields Modifier and Type Field Description public final ShareAction
shareAction
public final String
packageName
public final String
label
public final Drawable
icon
-
Constructor Summary
Constructors Constructor Description ShareTarget(String packageName, String label, Drawable icon, ShareAction shareAction)
-
Method Summary
Modifier and Type Method Description ShareAction
getShareAction()
Returns share action used for sharing to share target. String
getPackageName()
Returns share target package name. String
getLabel()
Returns name of the target app displayed to the user in share dialog. Drawable
getIcon()
Returns icon of the target app. -
-
Constructor Detail
-
ShareTarget
ShareTarget(String packageName, String label, Drawable icon, ShareAction shareAction)
- Parameters:
packageName
- Package name of the target app.label
- Label of the target app.icon
- Icon of the target app.shareAction
- Action used for sharing.
-
-
Method Detail
-
getShareAction
@NonNull() ShareAction getShareAction()
Returns share action used for sharing to share target.
-
getPackageName
@NonNull() String getPackageName()
Returns share target package name.
-
getLabel
@NonNull() String getLabel()
Returns name of the target app displayed to the user in share dialog.
-
-
-
-