dvApplyKioskContainment function
Installs policy's containment for the process.
Called where the kiosk is installed. A policy that blocks nothing clears the flags rather than leaving the last policy's in place, so a staff-mode switch or a reload is not a kiosk that stays locked.
Implementation
void dvApplyKioskContainment(DVKioskPolicy? policy) {
_clipboard = policy?.enabled == true && policy?.blockClipboard == true;
_textSelection =
policy?.enabled == true && policy?.blockTextSelection == true;
_holding = policy?.enabled == true ? policy : null;
}