鸿蒙OpenHarmony Native API【native_interface_bundle.h与native_interface_xcompo】 头文件
创始人
2024-12-17 11:34:42
0

native_interface_bundle.h

Overview

Related Modules:

[Native_Bundle]

Description:

Declares the Bundle-specific function, including function for obtaining application ID.

Since:  9 Version:  1.0

Summary

Functions

FunctionDescription
[OH_NativeBundle_GetAppIdByBundleName] (const char *bundleName)char * Obtains the application ID based on the given bundle name.

native_interface_xcomponent.h

Overview

Related Modules:

[Native XComponent]

Description:

Declares APIs for accessing a Native XComponent.

Since:  8 Version:  1.0

Summary

Classes

Classe NameDescription
[OH_NativeXComponent_TouchPoint]
[OH_NativeXComponent_TouchEvent]
[OH_NativeXComponent_Callback]Registers the surface lifecycle and touch event callbacks.

Macros

Macro Name and ValueDescription
OH_NATIVE_XCOMPONENT_OBJ   (“NATIVE_XCOMPONENT_OBJ”)

Typedefs

Typedef NameDescription
[OH_NativeXComponent]typedef struct [OH_NativeXComponent] Provides an encapsulated OH_NativeXComponent instance.
[OH_NativeXComponent_Callback]typedef struct [OH_NativeXComponent_Callback] Registers the surface lifecycle and touch event callbacks.

Enumerations

Enumeration NameDescription
{ [OH_NATIVEXCOMPONENT_RESULT_SUCCESS] = 0, [OH_NATIVEXCOMPONENT_RESULT_FAILED] = -1, [OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER] = -2 }Enumerates the API access states.
[OH_NativeXComponent_TouchEventType] {   [OH_NATIVEXCOMPONENT_DOWN] = 0, [OH_NATIVEXCOMPONENT_UP], [OH_NATIVEXCOMPONENT_MOVE], [OH_NATIVEXCOMPONENT_CANCEL],   [OH_NATIVEXCOMPONENT_UNKNOWN] }

Functions

FunctionDescription
[OH_NativeXComponent_GetXComponentId] ([OH_NativeXComponent] *component, char *id, uint64_t *size)int32_t Obtains the ID of the ArkUI XComponent.
[OH_NativeXComponent_GetXComponentSize] ([OH_NativeXComponent] *component, const void *window, uint64_t *width, uint64_t *height)int32_t Obtains the size of the surface held by the ArkUI XComponent.
[OH_NativeXComponent_GetXComponentOffset] ([OH_NativeXComponent] *component, const void *window, double *x, double *y)int32_t Obtains the offset of the surface held by the ArkUI XComponent.
[OH_NativeXComponent_GetTouchEvent] ([OH_NativeXComponent] *component, const void *window, [OH_NativeXComponent_TouchEvent] *touchEvent)int32_t Obtains the touch event dispatched by the ArkUI XComponent.
[OH_NativeXComponent_RegisterCallback] ([OH_NativeXComponent] *component, [OH_NativeXComponent_Callback] *callback)int32_t Regis
以上就是本篇文章所带来的鸿蒙开发中一小部分技术讲解;想要学习完整的鸿蒙全栈技术。可以在结尾找我可全部拿到!
下面是鸿蒙的完整学习路线,展示如下:
1

2

除此之外,根据这个学习鸿蒙全栈学习路线,也附带一整套完整的学习【文档+视频】,内容包含如下

内容包含了:(ArkTS、ArkUI、Stage模型、多端部署、分布式应用开发、音频、视频、WebGL、OpenHarmony多媒体技术、Napi组件、OpenHarmony内核、鸿蒙南向开发、鸿蒙项目实战)等技术知识点。帮助大家在学习鸿蒙路上快速成长!

鸿蒙【北向应用开发+南向系统层开发】文档笔记

3

鸿蒙【基础+实战项目】视频

4

鸿蒙面经

5

为了避免大家在学习过程中产生更多的时间成本,对比我把以上内容全部放在了↓↓↓想要的可以自取喔!谢谢大家观看!

相关内容

热门资讯

透视工具!wepoker辅助透... 透视工具!wepoker辅助透视软件(透视)辅助修改器(真是有挂)-哔哩哔哩该软件可以轻松地帮助玩家...
一分钟揭秘!wepoker有插... 一分钟揭秘!wepoker有插件吗,wepoker可以免费玩吗,解迷教程(有挂详情)-哔哩哔哩1.w...
透视普及!wpk德州局透视,w... 透视普及!wpk德州局透视,wpk模拟器多开-确实是有辅助工具(哔哩哔哩)德州局透视辅助器是一种具有...
实测发现!wepoker透视脚... 您好,epoker透视这款游戏可以开挂的,确实是有挂的,需要了解加去威信【485275054】很多玩...
有玩家发现!拱趴大菠萝9人场技... 有玩家发现!拱趴大菠萝9人场技巧!真是真的有辅助工具(有挂分享)-哔哩哔哩1、玩家可以在拱趴大菠萝9...
网友热议!wepoker有脚本... 网友热议!wepoker有脚本吗(透视)辅助平台(有挂存在)-哔哩哔哩网友热议!wepoker有脚本...
科技通报!wepoker黑侠辅... 科技通报!wepoker黑侠辅助器,wepoker黑侠辅助器,解密教程(讲解有挂)-哔哩哔哩1、we...
据报道!wpk透视辅助(透视)... 据报道!wpk透视辅助(透视)辅助神器(真是是真的有挂)-哔哩哔哩1、完成有辅助插件,帮助玩家取得所...
透视推荐!wpk作弊是真的吗,... 透视推荐!wpk作弊是真的吗,wpk透视插件-确实一直都是有辅助app(哔哩哔哩)该软件可以轻松地帮...
有玩家发现!微信小程序多乐辅助... 有玩家发现!微信小程序多乐辅助器!一直真的有辅助app(有挂辅助)-哔哩哔哩1、微信小程序多乐辅助器...