# GetSelectionObserverAsync Method

## Overloads

| [GetSelectionObserverAsync(IApp, String)](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetSelectionObserverAsync.htm#Qlik_Sense_Client_SelectionObserver_GetSelectionObserverAsync_Qlik_Engine_IApp_System_String_) |  | Create a SelectionObserver instance. |
| --- | --- | --- |

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

## GetSelectionObserverAsync(IApp, String)

Create a SelectionObserver instance.

### Declaration

```

          public static Task<ISelectionObserver> GetSelectionObserverAsync(IApp app, string stateName = null)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IApp](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IApp.htm) | app | The app to observe. |
| System.String | stateName | The name of the selection state to observe. |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;[ISelectionObserver](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.htm)&gt; | An ISelectionObserver instance. |