Foxit PDF SDK for HarmonyOS  3.0
NativeObjectWrapper Class Reference
Inheritance diagram for NativeObjectWrapper:
Action AdditionalAction Annot AnnotArray AnnotationSummary AnnotationSummarySettings AssociatedFiles Attachments AuditSpaceSize Barcode Bitmap Bookmark BorderInfo ButtonItem CertificateEncryptData CertIssuerPair CertPermission CertVerifyResult CertVerifyResultArray ChoiceOption ChoiceOptionArray Codec Color ColorSpace ColorState Combination CombineDocumentInfo CombineDocumentInfoArray CompareResultInfo CompareResultInfoArray CompareResults Comparison Control Convert CustomEncryptData DefaultAppearance Destination DialogDescriptionConfig DialogDescriptionElement DialogDescriptionElementArray DocViewerPrefs DrawPageTaskSettingData DRMEncryptData DWG2PDFSettingData EmbeddedFontData EmbeddedGotoTarget Envelope EnvelopeArray Excel2PDFSettingData FDFDoc Field FieldArray Filler FillSign FillSignObject FloatArray FloatingInfo Font FontMapResult Form GetPagesInputParams GraphicsObject GraphicsObjectArray GraphicsObjects GraphState HeaderFooter HeaderFooterContent HeaderFooterContentGenerator HiddenInfoSettingData HTML2PDFRelatedResource HTML2PDFRelatedResourceArray HTML2PDFSettingData IconFit IdentityProperties Image ImageCompressionCallback ImageSettings Int32Array JavascriptModifyItemInfo LayerContext LayerNode LayerNodeArray LayerPrintData LayerTree LayerZoomData Library LTVVerifier MarkedContent MarkupArray Matrix2D MediaPlayer MediaPlayerCallback MediaSettings MenuItemConfig MenuItemEx MenuItemExArray MenuList MenuListArray Metadata MonoImageSettings NoteArray OFDConvertParam OpenDocumentSettingData Optimizer OptimizerSettings OptimizeScannedPDFSettings OutputPreview PageBasicInfo PageBasicInfoArray PageLabels PageNumberRange PageSizeTaskSettingData PageTextLinks PagingSealConfig Path PathArray PathInfo PayLoadData PDFDictionaryArray PDFDoc PDFNameTree PDFNumberTree PDFObject PDFStructTree PlayerArgs Point PointF PointFArray Portfolio PortfolioFolderNode PortfolioNode PortfolioNodeArray PowerPoint2PDFSettingData PrintParams Progressive PSI QuadPoints QuadPointsArray Range ReadingBookmark RectF RectFArray RectI Redaction ReflowPage RenderConfig Renderer RenderPageModel Rendition Response RevocationArrayInfo RichTextStyle RMSEncryptData SchemaField SchemaFieldArray SearchIndexConfig SearchOption SearchPageInfo SearchResult SearchResultArray SecurityHandler SetOCGStateAction ShadingColor SignatureArray SignatureVerifyResult SignatureVerifyResultArray SnappedPoint SnapPointMgr SOAPAuthenticateInfo SOAPRequestProperties SOAPResponseInfo StdEncryptData StringArray StructTreeEntity TableOfContentsConfig TabOrderMgr Task TaskServer TextFillSignObjectData TextFillSignObjectDataArray TextLink TextObjectArray TextPage TextPageCharInfo TextSearch TextState TiledWatermarkSettings TimeRange TimeStampServer TimeStampServerMgr TXT2PDFSettingData UInt32Array UnembeddedFontSettings UrlHeader ViewStatus Watermark WatermarkSettings WatermarkTextProperties WidgetChoiceOption WidgetChoiceOptionArray WidgetMenu Word2PDFSettingData WrapperData WStringArray XFADoc XFAPage XFAWidget XFAWidgetModifyInfo

Public Member Functions

 constructor (r)
 
 GetPointerAsNumber ()
 

Detailed Description

@abstract @description Base class for N-API object wrappers with manual lifecycle control

Remarks
This class provides the foundation for TypeScript objects that wrap C++ objects via Node-API, offering both automatic and manual resource management.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

Member Function Documentation

◆ constructor()

NativeObjectWrapper.constructor ( )

@constructor

Parameters
{NativeObjectReference}r - The native object reference to wrap

@description Creates a new wrapper instance around a native C++ object. The wrapper manages the object's lifecycle according to the ownership rules.

Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

◆ GetPointerAsNumber()

NativeObjectWrapper.GetPointerAsNumber ( )

@method GetPointerAsNumber

Returns
{number} The memory address of the wrapped C++ object as a numeric value

@description Retrieves the raw pointer to the underlying C++ object.

Warning
This exposes direct memory access - use with extreme caution. The pointer should only be used for interop purposes and never modified directly from TypeScript.
Examples
/Users/ec2-user/gitlab-runner/builds/E-xKdhDoq/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.