canPrint

open override fun canPrint(pageCount: Int): Boolean

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.


open override val canPrint: Boolean = true

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.