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

# getExtraInfo

APISummary
读取前端模板 `pageConfig` 中配置的 `extraInfo` 字段的内容。

## 语法

### Android

```java
public Map<String, Object> getExtraInfo();
```

#### 返回值

- 当前端未配置 `extraInfo` 或在空的 `TemplateBundle` 对象上调用时，返回 `null`，否则返回 `extraInfo` 字段。

### iOS

```objc
- (NSDictionary *_Nullable)extraInfo;
```

#### 返回值

- 当前端未配置 `extraInfo` 或在空的 `TemplateBundle` 对象上调用时，返回 `nil`，否则返回 `extraInfo` 字段。

### Harmony

```typescript
public getExtraInfo(): Map<string, Object>;
```

#### 返回值

- 当前端未配置 extraInfo 或在空的 TemplateBundle 对象上调用时，返回 null。

## 兼容性

**Compatibility Table**

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

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

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

**`get-extra-info`**

Read the content of the extraInfo field configured in the pageConfig of the front-end template.

**Specifications:**

