# Device Class

> Create the `Device` object, that you want to connect with.

Create the `Device` object, that you want to connect with.

## Definition

**Namespace**: UiPath.MobileAutomation.API.Contracts

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

## Syntax

```
public class Device
```

The `Device` type exposes the following members.

## Constructors

```
public Device()
```

`Device`
:   Initializes a new instance of the `Device` class.

## Properties

### Capabilities

A collection of `<string, string>` pairs that specify the
capabilities of the device you are connected to.

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**: [Dictionary](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=net-8.0)< [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0),  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)>

```
public Dictionary<string, string> Capabilities { get; }
```

### DeviceName

The name of a particular device to automate (for example,  **iPhone 13**).

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**:  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)

```
public string DeviceName { get; }
```

### DisplayName

The display name of the device.

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**:  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)

```
public string DisplayName { get; }
```

### HttpHeaders

A collection of `<string, string>` pairs that represent custom Http
Headers that you want to add to the default Http requests.

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**: [Dictionary](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=net-8.0)< [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0),  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)>

```
public Dictionary<string, string> HttpHeaders { get; }
```

### PlatformName

The type of platform hosting the browser.

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**: `PlatformType`

```
public PlatformType PlatformName { get; }
```

### PlatformVersion

The version of a platform (for example, for iOS, **16.0**).

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**:  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)

```
public string PlatformVersion { get; }
```

### Url

The Appium server URL you want to use to connect to a mobile device.

#### Definition

**Namespace**: UiPath.MobileAutomation.API.Models

**Assembly**: UiPath.MobileAutomation.API (in UiPath.MobileAutomation.API.dll)

#### Syntax

**Property Value**:  [String](https://learn.microsoft.com/en-us/dotnet/api/system.string?view=net-8.0)

```
public string Url { get; }
```
