---
id: fast-foundation.matchmediabehavior.constructlistener
title: MatchMediaBehavior.constructListener() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [MatchMediaBehavior](./fast-foundation.matchmediabehavior.md) &gt; [constructListener](./fast-foundation.matchmediabehavior.constructlistener.md)

## MatchMediaBehavior.constructListener() method

Constructs a function that will be invoked with the MediaQueryList context

<b>Signature:</b>

```typescript
protected abstract constructListener(source: typeof FASTElement): MediaQueryListListener;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  source | typeof [FASTElement](./fast-element.fastelement.md) | the element the behavior is acting on. |

<b>Returns:</b>

[MediaQueryListListener](./fast-foundation.mediaquerylistlistener.md)
