SmartSupportAbility.isInGateway()

Requires:
@ray-js/panel-sdk≥1.0.0

Description

Determine whether the device has been added to a gateway

Parameters

None

Return Value

Type: boolean
Whether in a gateway context

Examples

Example

const inGateway = sdm.support.isInGateway();
if (inGateway) {
  console.log('Device is connected to the gateway');
}