Package 

Interface ContentProtectionService.UserRights

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean canCopy(String text) Returns whether the user is allowed to copy the given text to the pasteboard.
      abstract Boolean copy(String text) Consumes the given text with the copy right.
      abstract Boolean canPrint(Integer pageCount) Returns whether the user is allowed to print the given amount of pages.
      abstract Boolean print(Integer pageCount) Consumes the given amount of pages with the print right.
      abstract Boolean getCanCopy() Returns whether the user is currently allowed to copy content to the pasteboard.
      abstract Boolean getCanPrint() Returns whether the user is currently allowed to print the content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • canCopy

         abstract Boolean canCopy(String text)

        Returns whether the user is allowed to copy the given text to the pasteboard.

        This is more specific than the canCopy property, and can return false if the given text exceeds the allowed amount of characters to copy.

        To be used before presenting, for example, a pop-up to share a selected portion of content.

      • copy

         abstract Boolean copy(String text)

        Consumes the given text with the copy right.

        Returns whether the user is allowed to copy the given text.

      • canPrint

         abstract Boolean canPrint(Integer pageCount)

        Returns whether the user is allowed to print the given amount of pages.

        This is more specific than the canPrint property, and can return false if the given pageCount exceeds the allowed amount of pages to print.

        To be used before attempting to launch a print job, for example.

      • print

         abstract Boolean print(Integer pageCount)

        Consumes the given amount of pages with the print right.

        Returns whether the user is allowed to print the given amount of pages.

      • getCanCopy

         abstract Boolean getCanCopy()

        Returns whether the user is currently allowed to copy content to the pasteboard.

        Navigators and reading apps can use this to know if the "Copy" action should be greyed out or not. This should be called every time the "Copy" action will be displayed, because the value might change during runtime.

      • getCanPrint

         abstract Boolean getCanPrint()

        Returns whether the user is currently allowed to print the content.

        Navigators and reading apps can use this to know if the "Print" action should be greyed out or not.