# com.herewhite.sdk.domain.WindowAppParam class 参考 (/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="details"></a>

## 详细描述 [#详细描述]

适用版本：**Whiteboard Android SDK 2.16.134**。

## 属性与 JSON 字段 [#属性与-json-字段]

Java 非公开字段通过对应 getter/setter 访问；可选包装类型未设置时通常不写入 JSON。初值包含字段声明及无参构造中的直接赋值；其他构造参数以签名为准。

| 字段 | 声明 | 源码初值 | 说明 |
| --- | --- | --- | --- |
| [KIND_DOCSVIEWER](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ab9ca7d9391414e2d0abb6612aeeba7fa) | `String KIND_DOCSVIEWER` | "DocsViewer" | [api-center-table-0 details](#table-slot-api-center-table-0) |
| [KIND_MEDIAPLAYER](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a14f33045359a52cdd8cfb73686a83cc2) | `String KIND_MEDIAPLAYER` | "MediaPlayer" | [api-center-table-1 details](#table-slot-api-center-table-1) |
| [KIND_SLIDE](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a270ad4e6acbc5ca9bfb2742774e800f1) | `String KIND_SLIDE` | "Slide" | [api-center-table-2 details](#table-slot-api-center-table-2) |
| [KIND_PRESENTATION](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ad265592a36b556312f061d850988fc1e) | `String KIND_PRESENTATION` | "Presentation" | [api-center-table-3 details](#table-slot-api-center-table-3) |
| [kind](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#aeb79805a1b09acec7e8ccc4823ace965) | `String kind` | 未显式赋值 | [api-center-table-4 details](#table-slot-api-center-table-4) |
| [options](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a33a4be300fee5d9c153ecc6be1915221) | `Options options` | 未显式赋值 | [api-center-table-5 details](#table-slot-api-center-table-5) |
| [attributes](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a081291b231784d3f999505ddf2710ab8) | `Attributes attributes` | 未显式赋值 | [api-center-table-6 details](#table-slot-api-center-table-6) |
| [originSize](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ad1c6d1c91bb04ca691c46d5e7f536de8) | `WindowOriginSize originSize` | 未显式赋值 | [api-center-table-7 details](#table-slot-api-center-table-7) |

<a id="table-slot-api-center-table-0"></a>

**api-center-table-0 details**

公开常量或属性。

<a id="table-slot-api-center-table-1"></a>

**api-center-table-1 details**

公开常量或属性。

<a id="table-slot-api-center-table-2"></a>

**api-center-table-2 details**

公开常量或属性。

<a id="table-slot-api-center-table-3"></a>

**api-center-table-3 details**

公开常量或属性。

<a id="table-slot-api-center-table-4"></a>

**api-center-table-4 details**

模型属性；通过对应 getter/setter 访问。

<a id="table-slot-api-center-table-5"></a>

**api-center-table-5 details**

模型属性；通过对应 getter/setter 访问。

<a id="table-slot-api-center-table-6"></a>

**api-center-table-6 details**

模型属性；通过对应 getter/setter 访问。

<a id="table-slot-api-center-table-7"></a>

**api-center-table-7 details**

正数 width/height 组成的归一化参考尺寸。WindowParams 用于 MainView；WindowAppParam 用于 Slide/Presentation 并写入 attributes.originSize。

| 公开成员签名 |  |
| --- | --- |
|  | [WindowAppParam](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#af3131b0aa75480d0d0eb448f8c49b001) (String kind, Options options, Attributes attributes) |
| WindowAppParam | [createDocsViewerApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a013574d1b67270f4c020cdaf825b4df8) (String scenePath, Scene[] scenes, String title) |
| WindowAppParam | [createMediaPlayerApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ac5f9d53527157760990791b1bbe07a7e) (String src, String title) |
| WindowAppParam | [createSlideApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#afa3d33545ab8059ee68e3f7ea6782fcf) (String scenePath, Scene[] scenes, String title) |
| WindowAppParam | [createPresentationApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ae6a1a959954ee33f5fa1cfbd97728ec1) (String scenePath, Scene[] scenes, String title) |
| WindowAppParam | [createSlideApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a5f52b7bc23c48dffde7f6becf03b2fb2) (String taskUuid, String prefixUrl, String title) |
| WindowAppParam | [createSlideApp](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a62a84d0005fc065c12138a4d73176a74) (String taskUuid, String prefixUrl, String title, WhiteSlideCustomLink[] customLinks) |
| String | [getKind](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a238ed8789126f4de510c493e3053e336) () |
| Options | [getOptions](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#abc2c50155856928856ebdd39547b31de) () |
| Attributes | [getAttributes](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a105b0c625e42408956c6ea800b720113) () |
| WindowAppParam | [setOriginSize](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#a577bddf002157b1233882b076c91f3bf) (WindowOriginSize originSize) |
| WindowOriginSize | [getOriginSize](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#acc634644b0af448e869c10d0c1460b30) () |
| Attributes | [getResolvedAttributes](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param#ac1938344f9a4b6e3738e9499b8ed739e) () |

## 变量说明 [#变量说明]

<a id="ab9ca7d9391414e2d0abb6612aeeba7fa"></a>

### KIND_DOCSVIEWER [#kind_docsviewer]

```text
String KIND_DOCSVIEWER
```

源码初值："DocsViewer"

公开常量或属性。

<a id="a14f33045359a52cdd8cfb73686a83cc2"></a>

### KIND_MEDIAPLAYER [#kind_mediaplayer]

```text
String KIND_MEDIAPLAYER
```

源码初值："MediaPlayer"

公开常量或属性。

<a id="a270ad4e6acbc5ca9bfb2742774e800f1"></a>

### KIND_SLIDE [#kind_slide]

```text
String KIND_SLIDE
```

源码初值："Slide"

公开常量或属性。

<a id="ad265592a36b556312f061d850988fc1e"></a>

### KIND_PRESENTATION [#kind_presentation]

```text
String KIND_PRESENTATION
```

源码初值："Presentation"

公开常量或属性。

<a id="aeb79805a1b09acec7e8ccc4823ace965"></a>

### kind [#kind]

```text
String kind
```

源码初值：未显式赋值

模型属性；通过对应 getter/setter 访问。

<a id="a33a4be300fee5d9c153ecc6be1915221"></a>

### options [#options]

```text
Options options
```

源码初值：未显式赋值

模型属性；通过对应 getter/setter 访问。

<a id="a081291b231784d3f999505ddf2710ab8"></a>

### attributes [#attributes]

```text
Attributes attributes
```

源码初值：未显式赋值

模型属性；通过对应 getter/setter 访问。

<a id="ad1c6d1c91bb04ca691c46d5e7f536de8"></a>

### originSize [#originsize]

```text
WindowOriginSize originSize
```

源码初值：未显式赋值

正数 width/height 组成的归一化参考尺寸。WindowParams 用于 MainView；WindowAppParam 用于 Slide/Presentation 并写入 attributes.originSize。

## 函数说明 [#函数说明]

<a id="af3131b0aa75480d0d0eb448f8c49b001"></a>

### WindowAppParam() [#windowappparam]

<ApiSignature>

WindowAppParam(String kind, Options options, Attributes attributes)

</ApiSignature>

WindowAppParam：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="a013574d1b67270f4c020cdaf825b4df8"></a>

### createDocsViewerApp() [#createdocsviewerapp]

<ApiSignature>

static WindowAppParam createDocsViewerApp(String scenePath, Scene[] scenes, String title)

</ApiSignature>

createDocsViewerApp：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="ac5f9d53527157760990791b1bbe07a7e"></a>

### createMediaPlayerApp() [#createmediaplayerapp]

<ApiSignature>

static WindowAppParam createMediaPlayerApp(String src, String title)

</ApiSignature>

createMediaPlayerApp：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="afa3d33545ab8059ee68e3f7ea6782fcf"></a>

### createSlideApp() [#createslideapp]

<ApiSignature>

static WindowAppParam createSlideApp(String scenePath, Scene[] scenes, String title)

</ApiSignature>

构建由新转换服务转换的文档（App）参数。

<ParameterList title="参数">
<Parameter name="taskUuid">

转换任务的 UUID。

</Parameter>
<Parameter name="prefixUrl">

以 http 或 https 开头的 url, 例如 `https://convertcdn.netless.link/dynamicConvert`. 请注意不以 / 结尾。

</Parameter>
<Parameter name="title">

窗口标题。用于展示插入的文档。

</Parameter>
</ParameterList>

<h4 data-toc-hidden="true" id={"返回值"}>返回值</h4>

[`WindowAppParam`](/zh-CN/api-reference/whiteboard/whiteboard-sdk/android/classcom-1-1herewhite-1-1sdk-1-1domain-1-1-window-app-param) 对象。

<a id="ae6a1a959954ee33f5fa1cfbd97728ec1"></a>

### createPresentationApp() [#createpresentationapp]

<ApiSignature>

static WindowAppParam createPresentationApp(String scenePath, Scene[] scenes, String title)

</ApiSignature>

createPresentationApp：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="a5f52b7bc23c48dffde7f6becf03b2fb2"></a>

### createSlideApp() [#createslideapp-1]

<ApiSignature>

static WindowAppParam createSlideApp(String taskUuid, String prefixUrl, String title)

</ApiSignature>

构建由新转换服务转换的 App 参数

#### 参数 [#参数]

<ParameterList title="参数">
<Parameter name="taskUuid" />
<Parameter name="prefixUrl">

以 http 或 https 开头的 url, 例如 https://convertcdn.netless.link/dynamicConvert. 请注意不以 / 结尾。

</Parameter>
<Parameter name="title" />
</ParameterList>

<h4 data-toc-hidden="true" id={"返回值-1"}>返回值</h4>

方法返回值，类型为 WindowAppParam。

<a id="a62a84d0005fc065c12138a4d73176a74"></a>

### createSlideApp() [#createslideapp-2]

<ApiSignature>

static WindowAppParam createSlideApp(String taskUuid, String prefixUrl, String title, WhiteSlideCustomLink[] customLinks)

</ApiSignature>

createSlideApp：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="a238ed8789126f4de510c493e3053e336"></a>

### getKind() [#getkind]

<ApiSignature>

String getKind()

</ApiSignature>

getKind：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="abc2c50155856928856ebdd39547b31de"></a>

### getOptions() [#getoptions]

<ApiSignature>

Options getOptions()

</ApiSignature>

getOptions：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="a105b0c625e42408956c6ea800b720113"></a>

### getAttributes() [#getattributes]

<ApiSignature>

Attributes getAttributes()

</ApiSignature>

getAttributes：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。

<a id="a577bddf002157b1233882b076c91f3bf"></a>

### setOriginSize() [#setoriginsize]

<ApiSignature>

WindowAppParam setOriginSize(WindowOriginSize originSize)

</ApiSignature>

正数 width/height 组成的归一化参考尺寸。WindowParams 用于 MainView；WindowAppParam 用于 Slide/Presentation 并写入 attributes.originSize。

<a id="acc634644b0af448e869c10d0c1460b30"></a>

### getOriginSize() [#getoriginsize]

<ApiSignature>

WindowOriginSize getOriginSize()

</ApiSignature>

正数 width/height 组成的归一化参考尺寸。WindowParams 用于 MainView；WindowAppParam 用于 Slide/Presentation 并写入 attributes.originSize。

<a id="ac1938344f9a4b6e3738e9499b8ed739e"></a>

### getResolvedAttributes() [#getresolvedattributes]

<ApiSignature>

Attributes getResolvedAttributes()

</ApiSignature>

getResolvedAttributes：com.herewhite.sdk.domain.WindowAppParam 的公开成员。参数和返回类型见下方签名。
