Enabling Kiosk Mode {#pax-aio-kiosk-mode-enable-intro}
======================================================

Use Kiosk mode to hide the navigation and status bars on a PAX terminal and to lock your application to the device screen. When this mode is enabled, unauthorized users cannot minimize the app or access other terminal functions.
Kiosk mode is not persistent across device restarts. Your application must be able to re-enable Kiosk mode when the terminal restarts.

Enable Kiosk Mode {#pax-aio-kiosk-mode-enable-task}
===================================================

Follow these steps to enable Kiosk mode.

1. Determine if the device is already in Kiosk mode.

   ```
   val isCurrentlyInKioskMode = PaxCommand.isKioskMode(context)

       if (isCurrentlyInKioskMode) {
           // Device is in kiosk mode
           Log.d(TAG, "Device is currently in kiosk mode")
       } else {
           // Device is in normal mode
           Log.d(TAG, "Device is in normal mode")
       }
   ```
2. If the device is not in Kiosk mode, set Kiosk mode to `true`.

   ```
   PaxCommand.setKioskMode(context, true)
       Log.d(TAG, "Kiosk mode has been enabled")
   ```

