openharmony 鸿蒙 capi-oh-nativeimage-oh-onframeavailablelistener

2026-08-25 浏览 (1)

OH_OnFrameAvailableListener

typedef struct OH_OnFrameAvailableListener {...} OH_OnFrameAvailableListener

概述

一个OH_NativeImage的监听者,通过OH_NativeImage_SetOnFrameAvailableListener接口注册该监听结构体,当有buffer可获取时,将触发回调给用户。

起始版本: 11

相关模块: OH_NativeImage

所在头文件: native_image.h

汇总

成员变量

名称描述
void* context用户自定义的上下文信息,会在回调触发时返回给用户。
OH_OnFrameAvailable onFrameAvailable有buffer可获取时触发的回调函数。

成员函数

名称typedef关键字描述
typedef void (*OH_OnFrameAvailable)(void *context)OH_OnFrameAvailable()有buffer可获取时触发的回调函数。
起始版本: 11
系统能力: SystemCapability.Graphic.Graphic2D.NativeImage

成员函数说明

OH_OnFrameAvailable()

typedef void (*OH_OnFrameAvailable)(void *context)

描述

有buffer可获取时触发的回调函数。

系统能力: SystemCapability.Graphic.Graphic2D.NativeImage

起始版本: 11

参数:

参数项描述
void *context用户自定义的上下文信息,会在回调触发时返回给用户。

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-drawing-gpu-context-h

openharmony 鸿蒙 capi-drawing-nativepixelmap-

openharmony 鸿蒙 capi-nativevsync-oh-nativevsync-expectedraterange

openharmony 鸿蒙 capi-drawing-oh-drawing-brush

openharmony 鸿蒙 capi-drawing-oh-drawing-image-info

openharmony 鸿蒙 capi-drawing-text-linetypography-h

openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage

openharmony 鸿蒙 capi-drawing-typeface-h

openharmony 鸿蒙 capi-drawing-brush-h

openharmony 鸿蒙 capi-nativewindow

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/574auYcV