Hierarchy

Methods

  • Check if the device type is 'desktop'

    Returns

    true/false

    Returns boolean

  • Check if the device type is 'phone'

    Returns

    true/false

    Returns boolean

  • Check if the device type is 'tablet'

    Returns

    true/false

    Returns boolean

  • Subscribe to state changes

    Returns

    unsubscribe callback

    Parameters

    • callback: ((...args: unknown[]) => void)

      function to call when subscription updates

        • (...args: unknown[]): void
        • Parameters

          • Rest ...args: unknown[]

          Returns void

    • Optional options: StateOptions

      options for the state selector

    Returns (() => void)

      • (): void
      • Subscribe to state changes

        Returns

        unsubscribe callback

        Returns void