---
name: "getGyroCleanRecordDetail"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.7.14" }
  - { name: "Base library", version: "2.29.0" }
title: "Cleaning Record Map"
---

## getGyroCleanRecordDetail

> [VERSION] @ray-js/ray >= 1.7.14 | Base library >= 2.29.0

### Description

Get cleaning record details for a gyroscope-based robot vacuum

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `params` | `GetGyroCleanRecordDetailParams` | Yes | Query parameters including Device ID, sub-record ID, and pagination info |

### Return Value

Type: `Promise<GetGyroCleanRecordDetailResponse>`

Promise that resolves with the cleaning record's map data and pagination info

##### GetGyroCleanRecordDetailResponse

| Property | Type | Description |
| --- | --- | --- |
| `dataList` | `string[]` | Map data list |
| `startRow` | `string` | Start-row cursor |
| `devId` | `string` | Device ID |
| `mapId` | `number` | Map ID |
| `startTime` | `number` | Cleaning start timestamp |
| `endTime` | `number` | Cleaning end timestamp |
| `subRecordId` | `number` | Sub-record ID |
| `hasNext` | `boolean` | Has next page |

### Referenced Types

##### `interface` GetGyroCleanRecordDetailParams

| Property | Type | Description |
| --- | --- | --- |
| `devId` | `string` | Device ID |
| `subRecordId` | `number` | Sub-record ID |
| `start` | `number` | Start row (startRow) |
| `size` | `number` | Number of items per fetch |


### Examples

```tsx
import React from 'react';
import { Button, getGyroCleanRecordDetail } from '@ray-js/ray';

export default function Demo() {
  const handleFetch = async () => {
    const detail = await getGyroCleanRecordDetail({
      devId: 'your-device-id',
      subRecordId: 12345,
      start: 0,
      size: 100,
    });
    console.log(detail.dataList, detail.hasNext);
  };
  return <Button onClick={handleFetch}>Get record details</Button>;
}
```
