Package com.pspdfkit.ui.actionmenu
Class DefaultSharingMenu
-
- All Implemented Interfaces:
public class DefaultSharingMenu extends SharingMenu
Displays fixed actions for printing and opening documents in addition to standard share actions shown in SharingMenu.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
DefaultSharingMenu.SharingMenuListener
Callback for actions performed inside sharing menu.
-
Constructor Summary
Constructors Constructor Description DefaultSharingMenu(FragmentActivity activity, PdfDocument document, DefaultSharingMenu.SharingMenuListener listener)
-
Method Summary
Modifier and Type Method Description void
setSharingEnabled(boolean isShareEnabled)
Controls whether share action is enabled. boolean
show()
Shows action menu. void
setPrintingEnabled(boolean isPrintingEnabled)
Controls whether print action is enabled. -
-
Constructor Detail
-
DefaultSharingMenu
DefaultSharingMenu(FragmentActivity activity, PdfDocument document, DefaultSharingMenu.SharingMenuListener listener)
- Parameters:
activity
- The activity to use as context.document
- Loaded document that will be shared from this menu.listener
- Callback for sharing menu actions.
-
-
Method Detail
-
setSharingEnabled
void setSharingEnabled(boolean isShareEnabled)
Controls whether share action is enabled.
-
show
boolean show()
Shows action menu.
- Returns:
True is going to be shown.
-
setPrintingEnabled
void setPrintingEnabled(boolean isPrintingEnabled)
Controls whether print action is enabled.
-
-
-
-