---
name: "getDeviceOfflineReminderWarningText"
mode: "kit"
versionRequirements:
  - { name: "DeviceKit", version: "2.2.0" }
platform:
  - "iOS"
  - "Android"
async: true
---

## getDeviceOfflineReminderWarningText

> [VERSION] DeviceKit >= 2.2.0

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Get the warning text shown after turning off the offline alert switch

### Parameters

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `complete` | `() => void` | No | - | Completion callback (always executed, on success or failure) |
| `success` | `(params: Object) => void` ↓see below | No | - | Callback for successful API call |
| `fail` | `(params: Object) => void` ↓see below | No | - | Callback for API call failure |

#### success callback parameters

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `warningText` | `string` | `3.3.0` | Warning text when offline alerts are turned off |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extensions |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Extended error code |
| `errorMsg` | `string` | Extended error message |


### Examples

#### Demo

```tsx
ty.device.getDeviceOfflineReminderWarningText({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
