1e41f4b71Sopenharmony_ci# @ohos.app.ability.ChildProcess
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci**ChildProcess** is the base class for you to customize child processes. When starting a child process through [childProcessManager](js-apis-app-ability-childProcessManager.md), you must inherit this class and override the entrypoint method.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci> 
7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version. 
8e41f4b71Sopenharmony_ci> 
9e41f4b71Sopenharmony_ci> The APIs of this module can be used only in the stage model.
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## Modules to Import
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci```ts
14e41f4b71Sopenharmony_ciimport { ChildProcess } from '@kit.AbilityKit';
15e41f4b71Sopenharmony_ci```
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## ChildProcess.onStart
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_cionStart(args?: ChildProcessArgs): void
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ciEntrypoint method of the child process. This callback is triggered when the child process is started through [childProcessManager](js-apis-app-ability-childProcessManager.md).
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityRuntime.Core
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**Parameters**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci  | Name | Type | Mandatory | Description |
28e41f4b71Sopenharmony_ci  | -------- | -------- | -------- | -------- |
29e41f4b71Sopenharmony_ci  | args<sup>12+</sup> | [ChildProcessArgs](js-apis-app-ability-childProcessArgs.md) | No | Parameters transferred to the child process. |
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci**Example**
32e41f4b71Sopenharmony_ci```ts
33e41f4b71Sopenharmony_ciimport { ChildProcess, ChildProcessArgs } from '@kit.AbilityKit';
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciexport default class DemoProcess extends ChildProcess {
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci  onStart(args?: ChildProcessArgs) {
38e41f4b71Sopenharmony_ci    let entryParams = args?.entryParams;
39e41f4b71Sopenharmony_ci    let fd = args?.fds?.key1;
40e41f4b71Sopenharmony_ci    // ..
41e41f4b71Sopenharmony_ci  }
42e41f4b71Sopenharmony_ci}
43e41f4b71Sopenharmony_ci```
44