# IsDesktopModeAsync Method

## Overloads

| [IsDesktopModeAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm#Qlik_Engine_Hub_IsDesktopModeAsync) |  | Indicates whether the user is working in Qlik Sense Desktop. |
| --- | --- | --- |
| [IsDesktopModeAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm#Qlik_Engine_Hub_IsDesktopModeAsync_Qlik_Engine_AsyncHandle_) |  | Indicates whether the user is working in Qlik Sense Desktop. |
| [IsDesktopModeAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm#Qlik_Engine_Hub_IsDesktopModeAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__) |  | Indicates whether the user is working in Qlik Sense Desktop. |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm)

## IsDesktopModeAsync()

Indicates whether the user is working in Qlik Sense Desktop.

### Declaration

```

          public Task<bool> IsDesktopModeAsync()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

### Implements

[IHub.IsDesktopModeAsync()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsDesktopModeAsync.htm#Qlik_Engine_IHub_IsDesktopModeAsync)

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm)

## IsDesktopModeAsync(AsyncHandle)

Indicates whether the user is working in Qlik Sense Desktop.

### Declaration

```

          public Task<bool> IsDesktopModeAsync(AsyncHandle asyncHandle)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;System.Boolean&gt; |  |

### Implements

[IHub.IsDesktopModeAsync(AsyncHandle)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsDesktopModeAsync.htm#Qlik_Engine_IHub_IsDesktopModeAsync_Qlik_Engine_AsyncHandle_)

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Hub.IsDesktopModeAsync.htm)

## IsDesktopModeAsync&lt;T&gt;(AsyncHandle, Func&lt;Response, T&gt;)

Indicates whether the user is working in Qlik Sense Desktop.

### Declaration

```
public Task<T> IsDesktopModeAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [AsyncHandle](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AsyncHandle.htm) | asyncHandle | Handle to asynchronous method request |
| System.Func&lt;[Response](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IO.Response.htm), T&gt; | onResult | Continuation function |

### Returns

| Type | Description |
| --- | --- |
| System.Threading.Tasks.Task&lt;T&gt; |  |

### Type Parameters

| Name | Description |
| --- | --- |
| T |  |

### Implements

[IHub.IsDesktopModeAsync<T>(AsyncHandle, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.IHub.IsDesktopModeAsync.htm#Qlik_Engine_IHub_IsDesktopModeAsync__1_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__)