# DeviceSms

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods for composing SMS messages on the client device.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceSms
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceSms
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](/hybrid/start/api/general/wisej.hybrid.device.md) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DeviceSms()

Initializes a new instance of [DeviceSms](/hybrid/start/api/communication/wisej.hybrid.devicesms.md).

## Properties

### ![](/files/CCV9PPenlC1YZvNh1I6R)IsComposeSupported

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Gets a value indicating whether the client device supports composing SMS messages.

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)Compose(sms)

Composes and sends a new SMS message on the client device.

| Parameter | Type                                                                                          | Description                              |
| --------- | --------------------------------------------------------------------------------------------- | ---------------------------------------- |
| **sms**   | [SmsMessage](/hybrid/start/api/communication/wisej.hybrid.shared.communication.smsmessage.md) | The SMS message to be composed and sent. |

This method allows you to compose and send an SMS message on the client device. Ensure that the necessary permissions and configuration are in place for sending SMS messages.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/communication/wisej.hybrid.devicesms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
