---
title: 调用指令流引擎对象initialize接口
description: "初始化指令流引擎，传入IP、端口以及服务端云手机分辨率信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsinstruction_16_0017.html
sourcePath: /source/zh/kunpengboostkithistory/230RC2/armnative/kunpengcpsinstruction_16_0017.html
indexId: 52582d61d483a45322db93fce4877bed0ab6d8a5c33508b610fdee9b6cc37afa85
---
# 调用指令流引擎对象initialize接口

#### 场景介绍

初始化指令流引擎，传入IP、端口以及服务端云手机分辨率信息。


#### 前提条件

指令流引擎对象已创建。


#### 开发流程

调用指令流引擎初始化接口。


#### 编码实例

```
public class Activity implements BaseActivity {
protected void onCreate(Bundle savedInstanceState) {
int initResult = engine.initialize();
if (initResult != InstructionEngine.VMI_SUCCESS) {
// 初始化失败，退出处理
}
}
}
```
