
# OnConnectResult
**回调方法描述**
连接接口回调结果事件。
**回调方法定义**
```
/* 连接结果事件 */   
void OnConnectResult(DeviceInfo* deviceInfo) {}
```
**参数描述**
| 参数         | 是否必须 | 类型                                                                                               | 描述     |
|:---|:---|:---|:---|
| deviceInfo | 是    | [4.6.5.2.5](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0077.html)DeviceInfo\* | 远端设备信息 |
   
**示例代码**
```
void ShareEventHandler::OnConnectResult(DeviceInfo* deviceInfo)   
{   
   // 上报UI显示设备名   
}
```
