---
name: "SmartSupportAbility.isInGateway"
mode: "api"
versionRequirements:
  - { name: "@ray-js/panel-sdk", version: "1.0.0" }
title: "isInGateway - 设备是否在网关下"
summary: "判断设备是否已添加到网关下（仅限单设备）"
---

## SmartSupportAbility.isInGateway

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

> 💡 仅支持单设备，不支持群组环境。

### 描述

判断设备是否已添加到网关下

### 参数

无


### 返回值

无


### 示例代码

#### 示例

```typescript
const inGateway = sdm.support.isInGateway();
if (inGateway) {
  console.log('设备已接入网关');
}
```
