> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# getTemplateSize

APISummary
Get the size of current template.

## Syntax

### Harmony

```typescript
public getTemplateSize(): number;
```

#### Return

- Template size.

## Compatibility

**Compatibility Table**

**Query:** `lynx-native-api.template-bundle.get-template-size`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-native-api/template-bundle/get-template-size.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| get-template-size | Yes (2.8) | Yes (3.4) | No | No | No | No |

**`get-template-size`**

Get the size of current template.

**Specifications:**

