# GetSelectionObserver Method

## Overloads

| [GetSelectionObserver(IApp, String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetSelectionObserver.htm#Qlik_Sense_Client_AppExtensions_GetSelectionObserver_Qlik_Engine_IApp_System_String_) |  | Get a selection observer instance. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetSelectionObserver.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.AppExtensions.GetSelectionObserver.htm)

## GetSelectionObserver(IApp, String)

Get a selection observer instance.

### Declaration

```

          public static ISelectionObserver GetSelectionObserver(this IApp app, string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IApp](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.htm) | app | The app for which to observe selections. |
| System.String | stateName | The name of the selection state to observe. The value `null` implies the default state. |

### Returns

| Type | Description |
| --- | --- |
| [ISelectionObserver](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.htm) | A selection observer instance. |