---
name: "gotoService"
mode: "api"
versionRequirements:
  - { name: "@ray-js/lock-sdk", version: "1.0.0" }
title: "gotoService - Open the device service center."
summary: "Navigate to device-related services such as cloud storage or AI; optional tab parameter."
---

## gotoService

> [VERSION] @ray-js/lock-sdk >= 1.0.0

### Description

Navigate to host pages such as Value-added Services/Cloud Storage.

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `GotoServiceParams` | No | Navigation params (tab: target service tab) |

### Return Value

Type: `Promise<void>`

Promise resolved by the host

### Referenced Types

##### `interface` GotoServiceParams

| Property | Type | Description |
| --- | --- | --- |
| `tab` | `"cloudStorage" \| "AI" \| "voip"` | Target service tab, `cloudStorage` / `AI` / `voip` (WeChat video intercom) |
| `showGift` | `boolean` | After navigation, show gift/benefit state (view after claiming cloud storage); append `&showGift=true` |


### Examples

```ts
import { gotoService } from '@ray-js/lock-sdk';
gotoService({ tab: 'settings' });
```
