# DevicePreferencesControls

How the contract scripts the preferences. A real adapter implements this by
mocking `matchMedia`.

This is an interface exported by `@mapcairn/core/contracts`, checked against version 0.2.0.

## Signature

```ts
import type { DevicePreferencesControls } from "@mapcairn/core/contracts";
 
interface DevicePreferencesControls
```

## Methods

### set

```ts
set(patch: Partial<DevicePreferencesValue>): void;
```

Changes a preference, as the user or the device would.

- `patch` (`Partial<DevicePreferencesValue>`)

## See also

- [`DevicePreferencesValue`](https://docs.mapcairn.com/api/core/DevicePreferencesValue.md)

Source: [packages/core/src/contracts/devicePreferences.contract.ts:13](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/devicePreferences.contract.ts#L13)
