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

2026-08-25 浏览 (1)

OH_OnFrameAvailableListener

typedef struct {...} OH_OnFrameAvailableListener

Overview

Defines an OH_NativeImage listener, which is registered through OH_NativeImage_SetOnFrameAvailableListener. The listener triggers a callback when a frame is available.

Since: 11

Related module: OH_NativeImage

Header file: native_image.h

Summary

Member Variables

NameDescription
void* contextUser-defined context information, which is returned when the callback is triggered.
OH_OnFrameAvailable onFrameAvailableCallback function triggered when a frame is available.

Member Functions

Nametypedef KeywordDescription
typedef void (*OH_OnFrameAvailable)(void *context)OH_OnFrameAvailable()Callback function triggered when a frame is available.
Since: 11
System capability: SystemCapability.Graphic.Graphic2D.NativeImage

Member Function Description

OH_OnFrameAvailable()

typedef void (*OH_OnFrameAvailable)(void *context)

Item

Callback function triggered when a frame is available.

System capability: SystemCapability.Graphic.Graphic2D.NativeImage

Since: 11

Parameters

NameDescription
void *contextUser-defined context information, which is returned when the callback is triggered.

你可能感兴趣的鸿蒙文章

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/mOQv3SjP