openharmony 鸿蒙 capi-jsvm-jsvm-propertydescriptor

2026-08-25 浏览 (1)

JSVM_PropertyDescriptor

typedef struct {...} JSVM_PropertyDescriptor

Overview

Defines property descriptor.

Since: 11

Related module: JSVM

Header file: jsvm_types.h

Summary

Member Variables

NameDescription
const char* utf8nameProperty key, which is an optional string in UTF-8 encoding. Either utf8name or name must be provided for a property.
JSVM_Value nameOptional JSVM value, which points to the JavaScript string or symbol used as the property key. Either utf8name or name must be provided for a property.
JSVM_Callback methodMethod represented using the value property of the property descriptor object.
JSVM_Callback getterCallback used to obtain a property.
JSVM_Callback setterCallback used to set a property.
JSVM_Value valueValue retrieved by getter of the data property.
JSVM_PropertyAttributes attributesAttributes associated with a specific property.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-jsvm-jsvm-vminfo

openharmony 鸿蒙 capi-memory

openharmony 鸿蒙 js-apis-syscap

openharmony 鸿蒙 capi-memory-purgmem

openharmony 鸿蒙 capi-jsvm-jsvm-callbackstruct8h

openharmony 鸿蒙 js-apis-common-load-native-module

openharmony 鸿蒙 capi-jsvm-jsvm-cpuprofiler--8h

openharmony 鸿蒙 capi-jsvm-jsvm-codecache

openharmony 鸿蒙 capi-jsvm-jsvm-data--8h

openharmony 鸿蒙 capi-jsvm-h

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