---
name: "offPixelImageInitProgressEvent"
mode: "kit"
versionRequirements:
  - { name: "AIKit", version: "1.8.0" }
  - { name: "@ray-js/ray", version: "1.7.60" }
platform:
  - "iOS"
  - "Android"
async: true
title: "offPixelImageInitProgressEvent - 移除监听：初始化进度"
---

## offPixelImageInitProgressEvent

> [VERSION] AIKit >= 1.8.0 | @ray-js/ray >= 1.7.60

> [PLATFORM] iOS, Android

> ⚡ **支持 Promise 调用** — 不传 success / fail / complete 回调时，该方法返回 Promise。

### 描述

初始化进度回调事件

### 参数

`(listener: Function)`

| 参数 | 类型 | 必填 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `listener` | `(params: PixelImageInitProgressModel) => void` | 是 | - |  |

### 引用对象

##### `interface` PixelImageInitProgressModel

| 属性 | 类型 | 最低版本 | 描述 |
| --- | --- | --- | --- |
| `progress` | `number` | `1.8.0` | 初始化进度 |


### 示例代码

#### 基础调用

```tsx
import { ai } from '@ray-js/ray'

const { offPixelImageInitProgressEvent } = ai;

offPixelImageInitProgressEvent((result) => {
  console.log('offPixelImageInitProgressEvent', result);
});
```
