java.lang.Object | |||
↳ | com.pspdfkit.ui.actionmenu.ActionMenu | ||
↳ | com.pspdfkit.ui.actionmenu.SharingMenu | ||
↳ | com.pspdfkit.ui.actionmenu.DefaultSharingMenu |
Displays fixed actions for printing and opening documents in addition to standard share actions
shown in SharingMenu
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | DefaultSharingMenu.SharingMenuListener | Callback for actions performed inside sharing menu. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultSharingMenu(FragmentActivity activity, PdfDocument document, DefaultSharingMenu.SharingMenuListener listener) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setPrintingEnabled(boolean isPrintingEnabled)
Controls whether print action is enabled.
| ||||||||||
void |
setSharingEnabled(boolean isShareEnabled)
Controls whether share action is enabled.
| ||||||||||
boolean |
show()
Shows action menu.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
onMenuItemClicked(ActionMenuItem menuItem)
Called when item inside action menu is clicked.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
activity | The activity to use as context. |
---|---|
document | Loaded document that will be shared from this menu. |
listener | Callback for sharing menu actions. |
Controls whether print action is enabled.
Controls whether share action is enabled.
Shows action menu.
Called when item inside action menu is clicked.