# Interface PopViewParams

弹框层回调对象定义（废弃）

#### Hierarchy

- UICallbacks
  - PopViewParams

- Defined in assets/core/gui/layer/Defines.ts:54

#####
Index

### Properties

onAdded?
onBeforeRemove?
onLoadFailure?
onRemoved?
opacity?
touchClose?

## Properties

### `Optional` onAdded

onAdded?: ((node: Node, params: any) => void)

#### Type declaration

- - (node: Node, params: any): void

  - 节点添加到层级以后的回调

    #### Parameters

    - ##### node: Node

      当前界面节点

    - ##### params: any

      外部传递参数

    #### Returns void

Inherited from UICallbacks.onAdded

- Defined in assets/core/gui/layer/Defines.ts:17

### `Optional` onBeforeRemove

onBeforeRemove?: ((node: Node, next: Function) => void)

#### Type declaration

- - (node: Node, next: Function): void

  - 如果指定onBeforeRemoved，则next必须调用，否则节点不会被正常删除。

    比如希望节点做一个FadeOut然后删除，则可以在`onBeforeRemoved`当中播放action动画，动画结束后调用next

    #### Parameters

    - ##### node: Node

      当前界面节点

    - ##### next: Function

      回调方法

    #### Returns void

Inherited from UICallbacks.onBeforeRemove

- Defined in assets/core/gui/layer/Defines.ts:33

### `Optional` onLoadFailure

onLoadFailure?: (() => void)

#### Type declaration

- - (): void

  - 网络异常时，窗口加载失败回调

    #### Returns void

Inherited from UICallbacks.onLoadFailure

- Defined in assets/core/gui/layer/Defines.ts:36

### `Optional` onRemoved

onRemoved?: ((node: null | Node, params: any) => void)

#### Type declaration

- - (node: null | Node, params: any): void

  - 窗口节点 destroy 之后回调

    #### Parameters

    - ##### node: null | Node

      当前界面节点

    - ##### params: any

      外部传递参数

    #### Returns void

Inherited from UICallbacks.onRemoved

- Defined in assets/core/gui/layer/Defines.ts:24

### `Optional` opacity

opacity?: number

控制暗色背景的透明度 默认为190

- Defined in assets/core/gui/layer/Defines.ts:59

### `Optional` touchClose

touchClose?: boolean

是否触摸背景关闭弹窗

- Defined in assets/core/gui/layer/Defines.ts:56

Generated using TypeDoc