Skip to main content

Overview

Returns the current hostname of the device.
const useHostname: () => string | undefined

Usage

import { useHostname } from 'node-fullykiosk';

function DeviceInfo() {
  const hostname = useHostname();

  return (
    <div>
      <h2>Device Hostname</h2>
      <p>{hostname || 'Not available'}</p>
    </div>
  );
}

Return Value

hostname
string | undefined
The device hostname, or undefined if Fully Kiosk Browser is not available.

Build docs developers (and LLMs) love