---
name: "onPixelImageInitProgressEvent"
mode: "kit"
versionRequirements:
  - { name: "AIKit", version: "1.8.0" }
  - { name: "@ray-js/ray", version: "1.7.60" }
platform:
  - "iOS"
  - "Android"
async: true
title: "onPixelImageInitProgressEvent"
---

## onPixelImageInitProgressEvent

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

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Initialization progress callback event

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: PixelImageInitProgressModel) => void` | Yes | - |  |

### Referenced Types

##### `interface` PixelImageInitProgressModel

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `progress` | `number` | `1.8.0` | Initialization progress |


### Examples

#### Basic usage

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

const { onPixelImageInitProgressEvent } = ai;

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