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

## registerTopicListListener

> [VERSION] DeviceKit >= 2.5.1

> [PLATFORM] iOS, Android

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

### Description

Register the list of topics to listen to [m/m/i topics only]

### Parameters

| Property | Type | Required | Default | Since | Description |
| --- | --- | --- | --- | --- | --- |
| `topicList` | `string[]` | Yes | - | `2.5.1` | Topic list to listen to |
| `complete` | `() => void` | No | - | - | Complete callback (executed on both success and failure) |
| `success` | `() => void` | No | - | - | Success callback |
| `fail` | `(params: Object) => void` ↓see below | No | - | - | Failure callback |

#### fail callback parameters

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

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

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