UserRights

interface UserRights

Manages consumption of user rights and permissions.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
abstract val canCopy: Boolean

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

Link copied to clipboard
abstract val canPrint: Boolean

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

Functions

Link copied to clipboard
abstract fun canCopy(text: String): Boolean

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

Link copied to clipboard
abstract fun canPrint(pageCount: Int): Boolean

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

Link copied to clipboard
abstract suspend fun copy(text: String): Boolean

Consumes the given text with the copy right.

Link copied to clipboard
abstract suspend fun print(pageCount: Int): Boolean

Consumes the given amount of pages with the print right.