Disabling Share, Document Info, and Print Options in Your Android App
This guide will walk you through the steps to disable the Share, Document Info, and Print options within your Android app. By following these instructions, you can easily remove these options from the app interface.
Disabling the Document Info Option
The Document Info option provides users with details about a document. If you prefer to hide this option from the interface, follow the steps below:
-
Use the
disableDocumentInfoView()
method to remove the Document Info option from the configuration. -
Add the following line to your configuration setup:
configuration.disableDocumentInfoView();
Disabling the Share Option
The Share option allows users to share the document through various platforms. If you want to disable this feature, follow the steps below:
-
Use the
setEnabledShareFeatures()
method withShareFeatures.none()
to disable all sharing options. -
Implement the following code in your configuration:
configuration.setEnabledShareFeatures(ShareFeatures.none());
Disabling the Print Option
The Print option allows users to print the document directly from the app. To remove this feature, follow the steps below:
-
Use the
disablePrinting()
method to disable the Print option. -
Add the following line to your configuration:
configuration.disablePrinting();
Summary
After following the steps above, your final configuration setup will look similar to the following:
configuration.disableDocumentInfoView(); configuration.setEnabledShareFeatures(ShareFeatures.none()); configuration.disablePrinting();
With this configuration, the Document Info, Share, and Print options will be disabled, providing a cleaner and more focused user interface.
Remember to test your implementation thoroughly to ensure it meets your specific requirements and provides a smooth user experience.
If you encounter any issues or have further questions about customizing hyperlink behavior, don’t hesitate to reach out to our Support team.