1 Star 0 Fork 4.9K

famoustang / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FormatCallback.md 6.95 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

FormatCallback

Overview

Related Modules:

Format

Description:

Defines listener callbacks for the format.

Summary

Data Fields

Variable Name

Description

privateDataHandle

CALLBACK_HANDLE 

OnError )(CALLBACK_HANDLE privateDataHandle, int32_t errorType, int32_t errorCode)

int32_t(* 

Called when a format error occurs during capturing. This callback is used to report the errors.

OnInfo )(CALLBACK_HANDLE privateDataHandle, int32_t type, int32_t extra)

int32_t(* 

Called when an information event occurs during capturing. This callback is used to report capturing information.

Details

Field Documentation

OnError

int32_t(* FormatCallback::OnError) ([CALLBACK_HANDLE](Format.md#gab928f39c359734527bda3fd160f89331) [privateDataHandle](FormatCallback.md#a4e4c7c6789cbf8bfc1aa0444dcd106b5), int32_t errorType, int32_t errorCode)

Description:

Called when a format error occurs during capturing. This callback is used to report the errors.

Parameters:

Name

Description

privateDataHandle Indicates the private data handle.
errorType Indicates the error type. For details, see FormatErrorType.
errorCode Indicates the error code.

Returns:

Returns 0 if the operation is successful; returns a non-zero value otherwise.

OnInfo

int32_t(* FormatCallback::OnInfo) ([CALLBACK_HANDLE](Format.md#gab928f39c359734527bda3fd160f89331) [privateDataHandle](FormatCallback.md#a4e4c7c6789cbf8bfc1aa0444dcd106b5), int32_t type, int32_t extra)

Description:

Called when an information event occurs during capturing. This callback is used to report capturing information.

Parameters:

Name

Description

privateDataHandle Indicates the private data handle.
type Indicates the information type. For details, see FormatInfoType.
extra Indicates other information, for example, the start time position of the captured file.

Returns:

Returns 0 if the operation is successful; returns a non-zero value otherwise.

privateDataHandle

[CALLBACK_HANDLE](Format.md#gab928f39c359734527bda3fd160f89331) FormatCallback::privateDataHandle

Description:

Private data handle

1
https://gitee.com/famoustang/docs.git
git@gitee.com:famoustang/docs.git
famoustang
docs
docs
master

搜索帮助