From 07ed1623c2cbe9d818ffc1fcd284b798d59975f2 Mon Sep 17 00:00:00 2001 From: Yali Xie Date: Mon, 23 Dec 2024 17:08:57 +0300 Subject: [PATCH 1/4] Regenerate ArkTS from idlize Signed-off-by: Yali Xie --- .../ArkAbstractPropertyMaterialized.ts | 51 +- .../ArkAttributeModifierMaterialized.ts | 75 +-- .../arkui/src/generated/ArkCommon.ts | 3 +- .../src/generated/ArkCommonInterfaces.ts | 3 +- .../generated/ArkCommonTsEtsApiInterfaces.ts | 8 + .../arkui/src/generated/ArkContainerSpan.ts | 2 +- .../generated/ArkContainerSpanInterfaces.ts | 2 +- .../ArkIPropertySubscriberMaterialized.ts | 62 +-- ...glePropertyChangeSubscriberMaterialized.ts | 71 +-- .../arkui/src/generated/ArkNavDestination.ts | 35 +- .../ArkNavDestinationContextMaterialized.ts | 69 +-- .../generated/ArkNavDestinationInterfaces.ts | 11 +- .../src/generated/ArkNavigationInterfaces.ts | 24 +- ...rkNavigationTransitionProxyMaterialized.ts | 76 +-- .../ArkSubscribaleAbstractMaterialized.ts | 61 +-- .../arkui/src/generated/ArkSymbolSpan.ts | 3 +- .../src/generated/ArkSymbolSpanInterfaces.ts | 3 +- .../src/generated/SyntheticDeclarations.ts | 28 +- .../arkui/src/generated/arkts/NativeModule.ts | 63 --- .../arkui/src/generated/arkts/type_check.ts | 27 +- arkoala-arkts/arkui/src/generated/index.ts | 8 - .../arkui/src/generated/peer_events.ts | 452 +++++++--------- .../src/generated/peers/ArkCommonPeer.ts | 3 +- .../generated/peers/ArkContainerSpanPeer.ts | 2 +- .../generated/peers/ArkNavDestinationPeer.ts | 452 ++++++++-------- .../src/generated/peers/ArkSymbolSpanPeer.ts | 3 +- .../src/generated/peers/ArkUINodeType.ts | 1 - .../peers/CallbackDeserializeCall.ts | 83 +-- .../arkui/src/generated/peers/CallbackKind.ts | 362 ++++++------- .../arkui/src/generated/peers/Deserializer.ts | 502 +----------------- .../arkui/src/generated/peers/Serializer.ts | 480 +---------------- .../arkui/src/generated/ts/type_check.ts | 15 +- arkoala-arkts/arkui/src/index.ts | 5 +- 33 files changed, 818 insertions(+), 2227 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts index 57724d482..3a2ed219f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_AbstractProperty } from "./SyntheticDeclarations" +// import { INTERFACE_AbstractProperty } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -27,7 +27,6 @@ import { NativeModule } from "#components" import { wrapCallback } from "@koalaui/interop" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NativeBuffer } from "./NativeBuffer" import { int32, @@ -48,29 +47,8 @@ import { } from "@koalaui/interop" -export class AbstractProperty implements MaterializedBase,INTERFACE_AbstractProperty { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): AbstractProperty { - const objAbstractProperty : AbstractProperty = new AbstractProperty() - objAbstractProperty.peer = new Finalizable(ptr, AbstractProperty.getFinalizer()) - return objAbstractProperty - } - static ctor(): KPointer { - const retval = NativeModule._AbstractProperty_ctor() - return retval - } - constructor() { - { - const ctorPtr : KPointer = AbstractProperty.ctor() - this.peer = new Finalizable(ctorPtr, AbstractProperty.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._AbstractProperty_getFinalizer() - } +export class AbstractProperty { + get(): T { return this.get_serialize() } @@ -82,24 +60,17 @@ export class AbstractProperty implements MaterializedBase,INTE return this.info_serialize() } private get_serialize(): T { - const retval = NativeModule._AbstractProperty_get(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + // const retval = NativeModule._AbstractProperty_get(this.peer!.ptr) + // throw new Error("Object deserialization is not implemented.") + throw new Error("TBD") } private set_serialize(newValue: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (newValue as Object)) - NativeModule._AbstractProperty_set(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (newValue as Object)) + // NativeModule._AbstractProperty_set(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private info_serialize(): string { - const retval = NativeModule._AbstractProperty_info(this.peer!.ptr) - return retval - } -} -export class AbstractPropertyInternal { - public static fromPtr(ptr: KPointer): AbstractProperty { - const obj : AbstractProperty = new AbstractProperty() - obj.peer = new Finalizable(ptr, AbstractProperty.getFinalizer()) - return obj + throw new Error("TBD") } } diff --git a/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts index 1da960aab..378ea1803 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_AttributeModifier } from "./SyntheticDeclarations" +// import { INTERFACE_AttributeModifier } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -27,7 +27,6 @@ import { NativeModule } from "#components" import { wrapCallback } from "@koalaui/interop" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NativeBuffer } from "./NativeBuffer" import { int32, @@ -48,29 +47,8 @@ import { } from "@koalaui/interop" -export class AttributeModifier implements MaterializedBase,INTERFACE_AttributeModifier { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): AttributeModifier { - const objAttributeModifier : AttributeModifier = new AttributeModifier() - objAttributeModifier.peer = new Finalizable(ptr, AttributeModifier.getFinalizer()) - return objAttributeModifier - } - static ctor(): KPointer { - const retval = NativeModule._AttributeModifier_ctor() - return retval - } - constructor() { - { - const ctorPtr : KPointer = AttributeModifier.ctor() - this.peer = new Finalizable(ctorPtr, AttributeModifier.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._AttributeModifier_getFinalizer() - } +export class AttributeModifier { + applyNormalAttribute(instance: T): void { const instance_casted = instance as (T) this.applyNormalAttribute_serialize(instance_casted) @@ -92,40 +70,33 @@ export class AttributeModifier implements MaterializedBase,INT this.applySelectedAttribute_serialize(instance_casted) } private applyNormalAttribute_serialize(instance: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (instance as Object)) - NativeModule._AttributeModifier_applyNormalAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (instance as Object)) + // NativeModule._AttributeModifier_applyNormalAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private applyPressedAttribute_serialize(instance: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (instance as Object)) - NativeModule._AttributeModifier_applyPressedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (instance as Object)) + // NativeModule._AttributeModifier_applyPressedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private applyFocusedAttribute_serialize(instance: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (instance as Object)) - NativeModule._AttributeModifier_applyFocusedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (instance as Object)) + // NativeModule._AttributeModifier_applyFocusedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private applyDisabledAttribute_serialize(instance: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (instance as Object)) - NativeModule._AttributeModifier_applyDisabledAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (instance as Object)) + // NativeModule._AttributeModifier_applyDisabledAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private applySelectedAttribute_serialize(instance: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (instance as Object)) - NativeModule._AttributeModifier_applySelectedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class AttributeModifierInternal { - public static fromPtr(ptr: KPointer): AttributeModifier { - const obj : AttributeModifier = new AttributeModifier() - obj.peer = new Finalizable(ptr, AttributeModifier.getFinalizer()) - return obj + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("T", (instance as Object)) + // NativeModule._AttributeModifier_applySelectedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 668823c84..376d75daf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -26,7 +26,7 @@ import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScroll import { UseEventsProperties } from "./use_properties" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { DrawModifier } from "./ArkDrawModifierMaterialized" -import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragEvent, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragEvent, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, AttributeModifier, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, BarState, EdgeEffect } from "./ArkEnumsInterfaces" import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_ScrollState_Void } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkArkui-externalInterfaces" @@ -39,7 +39,6 @@ import { EllipseAttribute } from "./ArkEllipseInterfaces" import { PathAttribute } from "./ArkPathInterfaces" import { RectAttribute } from "./ArkRectInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureControl_GestureType, GestureMask } from "./ArkGestureInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index 2f977db27..d36f8d8d9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -22,7 +22,6 @@ import { EllipseAttribute } from "./ArkEllipseInterfaces" import { PathAttribute } from "./ArkPathInterfaces" import { RectAttribute } from "./ArkRectInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { ScrollState } from "./ArkListInterfaces" import { ScrollOnWillScrollCallback } from "./ArkScrollInterfaces" @@ -1688,6 +1687,8 @@ export interface MenuElement { enabled?: boolean; action: (() => void); } +export interface AttributeModifier { +} export interface ContentModifier { stub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts index 3d40ac320..68896edd7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts @@ -2,6 +2,14 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { NativeBuffer } from "./NativeBuffer" +export interface AbstractProperty { +} +export interface IPropertySubscriber { +} +export interface ISinglePropertyChangeSubscriber extends IPropertySubscriber { +} +export interface SubscribaleAbstract { +} export interface EnvPropsOptions { key: string; defaultValue: number | string | boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts index 791462c1d..d75148990 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -24,7 +24,7 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { AttributeModifier } from "./ArkCommonInterfaces" import { ContainerSpanAttribute } from "./ArkContainerSpanInterfaces" /** @memo:stable */ export class ArkContainerSpanComponent extends ComponentBase { diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts index 660c19732..8aa05f040 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts @@ -3,7 +3,7 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { NativeBuffer } from "./NativeBuffer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { AttributeModifier } from "./ArkCommonInterfaces" export type ContainerSpanInterface = () => ContainerSpanAttribute; export interface ContainerSpanAttribute { textBackgroundStyle: TextBackgroundStyle; diff --git a/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts index e7807fa1c..3bbfc6350 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { INTERFACE_IPropertySubscriber } from "./SyntheticDeclarations" +// import { INTERFACE_IPropertySubscriber } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -48,57 +48,29 @@ import { } from "@koalaui/interop" -export class IPropertySubscriber implements MaterializedBase,INTERFACE_IPropertySubscriber { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): IPropertySubscriber { - const objIPropertySubscriber : IPropertySubscriber = new IPropertySubscriber() - objIPropertySubscriber.peer = new Finalizable(ptr, IPropertySubscriber.getFinalizer()) - return objIPropertySubscriber - } - static ctor(): KPointer { - const retval = NativeModule._IPropertySubscriber_ctor() - return retval - } - constructor() { - { - const ctorPtr : KPointer = IPropertySubscriber.ctor() - this.peer = new Finalizable(ctorPtr, IPropertySubscriber.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._IPropertySubscriber_getFinalizer() - } +export class IPropertySubscriber { id(): number { return this.id_serialize() } aboutToBeDeleted(owningView?: IPropertySubscriber): void { - const owningView_casted = owningView as (IPropertySubscriber | undefined) - this.aboutToBeDeleted_serialize(owningView_casted) + // const owningView_casted = owningView as (IPropertySubscriber | undefined) + // this.aboutToBeDeleted_serialize(owningView_casted) } private id_serialize(): number { - const retval = NativeModule._IPropertySubscriber_id(this.peer!.ptr) - return retval + // const retval = NativeModule._IPropertySubscriber_id(this.peer!.ptr) + // return retval + throw new Error("TBD") } private aboutToBeDeleted_serialize(owningView?: IPropertySubscriber): void { - const thisSerializer : Serializer = Serializer.hold() - let owningView_type : int32 = RuntimeType.UNDEFINED - owningView_type = runtimeType(owningView) - thisSerializer.writeInt8(owningView_type as int32) - if ((RuntimeType.UNDEFINED) != (owningView_type)) { - const owningView_value = owningView! - thisSerializer.writeIPropertySubscriber(owningView_value) - } - NativeModule._IPropertySubscriber_aboutToBeDeleted(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class IPropertySubscriberInternal { - public static fromPtr(ptr: KPointer): IPropertySubscriber { - const obj : IPropertySubscriber = new IPropertySubscriber() - obj.peer = new Finalizable(ptr, IPropertySubscriber.getFinalizer()) - return obj + // const thisSerializer : Serializer = Serializer.hold() + // let owningView_type : int32 = RuntimeType.UNDEFINED + // owningView_type = runtimeType(owningView) + // thisSerializer.writeInt8(owningView_type as int32) + // if ((RuntimeType.UNDEFINED) != (owningView_type)) { + // const owningView_value = owningView! + // thisSerializer.writeIPropertySubscriber(owningView_value) + // } + // NativeModule._IPropertySubscriber_aboutToBeDeleted(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkISinglePropertyChangeSubscriberMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkISinglePropertyChangeSubscriberMaterialized.ts index 3266ccc4c..a8e9f086e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkISinglePropertyChangeSubscriberMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkISinglePropertyChangeSubscriberMaterialized.ts @@ -17,77 +17,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { IPropertySubscriber } from "./ArkIPropertySubscriberMaterialized" -import { INTERFACE_ISinglePropertyChangeSubscriber } from "./SyntheticDeclarations" -import { TypeChecker } from "#components" -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" -import { NativeModule } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NativeBuffer } from "./NativeBuffer" - -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class ISinglePropertyChangeSubscriber extends IPropertySubscriber implements MaterializedBase,INTERFACE_ISinglePropertyChangeSubscriber { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): ISinglePropertyChangeSubscriber { - const objISinglePropertyChangeSubscriber : ISinglePropertyChangeSubscriber = new ISinglePropertyChangeSubscriber() - objISinglePropertyChangeSubscriber.peer = new Finalizable(ptr, ISinglePropertyChangeSubscriber.getFinalizer()) - return objISinglePropertyChangeSubscriber - } - static ctor(): KPointer { - const retval = NativeModule._ISinglePropertyChangeSubscriber_ctor() - return retval - } - constructor() { - super() - { - const ctorPtr : KPointer = ISinglePropertyChangeSubscriber.ctor() - this.peer = new Finalizable(ctorPtr, ISinglePropertyChangeSubscriber.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._ISinglePropertyChangeSubscriber_getFinalizer() - } +export class ISinglePropertyChangeSubscriber extends IPropertySubscriber { hasChanged(newValue: T): void { - const newValue_casted = newValue as (T) - this.hasChanged_serialize(newValue_casted) - } - private hasChanged_serialize(newValue: T): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", (newValue as Object)) - NativeModule._ISinglePropertyChangeSubscriber_hasChanged(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ISinglePropertyChangeSubscriberInternal { - public static fromPtr(ptr: KPointer): ISinglePropertyChangeSubscriber { - const obj : ISinglePropertyChangeSubscriber = new ISinglePropertyChangeSubscriber() - obj.peer = new Finalizable(ptr, ISinglePropertyChangeSubscriber.getFinalizer()) - return obj } } diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index ab2337ed0..3d67bd20b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -26,12 +26,11 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./ArkNavDestinationInterfaces" +import { NavDestinationAttribute, NavDestinationMode, NavDestinationContext, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./ArkNavDestinationInterfaces" import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" import { ResourceStr } from "./ArkUnitsInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { Resource } from "./ArkResourceInterfaces" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { @@ -67,27 +66,27 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onShown(value: (() => void)): this { + onShown(value: Function0): this { if (this.checkPriority("onShown")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onShownAttribute(value_casted) return this } return this } /** @memo */ - onHidden(value: (() => void)): this { + onHidden(value: Function0): this { if (this.checkPriority("onHidden")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onHiddenAttribute(value_casted) return this } return this } /** @memo */ - onBackPressed(value: (() => boolean)): this { + onBackPressed(value: Function0): this { if (this.checkPriority("onBackPressed")) { - const value_casted = value as ((() => boolean)) + const value_casted = value as (Function0) this.getPeer()?.onBackPressedAttribute(value_casted) return this } @@ -121,45 +120,45 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onReady(value: ((parameter: NavDestinationContext) => void)): this { + onReady(value: Function1): this { if (this.checkPriority("onReady")) { - const value_casted = value as (((parameter: NavDestinationContext) => void)) + const value_casted = value as (Function1) this.getPeer()?.onReadyAttribute(value_casted) return this } return this } /** @memo */ - onWillAppear(value: (() => void)): this { + onWillAppear(value: Function0): this { if (this.checkPriority("onWillAppear")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onWillAppearAttribute(value_casted) return this } return this } /** @memo */ - onWillDisappear(value: (() => void)): this { + onWillDisappear(value: Function0): this { if (this.checkPriority("onWillDisappear")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onWillDisappearAttribute(value_casted) return this } return this } /** @memo */ - onWillShow(value: (() => void)): this { + onWillShow(value: Function0): this { if (this.checkPriority("onWillShow")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onWillShowAttribute(value_casted) return this } return this } /** @memo */ - onWillHide(value: (() => void)): this { + onWillHide(value: Function0): this { if (this.checkPriority("onWillHide")) { - const value_casted = value as ((() => void)) + const value_casted = value as (Function0) this.getPeer()?.onWillHideAttribute(value_casted) return this } diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index 1be24de34..6cf91c88d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -16,9 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathInfo, NavPathStack } from "./ArkNavigationInterfaces" +import { NavPathInfo } from "./ArkNavigationInterfaces" +import { NavPathStack } from "./../handwritten/ArkNavPathStack" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" -import { INTERFACE_NavDestinationContext } from "./SyntheticDeclarations" +// import { INTERFACE_NavDestinationContext } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -29,7 +30,6 @@ import { NativeModule } from "#components" import { wrapCallback } from "@koalaui/interop" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NativeBuffer } from "./NativeBuffer" import { int32, @@ -50,8 +50,7 @@ import { } from "@koalaui/interop" -export class NavDestinationContext implements MaterializedBase,INTERFACE_NavDestinationContext { - peer?: Finalizable +export class NavDestinationContext { get pathInfo(): NavPathInfo { throw new Error("Not implemented") } @@ -71,27 +70,6 @@ export class NavDestinationContext implements MaterializedBase,INTERFACE_NavDest const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): NavDestinationContext { - const objNavDestinationContext : NavDestinationContext = new NavDestinationContext() - objNavDestinationContext.peer = new Finalizable(ptr, NavDestinationContext.getFinalizer()) - return objNavDestinationContext - } - static ctor(): KPointer { - const retval = NativeModule._NavDestinationContext_ctor() - return retval - } - constructor() { - { - const ctorPtr : KPointer = NavDestinationContext.ctor() - this.peer = new Finalizable(ctorPtr, NavDestinationContext.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._NavDestinationContext_getFinalizer() - } getConfigInRouteMap(): RouteMapConfig | undefined { return this.getConfigInRouteMap_serialize() } @@ -107,37 +85,32 @@ export class NavDestinationContext implements MaterializedBase,INTERFACE_NavDest return this.getNavDestinationId_serialize() } private setNavDestinationId(navDestinationId: string): void { - const navDestinationId_casted = navDestinationId as (string) - this.setNavDestinationId_serialize(navDestinationId_casted) + // const navDestinationId_casted = navDestinationId as (string) + // this.setNavDestinationId_serialize(navDestinationId_casted) } private getConfigInRouteMap_serialize(): RouteMapConfig | undefined { - const retval = NativeModule._NavDestinationContext_getConfigInRouteMap(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + // const retval = NativeModule._NavDestinationContext_getConfigInRouteMap(this.peer!.ptr) + // throw new Error("Object deserialization is not implemented.") + throw new Error("TBD") } private setPathInfo_serialize(pathInfo: NavPathInfo): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeNavPathInfo(pathInfo) - NativeModule._NavDestinationContext_setPathInfo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeNavPathInfo(pathInfo) + // NativeModule._NavDestinationContext_setPathInfo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private setPathStack_serialize(pathStack: NavPathStack): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeNavPathStack(pathStack) - NativeModule._NavDestinationContext_setPathStack(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeNavPathStack(pathStack) + // NativeModule._NavDestinationContext_setPathStack(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private getNavDestinationId_serialize(): string { - const retval = NativeModule._NavDestinationContext_getNavDestinationId(this.peer!.ptr) - return retval + // const retval = NativeModule._NavDestinationContext_getNavDestinationId(this.peer!.ptr) + // return retval + throw new Error("TBD") } private setNavDestinationId_serialize(navDestinationId: string): void { - NativeModule._NavDestinationContext_setNavDestinationId(this.peer!.ptr, navDestinationId) - } -} -export class NavDestinationContextInternal { - public static fromPtr(ptr: KPointer): NavDestinationContext { - const obj : NavDestinationContext = new NavDestinationContext() - obj.peer = new Finalizable(ptr, NavDestinationContext.getFinalizer()) - return obj + // NativeModule._NavDestinationContext_setNavDestinationId(this.peer!.ptr, navDestinationId) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts index ab17176af..db03cb854 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -6,10 +6,12 @@ import { Resource } from "./ArkResourceInterfaces" import { CustomBuilder, CommonMethod, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" import { TitleHeight } from "./ArkEnumsInterfaces" import { Length, ResourceStr } from "./ArkUnitsInterfaces" +import { NavPathInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" import { PixelMap } from "./ArkPixelMapMaterialized" -import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" + +import { NavPathStack } from "./../handwritten/ArkNavPathStack" + export interface NavDestinationCommonTitle { main: string | Resource; sub: string | Resource; @@ -82,6 +84,11 @@ export interface RouteMapConfig { pageSourceFile: string; data: Object; } +export interface NavDestinationContext { + pathInfo: NavPathInfo; + pathStack: NavPathStack; + navDestinationId?: string; +} export interface NavDestinationAttribute extends CommonMethod { hideTitleBar: boolean; onShown: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts index ce10af6d3..85c7cedb2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts @@ -7,14 +7,9 @@ import { CustomBuilder, SymbolGlyphModifier, BlurStyle, CommonMethod, LayoutSafe import { TitleHeight } from "./ArkEnumsInterfaces" import { Length, ResourceStr, ResourceColor, Dimension } from "./ArkUnitsInterfaces" import { Callback_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_Boolean_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void } from "./SyntheticDeclarations" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavDestinationContext, NavDestinationMode } from "./ArkNavDestinationInterfaces" import { LengthMetrics, TextModifier } from "./ArkArkui-externalInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode } from "./ArkNavDestinationInterfaces" - -export { NavPathStack } from "../handwritten" - export interface SystemBarStyle { __SystemBarStyleStub: string; } @@ -171,6 +166,18 @@ export interface NavigationOptions { launchMode?: LaunchMode; animated?: boolean; } +/* +export interface NavPathStack { + + + + + + + + +} +*/ export type NavBar = string; export type InterceptionShowCallback = (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean) => void; export type InterceptionModeCallback = (mode: NavigationMode) => void; @@ -326,6 +333,11 @@ export interface NavigationAnimatedTransition { isInteractive?: boolean; transition: ((transitionProxy: NavigationTransitionProxy) => void); } +export interface NavigationTransitionProxy { + from: NavContentInfo; + to: NavContentInfo; + isInteractive?: boolean; +} export interface NavContentInfo { name?: string; index: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index 9b3c1ba43..8a8f9ce2b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -17,7 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { NavContentInfo } from "./ArkNavigationInterfaces" -import { INTERFACE_NavigationTransitionProxy } from "./SyntheticDeclarations" +// import { INTERFACE_NavigationTransitionProxy } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -28,7 +28,6 @@ import { NativeModule } from "#components" import { wrapCallback } from "@koalaui/interop" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NativeBuffer } from "./NativeBuffer" import { int32, @@ -49,8 +48,7 @@ import { } from "@koalaui/interop" -export class NavigationTransitionProxy implements MaterializedBase,INTERFACE_NavigationTransitionProxy { - peer?: Finalizable +export class NavigationTransitionProxy { get from(): NavContentInfo { throw new Error("Not implemented") } @@ -69,27 +67,8 @@ export class NavigationTransitionProxy implements MaterializedBase,INTERFACE_Nav set isInteractive(isInteractive: boolean | undefined) { const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) - } - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): NavigationTransitionProxy { - const objNavigationTransitionProxy : NavigationTransitionProxy = new NavigationTransitionProxy() - objNavigationTransitionProxy.peer = new Finalizable(ptr, NavigationTransitionProxy.getFinalizer()) - return objNavigationTransitionProxy - } - static ctor(): KPointer { - const retval = NativeModule._NavigationTransitionProxy_ctor() - return retval } constructor() { - { - const ctorPtr : KPointer = NavigationTransitionProxy.ctor() - this.peer = new Finalizable(ctorPtr, NavigationTransitionProxy.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._NavigationTransitionProxy_getFinalizer() } finishTransition(): void { this.finishTransition_serialize() @@ -102,53 +81,48 @@ export class NavigationTransitionProxy implements MaterializedBase,INTERFACE_Nav this.updateTransition_serialize(progress_casted) } private setFrom(from: NavContentInfo): void { - const from_casted = from as (NavContentInfo) - this.setFrom_serialize(from_casted) + // const from_casted = from as (NavContentInfo) + // this.setFrom_serialize(from_casted) } private setTo(to: NavContentInfo): void { - const to_casted = to as (NavContentInfo) - this.setTo_serialize(to_casted) + // const to_casted = to as (NavContentInfo) + // this.setTo_serialize(to_casted) } private getIsInteractive(): boolean { - return this.getIsInteractive_serialize() + // return this.getIsInteractive_serialize() + throw new Error("TBD") } private setIsInteractive(isInteractive: boolean): void { - const isInteractive_casted = isInteractive as (boolean) - this.setIsInteractive_serialize(isInteractive_casted) + // const isInteractive_casted = isInteractive as (boolean) + // this.setIsInteractive_serialize(isInteractive_casted) } private finishTransition_serialize(): void { - NativeModule._NavigationTransitionProxy_finishTransition(this.peer!.ptr) + // NativeModule._NavigationTransitionProxy_finishTransition(this.peer!.ptr) } private cancelTransition_serialize(): void { - NativeModule._NavigationTransitionProxy_cancelTransition(this.peer!.ptr) + // NativeModule._NavigationTransitionProxy_cancelTransition(this.peer!.ptr) } private updateTransition_serialize(progress: number): void { - NativeModule._NavigationTransitionProxy_updateTransition(this.peer!.ptr, progress) + // NativeModule._NavigationTransitionProxy_updateTransition(this.peer!.ptr, progress) } private setFrom_serialize(from: NavContentInfo): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeNavContentInfo(from) - NativeModule._NavigationTransitionProxy_setFrom(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeNavContentInfo(from) + // NativeModule._NavigationTransitionProxy_setFrom(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private setTo_serialize(to: NavContentInfo): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeNavContentInfo(to) - NativeModule._NavigationTransitionProxy_setTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeNavContentInfo(to) + // NativeModule._NavigationTransitionProxy_setTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private getIsInteractive_serialize(): boolean { - const retval = NativeModule._NavigationTransitionProxy_getIsInteractive(this.peer!.ptr) - return retval + // const retval = NativeModule._NavigationTransitionProxy_getIsInteractive(this.peer!.ptr) + // return retval + throw new Error("TBD") } private setIsInteractive_serialize(isInteractive: boolean): void { - NativeModule._NavigationTransitionProxy_setIsInteractive(this.peer!.ptr, isInteractive ? 1 : 0) - } -} -export class NavigationTransitionProxyInternal { - public static fromPtr(ptr: KPointer): NavigationTransitionProxy { - const obj : NavigationTransitionProxy = new NavigationTransitionProxy() - obj.peer = new Finalizable(ptr, NavigationTransitionProxy.getFinalizer()) - return obj + // NativeModule._NavigationTransitionProxy_setIsInteractive(this.peer!.ptr, isInteractive ? 1 : 0) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkSubscribaleAbstractMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSubscribaleAbstractMaterialized.ts index 06babdbfc..2affaecc6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubscribaleAbstractMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubscribaleAbstractMaterialized.ts @@ -16,8 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { IPropertySubscriber } from "./ArkIPropertySubscriberMaterialized" -import { INTERFACE_SubscribaleAbstract } from "./SyntheticDeclarations" +import { IPropertySubscriber } from "./ArkCommonTsEtsApiInterfaces" +// import { INTERFACE_SubscribaleAbstract } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -49,29 +49,7 @@ import { } from "@koalaui/interop" -export class SubscribaleAbstract implements MaterializedBase,INTERFACE_SubscribaleAbstract { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): SubscribaleAbstract { - const objSubscribaleAbstract : SubscribaleAbstract = new SubscribaleAbstract() - objSubscribaleAbstract.peer = new Finalizable(ptr, SubscribaleAbstract.getFinalizer()) - return objSubscribaleAbstract - } - static ctor(): KPointer { - const retval = NativeModule._SubscribaleAbstract_ctor() - return retval - } - constructor() { - { - const ctorPtr : KPointer = SubscribaleAbstract.ctor() - this.peer = new Finalizable(ctorPtr, SubscribaleAbstract.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return NativeModule._SubscribaleAbstract_getFinalizer() - } +export class SubscribaleAbstract { notifyPropertyHasChanged(propName: string, newValue: object): void { const propName_casted = propName as (string) const newValue_casted = newValue as (object) @@ -90,31 +68,24 @@ export class SubscribaleAbstract implements MaterializedBase,INTERFACE_Subscriba this.removeOwningPropertyById_serialize(subscriberId_casted) } private notifyPropertyHasChanged_serialize(propName: string, newValue: object): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Any", newValue) - NativeModule._SubscribaleAbstract_notifyPropertyHasChanged(this.peer!.ptr, propName, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeCustomObject("Any", newValue) + // NativeModule._SubscribaleAbstract_notifyPropertyHasChanged(this.peer!.ptr, propName, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private addOwningProperty_serialize(subscriber: IPropertySubscriber): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeIPropertySubscriber(subscriber) - NativeModule._SubscribaleAbstract_addOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeIPropertySubscriber(subscriber) + // NativeModule._SubscribaleAbstract_addOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private removeOwningProperty_serialize(property: IPropertySubscriber): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeIPropertySubscriber(property) - NativeModule._SubscribaleAbstract_removeOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.writeIPropertySubscriber(property) + // NativeModule._SubscribaleAbstract_removeOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private removeOwningPropertyById_serialize(subscriberId: number): void { - NativeModule._SubscribaleAbstract_removeOwningPropertyById(this.peer!.ptr, subscriberId) - } -} -export class SubscribaleAbstractInternal { - public static fromPtr(ptr: KPointer): SubscribaleAbstract { - const obj : SubscribaleAbstract = new SubscribaleAbstract() - obj.peer = new Finalizable(ptr, SubscribaleAbstract.getFinalizer()) - return obj + // NativeModule._SubscribaleAbstract_removeOwningPropertyById(this.peer!.ptr, subscriberId) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts index 1ad74d01c..2fbfdac62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -24,13 +24,12 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, AttributeModifier } from "./ArkCommonInterfaces" import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ResourceColor } from "./ArkUnitsInterfaces" import { FontWeight } from "./ArkEnumsInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" /** @memo:stable */ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolSpanPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts index a055e1ff9..45e5d05fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -3,11 +3,10 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { NativeBuffer } from "./NativeBuffer" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, AttributeModifier } from "./ArkCommonInterfaces" import { ResourceColor } from "./ArkUnitsInterfaces" import { FontWeight } from "./ArkEnumsInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" -import { AttributeModifier } from "./ArkAttributeModifierMaterialized" export type SymbolSpanInterface = (value: Resource) => SymbolSpanAttribute; export interface SymbolSpanAttribute extends CommonMethod { fontSize: number | string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index c76901187..3e1d6f23b 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -1,6 +1,5 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" -import { NavPathStack } from "../handwritten" import { NodeAttach, remember } from "@koalaui/runtime" import { NativeBuffer } from "./NativeBuffer" import { Callback_RangeUpdate } from "./ArkArkui-customInterfaces" @@ -26,7 +25,6 @@ import { HorizontalAlign, VerticalAlign, GradientDirection, HitTestMode, Alignme import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { GestureJudgeResult, GestureInfo, BaseGestureEvent, GestureEvent, PanDirection, SwipeDirection, GestureControl_GestureType, GestureRecognizerState } from "./ArkGestureInterfaces" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { IPropertySubscriber } from "./ArkIPropertySubscriberMaterialized" import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" import { DatePickerResult, DatePickerDialogOptions } from "./ArkDatePickerInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" @@ -38,10 +36,8 @@ import { ScrollState, CloseSwipeActionOptions, VisibleListContentInfo } from "./ import { ScrollAlign, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" import { SwipeActionState } from "./ArkListItemInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" -import { NavPathInfo, PopInfo, NavigationTitleMode, NavigationMode, NavigationAnimatedTransition, NavContentInfo, NavigationOperation } from "./ArkNavigationInterfaces" -import { RouteMapConfig } from "./ArkNavDestinationInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" +import { NavDestinationContext } from "./ArkNavDestinationInterfaces" +import { PopInfo, NavigationTitleMode, NavigationMode, NavigationAnimatedTransition, NavContentInfo, NavigationOperation, NavigationTransitionProxy } from "./ArkNavigationInterfaces" import { NavigationType } from "./ArkNavigatorInterfaces" import { PanelMode } from "./ArkPanelInterfaces" import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" @@ -223,8 +219,6 @@ export interface Literal_ResourceColor_color { export type Callback_DismissPopupAction_Void = (parameter: DismissPopupAction) => void; export interface INTERFACE_ProgressMask { } -export interface INTERFACE_AttributeModifier { -} export type Callback_TouchResult_Void = (value: TouchResult) => void; export type Callback_Array_TouchTestInfo_TouchResult = (value: Array) => TouchResult; export type Callback_ClickEvent_Void = (event: ClickEvent) => void; @@ -297,14 +291,6 @@ export interface INTERFACE_ChildrenMainSize { } export interface INTERFACE_GestureModifier { } -export interface INTERFACE_AbstractProperty { -} -export interface INTERFACE_IPropertySubscriber { -} -export interface INTERFACE_ISinglePropertyChangeSubscriber { -} -export interface INTERFACE_SubscribaleAbstract { -} export interface Literal_String_key_Any_defaultValue { key: string; defaultValue: object; @@ -419,11 +405,6 @@ export interface INTERFACE_Matrix2D { translateY?: number; } -export interface INTERFACE_NavDestinationContext { - pathInfo: NavPathInfo; - pathStack: NavPathStack; - navDestinationId?: string; -} export type Callback_Boolean = () => boolean; export type Callback_NavDestinationContext_Void = (parameter: NavDestinationContext) => void; export type Callback_PopInfo_Void = (parameter: PopInfo) => void; @@ -437,11 +418,6 @@ export type Callback_String_Unknown_Void = (name: string, param: object) => void export type Callback_Opt_NavigationAnimatedTransition_Void = (value: NavigationAnimatedTransition | undefined) => void; export type Type_NavigationAttribute_customNavContentTransition_delegate = (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined; export type Callback_NavigationTransitionProxy_Void = (transitionProxy: NavigationTransitionProxy) => void; -export interface INTERFACE_NavigationTransitionProxy { - from: NavContentInfo; - to: NavContentInfo; - isInteractive?: boolean; -} export interface Literal_String_target_NavigationType_type { target: string; type?: NavigationType; diff --git a/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts index da51f0179..1029ac533 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts @@ -697,28 +697,6 @@ export class NativeModule { native static _MenuItemAttribute_labelFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _MenuItemGroup_construct(id: KInt, flags: KInt): KPointer native static _MenuItemGroupInterface_setMenuItemGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestination_construct(id: KInt, flags: KInt): KPointer - native static _NavDestinationInterface_setNavDestinationOptions(ptr: KPointer): void - native static _NavDestinationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void - native static _NavDestinationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void - native static _NavDestinationAttribute_onShown(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onHidden(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onBackPressed(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_mode(ptr: KPointer, value: KInt): void - native static _NavDestinationAttribute_backButtonIcon(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_menus(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onReady(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onWillAppear(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onWillDisappear(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onWillShow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_onWillHide(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_systemBarStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_recoverable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_systemTransition(ptr: KPointer, value: KInt): void - native static _NavDestinationAttribute_title(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_toolbarConfiguration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_hideToolBar(ptr: KPointer, hide: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavRouter_construct(id: KInt, flags: KInt): KPointer native static _NavRouterInterface_setNavRouterOptions0(ptr: KPointer): void native static _NavRouterInterface_setNavRouterOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1767,13 +1745,6 @@ export class NativeModule { native static _ProgressMask_updateProgress(ptr: KPointer, value: number): void native static _ProgressMask_updateColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void - native static _AttributeModifier_ctor(): KPointer - native static _AttributeModifier_getFinalizer(): KPointer - native static _AttributeModifier_applyNormalAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AttributeModifier_applyPressedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AttributeModifier_applyFocusedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AttributeModifier_applyDisabledAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AttributeModifier_applySelectedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _View_ctor(): KPointer native static _View_getFinalizer(): KPointer native static _View_create(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): object @@ -1794,24 +1765,6 @@ export class NativeModule { native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AbstractProperty_ctor(): KPointer - native static _AbstractProperty_getFinalizer(): KPointer - native static _AbstractProperty_get(ptr: KPointer): KPointer - native static _AbstractProperty_set(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _AbstractProperty_info(ptr: KPointer): string - native static _IPropertySubscriber_ctor(): KPointer - native static _IPropertySubscriber_getFinalizer(): KPointer - native static _IPropertySubscriber_id(ptr: KPointer): number - native static _IPropertySubscriber_aboutToBeDeleted(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ISinglePropertyChangeSubscriber_ctor(): KPointer - native static _ISinglePropertyChangeSubscriber_getFinalizer(): KPointer - native static _ISinglePropertyChangeSubscriber_hasChanged(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SubscribaleAbstract_ctor(): KPointer - native static _SubscribaleAbstract_getFinalizer(): KPointer - native static _SubscribaleAbstract_notifyPropertyHasChanged(ptr: KPointer, propName: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SubscribaleAbstract_addOwningProperty(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SubscribaleAbstract_removeOwningProperty(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _SubscribaleAbstract_removeOwningPropertyById(ptr: KPointer, subscriberId: number): void native static _ContextMenu_ctor(): KPointer native static _ContextMenu_getFinalizer(): KPointer native static _ContextMenu_close(): undefined @@ -1878,22 +1831,6 @@ export class NativeModule { native static _Matrix2D_setTranslateX(ptr: KPointer, translateX: number): void native static _Matrix2D_getTranslateY(ptr: KPointer): number native static _Matrix2D_setTranslateY(ptr: KPointer, translateY: number): void - native static _NavDestinationContext_ctor(): KPointer - native static _NavDestinationContext_getFinalizer(): KPointer - native static _NavDestinationContext_getConfigInRouteMap(ptr: KPointer): KPointer - native static _NavDestinationContext_setPathInfo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationContext_setPathStack(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationContext_getNavDestinationId(ptr: KPointer): string - native static _NavDestinationContext_setNavDestinationId(ptr: KPointer, navDestinationId: KStringPtr): void - native static _NavigationTransitionProxy_ctor(): KPointer - native static _NavigationTransitionProxy_getFinalizer(): KPointer - native static _NavigationTransitionProxy_finishTransition(ptr: KPointer): void - native static _NavigationTransitionProxy_cancelTransition(ptr: KPointer): void - native static _NavigationTransitionProxy_updateTransition(ptr: KPointer, progress: number): void - native static _NavigationTransitionProxy_setFrom(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavigationTransitionProxy_setTo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavigationTransitionProxy_getIsInteractive(ptr: KPointer): boolean - native static _NavigationTransitionProxy_setIsInteractive(ptr: KPointer, isInteractive: KInt): void native static _PatternLockController_ctor(): KPointer native static _PatternLockController_getFinalizer(): KPointer native static _PatternLockController_reset(ptr: KPointer): undefined diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index b5f602d9e..26914dbc1 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -7,7 +7,7 @@ import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, LengthMetrics } from "./../ArkArkui-externalInterfaces" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { UIContext, ClickEvent, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, AnimateParam, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, TranslateOptions, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BaseEvent, BorderImageOption, LinearGradient_common, HoverEvent, MouseEvent, AccessibilityHoverEvent, TouchObject, HistoricalPoint, TouchEvent, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, DragEvent, IntentionCode, KeyEvent, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, Measurable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CustomComponent, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, UICommonEvent, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { UIContext, ClickEvent, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, AnimateParam, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, TranslateOptions, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BaseEvent, BorderImageOption, LinearGradient_common, HoverEvent, MouseEvent, AccessibilityHoverEvent, TouchObject, HistoricalPoint, TouchEvent, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, DragEvent, IntentionCode, KeyEvent, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, AttributeModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, Measurable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CustomComponent, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, UICommonEvent, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_ScrollState_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_common_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Any, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback_Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Callback_Literal_Function_callback_Object_fileSelector_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" @@ -49,7 +49,6 @@ import { ICurve } from "./../ArkICurveMaterialized" import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { EllipseAttribute, EllipseOptions, EllipseInterface } from "./../ArkEllipseInterfaces" @@ -63,11 +62,7 @@ import { ScrollState, ListItemAlign, ListItemGroupArea, StickyStyle, ChainEdgeEf import { ScrollOnWillScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" -import { AbstractProperty } from "./../ArkAbstractPropertyMaterialized" -import { IPropertySubscriber } from "./../ArkIPropertySubscriberMaterialized" -import { ISinglePropertyChangeSubscriber } from "./../ArkISinglePropertyChangeSubscriberMaterialized" -import { SubscribaleAbstract } from "./../ArkSubscribaleAbstractMaterialized" -import { EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" +import { AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" import { Scene, ModelType, SceneOptions, Component3DInterface, Component3DAttribute } from "./../ArkComponent3dInterfaces" import { ContainerSpanInterface, ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { TextBackgroundStyle, BaseSpan, SpanInterface, SpanAttribute } from "./../ArkSpanInterfaces" @@ -118,11 +113,9 @@ import { ASTCResource, MediaCachedImageInterface, MediaCachedImageAttribute } fr import { MenuInterface, MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" import { MenuItemOptions, MenuItemInterface, MenuItemAttribute } from "./../ArkMenuItemInterfaces" import { MenuItemGroupOptions, MenuItemGroupInterface, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" -import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavPathStack, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, NavigationAttribute, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig, NavDestinationContext } from "./../ArkNavDestinationInterfaces" +import { NavPathInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, NavigationAttribute, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition, NavigationTransitionProxy } from "./../ArkNavigationInterfaces" import { RouteInfo, NavRouterInterface, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" -import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" import { NavigationType, NavigatorInterface, NavigatorAttribute } from "./../ArkNavigatorInterfaces" import { NodeContainerInterface, NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" import { RouteType, SlideEffect, CommonTransition, PageTransitionOptions, PageTransitionEnterInterface, PageTransitionCallback, PageTransitionExitInterface } from "./../ArkPageTransitionInterfaces" @@ -240,6 +233,9 @@ import { CustomSpan } from "./../ArkCustomSpanMaterialized" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { LinearIndicatorStartOptions, LinearIndicatorStyle, LinearIndicatorInterface, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" import { RawFileDescriptor } from "./../ArkRawFileDescriptorInterfaces" + +import { NativeBuffer } from "../NativeBuffer" + export class TypeChecker { static isAbilityComponentAttribute(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof AbilityComponentAttribute @@ -2236,9 +2232,9 @@ export class TypeChecker { static isNavPathInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof NavPathInfo } - static isNavPathStack(value: object|string|number|undefined|null): boolean { - return value instanceof NavPathStack - } + // static isNavPathStack(value: object|string|number|undefined|null): boolean { + // return value instanceof NavPathStack + // } static isNavRouteMode(value: object|string|number|undefined|null): boolean { return value instanceof NavRouteMode } @@ -4246,6 +4242,9 @@ export class TypeChecker { static isArray_Header(value: object|string|number|undefined|null): boolean { return value instanceof Array
} + static isArray_Buffer(value: object|string|number|undefined|null): boolean { + return value instanceof Array + } static isArray_ScriptItem(value: object|string|number|undefined|null): boolean { return value instanceof Array } diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index dc6928249..69132e21c 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -49,7 +49,6 @@ export * from "./ArkMediaCachedImage" export * from "./ArkMenu" export * from "./ArkMenuItem" export * from "./ArkMenuItemGroup" -export * from "./ArkNavDestination" export * from "./ArkNavRouter" export * from "./ArkNavigator" export * from "./ArkNodeContainer" @@ -131,16 +130,11 @@ export * from "./ArkDrawModifierMaterialized" export * from "./ArkTransitionEffectMaterialized" export * from "./ArkPixelMapMockMaterialized" export * from "./ArkProgressMaskMaterialized" -export * from "./ArkAttributeModifierMaterialized" export * from "./ArkViewMaterialized" export * from "./ArkTextContentControllerBaseMaterialized" export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkGestureModifierMaterialized" -export * from "./ArkAbstractPropertyMaterialized" -export * from "./ArkIPropertySubscriberMaterialized" -export * from "./ArkISinglePropertyChangeSubscriberMaterialized" -export * from "./ArkSubscribaleAbstractMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" export * from "./ArkDatePickerDialogMaterialized" @@ -152,8 +146,6 @@ export * from "./ArkPanRecognizerMaterialized" export * from "./ArkImageAnalyzerControllerMaterialized" export * from "./ArkListScrollerMaterialized" export * from "./ArkMatrix2DMaterialized" -export * from "./ArkNavDestinationContextMaterialized" -export * from "./ArkNavigationTransitionProxyMaterialized" export * from "./ArkPatternLockControllerMaterialized" export * from "./ArkRichEditorBaseControllerMaterialized" export * from "./ArkRichEditorControllerMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/peer_events.ts b/arkoala-arkts/arkui/src/generated/peer_events.ts index 036669266..9c8bf9ade 100644 --- a/arkoala-arkts/arkui/src/generated/peer_events.ts +++ b/arkoala-arkts/arkui/src/generated/peer_events.ts @@ -1,7 +1,7 @@ import { RuntimeType } from "./peers/SerializerBase" import { int32 } from "@koalaui/common" import { KStringPtr, KPointer } from "@koalaui/interop" -import { Callback_Void, Callback_Number_Void, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Callback_Number_ScrollState_Void, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Any, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Boolean_Void, Callback_String_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Number_SliderChangeMode_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want } from "./SyntheticDeclarations" +import { Callback_Void, Callback_Number_Void, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Callback_Number_ScrollState_Void, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Any, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Boolean_Void, Callback_String_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Number_SliderChangeMode_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want } from "./SyntheticDeclarations" import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" import { CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" import { VoidCallback, Area, SizeOptions } from "./ArkUnitsInterfaces" @@ -20,7 +20,6 @@ import { ComputedBarAttribute } from "./ArkGridInterfaces" import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" -import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { PanelMode } from "./ArkPanelInterfaces" import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" @@ -163,214 +162,206 @@ export enum PeerEventKind { Marquee_onBounce = 116, Marquee_onFinish = 117, MenuItem_onChange = 118, - NavDestination_onShown = 119, - NavDestination_onHidden = 120, - NavDestination_onBackPressed = 121, - NavDestination_onReady = 122, - NavDestination_onWillAppear = 123, - NavDestination_onWillDisappear = 124, - NavDestination_onWillShow = 125, - NavDestination_onWillHide = 126, - NavRouter_onStateChange = 127, - Panel_onChange = 128, - Panel_onHeightChange = 129, - PasteButton_onClick = 130, - PatternLock_onPatternComplete = 131, - PatternLock_onDotConnect = 132, - PluginComponent_onComplete = 133, - PluginComponent_onError = 134, - Radio_onChange = 135, - Rating_onChange = 136, - Refresh_onStateChange = 137, - Refresh_onRefreshing = 138, - Refresh_onOffsetChange = 139, - RichEditor_onReady = 140, - RichEditor_onSelect = 141, - RichEditor_onSelectionChange = 142, - RichEditor_aboutToIMEInput = 143, - RichEditor_onIMEInputComplete = 144, - RichEditor_onDidIMEInput = 145, - RichEditor_aboutToDelete = 146, - RichEditor_onDeleteComplete = 147, - RichEditor_onPaste = 148, - RichEditor_onEditingChange = 149, - RichEditor_onSubmit = 150, - RichEditor_onWillChange = 151, - RichEditor_onDidChange = 152, - RichEditor_onCut = 153, - RichEditor_onCopy = 154, - RichEditor_bindSelectionMenu = 155, - RichEditor_customKeyboard = 156, - RichText_onStart = 157, - RichText_onComplete = 158, - SaveButton_onClick = 159, - Scroll_onScroll = 160, - Scroll_onScrollEdge = 161, - Scroll_onScrollStart = 162, - Scroll_onScrollEnd = 163, - Scroll_onScrollStop = 164, - Scroll_onScrollFrameBegin = 165, - Search_onEditChange = 166, - Search_onSubmit0 = 167, - Search_onSubmit1 = 168, - Search_onChange = 169, - Search_onTextSelectionChange = 170, - Search_onContentScroll = 171, - Search_onCopy = 172, - Search_onCut = 173, - Search_onPaste = 174, - Search_onWillInsert = 175, - Search_onDidInsert = 176, - Search_onWillDelete = 177, - Search_onDidDelete = 178, - Search_customKeyboard = 179, - Select_onSelect = 180, - Slider_onChange = 181, - Stepper_onFinish = 182, - Stepper_onSkip = 183, - Stepper_onChange = 184, - Stepper_onNext = 185, - Stepper_onPrevious = 186, - Swiper_onChange = 187, - Swiper_onAnimationStart = 188, - Swiper_onAnimationEnd = 189, - Swiper_onGestureSwipe = 190, - Swiper_onContentDidScroll = 191, - IndicatorComponent_onChange = 192, - Tabs_onChange = 193, - Tabs_onTabBarClick = 194, - Tabs_onAnimationStart = 195, - Tabs_onAnimationEnd = 196, - Tabs_onGestureSwipe = 197, - Tabs_customContentTransition = 198, - Tabs_onContentWillChange = 199, - TabContent_onWillShow = 200, - TabContent_onWillHide = 201, - Text_onCopy = 202, - Text_onTextSelectionChange = 203, - Text_bindSelectionMenu = 204, - TextArea_onSubmit0 = 205, - TextArea_onSubmit1 = 206, - TextArea_onChange = 207, - TextArea_onTextSelectionChange = 208, - TextArea_onContentScroll = 209, - TextArea_onEditChange = 210, - TextArea_onCopy = 211, - TextArea_onCut = 212, - TextArea_onPaste = 213, - TextArea_onWillInsert = 214, - TextArea_onDidInsert = 215, - TextArea_onWillDelete = 216, - TextArea_onDidDelete = 217, - TextArea_customKeyboard = 218, - TextClock_onDateChange = 219, - TextInput_onEditChanged = 220, - TextInput_onEditChange = 221, - TextInput_onSubmit = 222, - TextInput_onChange = 223, - TextInput_onTextSelectionChange = 224, - TextInput_onContentScroll = 225, - TextInput_onCopy = 226, - TextInput_onCut = 227, - TextInput_onPaste = 228, - TextInput_showUnit = 229, - TextInput_onSecurityStateChange = 230, - TextInput_onWillInsert = 231, - TextInput_onDidInsert = 232, - TextInput_onWillDelete = 233, - TextInput_onDidDelete = 234, - TextInput_customKeyboard = 235, - TextPicker_onAccept = 236, - TextPicker_onCancel = 237, - TextPicker_onChange = 238, - TextTimer_onTimer = 239, - TimePicker_onChange = 240, - Toggle_onChange = 241, - Video_onStart = 242, - Video_onPause = 243, - Video_onFinish = 244, - Video_onFullscreenChange = 245, - Video_onPrepared = 246, - Video_onSeeking = 247, - Video_onSeeked = 248, - Video_onUpdate = 249, - Video_onError = 250, - Video_onStop = 251, - Web_onPageEnd = 252, - Web_onPageBegin = 253, - Web_onProgressChange = 254, - Web_onTitleReceive = 255, - Web_onGeolocationHide = 256, - Web_onGeolocationShow = 257, - Web_onRequestSelected = 258, - Web_onAlert = 259, - Web_onBeforeUnload = 260, - Web_onConfirm = 261, - Web_onPrompt = 262, - Web_onConsole = 263, - Web_onErrorReceive = 264, - Web_onHttpErrorReceive = 265, - Web_onDownloadStart = 266, - Web_onRefreshAccessedHistory = 267, - Web_onUrlLoadIntercept = 268, - Web_onSslErrorReceive = 269, - Web_onRenderExited0 = 270, - Web_onRenderExited1 = 271, - Web_onShowFileSelector = 272, - Web_onFileSelectorShow = 273, - Web_onResourceLoad = 274, - Web_onFullScreenExit = 275, - Web_onFullScreenEnter = 276, - Web_onScaleChange = 277, - Web_onHttpAuthRequest = 278, - Web_onInterceptRequest = 279, - Web_onPermissionRequest = 280, - Web_onScreenCaptureRequest = 281, - Web_onContextMenuShow = 282, - Web_onContextMenuHide = 283, - Web_onSearchResultReceive = 284, - Web_onScroll = 285, - Web_onSslErrorEventReceive = 286, - Web_onSslErrorEvent = 287, - Web_onClientAuthenticationRequest = 288, - Web_onWindowNew = 289, - Web_onWindowExit = 290, - Web_onInterceptKeyEvent = 291, - Web_onTouchIconUrlReceived = 292, - Web_onFaviconReceived = 293, - Web_onPageVisible = 294, - Web_onDataResubmitted = 295, - Web_onAudioStateChanged = 296, - Web_onFirstContentfulPaint = 297, - Web_onFirstMeaningfulPaint = 298, - Web_onLargestContentfulPaint = 299, - Web_onLoadIntercept = 300, - Web_onControllerAttached = 301, - Web_onOverScroll = 302, - Web_onSafeBrowsingCheckResult = 303, - Web_onNavigationEntryCommitted = 304, - Web_onIntelligentTrackingPreventionResult = 305, - Web_onNativeEmbedLifecycleChange = 306, - Web_onNativeEmbedVisibilityChange = 307, - Web_onNativeEmbedGestureEvent = 308, - Web_onOverrideUrlLoading = 309, - Web_onRenderProcessNotResponding = 310, - Web_onRenderProcessResponding = 311, - Web_onViewportFitChanged = 312, - Web_onInterceptKeyboardAttach = 313, - Web_onAdsBlocked = 314, - Web_bindSelectionMenu = 315, - XComponent_onLoad = 316, - XComponent_onDestroy = 317, - SideBarContainer_onChange = 318, - WaterFlow_onReachStart = 319, - WaterFlow_onReachEnd = 320, - WaterFlow_onScrollFrameBegin = 321, - WaterFlow_onScrollIndex = 322, - UIExtensionComponent_onRemoteReady = 323, - UIExtensionComponent_onResult = 324, - UIExtensionComponent_onRelease = 325, - UIExtensionComponent_onTerminated = 326, + NavRouter_onStateChange = 119, + Panel_onChange = 120, + Panel_onHeightChange = 121, + PasteButton_onClick = 122, + PatternLock_onPatternComplete = 123, + PatternLock_onDotConnect = 124, + PluginComponent_onComplete = 125, + PluginComponent_onError = 126, + Radio_onChange = 127, + Rating_onChange = 128, + Refresh_onStateChange = 129, + Refresh_onRefreshing = 130, + Refresh_onOffsetChange = 131, + RichEditor_onReady = 132, + RichEditor_onSelect = 133, + RichEditor_onSelectionChange = 134, + RichEditor_aboutToIMEInput = 135, + RichEditor_onIMEInputComplete = 136, + RichEditor_onDidIMEInput = 137, + RichEditor_aboutToDelete = 138, + RichEditor_onDeleteComplete = 139, + RichEditor_onPaste = 140, + RichEditor_onEditingChange = 141, + RichEditor_onSubmit = 142, + RichEditor_onWillChange = 143, + RichEditor_onDidChange = 144, + RichEditor_onCut = 145, + RichEditor_onCopy = 146, + RichEditor_bindSelectionMenu = 147, + RichEditor_customKeyboard = 148, + RichText_onStart = 149, + RichText_onComplete = 150, + SaveButton_onClick = 151, + Scroll_onScroll = 152, + Scroll_onScrollEdge = 153, + Scroll_onScrollStart = 154, + Scroll_onScrollEnd = 155, + Scroll_onScrollStop = 156, + Scroll_onScrollFrameBegin = 157, + Search_onEditChange = 158, + Search_onSubmit0 = 159, + Search_onSubmit1 = 160, + Search_onChange = 161, + Search_onTextSelectionChange = 162, + Search_onContentScroll = 163, + Search_onCopy = 164, + Search_onCut = 165, + Search_onPaste = 166, + Search_onWillInsert = 167, + Search_onDidInsert = 168, + Search_onWillDelete = 169, + Search_onDidDelete = 170, + Search_customKeyboard = 171, + Select_onSelect = 172, + Slider_onChange = 173, + Stepper_onFinish = 174, + Stepper_onSkip = 175, + Stepper_onChange = 176, + Stepper_onNext = 177, + Stepper_onPrevious = 178, + Swiper_onChange = 179, + Swiper_onAnimationStart = 180, + Swiper_onAnimationEnd = 181, + Swiper_onGestureSwipe = 182, + Swiper_onContentDidScroll = 183, + IndicatorComponent_onChange = 184, + Tabs_onChange = 185, + Tabs_onTabBarClick = 186, + Tabs_onAnimationStart = 187, + Tabs_onAnimationEnd = 188, + Tabs_onGestureSwipe = 189, + Tabs_customContentTransition = 190, + Tabs_onContentWillChange = 191, + TabContent_onWillShow = 192, + TabContent_onWillHide = 193, + Text_onCopy = 194, + Text_onTextSelectionChange = 195, + Text_bindSelectionMenu = 196, + TextArea_onSubmit0 = 197, + TextArea_onSubmit1 = 198, + TextArea_onChange = 199, + TextArea_onTextSelectionChange = 200, + TextArea_onContentScroll = 201, + TextArea_onEditChange = 202, + TextArea_onCopy = 203, + TextArea_onCut = 204, + TextArea_onPaste = 205, + TextArea_onWillInsert = 206, + TextArea_onDidInsert = 207, + TextArea_onWillDelete = 208, + TextArea_onDidDelete = 209, + TextArea_customKeyboard = 210, + TextClock_onDateChange = 211, + TextInput_onEditChanged = 212, + TextInput_onEditChange = 213, + TextInput_onSubmit = 214, + TextInput_onChange = 215, + TextInput_onTextSelectionChange = 216, + TextInput_onContentScroll = 217, + TextInput_onCopy = 218, + TextInput_onCut = 219, + TextInput_onPaste = 220, + TextInput_showUnit = 221, + TextInput_onSecurityStateChange = 222, + TextInput_onWillInsert = 223, + TextInput_onDidInsert = 224, + TextInput_onWillDelete = 225, + TextInput_onDidDelete = 226, + TextInput_customKeyboard = 227, + TextPicker_onAccept = 228, + TextPicker_onCancel = 229, + TextPicker_onChange = 230, + TextTimer_onTimer = 231, + TimePicker_onChange = 232, + Toggle_onChange = 233, + Video_onStart = 234, + Video_onPause = 235, + Video_onFinish = 236, + Video_onFullscreenChange = 237, + Video_onPrepared = 238, + Video_onSeeking = 239, + Video_onSeeked = 240, + Video_onUpdate = 241, + Video_onError = 242, + Video_onStop = 243, + Web_onPageEnd = 244, + Web_onPageBegin = 245, + Web_onProgressChange = 246, + Web_onTitleReceive = 247, + Web_onGeolocationHide = 248, + Web_onGeolocationShow = 249, + Web_onRequestSelected = 250, + Web_onAlert = 251, + Web_onBeforeUnload = 252, + Web_onConfirm = 253, + Web_onPrompt = 254, + Web_onConsole = 255, + Web_onErrorReceive = 256, + Web_onHttpErrorReceive = 257, + Web_onDownloadStart = 258, + Web_onRefreshAccessedHistory = 259, + Web_onUrlLoadIntercept = 260, + Web_onSslErrorReceive = 261, + Web_onRenderExited0 = 262, + Web_onRenderExited1 = 263, + Web_onShowFileSelector = 264, + Web_onFileSelectorShow = 265, + Web_onResourceLoad = 266, + Web_onFullScreenExit = 267, + Web_onFullScreenEnter = 268, + Web_onScaleChange = 269, + Web_onHttpAuthRequest = 270, + Web_onInterceptRequest = 271, + Web_onPermissionRequest = 272, + Web_onScreenCaptureRequest = 273, + Web_onContextMenuShow = 274, + Web_onContextMenuHide = 275, + Web_onSearchResultReceive = 276, + Web_onScroll = 277, + Web_onSslErrorEventReceive = 278, + Web_onSslErrorEvent = 279, + Web_onClientAuthenticationRequest = 280, + Web_onWindowNew = 281, + Web_onWindowExit = 282, + Web_onInterceptKeyEvent = 283, + Web_onTouchIconUrlReceived = 284, + Web_onFaviconReceived = 285, + Web_onPageVisible = 286, + Web_onDataResubmitted = 287, + Web_onAudioStateChanged = 288, + Web_onFirstContentfulPaint = 289, + Web_onFirstMeaningfulPaint = 290, + Web_onLargestContentfulPaint = 291, + Web_onLoadIntercept = 292, + Web_onControllerAttached = 293, + Web_onOverScroll = 294, + Web_onSafeBrowsingCheckResult = 295, + Web_onNavigationEntryCommitted = 296, + Web_onIntelligentTrackingPreventionResult = 297, + Web_onNativeEmbedLifecycleChange = 298, + Web_onNativeEmbedVisibilityChange = 299, + Web_onNativeEmbedGestureEvent = 300, + Web_onOverrideUrlLoading = 301, + Web_onRenderProcessNotResponding = 302, + Web_onRenderProcessResponding = 303, + Web_onViewportFitChanged = 304, + Web_onInterceptKeyboardAttach = 305, + Web_onAdsBlocked = 306, + Web_bindSelectionMenu = 307, + XComponent_onLoad = 308, + XComponent_onDestroy = 309, + SideBarContainer_onChange = 310, + WaterFlow_onReachStart = 311, + WaterFlow_onReachEnd = 312, + WaterFlow_onScrollFrameBegin = 313, + WaterFlow_onScrollIndex = 314, + UIExtensionComponent_onRemoteReady = 315, + UIExtensionComponent_onResult = 316, + UIExtensionComponent_onRelease = 317, + UIExtensionComponent_onTerminated = 318, } interface PeerEvent { @@ -851,31 +842,6 @@ export interface MenuItem_onChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean } -export interface NavDestination_onShown_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onHidden_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onBackPressed_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onReady_event extends PeerEvent { - readonly kind: PeerEventKind - readonly parameter: NavDestinationContext -} -export interface NavDestination_onWillAppear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillDisappear_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind -} -export interface NavDestination_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind -} export interface NavRouter_onStateChange_event extends PeerEvent { readonly kind: PeerEventKind readonly parameter: boolean @@ -1807,14 +1773,6 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" - case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" - case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" - case PeerEventKind.NavDestination_onReady: return "NavDestination_onReady" - case PeerEventKind.NavDestination_onWillAppear: return "NavDestination_onWillAppear" - case PeerEventKind.NavDestination_onWillDisappear: return "NavDestination_onWillDisappear" - case PeerEventKind.NavDestination_onWillShow: return "NavDestination_onWillShow" - case PeerEventKind.NavDestination_onWillHide: return "NavDestination_onWillHide" case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" case PeerEventKind.Panel_onChange: return "Panel_onChange" case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" @@ -2138,14 +2096,6 @@ export class PeerEventsProperties { Marquee_onBounce?: (() => void) Marquee_onFinish?: (() => void) MenuItem_onChange?: ((parameter: boolean) => void) - NavDestination_onShown?: (() => void) - NavDestination_onHidden?: (() => void) - NavDestination_onBackPressed?: (() => boolean) - NavDestination_onReady?: ((parameter: NavDestinationContext) => void) - NavDestination_onWillAppear?: (() => void) - NavDestination_onWillDisappear?: (() => void) - NavDestination_onWillShow?: (() => void) - NavDestination_onWillHide?: (() => void) NavRouter_onStateChange?: ((parameter: boolean) => void) Panel_onChange?: ((width: number,height: number,mode: PanelMode) => void) Panel_onHeightChange?: ((index: number) => void) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 196855fde..ebbc48bae 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -26,7 +26,7 @@ import { PeerNode } from "../PeerNode" import { NativeModule } from "#components" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" -import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragEvent, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragEvent, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, AttributeModifier, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_ScrollState_Void } from "./../SyntheticDeclarations" import { LengthMetrics } from "./../ArkArkui-externalInterfaces" @@ -39,7 +39,6 @@ import { EllipseAttribute } from "./../ArkEllipseInterfaces" import { PathAttribute } from "./../ArkPathInterfaces" import { RectAttribute } from "./../ArkRectInterfaces" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureControl_GestureType, GestureMask } from "./../ArkGestureInterfaces" import { PixelMap } from "./../ArkPixelMapMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts index c7eed5655..3afe34a0e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -25,7 +25,7 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { NativeModule } from "#components" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" -import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { AttributeModifier } from "./../ArkCommonInterfaces" import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 23e711906..733965f46 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -26,12 +26,11 @@ import { PeerNode } from "../PeerNode" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" +import { NavDestinationAttribute, NavDestinationMode, NavDestinationContext, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./../SyntheticDeclarations" import { ResourceStr } from "./../ArkUnitsInterfaces" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./../ArkNavigationInterfaces" -import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { Resource } from "./../ArkResourceInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" @@ -50,272 +49,277 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { } public static create(component?: ComponentBase, flags: int32 = 0): ArkNavDestinationPeer { const peerId = PeerNode.nextId() - const _peerPtr = NativeModule._NavDestination_construct(peerId, flags) + //const _peerPtr = NativeModule._NavDestination_construct(peerId, flags) + // TBD: Chang construct to Custom + const _peerPtr = NativeModule._Column_construct(peerId, flags) const _peer = new ArkNavDestinationPeer(_peerPtr, peerId, "NavDestination", flags) component?.setPeer(_peer) return _peer } setNavDestinationOptionsAttribute(): void { - NativeModule._NavDestinationInterface_setNavDestinationOptions(this.peer.ptr) + // NativeModule._NavDestinationInterface_setNavDestinationOptions(this.peer.ptr) } hideTitleBar0Attribute(value: boolean): void { - NativeModule._NavDestinationAttribute_hideTitleBar0(this.peer.ptr, value ? 1 : 0) + // NativeModule._NavDestinationAttribute_hideTitleBar0(this.peer.ptr, value ? 1 : 0) } hideTitleBar1Attribute(hide: boolean, animated: boolean): void { - NativeModule._NavDestinationAttribute_hideTitleBar1(this.peer.ptr, hide ? 1 : 0, animated ? 1 : 0) + // NativeModule._NavDestinationAttribute_hideTitleBar1(this.peer.ptr, hide ? 1 : 0, animated ? 1 : 0) } - onShownAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onShown(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onShownAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onShown(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onHiddenAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onHidden(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onHiddenAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onHidden(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onBackPressedAttribute(value: (() => boolean)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onBackPressed(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onBackPressedAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onBackPressed(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } modeAttribute(value: NavDestinationMode): void { - NativeModule._NavDestinationAttribute_mode(this.peer.ptr, (value.value as int32)) + // NativeModule._NavDestinationAttribute_mode(this.peer.ptr, (value.value as int32)) } backButtonIconAttribute(value: ResourceStr | PixelMap | SymbolGlyphModifier): void { - const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as ResourceStr - let value_0_type : int32 = RuntimeType.UNDEFINED - value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0_0 = value_0 as string - thisSerializer.writeString(value_0_0) - } - else if (((RuntimeType.OBJECT == value_0_type))) { - thisSerializer.writeInt8(1 as int32) - const value_0_1 = value_0 as Resource - thisSerializer.writeResource(value_0_1) - } - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PixelMap)) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as PixelMap - thisSerializer.writePixelMap(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSymbolGlyphModifier(value, false))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as SymbolGlyphModifier - thisSerializer.writeSymbolGlyphModifier(value_2) - } - NativeModule._NavDestinationAttribute_backButtonIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let value_type : int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + // thisSerializer.writeInt8(0 as int32) + // const value_0 = value as ResourceStr + // let value_0_type : int32 = RuntimeType.UNDEFINED + // value_0_type = runtimeType(value_0) + // if (((RuntimeType.STRING == value_0_type))) { + // thisSerializer.writeInt8(0 as int32) + // const value_0_0 = value_0 as string + // thisSerializer.writeString(value_0_0) + // } + // else if (((RuntimeType.OBJECT == value_0_type))) { + // thisSerializer.writeInt8(1 as int32) + // const value_0_1 = value_0 as Resource + // thisSerializer.writeResource(value_0_1) + // } + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PixelMap)) { + // thisSerializer.writeInt8(1 as int32) + // const value_1 = value as PixelMap + // thisSerializer.writePixelMap(value_1) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSymbolGlyphModifier(value, false))) { + // thisSerializer.writeInt8(2 as int32) + // const value_2 = value as SymbolGlyphModifier + // thisSerializer.writeSymbolGlyphModifier(value_2) + // } + // NativeModule._NavDestinationAttribute_backButtonIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } menusAttribute(value: Array | CustomBuilder): void { - const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as Array - thisSerializer.writeInt32(value_0.length as int32) - for (let i = 0; i < value_0.length; i++) { - const value_0_element = value_0[i] - thisSerializer.writeNavigationMenuItem(value_0_element) - } - } - else if (((RuntimeType.FUNCTION == value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) - } - NativeModule._NavDestinationAttribute_menus(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let value_type : int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.OBJECT == value_type))) { + // thisSerializer.writeInt8(0 as int32) + // const value_0 = value as Array + // thisSerializer.writeInt32(value_0.length as int32) + // for (let i = 0; i < value_0.length; i++) { + // const value_0_element = value_0[i] + // thisSerializer.writeNavigationMenuItem(value_0_element) + // } + // } + // else if (((RuntimeType.FUNCTION == value_type))) { + // thisSerializer.writeInt8(1 as int32) + // const value_1 = value as CustomBuilder + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) + // } + // NativeModule._NavDestinationAttribute_menus(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onReadyAttribute(value: ((parameter: NavDestinationContext) => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onReady(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onReadyAttribute(value: Function1): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onReady(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onWillAppearAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onWillAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onWillAppearAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onWillAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onWillDisappearAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onWillDisappear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onWillDisappearAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onWillDisappear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onWillShowAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onWillShow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onWillShowAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onWillShow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } - onWillHideAttribute(value: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - NativeModule._NavDestinationAttribute_onWillHide(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + onWillHideAttribute(value: Function0): void { + // const thisSerializer : Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // NativeModule._NavDestinationAttribute_onWillHide(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } systemBarStyleAttribute(value?: SystemBarStyle): void { - const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.writeSystemBarStyle(value_value) - } - NativeModule._NavDestinationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let value_type : int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // thisSerializer.writeInt8(value_type as int32) + // if ((RuntimeType.UNDEFINED) != (value_type)) { + // const value_value = value! + // thisSerializer.writeSystemBarStyle(value_value) + // } + // NativeModule._NavDestinationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } recoverableAttribute(value?: boolean): void { - const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.writeBoolean(value_value) - } - NativeModule._NavDestinationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let value_type : int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // thisSerializer.writeInt8(value_type as int32) + // if ((RuntimeType.UNDEFINED) != (value_type)) { + // const value_value = value! + // thisSerializer.writeBoolean(value_value) + // } + // NativeModule._NavDestinationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } systemTransitionAttribute(value: NavigationSystemTransitionType): void { - NativeModule._NavDestinationAttribute_systemTransition(this.peer.ptr, (value.value as int32)) + // NativeModule._NavDestinationAttribute_systemTransition(this.peer.ptr, (value.value as int32)) } titleAttribute(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): void { - const thisSerializer : Serializer = Serializer.hold() - let value_type : int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as string - thisSerializer.writeString(value_0) - } - else if (((RuntimeType.FUNCTION == value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isNavDestinationCommonTitle(value, false, false))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as NavDestinationCommonTitle - thisSerializer.writeNavDestinationCommonTitle(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isNavDestinationCustomTitle(value, false, false))) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as NavDestinationCustomTitle - thisSerializer.writeNavDestinationCustomTitle(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))) { - thisSerializer.writeInt8(4 as int32) - const value_4 = value as Resource - thisSerializer.writeResource(value_4) - } - let options_type : int32 = RuntimeType.UNDEFINED - options_type = runtimeType(options) - thisSerializer.writeInt8(options_type as int32) - if ((RuntimeType.UNDEFINED) != (options_type)) { - const options_value = options! - thisSerializer.writeNavigationTitleOptions(options_value) - } - NativeModule._NavDestinationAttribute_title(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let value_type : int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.STRING == value_type))) { + // thisSerializer.writeInt8(0 as int32) + // const value_0 = value as string + // thisSerializer.writeString(value_0) + // } + // else if (((RuntimeType.FUNCTION == value_type))) { + // thisSerializer.writeInt8(1 as int32) + // const value_1 = value as CustomBuilder + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isNavDestinationCommonTitle(value, false, false))) { + // thisSerializer.writeInt8(2 as int32) + // const value_2 = value as NavDestinationCommonTitle + // thisSerializer.writeNavDestinationCommonTitle(value_2) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isNavDestinationCustomTitle(value, false, false))) { + // thisSerializer.writeInt8(3 as int32) + // const value_3 = value as NavDestinationCustomTitle + // thisSerializer.writeNavDestinationCustomTitle(value_3) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))) { + // thisSerializer.writeInt8(4 as int32) + // const value_4 = value as Resource + // thisSerializer.writeResource(value_4) + // } + // let options_type : int32 = RuntimeType.UNDEFINED + // options_type = runtimeType(options) + // thisSerializer.writeInt8(options_type as int32) + // if ((RuntimeType.UNDEFINED) != (options_type)) { + // const options_value = options! + // thisSerializer.writeNavigationTitleOptions(options_value) + // } + // NativeModule._NavDestinationAttribute_title(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } toolbarConfigurationAttribute(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): void { - const thisSerializer : Serializer = Serializer.hold() - let toolbarParam_type : int32 = RuntimeType.UNDEFINED - toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { - thisSerializer.writeInt8(0 as int32) - const toolbarParam_0 = toolbarParam as Array - thisSerializer.writeInt32(toolbarParam_0.length as int32) - for (let i = 0; i < toolbarParam_0.length; i++) { - const toolbarParam_0_element = toolbarParam_0[i] - thisSerializer.writeToolbarItem(toolbarParam_0_element) - } - } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { - thisSerializer.writeInt8(1 as int32) - const toolbarParam_1 = toolbarParam as CustomBuilder - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) - } - let options_type : int32 = RuntimeType.UNDEFINED - options_type = runtimeType(options) - thisSerializer.writeInt8(options_type as int32) - if ((RuntimeType.UNDEFINED) != (options_type)) { - const options_value = options! - thisSerializer.writeNavigationToolbarOptions(options_value) - } - NativeModule._NavDestinationAttribute_toolbarConfiguration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let toolbarParam_type : int32 = RuntimeType.UNDEFINED + // toolbarParam_type = runtimeType(toolbarParam) + // if (((RuntimeType.OBJECT == toolbarParam_type))) { + // thisSerializer.writeInt8(0 as int32) + // const toolbarParam_0 = toolbarParam as Array + // thisSerializer.writeInt32(toolbarParam_0.length as int32) + // for (let i = 0; i < toolbarParam_0.length; i++) { + // const toolbarParam_0_element = toolbarParam_0[i] + // thisSerializer.writeToolbarItem(toolbarParam_0_element) + // } + // } + // else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + // thisSerializer.writeInt8(1 as int32) + // const toolbarParam_1 = toolbarParam as CustomBuilder + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) + // } + // let options_type : int32 = RuntimeType.UNDEFINED + // options_type = runtimeType(options) + // thisSerializer.writeInt8(options_type as int32) + // if ((RuntimeType.UNDEFINED) != (options_type)) { + // const options_value = options! + // thisSerializer.writeNavigationToolbarOptions(options_value) + // } + // NativeModule._NavDestinationAttribute_toolbarConfiguration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } hideToolBarAttribute(hide: boolean, animated?: boolean): void { - const thisSerializer : Serializer = Serializer.hold() - let animated_type : int32 = RuntimeType.UNDEFINED - animated_type = runtimeType(animated) - thisSerializer.writeInt8(animated_type as int32) - if ((RuntimeType.UNDEFINED) != (animated_type)) { - const animated_value = animated! - thisSerializer.writeBoolean(animated_value) - } - NativeModule._NavDestinationAttribute_hideToolBar(this.peer.ptr, hide ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let animated_type : int32 = RuntimeType.UNDEFINED + // animated_type = runtimeType(animated) + // thisSerializer.writeInt8(animated_type as int32) + // if ((RuntimeType.UNDEFINED) != (animated_type)) { + // const animated_value = animated! + // thisSerializer.writeBoolean(animated_value) + // } + // NativeModule._NavDestinationAttribute_hideToolBar(this.peer.ptr, hide ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } ignoreLayoutSafeAreaAttribute(types?: Array, edges?: Array): void { - const thisSerializer : Serializer = Serializer.hold() - let types_type : int32 = RuntimeType.UNDEFINED - types_type = runtimeType(types) - thisSerializer.writeInt8(types_type as int32) - if ((RuntimeType.UNDEFINED) != (types_type)) { - const types_value = types! - thisSerializer.writeInt32(types_value.length as int32) - for (let i = 0; i < types_value.length; i++) { - const types_value_element = types_value[i] - thisSerializer.writeInt32(types_value_element.ordinal) - } - } - let edges_type : int32 = RuntimeType.UNDEFINED - edges_type = runtimeType(edges) - thisSerializer.writeInt8(edges_type as int32) - if ((RuntimeType.UNDEFINED) != (edges_type)) { - const edges_value = edges! - thisSerializer.writeInt32(edges_value.length as int32) - for (let i = 0; i < edges_value.length; i++) { - const edges_value_element = edges_value[i] - thisSerializer.writeInt32(edges_value_element.ordinal) - } - } - NativeModule._NavDestinationAttribute_ignoreLayoutSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer : Serializer = Serializer.hold() + // let types_type : int32 = RuntimeType.UNDEFINED + // types_type = runtimeType(types) + // thisSerializer.writeInt8(types_type as int32) + // if ((RuntimeType.UNDEFINED) != (types_type)) { + // const types_value = types! + // thisSerializer.writeInt32(types_value.length as int32) + // for (let i = 0; i < types_value.length; i++) { + // const types_value_element = types_value[i] + // thisSerializer.writeInt32(types_value_element.ordinal) + // } + // } + // let edges_type : int32 = RuntimeType.UNDEFINED + // edges_type = runtimeType(edges) + // thisSerializer.writeInt8(edges_type as int32) + // if ((RuntimeType.UNDEFINED) != (edges_type)) { + // const edges_value = edges! + // thisSerializer.writeInt32(edges_value.length as int32) + // for (let i = 0; i < edges_value.length; i++) { + // const edges_value_element = edges_value[i] + // thisSerializer.writeInt32(edges_value_element.ordinal) + // } + // } + // NativeModule._NavDestinationAttribute_ignoreLayoutSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) } } export interface ArkNavDestinationAttributes extends ArkCommonMethodAttributes { hideTitleBar?: boolean - onShown?: (() => void) - onHidden?: (() => void) - onBackPressed?: (() => boolean) + onShown?: Function0 + onHidden?: Function0 + onBackPressed?: Function0 mode?: NavDestinationMode backButtonIcon?: ResourceStr | PixelMap | SymbolGlyphModifier menus?: Array | CustomBuilder - onReady?: ((parameter: NavDestinationContext) => void) - onWillAppear?: (() => void) - onWillDisappear?: (() => void) - onWillShow?: (() => void) - onWillHide?: (() => void) + onReady?: Function1 + onWillAppear?: Function0 + onWillDisappear?: Function0 + onWillShow?: Function0 + onWillHide?: Function0 systemBarStyle?: SystemBarStyle | undefined recoverable?: boolean | undefined systemTransition?: NavigationSystemTransitionType diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index d9e1639da..138daabe1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -25,13 +25,12 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, AttributeModifier } from "./../ArkCommonInterfaces" import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { ResourceColor } from "./../ArkUnitsInterfaces" import { FontWeight, Color } from "./../ArkEnumsInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" -import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts index 3534ca642..501741ef3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts @@ -56,7 +56,6 @@ export enum ArkUINodeType { Menu, MenuItem, MenuItemGroup, - NavDestination, NavRouter, Navigator, NodeContainer, diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts index 223a5c11c..bef056bb9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -21,7 +21,7 @@ import { RuntimeType } from "./SerializerBase" import { CallbackTransformer } from "./CallbackTransformer" import { AccessibilityCallback, AccessibilityHoverEvent, TouchTestInfo, TouchResult, HoverEvent, ClickEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, CustomBuilder, DragItemInfo, ItemDragInfo, KeyEvent, MouseEvent, PreDragStatus, SheetDismiss, SheetType, SpringBackAction, TouchEvent, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" -import { Callback_Any, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_Callback_Any_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavDestinationContext_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_NavigationTransitionProxy_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_ScrollState_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PopInfo_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_T_Any_this, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, CustomNodeBuilder, Type_NavigationAttribute_customNavContentTransition_delegate, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" +import { Callback_Any, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_Callback_Any_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_ScrollState_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_T_Any_this, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, CustomNodeBuilder, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" import { Area, SizeOptions, VoidCallback } from "./../ArkUnitsInterfaces" import { CalendarRequestedData, CalendarSelectedDate } from "./../ArkCalendarInterfaces" import { LocationButtonOnClickResult } from "./../ArkLocationButtonInterfaces" @@ -41,9 +41,7 @@ import { HitTestMode, Edge, ScrollSource } from "./../ArkEnumsInterfaces" import { IsolatedComponentAttribute, IsolatedComponentInterface, IsolatedOptions } from "./../ArkIsolatedComponentInterfaces" import { Want } from "./../ArkArkui-externalInterfaces" import { NativeEmbedDataInfo, NativeEmbedTouchInfo, OnAlertEvent, OnAudioStateChangedEvent, OnBeforeUnloadEvent, OnClientAuthenticationEvent, OnConfirmEvent, OnConsoleEvent, OnContextMenuShowEvent, OnDataResubmittedEvent, OnDownloadStartEvent, OnErrorReceiveEvent, OnFaviconReceivedEvent, OnFirstContentfulPaintEvent, OnGeolocationShowEvent, OnHttpAuthRequestEvent, OnHttpErrorReceiveEvent, OnInterceptRequestEvent, OnLoadInterceptEvent, OnOverScrollEvent, OnPageBeginEvent, OnPageEndEvent, OnPageVisibleEvent, OnPermissionRequestEvent, OnProgressChangeEvent, OnPromptEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnScreenCaptureRequestEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnShowFileSelectorEvent, OnSslErrorEventReceiveEvent, OnTitleReceiveEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnFullScreenEnterCallback, FullScreenEnterEvent, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnSslErrorEventCallback, SslErrorEvent, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo } from "./../ArkWebInterfaces" -import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavigationMode, NavigationTitleMode, NavigationAnimatedTransition, PopInfo, InterceptionModeCallback, InterceptionShowCallback, NavBar, NavigationOperation, NavContentInfo } from "./../ArkNavigationInterfaces" -import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" +import { NavigationMode, NavigationTitleMode, InterceptionModeCallback } from "./../ArkNavigationInterfaces" import { PanelMode } from "./../ArkPanelInterfaces" import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./../ArkListInterfaces" import { SliderChangeMode, SliderTriggerChangeCallback } from "./../ArkSliderInterfaces" @@ -535,12 +533,6 @@ export function deserializeAndCallCallback_NativeEmbedTouchInfo_Void(thisDeseria let event : NativeEmbedTouchInfo = thisDeserializer.readNativeEmbedTouchInfo() _call(event) } -export function deserializeAndCallCallback_NavDestinationContext_Void(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: NavDestinationContext) => void)) - let parameter : NavDestinationContext = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - _call(parameter) -} export function deserializeAndCallCallback_NavigationMode_Void(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((mode: NavigationMode) => void)) @@ -553,12 +545,6 @@ export function deserializeAndCallCallback_NavigationTitleMode_Void(thisDeserial let titleMode : NavigationTitleMode = NavigationTitleMode.ofOrdinal(thisDeserializer.readInt32()) _call(titleMode) } -export function deserializeAndCallCallback_NavigationTransitionProxy_Void(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((transitionProxy: NavigationTransitionProxy) => void)) - let transitionProxy : NavigationTransitionProxy = (thisDeserializer.readNavigationTransitionProxy() as NavigationTransitionProxy) - _call(transitionProxy) -} export function deserializeAndCallCallback_Number_Boolean(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((index: number) => boolean)) @@ -925,18 +911,6 @@ export function deserializeAndCallCallback_Opt_Array_String_Void(thisDeserialize let error : Array | undefined = error_buf _call(error) } -export function deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((value: NavigationAnimatedTransition | undefined) => void)) - const value_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let value_buf : NavigationAnimatedTransition | undefined - if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) - { - value_buf = thisDeserializer.readNavigationAnimatedTransition() - } - let value : NavigationAnimatedTransition | undefined = value_buf - _call(value) -} export function deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value?: StyledString | undefined,error?: Array | undefined) => void)) @@ -985,12 +959,6 @@ export function deserializeAndCallCallback_Pointer_Void(thisDeserializer: Deseri let value : KPointer = thisDeserializer.readPointer() _call(value) } -export function deserializeAndCallCallback_PopInfo_Void(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: PopInfo) => void)) - let parameter : PopInfo = thisDeserializer.readPopInfo() - _call(parameter) -} export function deserializeAndCallCallback_PreDragStatus_Void(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: PreDragStatus) => void)) @@ -1345,37 +1313,6 @@ export function deserializeAndCallInterceptionModeCallback(thisDeserializer: Des let mode : NavigationMode = NavigationMode.ofOrdinal(thisDeserializer.readInt32()) _call(mode) } -export function deserializeAndCallInterceptionShowCallback(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as InterceptionShowCallback) - const from_buf_selector : int32 = thisDeserializer.readInt8() - let from_buf : NavDestinationContext | NavBar | undefined - if (from_buf_selector == 0) { - from_buf = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - } - else if (from_buf_selector == 1) { - from_buf = (thisDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for from_buf has to be chosen through deserialisation.") - } - let from : NavDestinationContext | NavBar = (from_buf as NavDestinationContext | NavBar) - const to_buf_selector : int32 = thisDeserializer.readInt8() - let to_buf : NavDestinationContext | NavBar | undefined - if (to_buf_selector == 0) { - to_buf = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - } - else if (to_buf_selector == 1) { - to_buf = (thisDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for to_buf has to be chosen through deserialisation.") - } - let to : NavDestinationContext | NavBar = (to_buf as NavDestinationContext | NavBar) - let operation : NavigationOperation = NavigationOperation.ofOrdinal(thisDeserializer.readInt32()) - let isAnimated : boolean = thisDeserializer.readBoolean() - _call(from, to, operation, isAnimated) -} export function deserializeAndCallIsolatedComponentInterface(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as IsolatedComponentInterface) @@ -1782,16 +1719,6 @@ export function deserializeAndCallTransitionFinishCallback(thisDeserializer: Des let transitionIn : boolean = thisDeserializer.readBoolean() _call(transitionIn) } -export function deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(thisDeserializer: Deserializer) { - const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined)) - let from : NavContentInfo = thisDeserializer.readNavContentInfo() - let to : NavContentInfo = thisDeserializer.readNavContentInfo() - let operation : NavigationOperation = NavigationOperation.ofOrdinal(thisDeserializer.readInt32()) - let _continuation : ((value: NavigationAnimatedTransition | undefined) => void) = thisDeserializer.readCallback_Opt_NavigationAnimatedTransition_Void(true) - const _callResult = _call(from, to, operation) - _continuation(_callResult) -} export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thisDeserializer: Deserializer) { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: string | Array,index: number | Array) => void)) @@ -1948,10 +1875,8 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case -1382640094/*CallbackKind.Kind_Callback_MouseEvent_Void*/: return deserializeAndCallCallback_MouseEvent_Void(thisDeserializer); case 477481563/*CallbackKind.Kind_Callback_NativeEmbedDataInfo_Void*/: return deserializeAndCallCallback_NativeEmbedDataInfo_Void(thisDeserializer); case -1090303858/*CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void*/: return deserializeAndCallCallback_NativeEmbedTouchInfo_Void(thisDeserializer); - case -1642725259/*CallbackKind.Kind_Callback_NavDestinationContext_Void*/: return deserializeAndCallCallback_NavDestinationContext_Void(thisDeserializer); case 960690982/*CallbackKind.Kind_Callback_NavigationMode_Void*/: return deserializeAndCallCallback_NavigationMode_Void(thisDeserializer); case 1685437830/*CallbackKind.Kind_Callback_NavigationTitleMode_Void*/: return deserializeAndCallCallback_NavigationTitleMode_Void(thisDeserializer); - case -1375731066/*CallbackKind.Kind_Callback_NavigationTransitionProxy_Void*/: return deserializeAndCallCallback_NavigationTransitionProxy_Void(thisDeserializer); case 1054099324/*CallbackKind.Kind_Callback_Number_Boolean*/: return deserializeAndCallCallback_Number_Boolean(thisDeserializer); case -1427334496/*CallbackKind.Kind_Callback_Number_Number_Boolean*/: return deserializeAndCallCallback_Number_Number_Boolean(thisDeserializer); case -3987624/*CallbackKind.Kind_Callback_Number_Number_ComputedBarAttribute*/: return deserializeAndCallCallback_Number_Number_ComputedBarAttribute(thisDeserializer); @@ -2004,12 +1929,10 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case 1657893064/*CallbackKind.Kind_Callback_OnTouchIconUrlReceivedEvent_Void*/: return deserializeAndCallCallback_OnTouchIconUrlReceivedEvent_Void(thisDeserializer); case -2052382574/*CallbackKind.Kind_Callback_OnWindowNewEvent_Void*/: return deserializeAndCallCallback_OnWindowNewEvent_Void(thisDeserializer); case -543655128/*CallbackKind.Kind_Callback_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_Array_String_Void(thisDeserializer); - case -2035339519/*CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(thisDeserializer); case -756319131/*CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(thisDeserializer); case -143931627/*CallbackKind.Kind_Callback_Opt_TabContentAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_TabContentAnimatedTransition_Void(thisDeserializer); case -2058966418/*CallbackKind.Kind_Callback_PlaybackInfo_Void*/: return deserializeAndCallCallback_PlaybackInfo_Void(thisDeserializer); case 721562324/*CallbackKind.Kind_Callback_Pointer_Void*/: return deserializeAndCallCallback_Pointer_Void(thisDeserializer); - case 624053870/*CallbackKind.Kind_Callback_PopInfo_Void*/: return deserializeAndCallCallback_PopInfo_Void(thisDeserializer); case 463894668/*CallbackKind.Kind_Callback_PreDragStatus_Void*/: return deserializeAndCallCallback_PreDragStatus_Void(thisDeserializer); case 1300890372/*CallbackKind.Kind_Callback_PreparedInfo_Void*/: return deserializeAndCallCallback_PreparedInfo_Void(thisDeserializer); case 797834474/*CallbackKind.Kind_Callback_RangeUpdate*/: return deserializeAndCallCallback_RangeUpdate(thisDeserializer); @@ -2057,7 +1980,6 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case -1180567691/*CallbackKind.Kind_ImageCompleteCallback*/: return deserializeAndCallImageCompleteCallback(thisDeserializer); case 1906248580/*CallbackKind.Kind_ImageErrorCallback*/: return deserializeAndCallImageErrorCallback(thisDeserializer); case 1502213270/*CallbackKind.Kind_InterceptionModeCallback*/: return deserializeAndCallInterceptionModeCallback(thisDeserializer); - case 1852781814/*CallbackKind.Kind_InterceptionShowCallback*/: return deserializeAndCallInterceptionShowCallback(thisDeserializer); case 2139680213/*CallbackKind.Kind_IsolatedComponentInterface*/: return deserializeAndCallIsolatedComponentInterface(thisDeserializer); case -614475458/*CallbackKind.Kind_MenuOnAppearCallback*/: return deserializeAndCallMenuOnAppearCallback(thisDeserializer); case 1572284740/*CallbackKind.Kind_OnAdsBlockedCallback*/: return deserializeAndCallOnAdsBlockedCallback(thisDeserializer); @@ -2113,7 +2035,6 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case 221706282/*CallbackKind.Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallTabsCustomContentTransitionCallback(thisDeserializer); case -401980571/*CallbackKind.Kind_TextAreaSubmitCallback*/: return deserializeAndCallTextAreaSubmitCallback(thisDeserializer); case -1878458553/*CallbackKind.Kind_TransitionFinishCallback*/: return deserializeAndCallTransitionFinishCallback(thisDeserializer); - case 1044833488/*CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate*/: return deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(thisDeserializer); case -1078223620/*CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback*/: return deserializeAndCallType_TextPickerAttribute_onChange_callback(thisDeserializer); case -985284966/*CallbackKind.Kind_Type_WebAttribute_onUrlLoadIntercept_callback*/: return deserializeAndCallType_WebAttribute_onUrlLoadIntercept_callback(thisDeserializer); case 541663396/*CallbackKind.Kind_VisibleAreaChangeCallback*/: return deserializeAndCallVisibleAreaChangeCallback(thisDeserializer); diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts index ec4aae237..84ecf19fc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackKind.ts @@ -60,178 +60,172 @@ export class CallbackKind { static readonly Kind_Callback_MouseEvent_Void: CallbackKind = new CallbackKind(-1382640094,57) static readonly Kind_Callback_NativeEmbedDataInfo_Void: CallbackKind = new CallbackKind(477481563,58) static readonly Kind_Callback_NativeEmbedTouchInfo_Void: CallbackKind = new CallbackKind(-1090303858,59) - static readonly Kind_Callback_NavDestinationContext_Void: CallbackKind = new CallbackKind(-1642725259,60) - static readonly Kind_Callback_NavigationMode_Void: CallbackKind = new CallbackKind(960690982,61) - static readonly Kind_Callback_NavigationTitleMode_Void: CallbackKind = new CallbackKind(1685437830,62) - static readonly Kind_Callback_NavigationTransitionProxy_Void: CallbackKind = new CallbackKind(-1375731066,63) - static readonly Kind_Callback_Number_Boolean: CallbackKind = new CallbackKind(1054099324,64) - static readonly Kind_Callback_Number_Number_Boolean: CallbackKind = new CallbackKind(-1427334496,65) - static readonly Kind_Callback_Number_Number_ComputedBarAttribute: CallbackKind = new CallbackKind(-3987624,66) - static readonly Kind_Callback_Number_Number_Number_Void: CallbackKind = new CallbackKind(-352942292,67) - static readonly Kind_Callback_Number_Number_PanelMode_Void: CallbackKind = new CallbackKind(1613628570,68) - static readonly Kind_Callback_Number_Number_Void: CallbackKind = new CallbackKind(1894574320,69) - static readonly Kind_Callback_Number_ScrollState_Literal_Number_offsetRemain: CallbackKind = new CallbackKind(2012829508,70) - static readonly Kind_Callback_Number_ScrollState_Void: CallbackKind = new CallbackKind(-1844695159,71) - static readonly Kind_Callback_Number_SliderChangeMode_Void: CallbackKind = new CallbackKind(88697971,72) - static readonly Kind_Callback_Number_String_Void: CallbackKind = new CallbackKind(794065478,73) - static readonly Kind_Callback_Number_Tuple_Number_Number: CallbackKind = new CallbackKind(1602877440,74) - static readonly Kind_Callback_Number_Tuple_Number_Number_Number_Number: CallbackKind = new CallbackKind(1618565120,75) - static readonly Kind_Callback_Number_Void: CallbackKind = new CallbackKind(36519084,76) - static readonly Kind_Callback_OffsetResult_Void: CallbackKind = new CallbackKind(1295952075,77) - static readonly Kind_Callback_OnAlertEvent_Boolean: CallbackKind = new CallbackKind(806070428,78) - static readonly Kind_Callback_OnAudioStateChangedEvent_Void: CallbackKind = new CallbackKind(-1559789631,79) - static readonly Kind_Callback_OnBeforeUnloadEvent_Boolean: CallbackKind = new CallbackKind(-873162122,80) - static readonly Kind_Callback_OnClientAuthenticationEvent_Void: CallbackKind = new CallbackKind(608991355,81) - static readonly Kind_Callback_OnConfirmEvent_Boolean: CallbackKind = new CallbackKind(317864672,82) - static readonly Kind_Callback_OnConsoleEvent_Boolean: CallbackKind = new CallbackKind(893367077,83) - static readonly Kind_Callback_OnContextMenuShowEvent_Boolean: CallbackKind = new CallbackKind(332449533,84) - static readonly Kind_Callback_OnDataResubmittedEvent_Void: CallbackKind = new CallbackKind(118631204,85) - static readonly Kind_Callback_OnDownloadStartEvent_Void: CallbackKind = new CallbackKind(1834611702,86) - static readonly Kind_Callback_OnErrorReceiveEvent_Void: CallbackKind = new CallbackKind(-1792851375,87) - static readonly Kind_Callback_OnFaviconReceivedEvent_Void: CallbackKind = new CallbackKind(-243916553,88) - static readonly Kind_Callback_OnFirstContentfulPaintEvent_Void: CallbackKind = new CallbackKind(-1852060212,89) - static readonly Kind_Callback_OnGeolocationShowEvent_Void: CallbackKind = new CallbackKind(-941896815,90) - static readonly Kind_Callback_OnHttpAuthRequestEvent_Boolean: CallbackKind = new CallbackKind(780282803,91) - static readonly Kind_Callback_OnHttpErrorReceiveEvent_Void: CallbackKind = new CallbackKind(-2066745559,92) - static readonly Kind_Callback_OnInterceptRequestEvent_WebResourceResponse: CallbackKind = new CallbackKind(1442698200,93) - static readonly Kind_Callback_OnLoadInterceptEvent_Boolean: CallbackKind = new CallbackKind(1231444306,94) - static readonly Kind_Callback_OnOverScrollEvent_Void: CallbackKind = new CallbackKind(-860386431,95) - static readonly Kind_Callback_OnPageBeginEvent_Void: CallbackKind = new CallbackKind(-2040193994,96) - static readonly Kind_Callback_OnPageEndEvent_Void: CallbackKind = new CallbackKind(-130135362,97) - static readonly Kind_Callback_OnPageVisibleEvent_Void: CallbackKind = new CallbackKind(1805946367,98) - static readonly Kind_Callback_OnPermissionRequestEvent_Void: CallbackKind = new CallbackKind(529980696,99) - static readonly Kind_Callback_OnProgressChangeEvent_Void: CallbackKind = new CallbackKind(1018740377,100) - static readonly Kind_Callback_OnPromptEvent_Boolean: CallbackKind = new CallbackKind(-1826742986,101) - static readonly Kind_Callback_OnRefreshAccessedHistoryEvent_Void: CallbackKind = new CallbackKind(1978364344,102) - static readonly Kind_Callback_OnRenderExitedEvent_Void: CallbackKind = new CallbackKind(-1413785559,103) - static readonly Kind_Callback_OnResourceLoadEvent_Void: CallbackKind = new CallbackKind(793995118,104) - static readonly Kind_Callback_OnScaleChangeEvent_Void: CallbackKind = new CallbackKind(-1782102148,105) - static readonly Kind_Callback_OnScreenCaptureRequestEvent_Void: CallbackKind = new CallbackKind(-1972321573,106) - static readonly Kind_Callback_OnScrollEvent_Void: CallbackKind = new CallbackKind(-172908881,107) - static readonly Kind_Callback_OnScrollFrameBeginHandlerResult_Void: CallbackKind = new CallbackKind(1637092936,108) - static readonly Kind_Callback_OnSearchResultReceiveEvent_Void: CallbackKind = new CallbackKind(-1495570,109) - static readonly Kind_Callback_OnShowFileSelectorEvent_Boolean: CallbackKind = new CallbackKind(-636069598,110) - static readonly Kind_Callback_OnSslErrorEventReceiveEvent_Void: CallbackKind = new CallbackKind(1624791665,111) - static readonly Kind_Callback_OnTitleReceiveEvent_Void: CallbackKind = new CallbackKind(-318085495,112) - static readonly Kind_Callback_OnTouchIconUrlReceivedEvent_Void: CallbackKind = new CallbackKind(1657893064,113) - static readonly Kind_Callback_OnWindowNewEvent_Void: CallbackKind = new CallbackKind(-2052382574,114) - static readonly Kind_Callback_Opt_Array_String_Void: CallbackKind = new CallbackKind(-543655128,115) - static readonly Kind_Callback_Opt_NavigationAnimatedTransition_Void: CallbackKind = new CallbackKind(-2035339519,116) - static readonly Kind_Callback_Opt_StyledString_Opt_Array_String_Void: CallbackKind = new CallbackKind(-756319131,117) - static readonly Kind_Callback_Opt_TabContentAnimatedTransition_Void: CallbackKind = new CallbackKind(-143931627,118) - static readonly Kind_Callback_PlaybackInfo_Void: CallbackKind = new CallbackKind(-2058966418,119) - static readonly Kind_Callback_Pointer_Void: CallbackKind = new CallbackKind(721562324,120) - static readonly Kind_Callback_PopInfo_Void: CallbackKind = new CallbackKind(624053870,121) - static readonly Kind_Callback_PreDragStatus_Void: CallbackKind = new CallbackKind(463894668,122) - static readonly Kind_Callback_PreparedInfo_Void: CallbackKind = new CallbackKind(1300890372,123) - static readonly Kind_Callback_RangeUpdate: CallbackKind = new CallbackKind(797834474,124) - static readonly Kind_Callback_RefreshStatus_Void: CallbackKind = new CallbackKind(934309126,125) - static readonly Kind_Callback_RichEditorChangeValue_Boolean: CallbackKind = new CallbackKind(1465860515,126) - static readonly Kind_Callback_RichEditorDeleteValue_Boolean: CallbackKind = new CallbackKind(667698748,127) - static readonly Kind_Callback_RichEditorInsertValue_Boolean: CallbackKind = new CallbackKind(-319221262,128) - static readonly Kind_Callback_RichEditorRange_Void: CallbackKind = new CallbackKind(-62253375,129) - static readonly Kind_Callback_RichEditorSelection_Void: CallbackKind = new CallbackKind(-963852514,130) - static readonly Kind_Callback_RichEditorTextSpanResult_Void: CallbackKind = new CallbackKind(1980824326,131) - static readonly Kind_Callback_SheetDismiss_Void: CallbackKind = new CallbackKind(22609082,132) - static readonly Kind_Callback_SheetType_Void: CallbackKind = new CallbackKind(-224451112,133) - static readonly Kind_Callback_SpringBackAction_Void: CallbackKind = new CallbackKind(1536231691,134) - static readonly Kind_Callback_String_Number_Void: CallbackKind = new CallbackKind(-879490874,135) - static readonly Kind_Callback_String_PasteEvent_Void: CallbackKind = new CallbackKind(-683652998,136) - static readonly Kind_Callback_String_Unknown_Void: CallbackKind = new CallbackKind(-1493806035,137) - static readonly Kind_Callback_String_Void: CallbackKind = new CallbackKind(814634522,138) - static readonly Kind_Callback_StyledStringChangeValue_Boolean: CallbackKind = new CallbackKind(2116745428,139) - static readonly Kind_Callback_SwipeActionState_Void: CallbackKind = new CallbackKind(-301561698,140) - static readonly Kind_Callback_SwiperContentTransitionProxy_Void: CallbackKind = new CallbackKind(-416053361,141) - static readonly Kind_Callback_T_Any_this: CallbackKind = new CallbackKind(-1500753856,142) - static readonly Kind_Callback_TabContentTransitionProxy_Void: CallbackKind = new CallbackKind(-1223938478,143) - static readonly Kind_Callback_TerminationInfo_Void: CallbackKind = new CallbackKind(691098197,144) - static readonly Kind_Callback_TextPickerResult_Void: CallbackKind = new CallbackKind(1290504509,145) - static readonly Kind_Callback_TextRange_Void: CallbackKind = new CallbackKind(811915501,146) - static readonly Kind_Callback_TimePickerResult_Void: CallbackKind = new CallbackKind(1557859605,147) - static readonly Kind_Callback_TouchEvent_HitTestMode: CallbackKind = new CallbackKind(-274419246,148) - static readonly Kind_Callback_TouchEvent_Void: CallbackKind = new CallbackKind(-1676021850,149) - static readonly Kind_Callback_TouchResult_Void: CallbackKind = new CallbackKind(1943507619,150) - static readonly Kind_Callback_Tuple_Number_Number_Number_Number_Void: CallbackKind = new CallbackKind(148489367,151) - static readonly Kind_Callback_Tuple_Number_Number_Void: CallbackKind = new CallbackKind(-607365481,152) - static readonly Kind_Callback_Type_ImageAttribute_onComplete_callback_event_Void: CallbackKind = new CallbackKind(-1352745727,153) - static readonly Kind_Callback_UIExtensionProxy_Void: CallbackKind = new CallbackKind(-1063506522,154) - static readonly Kind_Callback_Union_CustomBuilder_DragItemInfo_Void: CallbackKind = new CallbackKind(-620935067,155) - static readonly Kind_Callback_Void: CallbackKind = new CallbackKind(-1867723152,156) - static readonly Kind_Callback_WebKeyboardOptions_Void: CallbackKind = new CallbackKind(-1376223390,157) - static readonly Kind_Callback_WebResourceResponse_Void: CallbackKind = new CallbackKind(831645046,158) - static readonly Kind_Callback_WithThemeAttribute_Void: CallbackKind = new CallbackKind(1436479104,159) - static readonly Kind_ContentDidScrollCallback: CallbackKind = new CallbackKind(1532328438,160) - static readonly Kind_CustomNodeBuilder: CallbackKind = new CallbackKind(1766817632,161) - static readonly Kind_EditableTextOnChangeCallback: CallbackKind = new CallbackKind(-1729563209,162) - static readonly Kind_GestureRecognizerJudgeBeginCallback: CallbackKind = new CallbackKind(-2119548940,163) - static readonly Kind_GetItemMainSizeByIndex: CallbackKind = new CallbackKind(-2076995110,164) - static readonly Kind_HoverCallback: CallbackKind = new CallbackKind(68560477,165) - static readonly Kind_ImageCompleteCallback: CallbackKind = new CallbackKind(-1180567691,166) - static readonly Kind_ImageErrorCallback: CallbackKind = new CallbackKind(1906248580,167) - static readonly Kind_InterceptionModeCallback: CallbackKind = new CallbackKind(1502213270,168) - static readonly Kind_InterceptionShowCallback: CallbackKind = new CallbackKind(1852781814,169) - static readonly Kind_IsolatedComponentInterface: CallbackKind = new CallbackKind(2139680213,170) - static readonly Kind_MenuOnAppearCallback: CallbackKind = new CallbackKind(-614475458,171) - static readonly Kind_OnAdsBlockedCallback: CallbackKind = new CallbackKind(1572284740,172) - static readonly Kind_OnAlphabetIndexerPopupSelectCallback: CallbackKind = new CallbackKind(726938390,173) - static readonly Kind_OnAlphabetIndexerRequestPopupDataCallback: CallbackKind = new CallbackKind(-1956514817,174) - static readonly Kind_OnAlphabetIndexerSelectCallback: CallbackKind = new CallbackKind(-1189721220,175) - static readonly Kind_OnCheckboxChangeCallback: CallbackKind = new CallbackKind(-1198592337,176) - static readonly Kind_OnCheckboxGroupChangeCallback: CallbackKind = new CallbackKind(-1053064240,177) - static readonly Kind_OnContentScrollCallback: CallbackKind = new CallbackKind(-419979106,178) - static readonly Kind_OnContextMenuHideCallback: CallbackKind = new CallbackKind(1788572278,179) - static readonly Kind_OnDidChangeCallback: CallbackKind = new CallbackKind(1648184341,180) - static readonly Kind_OnFirstMeaningfulPaintCallback: CallbackKind = new CallbackKind(767275770,181) - static readonly Kind_OnFoldStatusChangeCallback: CallbackKind = new CallbackKind(2050387049,182) - static readonly Kind_OnFullScreenEnterCallback: CallbackKind = new CallbackKind(81230317,183) - static readonly Kind_OnHoverStatusChangeCallback: CallbackKind = new CallbackKind(9040430,184) - static readonly Kind_OnIntelligentTrackingPreventionCallback: CallbackKind = new CallbackKind(-1377876844,185) - static readonly Kind_OnLargestContentfulPaintCallback: CallbackKind = new CallbackKind(1390640532,186) - static readonly Kind_OnLinearIndicatorChangeCallback: CallbackKind = new CallbackKind(-968773856,187) - static readonly Kind_OnMoveHandler: CallbackKind = new CallbackKind(-1200281222,188) - static readonly Kind_OnNativeEmbedVisibilityChangeCallback: CallbackKind = new CallbackKind(-1641338704,189) - static readonly Kind_OnNativeLoadCallback: CallbackKind = new CallbackKind(-823037763,190) - static readonly Kind_OnNavigationEntryCommittedCallback: CallbackKind = new CallbackKind(-398722176,191) - static readonly Kind_OnOverrideUrlLoadingCallback: CallbackKind = new CallbackKind(865258467,192) - static readonly Kind_OnPasteCallback: CallbackKind = new CallbackKind(1738363337,193) - static readonly Kind_OnRenderProcessNotRespondingCallback: CallbackKind = new CallbackKind(47282303,194) - static readonly Kind_OnRenderProcessRespondingCallback: CallbackKind = new CallbackKind(1334389194,195) - static readonly Kind_OnSafeBrowsingCheckResultCallback: CallbackKind = new CallbackKind(-1099824577,196) - static readonly Kind_OnScrollCallback: CallbackKind = new CallbackKind(-160015401,197) - static readonly Kind_OnScrollEdgeCallback: CallbackKind = new CallbackKind(-1259214476,198) - static readonly Kind_OnScrollFrameBeginCallback: CallbackKind = new CallbackKind(-2133791987,199) - static readonly Kind_OnScrollVisibleContentChangeCallback: CallbackKind = new CallbackKind(625641334,200) - static readonly Kind_OnSslErrorEventCallback: CallbackKind = new CallbackKind(-399603614,201) - static readonly Kind_OnSubmitCallback: CallbackKind = new CallbackKind(-1961646162,202) - static readonly Kind_OnSwiperAnimationEndCallback: CallbackKind = new CallbackKind(-143686583,203) - static readonly Kind_OnSwiperAnimationStartCallback: CallbackKind = new CallbackKind(876602502,204) - static readonly Kind_OnSwiperGestureSwipeCallback: CallbackKind = new CallbackKind(606029871,205) - static readonly Kind_OnTabsAnimationEndCallback: CallbackKind = new CallbackKind(1942856551,206) - static readonly Kind_OnTabsAnimationStartCallback: CallbackKind = new CallbackKind(-147408344,207) - static readonly Kind_OnTabsContentWillChangeCallback: CallbackKind = new CallbackKind(-349727249,208) - static readonly Kind_OnTabsGestureSwipeCallback: CallbackKind = new CallbackKind(253696833,209) - static readonly Kind_OnTextSelectionChangeCallback: CallbackKind = new CallbackKind(695228737,210) - static readonly Kind_OnViewportFitChangedCallback: CallbackKind = new CallbackKind(1847083191,211) - static readonly Kind_PageTransitionCallback: CallbackKind = new CallbackKind(1627123591,212) - static readonly Kind_PasteEventCallback: CallbackKind = new CallbackKind(919057028,213) - static readonly Kind_PluginErrorCallback: CallbackKind = new CallbackKind(-1992671958,214) - static readonly Kind_ScrollOnScrollCallback: CallbackKind = new CallbackKind(-1265626662,215) - static readonly Kind_ScrollOnWillScrollCallback: CallbackKind = new CallbackKind(-721521596,216) - static readonly Kind_SearchSubmitCallback: CallbackKind = new CallbackKind(1717691617,217) - static readonly Kind_ShouldBuiltInRecognizerParallelWithCallback: CallbackKind = new CallbackKind(-250780276,218) - static readonly Kind_SizeChangeCallback: CallbackKind = new CallbackKind(-1716637992,219) - static readonly Kind_SliderTriggerChangeCallback: CallbackKind = new CallbackKind(711649376,220) - static readonly Kind_SubmitCallback: CallbackKind = new CallbackKind(-712186065,221) - static readonly Kind_TabsCustomContentTransitionCallback: CallbackKind = new CallbackKind(221706282,222) - static readonly Kind_TextAreaSubmitCallback: CallbackKind = new CallbackKind(-401980571,223) - static readonly Kind_TransitionFinishCallback: CallbackKind = new CallbackKind(-1878458553,224) - static readonly Kind_Type_NavigationAttribute_customNavContentTransition_delegate: CallbackKind = new CallbackKind(1044833488,225) - static readonly Kind_Type_TextPickerAttribute_onChange_callback: CallbackKind = new CallbackKind(-1078223620,226) - static readonly Kind_Type_WebAttribute_onUrlLoadIntercept_callback: CallbackKind = new CallbackKind(-985284966,227) - static readonly Kind_VisibleAreaChangeCallback: CallbackKind = new CallbackKind(541663396,228) - static readonly Kind_VoidCallback: CallbackKind = new CallbackKind(-2038961969,229) - static readonly Kind_WebKeyboardCallback: CallbackKind = new CallbackKind(-1829763354,230) - static readonly Kind_WithThemeInterface: CallbackKind = new CallbackKind(219587748,231) + static readonly Kind_Callback_NavigationMode_Void: CallbackKind = new CallbackKind(960690982,60) + static readonly Kind_Callback_NavigationTitleMode_Void: CallbackKind = new CallbackKind(1685437830,61) + static readonly Kind_Callback_Number_Boolean: CallbackKind = new CallbackKind(1054099324,62) + static readonly Kind_Callback_Number_Number_Boolean: CallbackKind = new CallbackKind(-1427334496,63) + static readonly Kind_Callback_Number_Number_ComputedBarAttribute: CallbackKind = new CallbackKind(-3987624,64) + static readonly Kind_Callback_Number_Number_Number_Void: CallbackKind = new CallbackKind(-352942292,65) + static readonly Kind_Callback_Number_Number_PanelMode_Void: CallbackKind = new CallbackKind(1613628570,66) + static readonly Kind_Callback_Number_Number_Void: CallbackKind = new CallbackKind(1894574320,67) + static readonly Kind_Callback_Number_ScrollState_Literal_Number_offsetRemain: CallbackKind = new CallbackKind(2012829508,68) + static readonly Kind_Callback_Number_ScrollState_Void: CallbackKind = new CallbackKind(-1844695159,69) + static readonly Kind_Callback_Number_SliderChangeMode_Void: CallbackKind = new CallbackKind(88697971,70) + static readonly Kind_Callback_Number_String_Void: CallbackKind = new CallbackKind(794065478,71) + static readonly Kind_Callback_Number_Tuple_Number_Number: CallbackKind = new CallbackKind(1602877440,72) + static readonly Kind_Callback_Number_Tuple_Number_Number_Number_Number: CallbackKind = new CallbackKind(1618565120,73) + static readonly Kind_Callback_Number_Void: CallbackKind = new CallbackKind(36519084,74) + static readonly Kind_Callback_OffsetResult_Void: CallbackKind = new CallbackKind(1295952075,75) + static readonly Kind_Callback_OnAlertEvent_Boolean: CallbackKind = new CallbackKind(806070428,76) + static readonly Kind_Callback_OnAudioStateChangedEvent_Void: CallbackKind = new CallbackKind(-1559789631,77) + static readonly Kind_Callback_OnBeforeUnloadEvent_Boolean: CallbackKind = new CallbackKind(-873162122,78) + static readonly Kind_Callback_OnClientAuthenticationEvent_Void: CallbackKind = new CallbackKind(608991355,79) + static readonly Kind_Callback_OnConfirmEvent_Boolean: CallbackKind = new CallbackKind(317864672,80) + static readonly Kind_Callback_OnConsoleEvent_Boolean: CallbackKind = new CallbackKind(893367077,81) + static readonly Kind_Callback_OnContextMenuShowEvent_Boolean: CallbackKind = new CallbackKind(332449533,82) + static readonly Kind_Callback_OnDataResubmittedEvent_Void: CallbackKind = new CallbackKind(118631204,83) + static readonly Kind_Callback_OnDownloadStartEvent_Void: CallbackKind = new CallbackKind(1834611702,84) + static readonly Kind_Callback_OnErrorReceiveEvent_Void: CallbackKind = new CallbackKind(-1792851375,85) + static readonly Kind_Callback_OnFaviconReceivedEvent_Void: CallbackKind = new CallbackKind(-243916553,86) + static readonly Kind_Callback_OnFirstContentfulPaintEvent_Void: CallbackKind = new CallbackKind(-1852060212,87) + static readonly Kind_Callback_OnGeolocationShowEvent_Void: CallbackKind = new CallbackKind(-941896815,88) + static readonly Kind_Callback_OnHttpAuthRequestEvent_Boolean: CallbackKind = new CallbackKind(780282803,89) + static readonly Kind_Callback_OnHttpErrorReceiveEvent_Void: CallbackKind = new CallbackKind(-2066745559,90) + static readonly Kind_Callback_OnInterceptRequestEvent_WebResourceResponse: CallbackKind = new CallbackKind(1442698200,91) + static readonly Kind_Callback_OnLoadInterceptEvent_Boolean: CallbackKind = new CallbackKind(1231444306,92) + static readonly Kind_Callback_OnOverScrollEvent_Void: CallbackKind = new CallbackKind(-860386431,93) + static readonly Kind_Callback_OnPageBeginEvent_Void: CallbackKind = new CallbackKind(-2040193994,94) + static readonly Kind_Callback_OnPageEndEvent_Void: CallbackKind = new CallbackKind(-130135362,95) + static readonly Kind_Callback_OnPageVisibleEvent_Void: CallbackKind = new CallbackKind(1805946367,96) + static readonly Kind_Callback_OnPermissionRequestEvent_Void: CallbackKind = new CallbackKind(529980696,97) + static readonly Kind_Callback_OnProgressChangeEvent_Void: CallbackKind = new CallbackKind(1018740377,98) + static readonly Kind_Callback_OnPromptEvent_Boolean: CallbackKind = new CallbackKind(-1826742986,99) + static readonly Kind_Callback_OnRefreshAccessedHistoryEvent_Void: CallbackKind = new CallbackKind(1978364344,100) + static readonly Kind_Callback_OnRenderExitedEvent_Void: CallbackKind = new CallbackKind(-1413785559,101) + static readonly Kind_Callback_OnResourceLoadEvent_Void: CallbackKind = new CallbackKind(793995118,102) + static readonly Kind_Callback_OnScaleChangeEvent_Void: CallbackKind = new CallbackKind(-1782102148,103) + static readonly Kind_Callback_OnScreenCaptureRequestEvent_Void: CallbackKind = new CallbackKind(-1972321573,104) + static readonly Kind_Callback_OnScrollEvent_Void: CallbackKind = new CallbackKind(-172908881,105) + static readonly Kind_Callback_OnScrollFrameBeginHandlerResult_Void: CallbackKind = new CallbackKind(1637092936,106) + static readonly Kind_Callback_OnSearchResultReceiveEvent_Void: CallbackKind = new CallbackKind(-1495570,107) + static readonly Kind_Callback_OnShowFileSelectorEvent_Boolean: CallbackKind = new CallbackKind(-636069598,108) + static readonly Kind_Callback_OnSslErrorEventReceiveEvent_Void: CallbackKind = new CallbackKind(1624791665,109) + static readonly Kind_Callback_OnTitleReceiveEvent_Void: CallbackKind = new CallbackKind(-318085495,110) + static readonly Kind_Callback_OnTouchIconUrlReceivedEvent_Void: CallbackKind = new CallbackKind(1657893064,111) + static readonly Kind_Callback_OnWindowNewEvent_Void: CallbackKind = new CallbackKind(-2052382574,112) + static readonly Kind_Callback_Opt_Array_String_Void: CallbackKind = new CallbackKind(-543655128,113) + static readonly Kind_Callback_Opt_StyledString_Opt_Array_String_Void: CallbackKind = new CallbackKind(-756319131,114) + static readonly Kind_Callback_Opt_TabContentAnimatedTransition_Void: CallbackKind = new CallbackKind(-143931627,115) + static readonly Kind_Callback_PlaybackInfo_Void: CallbackKind = new CallbackKind(-2058966418,116) + static readonly Kind_Callback_Pointer_Void: CallbackKind = new CallbackKind(721562324,117) + static readonly Kind_Callback_PreDragStatus_Void: CallbackKind = new CallbackKind(463894668,118) + static readonly Kind_Callback_PreparedInfo_Void: CallbackKind = new CallbackKind(1300890372,119) + static readonly Kind_Callback_RangeUpdate: CallbackKind = new CallbackKind(797834474,120) + static readonly Kind_Callback_RefreshStatus_Void: CallbackKind = new CallbackKind(934309126,121) + static readonly Kind_Callback_RichEditorChangeValue_Boolean: CallbackKind = new CallbackKind(1465860515,122) + static readonly Kind_Callback_RichEditorDeleteValue_Boolean: CallbackKind = new CallbackKind(667698748,123) + static readonly Kind_Callback_RichEditorInsertValue_Boolean: CallbackKind = new CallbackKind(-319221262,124) + static readonly Kind_Callback_RichEditorRange_Void: CallbackKind = new CallbackKind(-62253375,125) + static readonly Kind_Callback_RichEditorSelection_Void: CallbackKind = new CallbackKind(-963852514,126) + static readonly Kind_Callback_RichEditorTextSpanResult_Void: CallbackKind = new CallbackKind(1980824326,127) + static readonly Kind_Callback_SheetDismiss_Void: CallbackKind = new CallbackKind(22609082,128) + static readonly Kind_Callback_SheetType_Void: CallbackKind = new CallbackKind(-224451112,129) + static readonly Kind_Callback_SpringBackAction_Void: CallbackKind = new CallbackKind(1536231691,130) + static readonly Kind_Callback_String_Number_Void: CallbackKind = new CallbackKind(-879490874,131) + static readonly Kind_Callback_String_PasteEvent_Void: CallbackKind = new CallbackKind(-683652998,132) + static readonly Kind_Callback_String_Unknown_Void: CallbackKind = new CallbackKind(-1493806035,133) + static readonly Kind_Callback_String_Void: CallbackKind = new CallbackKind(814634522,134) + static readonly Kind_Callback_StyledStringChangeValue_Boolean: CallbackKind = new CallbackKind(2116745428,135) + static readonly Kind_Callback_SwipeActionState_Void: CallbackKind = new CallbackKind(-301561698,136) + static readonly Kind_Callback_SwiperContentTransitionProxy_Void: CallbackKind = new CallbackKind(-416053361,137) + static readonly Kind_Callback_T_Any_this: CallbackKind = new CallbackKind(-1500753856,138) + static readonly Kind_Callback_TabContentTransitionProxy_Void: CallbackKind = new CallbackKind(-1223938478,139) + static readonly Kind_Callback_TerminationInfo_Void: CallbackKind = new CallbackKind(691098197,140) + static readonly Kind_Callback_TextPickerResult_Void: CallbackKind = new CallbackKind(1290504509,141) + static readonly Kind_Callback_TextRange_Void: CallbackKind = new CallbackKind(811915501,142) + static readonly Kind_Callback_TimePickerResult_Void: CallbackKind = new CallbackKind(1557859605,143) + static readonly Kind_Callback_TouchEvent_HitTestMode: CallbackKind = new CallbackKind(-274419246,144) + static readonly Kind_Callback_TouchEvent_Void: CallbackKind = new CallbackKind(-1676021850,145) + static readonly Kind_Callback_TouchResult_Void: CallbackKind = new CallbackKind(1943507619,146) + static readonly Kind_Callback_Tuple_Number_Number_Number_Number_Void: CallbackKind = new CallbackKind(148489367,147) + static readonly Kind_Callback_Tuple_Number_Number_Void: CallbackKind = new CallbackKind(-607365481,148) + static readonly Kind_Callback_Type_ImageAttribute_onComplete_callback_event_Void: CallbackKind = new CallbackKind(-1352745727,149) + static readonly Kind_Callback_UIExtensionProxy_Void: CallbackKind = new CallbackKind(-1063506522,150) + static readonly Kind_Callback_Union_CustomBuilder_DragItemInfo_Void: CallbackKind = new CallbackKind(-620935067,151) + static readonly Kind_Callback_Void: CallbackKind = new CallbackKind(-1867723152,152) + static readonly Kind_Callback_WebKeyboardOptions_Void: CallbackKind = new CallbackKind(-1376223390,153) + static readonly Kind_Callback_WebResourceResponse_Void: CallbackKind = new CallbackKind(831645046,154) + static readonly Kind_Callback_WithThemeAttribute_Void: CallbackKind = new CallbackKind(1436479104,155) + static readonly Kind_ContentDidScrollCallback: CallbackKind = new CallbackKind(1532328438,156) + static readonly Kind_CustomNodeBuilder: CallbackKind = new CallbackKind(1766817632,157) + static readonly Kind_EditableTextOnChangeCallback: CallbackKind = new CallbackKind(-1729563209,158) + static readonly Kind_GestureRecognizerJudgeBeginCallback: CallbackKind = new CallbackKind(-2119548940,159) + static readonly Kind_GetItemMainSizeByIndex: CallbackKind = new CallbackKind(-2076995110,160) + static readonly Kind_HoverCallback: CallbackKind = new CallbackKind(68560477,161) + static readonly Kind_ImageCompleteCallback: CallbackKind = new CallbackKind(-1180567691,162) + static readonly Kind_ImageErrorCallback: CallbackKind = new CallbackKind(1906248580,163) + static readonly Kind_InterceptionModeCallback: CallbackKind = new CallbackKind(1502213270,164) + static readonly Kind_IsolatedComponentInterface: CallbackKind = new CallbackKind(2139680213,165) + static readonly Kind_MenuOnAppearCallback: CallbackKind = new CallbackKind(-614475458,166) + static readonly Kind_OnAdsBlockedCallback: CallbackKind = new CallbackKind(1572284740,167) + static readonly Kind_OnAlphabetIndexerPopupSelectCallback: CallbackKind = new CallbackKind(726938390,168) + static readonly Kind_OnAlphabetIndexerRequestPopupDataCallback: CallbackKind = new CallbackKind(-1956514817,169) + static readonly Kind_OnAlphabetIndexerSelectCallback: CallbackKind = new CallbackKind(-1189721220,170) + static readonly Kind_OnCheckboxChangeCallback: CallbackKind = new CallbackKind(-1198592337,171) + static readonly Kind_OnCheckboxGroupChangeCallback: CallbackKind = new CallbackKind(-1053064240,172) + static readonly Kind_OnContentScrollCallback: CallbackKind = new CallbackKind(-419979106,173) + static readonly Kind_OnContextMenuHideCallback: CallbackKind = new CallbackKind(1788572278,174) + static readonly Kind_OnDidChangeCallback: CallbackKind = new CallbackKind(1648184341,175) + static readonly Kind_OnFirstMeaningfulPaintCallback: CallbackKind = new CallbackKind(767275770,176) + static readonly Kind_OnFoldStatusChangeCallback: CallbackKind = new CallbackKind(2050387049,177) + static readonly Kind_OnFullScreenEnterCallback: CallbackKind = new CallbackKind(81230317,178) + static readonly Kind_OnHoverStatusChangeCallback: CallbackKind = new CallbackKind(9040430,179) + static readonly Kind_OnIntelligentTrackingPreventionCallback: CallbackKind = new CallbackKind(-1377876844,180) + static readonly Kind_OnLargestContentfulPaintCallback: CallbackKind = new CallbackKind(1390640532,181) + static readonly Kind_OnLinearIndicatorChangeCallback: CallbackKind = new CallbackKind(-968773856,182) + static readonly Kind_OnMoveHandler: CallbackKind = new CallbackKind(-1200281222,183) + static readonly Kind_OnNativeEmbedVisibilityChangeCallback: CallbackKind = new CallbackKind(-1641338704,184) + static readonly Kind_OnNativeLoadCallback: CallbackKind = new CallbackKind(-823037763,185) + static readonly Kind_OnNavigationEntryCommittedCallback: CallbackKind = new CallbackKind(-398722176,186) + static readonly Kind_OnOverrideUrlLoadingCallback: CallbackKind = new CallbackKind(865258467,187) + static readonly Kind_OnPasteCallback: CallbackKind = new CallbackKind(1738363337,188) + static readonly Kind_OnRenderProcessNotRespondingCallback: CallbackKind = new CallbackKind(47282303,189) + static readonly Kind_OnRenderProcessRespondingCallback: CallbackKind = new CallbackKind(1334389194,190) + static readonly Kind_OnSafeBrowsingCheckResultCallback: CallbackKind = new CallbackKind(-1099824577,191) + static readonly Kind_OnScrollCallback: CallbackKind = new CallbackKind(-160015401,192) + static readonly Kind_OnScrollEdgeCallback: CallbackKind = new CallbackKind(-1259214476,193) + static readonly Kind_OnScrollFrameBeginCallback: CallbackKind = new CallbackKind(-2133791987,194) + static readonly Kind_OnScrollVisibleContentChangeCallback: CallbackKind = new CallbackKind(625641334,195) + static readonly Kind_OnSslErrorEventCallback: CallbackKind = new CallbackKind(-399603614,196) + static readonly Kind_OnSubmitCallback: CallbackKind = new CallbackKind(-1961646162,197) + static readonly Kind_OnSwiperAnimationEndCallback: CallbackKind = new CallbackKind(-143686583,198) + static readonly Kind_OnSwiperAnimationStartCallback: CallbackKind = new CallbackKind(876602502,199) + static readonly Kind_OnSwiperGestureSwipeCallback: CallbackKind = new CallbackKind(606029871,200) + static readonly Kind_OnTabsAnimationEndCallback: CallbackKind = new CallbackKind(1942856551,201) + static readonly Kind_OnTabsAnimationStartCallback: CallbackKind = new CallbackKind(-147408344,202) + static readonly Kind_OnTabsContentWillChangeCallback: CallbackKind = new CallbackKind(-349727249,203) + static readonly Kind_OnTabsGestureSwipeCallback: CallbackKind = new CallbackKind(253696833,204) + static readonly Kind_OnTextSelectionChangeCallback: CallbackKind = new CallbackKind(695228737,205) + static readonly Kind_OnViewportFitChangedCallback: CallbackKind = new CallbackKind(1847083191,206) + static readonly Kind_PageTransitionCallback: CallbackKind = new CallbackKind(1627123591,207) + static readonly Kind_PasteEventCallback: CallbackKind = new CallbackKind(919057028,208) + static readonly Kind_PluginErrorCallback: CallbackKind = new CallbackKind(-1992671958,209) + static readonly Kind_ScrollOnScrollCallback: CallbackKind = new CallbackKind(-1265626662,210) + static readonly Kind_ScrollOnWillScrollCallback: CallbackKind = new CallbackKind(-721521596,211) + static readonly Kind_SearchSubmitCallback: CallbackKind = new CallbackKind(1717691617,212) + static readonly Kind_ShouldBuiltInRecognizerParallelWithCallback: CallbackKind = new CallbackKind(-250780276,213) + static readonly Kind_SizeChangeCallback: CallbackKind = new CallbackKind(-1716637992,214) + static readonly Kind_SliderTriggerChangeCallback: CallbackKind = new CallbackKind(711649376,215) + static readonly Kind_SubmitCallback: CallbackKind = new CallbackKind(-712186065,216) + static readonly Kind_TabsCustomContentTransitionCallback: CallbackKind = new CallbackKind(221706282,217) + static readonly Kind_TextAreaSubmitCallback: CallbackKind = new CallbackKind(-401980571,218) + static readonly Kind_TransitionFinishCallback: CallbackKind = new CallbackKind(-1878458553,219) + static readonly Kind_Type_TextPickerAttribute_onChange_callback: CallbackKind = new CallbackKind(-1078223620,220) + static readonly Kind_Type_WebAttribute_onUrlLoadIntercept_callback: CallbackKind = new CallbackKind(-985284966,221) + static readonly Kind_VisibleAreaChangeCallback: CallbackKind = new CallbackKind(541663396,222) + static readonly Kind_VoidCallback: CallbackKind = new CallbackKind(-2038961969,223) + static readonly Kind_WebKeyboardCallback: CallbackKind = new CallbackKind(-1829763354,224) + static readonly Kind_WithThemeInterface: CallbackKind = new CallbackKind(219587748,225) constructor(value: int32, ordinal: int32) { this.value = value this.ordinal = ordinal @@ -359,14 +353,10 @@ export class CallbackKind { return CallbackKind.Kind_Callback_NativeEmbedDataInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void.value)) return CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void - if ((arg0) == (CallbackKind.Kind_Callback_NavDestinationContext_Void.value)) - return CallbackKind.Kind_Callback_NavDestinationContext_Void if ((arg0) == (CallbackKind.Kind_Callback_NavigationMode_Void.value)) return CallbackKind.Kind_Callback_NavigationMode_Void if ((arg0) == (CallbackKind.Kind_Callback_NavigationTitleMode_Void.value)) return CallbackKind.Kind_Callback_NavigationTitleMode_Void - if ((arg0) == (CallbackKind.Kind_Callback_NavigationTransitionProxy_Void.value)) - return CallbackKind.Kind_Callback_NavigationTransitionProxy_Void if ((arg0) == (CallbackKind.Kind_Callback_Number_Boolean.value)) return CallbackKind.Kind_Callback_Number_Boolean if ((arg0) == (CallbackKind.Kind_Callback_Number_Number_Boolean.value)) @@ -471,8 +461,6 @@ export class CallbackKind { return CallbackKind.Kind_Callback_OnWindowNewEvent_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_Array_String_Void.value)) return CallbackKind.Kind_Callback_Opt_Array_String_Void - if ((arg0) == (CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void.value)) - return CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void.value)) return CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_TabContentAnimatedTransition_Void.value)) @@ -481,8 +469,6 @@ export class CallbackKind { return CallbackKind.Kind_Callback_PlaybackInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_Pointer_Void.value)) return CallbackKind.Kind_Callback_Pointer_Void - if ((arg0) == (CallbackKind.Kind_Callback_PopInfo_Void.value)) - return CallbackKind.Kind_Callback_PopInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_PreDragStatus_Void.value)) return CallbackKind.Kind_Callback_PreDragStatus_Void if ((arg0) == (CallbackKind.Kind_Callback_PreparedInfo_Void.value)) @@ -577,8 +563,6 @@ export class CallbackKind { return CallbackKind.Kind_ImageErrorCallback if ((arg0) == (CallbackKind.Kind_InterceptionModeCallback.value)) return CallbackKind.Kind_InterceptionModeCallback - if ((arg0) == (CallbackKind.Kind_InterceptionShowCallback.value)) - return CallbackKind.Kind_InterceptionShowCallback if ((arg0) == (CallbackKind.Kind_IsolatedComponentInterface.value)) return CallbackKind.Kind_IsolatedComponentInterface if ((arg0) == (CallbackKind.Kind_MenuOnAppearCallback.value)) @@ -689,8 +673,6 @@ export class CallbackKind { return CallbackKind.Kind_TextAreaSubmitCallback if ((arg0) == (CallbackKind.Kind_TransitionFinishCallback.value)) return CallbackKind.Kind_TransitionFinishCallback - if ((arg0) == (CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate.value)) - return CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate if ((arg0) == (CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback.value)) return CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback if ((arg0) == (CallbackKind.Kind_Type_WebAttribute_onUrlLoadIntercept_callback.value)) @@ -826,14 +808,10 @@ export class CallbackKind { return CallbackKind.Kind_Callback_NativeEmbedDataInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void.ordinal)) return CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void - if ((arg0) == (CallbackKind.Kind_Callback_NavDestinationContext_Void.ordinal)) - return CallbackKind.Kind_Callback_NavDestinationContext_Void if ((arg0) == (CallbackKind.Kind_Callback_NavigationMode_Void.ordinal)) return CallbackKind.Kind_Callback_NavigationMode_Void if ((arg0) == (CallbackKind.Kind_Callback_NavigationTitleMode_Void.ordinal)) return CallbackKind.Kind_Callback_NavigationTitleMode_Void - if ((arg0) == (CallbackKind.Kind_Callback_NavigationTransitionProxy_Void.ordinal)) - return CallbackKind.Kind_Callback_NavigationTransitionProxy_Void if ((arg0) == (CallbackKind.Kind_Callback_Number_Boolean.ordinal)) return CallbackKind.Kind_Callback_Number_Boolean if ((arg0) == (CallbackKind.Kind_Callback_Number_Number_Boolean.ordinal)) @@ -938,8 +916,6 @@ export class CallbackKind { return CallbackKind.Kind_Callback_OnWindowNewEvent_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_Array_String_Void.ordinal)) return CallbackKind.Kind_Callback_Opt_Array_String_Void - if ((arg0) == (CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void.ordinal)) - return CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void.ordinal)) return CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void if ((arg0) == (CallbackKind.Kind_Callback_Opt_TabContentAnimatedTransition_Void.ordinal)) @@ -948,8 +924,6 @@ export class CallbackKind { return CallbackKind.Kind_Callback_PlaybackInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_Pointer_Void.ordinal)) return CallbackKind.Kind_Callback_Pointer_Void - if ((arg0) == (CallbackKind.Kind_Callback_PopInfo_Void.ordinal)) - return CallbackKind.Kind_Callback_PopInfo_Void if ((arg0) == (CallbackKind.Kind_Callback_PreDragStatus_Void.ordinal)) return CallbackKind.Kind_Callback_PreDragStatus_Void if ((arg0) == (CallbackKind.Kind_Callback_PreparedInfo_Void.ordinal)) @@ -1044,8 +1018,6 @@ export class CallbackKind { return CallbackKind.Kind_ImageErrorCallback if ((arg0) == (CallbackKind.Kind_InterceptionModeCallback.ordinal)) return CallbackKind.Kind_InterceptionModeCallback - if ((arg0) == (CallbackKind.Kind_InterceptionShowCallback.ordinal)) - return CallbackKind.Kind_InterceptionShowCallback if ((arg0) == (CallbackKind.Kind_IsolatedComponentInterface.ordinal)) return CallbackKind.Kind_IsolatedComponentInterface if ((arg0) == (CallbackKind.Kind_MenuOnAppearCallback.ordinal)) @@ -1156,8 +1128,6 @@ export class CallbackKind { return CallbackKind.Kind_TextAreaSubmitCallback if ((arg0) == (CallbackKind.Kind_TransitionFinishCallback.ordinal)) return CallbackKind.Kind_TransitionFinishCallback - if ((arg0) == (CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate.ordinal)) - return CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate if ((arg0) == (CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback.ordinal)) return CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback if ((arg0) == (CallbackKind.Kind_Type_WebAttribute_onUrlLoadIntercept_callback.ordinal)) diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 3e25d1cf3..ae3bcf634 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -25,7 +25,7 @@ import { NativeBuffer } from "./../NativeBuffer" import { TypeChecker } from "#components" import { KUint8ArrayPtr } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, ClickEvent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchEvent, BaseEvent, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, LightSource, HoverEvent, TouchResult, CommonMethod, TextDecorationOptions, LayoutSafeAreaEdge, LayoutSafeAreaType, ItemDragInfo, MultiShadowOptions, MenuElement, SafeAreaEdge, SafeAreaType, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, DragEvent, Summary, DragResult, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, KeyEvent, MouseEvent, AccessibilityHoverEvent, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, ClickEvent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchEvent, BaseEvent, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, LightSource, HoverEvent, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, MenuElement, SafeAreaEdge, SafeAreaType, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, DragEvent, Summary, DragResult, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, KeyEvent, MouseEvent, AccessibilityHoverEvent, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkui-customInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperNestedScrollMode, SwiperAnimationEvent, SwiperDisplayMode } from "./../ArkSwiperInterfaces" @@ -33,7 +33,7 @@ import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResul import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathStack, NavPathInfo, NavigationOptions, NavigationInterception, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationOperation, NavBar, NavigationMode, NavigationTitleMode, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, NavigationMode, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, WebviewController, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, WebKeyboardAvoidMode, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, WebLayoutMode, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, OverScrollMode, WebMediaOptions, WebDarkMode, CacheMode, JavaScriptProxy, MixedMode, WebOptions } from "./../ArkWebInterfaces" @@ -54,11 +54,11 @@ import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChange import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ColorFilter, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, ConstraintSizeOptions, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" -import { LengthUnit, LengthMetrics, TextModifier, Want, RectHeightStyle, RectWidthStyle, NodeController } from "./../ArkArkui-externalInterfaces" +import { LengthUnit, LengthMetrics, Want, RectHeightStyle, RectWidthStyle, NodeController } from "./../ArkArkui-externalInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, IlluminatedType, HitTestMode, TextSelectableMode, EllipsisMode, TextCase, MarqueeUpdateStrategy, CopyOptions, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, IlluminatedType, HitTestMode, TextSelectableMode, EllipsisMode, TextCase, MarqueeUpdateStrategy, CopyOptions, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" -import { Tuple_Dimension_Dimension, Callback_PopInfo_Void, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Tuple_ResourceColor_Number, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_SwiperContentTransitionProxy_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_T_Any_this, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_ComputedBarAttribute_Void, Callback_Callback_Any_Void, Callback_Any, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_ScrollState_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Callback_MouseEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Literal_String_script_Callback_String_Void_callback, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Tuple_ResourceColor_Number, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_SwiperContentTransitionProxy_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_T_Any_this, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_ComputedBarAttribute_Void, Callback_Callback_Any_Void, Callback_Any, Callback_Boolean, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_ScrollState_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Callback_MouseEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { ImageAttachmentLayoutStyle, BackgroundColorStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, UrlStyle, LineHeightStyle, ParagraphStyle, ParagraphStyleInterface, ImageAttachment, ImageAttachmentInterface, GestureStyle, GestureStyleInterface, TextShadowStyle, LetterSpacingStyle, BaselineOffsetStyle, DecorationStyle, DecorationStyleInterface, TextStyle_styled_string, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" @@ -72,8 +72,6 @@ import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEf import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" -import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -98,7 +96,6 @@ import { Size, RenderingContextSettings, ImageData } from "./../ArkCanvasInterfa import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" -import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" @@ -168,7 +165,6 @@ import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptio import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" import { LinearGradient_data_panel, ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" -import { IPropertySubscriber, IPropertySubscriberInternal } from "./../ArkIPropertySubscriberMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" @@ -674,12 +670,6 @@ export class Deserializer extends DeserializerBase { let value : GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } - readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (parameter: PopInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writePopInfo(parameter); (isSync) ? (NativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readBackgroundColorStyle(): BackgroundColorStyle { let valueDeserializer : Deserializer = this const textBackgroundStyle_result : TextBackgroundStyle = valueDeserializer.readTextBackgroundStyle() @@ -1473,48 +1463,6 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return ():void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); (isSync) ? (NativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readNavPathStack(): NavPathStack { - throw new Error("Must not call") - } - readNavPathInfo(): NavPathInfo { - let valueDeserializer : Deserializer = this - const name_result : string = (valueDeserializer.readString() as string) - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf : object | undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Any") as Object) - } - const param_result : object | undefined = param_buf - const onPop_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onPop_buf : ((parameter: PopInfo) => void) | undefined - if ((RuntimeType.UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf = valueDeserializer.readCallback_PopInfo_Void() - } - const onPop_result : ((parameter: PopInfo) => void) | undefined = onPop_buf - const isEntry_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEntry_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf = valueDeserializer.readBoolean() - } - const isEntry_result : boolean | undefined = isEntry_buf - let value : NavPathInfo = ({name: name_result,param: param_result,onPop: onPop_result,isEntry: isEntry_result} as NavPathInfo) - return value - } - readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavigationTransitionProxy(transitionProxy); (isSync) ? (NativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } - readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (parameter: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeBoolean(parameter); (isSync) ? (NativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readColorMetrics(): ColorMetrics { let valueDeserializer : Deserializer = this const __ColorMetricsStub_result : string = (valueDeserializer.readString() as string) @@ -2629,10 +2577,6 @@ export class Deserializer extends DeserializerBase { let value : RichEditorGesture = ({onClick: onClick_result,onLongPress: onLongPress_result} as RichEditorGesture) return value } - readTextModifier(): TextModifier { - let value : TextModifier = ({} as TextModifier) - return value - } readSwipeActionItem(): SwipeActionItem { let valueDeserializer : Deserializer = this const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -3647,77 +3591,11 @@ export class Deserializer extends DeserializerBase { let value : Want = ({bundleName: bundleName_result,abilityName: abilityName_result,deviceId: deviceId_result,uri: uri_result,type: type_result,flags: flags_result,action: action_result,parameters: parameters_result,entities: entities_result,moduleName: moduleName_result} as Want) return value } - readNavDestinationContext(): NavDestinationContext { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return NavDestinationContextInternal.fromPtr(ptr) - } readStyledString(): StyledString { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return StyledStringInternal.fromPtr(ptr) } - readNavigationAnimatedTransition(): NavigationAnimatedTransition { - let valueDeserializer : Deserializer = this - const onTransitionEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onTransitionEnd_buf : ((parameter: boolean) => void) | undefined - if ((RuntimeType.UNDEFINED) != (onTransitionEnd_buf_runtimeType)) - { - onTransitionEnd_buf = valueDeserializer.readCallback_Boolean_Void() - } - const onTransitionEnd_result : ((parameter: boolean) => void) | undefined = onTransitionEnd_buf - const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let timeout_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) - { - timeout_buf = (valueDeserializer.readNumber() as number) - } - const timeout_result : number | undefined = timeout_buf - const isInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isInteractive_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (isInteractive_buf_runtimeType)) - { - isInteractive_buf = valueDeserializer.readBoolean() - } - const isInteractive_result : boolean | undefined = isInteractive_buf - const transition_result : ((transitionProxy: NavigationTransitionProxy) => void) = valueDeserializer.readCallback_NavigationTransitionProxy_Void() - let value : NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result,timeout: timeout_result,isInteractive: isInteractive_result,transition: transition_result} as NavigationAnimatedTransition) - return value - } - readNavContentInfo(): NavContentInfo { - let valueDeserializer : Deserializer = this - const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let name_buf : string | undefined - if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) - { - name_buf = (valueDeserializer.readString() as string) - } - const name_result : string | undefined = name_buf - const index_result : number = (valueDeserializer.readNumber() as number) - const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mode_buf : NavDestinationMode | undefined - if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf = NavDestinationMode.ofOrdinal(valueDeserializer.readInt32()) - } - const mode_result : NavDestinationMode | undefined = mode_buf - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf : Object | undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Object") as Object) - } - const param_result : Object | undefined = param_buf - const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let navDestinationId_buf : string | undefined - if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf = (valueDeserializer.readString() as string) - } - const navDestinationId_result : string | undefined = navDestinationId_buf - let value : NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) - return value - } readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -6497,180 +6375,6 @@ export class Deserializer extends DeserializerBase { let value : CircleStyleOptions = ({color: color_result,radius: radius_result,enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) return value } - readNavigationToolbarOptions(): NavigationToolbarOptions { - let valueDeserializer : Deserializer = this - const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundColor_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() - let backgroundColor_buf_ : Color | number | string | Resource | undefined - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_ = Color.ofOrdinal(valueDeserializer.readInt32()) - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_ = (valueDeserializer.readString() as string) - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") - } - backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) - } - const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf - const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundBlurStyle_buf : BlurStyle | undefined - if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf = BlurStyle.ofOrdinal(valueDeserializer.readInt32()) - } - const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf - const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let barStyle_buf : BarStyle | undefined - if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf = BarStyle.ofOrdinal(valueDeserializer.readInt32()) - } - const barStyle_result : BarStyle | undefined = barStyle_buf - let value : NavigationToolbarOptions = ({backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,barStyle: barStyle_result} as NavigationToolbarOptions) - return value - } - readNavigationTitleOptions(): NavigationTitleOptions { - let valueDeserializer : Deserializer = this - const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundColor_buf : ResourceColor | undefined - if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() - let backgroundColor_buf_ : Color | number | string | Resource | undefined - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_ = Color.ofOrdinal(valueDeserializer.readInt32()) - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_ = (valueDeserializer.readString() as string) - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") - } - backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) - } - const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf - const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundBlurStyle_buf : BlurStyle | undefined - if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf = BlurStyle.ofOrdinal(valueDeserializer.readInt32()) - } - const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf - const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let barStyle_buf : BarStyle | undefined - if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf = BarStyle.ofOrdinal(valueDeserializer.readInt32()) - } - const barStyle_result : BarStyle | undefined = barStyle_buf - const paddingStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let paddingStart_buf : LengthMetrics | undefined - if ((RuntimeType.UNDEFINED) != (paddingStart_buf_runtimeType)) - { - paddingStart_buf = valueDeserializer.readLengthMetrics() - } - const paddingStart_result : LengthMetrics | undefined = paddingStart_buf - const paddingEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let paddingEnd_buf : LengthMetrics | undefined - if ((RuntimeType.UNDEFINED) != (paddingEnd_buf_runtimeType)) - { - paddingEnd_buf = valueDeserializer.readLengthMetrics() - } - const paddingEnd_result : LengthMetrics | undefined = paddingEnd_buf - const mainTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mainTitleModifier_buf : TextModifier | undefined - if ((RuntimeType.UNDEFINED) != (mainTitleModifier_buf_runtimeType)) - { - mainTitleModifier_buf = valueDeserializer.readTextModifier() - } - const mainTitleModifier_result : TextModifier | undefined = mainTitleModifier_buf - const subTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let subTitleModifier_buf : TextModifier | undefined - if ((RuntimeType.UNDEFINED) != (subTitleModifier_buf_runtimeType)) - { - subTitleModifier_buf = valueDeserializer.readTextModifier() - } - const subTitleModifier_result : TextModifier | undefined = subTitleModifier_buf - const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let enableHoverMode_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) - { - enableHoverMode_buf = valueDeserializer.readBoolean() - } - const enableHoverMode_result : boolean | undefined = enableHoverMode_buf - let value : NavigationTitleOptions = ({backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,barStyle: barStyle_result,paddingStart: paddingStart_result,paddingEnd: paddingEnd_result,mainTitleModifier: mainTitleModifier_result,subTitleModifier: subTitleModifier_result,enableHoverMode: enableHoverMode_result} as NavigationTitleOptions) - return value - } - readNavDestinationCustomTitle(): NavDestinationCustomTitle { - let valueDeserializer : Deserializer = this - const builder_result : CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) - const height_buf_selector : int32 = valueDeserializer.readInt8() - let height_buf : TitleHeight | Length | undefined - if (height_buf_selector == 0) { - height_buf = TitleHeight.ofOrdinal(valueDeserializer.readInt32()) - } - else if (height_buf_selector == 1) { - height_buf = (valueDeserializer.readLength() as Length) - } - else { - throw new Error("One of the branches for height_buf has to be chosen through deserialisation.") - } - const height_result : TitleHeight | Length = (height_buf as TitleHeight | Length) - let value : NavDestinationCustomTitle = ({builder: builder_result,height: height_result} as NavDestinationCustomTitle) - return value - } - readNavDestinationCommonTitle(): NavDestinationCommonTitle { - let valueDeserializer : Deserializer = this - const main_buf_selector : int32 = valueDeserializer.readInt8() - let main_buf : string | Resource | undefined - if (main_buf_selector == 0) { - main_buf = (valueDeserializer.readString() as string) - } - else if (main_buf_selector == 1) { - main_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for main_buf has to be chosen through deserialisation.") - } - const main_result : string | Resource = (main_buf as string | Resource) - const sub_buf_selector : int32 = valueDeserializer.readInt8() - let sub_buf : string | Resource | undefined - if (sub_buf_selector == 0) { - sub_buf = (valueDeserializer.readString() as string) - } - else if (sub_buf_selector == 1) { - sub_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for sub_buf has to be chosen through deserialisation.") - } - const sub_result : string | Resource = (sub_buf as string | Resource) - let value : NavDestinationCommonTitle = ({main: main_result,sub: sub_result} as NavDestinationCommonTitle) - return value - } - readSystemBarStyle(): SystemBarStyle { - let valueDeserializer : Deserializer = this - const __SystemBarStyleStub_result : string = (valueDeserializer.readString() as string) - let value : SystemBarStyle = ({__SystemBarStyleStub: __SystemBarStyleStub_result} as SystemBarStyle) - return value - } readMenuItemOptions(): MenuItemOptions { let valueDeserializer : Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7307,11 +7011,6 @@ export class Deserializer extends DeserializerBase { let value : AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } - readIPropertySubscriber(): IPropertySubscriber { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return IPropertySubscriberInternal.fromPtr(ptr) - } readUIGestureEvent(): UIGestureEvent { let value : UIGestureEvent = ({} as UIGestureEvent) return value @@ -11819,12 +11518,6 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return (options: WithThemeOptions):WithThemeAttribute => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeWithThemeOptions(options); let _continuationValue : WithThemeAttribute | undefined; const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (NativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as WithThemeAttribute); } } - readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavContentInfo(from); _argsSerializer.writeNavContentInfo(to); _argsSerializer.writeInt32(operation.ordinal); let _continuationValue : NavigationAnimatedTransition | undefined; const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (NativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as NavigationAnimatedTransition | undefined); } - } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -11862,12 +11555,6 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return (options: IsolatedOptions):IsolatedComponentAttribute => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeIsolatedOptions(options); let _continuationValue : IsolatedComponentAttribute | undefined; const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (NativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as IsolatedComponentAttribute); } } - readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let from_type : int32 = RuntimeType.UNDEFINED; from_type = runtimeType(from); if (((RuntimeType.OBJECT == from_type))) {; _argsSerializer.writeInt8(0 as int32); const from_0 = from as NavDestinationContext; _argsSerializer.writeNavDestinationContext(from_0); } else if (((RuntimeType.STRING == from_type))) {; _argsSerializer.writeInt8(1 as int32); const from_1 = from as NavBar; _argsSerializer.writeString(from_1); } let to_type : int32 = RuntimeType.UNDEFINED; to_type = runtimeType(to); if (((RuntimeType.OBJECT == to_type))) {; _argsSerializer.writeInt8(0 as int32); const to_0 = to as NavDestinationContext; _argsSerializer.writeNavDestinationContext(to_0); } else if (((RuntimeType.STRING == to_type))) {; _argsSerializer.writeInt8(1 as int32); const to_1 = to as NavBar; _argsSerializer.writeString(to_1); } _argsSerializer.writeInt32(operation.ordinal); _argsSerializer.writeBoolean(isAnimated); (isSync) ? (NativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -11956,12 +11643,6 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return (value?: StyledString | undefined, error?: Array | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let value_type : int32 = RuntimeType.UNDEFINED; value_type = runtimeType(value); _argsSerializer.writeInt8(value_type as int32); if ((RuntimeType.UNDEFINED) != (value_type)) {; const value_value = value!; _argsSerializer.writeStyledString(value_value); } let error_type : int32 = RuntimeType.UNDEFINED; error_type = runtimeType(error); _argsSerializer.writeInt8(error_type as int32); if ((RuntimeType.UNDEFINED) != (error_type)) {; const error_value = error!; _argsSerializer.writeInt32(error_value.length as int32); for (let i = 0; i < error_value.length; i++) {; const error_value_element = error_value[i]; _argsSerializer.writeString(error_value_element); } } (isSync) ? (NativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let value_type : int32 = RuntimeType.UNDEFINED; value_type = runtimeType(value); _argsSerializer.writeInt8(value_type as int32); if ((RuntimeType.UNDEFINED) != (value_type)) {; const value_value = value!; _argsSerializer.writeNavigationAnimatedTransition(value_value); } (isSync) ? (NativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -11980,11 +11661,6 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return (value: OffsetResult):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeOffsetResult(value); (isSync) ? (NativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readNavigationTransitionProxy(): NavigationTransitionProxy { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return NavigationTransitionProxyInternal.fromPtr(ptr) - } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -12043,6 +11719,12 @@ export class Deserializer extends DeserializerBase { const _callSync : KPointer = this.readPointer() return (value: (() => object)):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.holdAndWriteCallback(value); (isSync) ? (NativeModule._CallCallbackSync(1931725935, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(1931725935, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } + readCallback_Boolean(isSync: boolean = false): (() => boolean) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return ():boolean => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let _continuationValue : boolean | undefined; const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (NativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as boolean); } + } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -15580,162 +15262,6 @@ export class Deserializer extends DeserializerBase { let value : RouteInfo = ({name: name_result,param: param_result} as RouteInfo) return value } - readToolbarItem(): ToolbarItem { - let valueDeserializer : Deserializer = this - const value_buf_selector : int32 = valueDeserializer.readInt8() - let value_buf : string | Resource | undefined - if (value_buf_selector == 0) { - value_buf = (valueDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - const value_result : ResourceStr = (value_buf as string | Resource) - const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let icon_buf : ResourceStr | undefined - if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) - { - const icon_buf__selector : int32 = valueDeserializer.readInt8() - let icon_buf_ : string | Resource | undefined - if (icon_buf__selector == 0) { - icon_buf_ = (valueDeserializer.readString() as string) - } - else if (icon_buf__selector == 1) { - icon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") - } - icon_buf = (icon_buf_ as string | Resource) - } - const icon_result : ResourceStr | undefined = icon_buf - const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let symbolIcon_buf : SymbolGlyphModifier | undefined - if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf - const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let action_buf : (() => void) | undefined - if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) - { - action_buf = valueDeserializer.readCallback_Void() - } - const action_result : (() => void) | undefined = action_buf - const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let status_buf : ToolbarItemStatus | undefined - if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) - { - status_buf = ToolbarItemStatus.ofOrdinal(valueDeserializer.readInt32()) - } - const status_result : ToolbarItemStatus | undefined = status_buf - const activeIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let activeIcon_buf : ResourceStr | undefined - if ((RuntimeType.UNDEFINED) != (activeIcon_buf_runtimeType)) - { - const activeIcon_buf__selector : int32 = valueDeserializer.readInt8() - let activeIcon_buf_ : string | Resource | undefined - if (activeIcon_buf__selector == 0) { - activeIcon_buf_ = (valueDeserializer.readString() as string) - } - else if (activeIcon_buf__selector == 1) { - activeIcon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for activeIcon_buf_ has to be chosen through deserialisation.") - } - activeIcon_buf = (activeIcon_buf_ as string | Resource) - } - const activeIcon_result : ResourceStr | undefined = activeIcon_buf - const activeSymbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let activeSymbolIcon_buf : SymbolGlyphModifier | undefined - if ((RuntimeType.UNDEFINED) != (activeSymbolIcon_buf_runtimeType)) - { - activeSymbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const activeSymbolIcon_result : SymbolGlyphModifier | undefined = activeSymbolIcon_buf - let value : ToolbarItem = ({value: value_result,icon: icon_result,symbolIcon: symbolIcon_result,action: action_result,status: status_result,activeIcon: activeIcon_result,activeSymbolIcon: activeSymbolIcon_result} as ToolbarItem) - return value - } - readCallback_NavDestinationContext_Void(isSync: boolean = false): ((parameter: NavDestinationContext) => void) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return (parameter: NavDestinationContext):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavDestinationContext(parameter); (isSync) ? (NativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } - readNavigationMenuItem(): NavigationMenuItem { - let valueDeserializer : Deserializer = this - const value_buf_selector : int32 = valueDeserializer.readInt8() - let value_buf : string | Resource | undefined - if (value_buf_selector == 0) { - value_buf = (valueDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - const value_result : string | Resource = (value_buf as string | Resource) - const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let icon_buf : string | Resource | undefined - if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) - { - const icon_buf__selector : int32 = valueDeserializer.readInt8() - let icon_buf_ : string | Resource | undefined - if (icon_buf__selector == 0) { - icon_buf_ = (valueDeserializer.readString() as string) - } - else if (icon_buf__selector == 1) { - icon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") - } - icon_buf = (icon_buf_ as string | Resource) - } - const icon_result : string | Resource | undefined = icon_buf - const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let symbolIcon_buf : SymbolGlyphModifier | undefined - if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf - const isEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEnabled_buf : boolean | undefined - if ((RuntimeType.UNDEFINED) != (isEnabled_buf_runtimeType)) - { - isEnabled_buf = valueDeserializer.readBoolean() - } - const isEnabled_result : boolean | undefined = isEnabled_buf - const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let action_buf : (() => void) | undefined - if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) - { - action_buf = valueDeserializer.readCallback_Void() - } - const action_result : (() => void) | undefined = action_buf - let value : NavigationMenuItem = ({value: value_result,icon: icon_result,symbolIcon: symbolIcon_result,isEnabled: isEnabled_result,action: action_result} as NavigationMenuItem) - return value - } - readCallback_Boolean(isSync: boolean = false): (() => boolean) { - const _resource : CallbackResource = this.readCallbackResource() - const _call : KPointer = this.readPointer() - const _callSync : KPointer = this.readPointer() - return ():boolean => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let _continuationValue : boolean | undefined; const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (NativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as boolean); } - } - readPopInfo(): PopInfo { - let valueDeserializer : Deserializer = this - const info_result : NavPathInfo = valueDeserializer.readNavPathInfo() - const result_result : Object = (valueDeserializer.readCustomObject("Object") as Object) - let value : PopInfo = ({info: info_result,result: result_result} as PopInfo) - return value - } readMenuItemGroupOptions(): MenuItemGroupOptions { let valueDeserializer : Deserializer = this const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -16485,6 +16011,12 @@ export class Deserializer extends DeserializerBase { let value : GridColOptions = ({span: span_result,offset: offset_result,order: order_result} as GridColOptions) return value } + readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parameter: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeBoolean(parameter); (isSync) ? (NativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (NativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } + } readGridItemOptions(): GridItemOptions { let valueDeserializer : Deserializer = this const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index c583e1e18..4fa403b53 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -21,7 +21,7 @@ import { NativeBuffer } from "./../NativeBuffer" import { TypeChecker } from "#components" import { KUint8ArrayPtr } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, ClickEvent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchEvent, BaseEvent, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, LightSource, HoverEvent, TouchResult, CommonMethod, TextDecorationOptions, LayoutSafeAreaEdge, LayoutSafeAreaType, ItemDragInfo, MultiShadowOptions, MenuElement, SafeAreaEdge, SafeAreaType, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, DragEvent, Summary, DragResult, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, KeyEvent, MouseEvent, AccessibilityHoverEvent, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, ClickEvent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, CommonShapeMethod, LinearGradient_common, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchEvent, BaseEvent, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, DragBehavior, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, IntentionCode, RepeatMode, TouchTestStrategy, LightSource, HoverEvent, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, MenuElement, SafeAreaEdge, SafeAreaType, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, DragEvent, Summary, DragResult, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, KeyEvent, MouseEvent, AccessibilityHoverEvent, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkui-customInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperNestedScrollMode, SwiperAnimationEvent, SwiperDisplayMode } from "./../ArkSwiperInterfaces" @@ -29,7 +29,7 @@ import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResul import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathStack, NavPathInfo, NavigationOptions, NavigationInterception, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationOperation, NavBar, NavigationMode, NavigationTitleMode, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { InterceptionModeCallback, NavigationMode, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, WebviewController, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, WebKeyboardAvoidMode, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, WebLayoutMode, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, OverScrollMode, WebMediaOptions, WebDarkMode, CacheMode, JavaScriptProxy, MixedMode, WebOptions } from "./../ArkWebInterfaces" @@ -50,11 +50,11 @@ import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChange import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ColorFilter, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, ConstraintSizeOptions, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" -import { LengthUnit, LengthMetrics, TextModifier, Want, RectHeightStyle, RectWidthStyle, NodeController } from "./../ArkArkui-externalInterfaces" +import { LengthUnit, LengthMetrics, Want, RectHeightStyle, RectWidthStyle, NodeController } from "./../ArkArkui-externalInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, IlluminatedType, HitTestMode, TextSelectableMode, EllipsisMode, TextCase, MarqueeUpdateStrategy, CopyOptions, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, KeySource, KeyType, MouseAction, MouseButton, AccessibilityHoverType, ImageSize, PixelRoundCalcPolicy, IlluminatedType, HitTestMode, TextSelectableMode, EllipsisMode, TextCase, MarqueeUpdateStrategy, CopyOptions, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" -import { Tuple_Dimension_Dimension, Callback_PopInfo_Void, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Tuple_ResourceColor_Number, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_SwiperContentTransitionProxy_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_T_Any_this, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_ComputedBarAttribute_Void, Callback_Callback_Any_Void, Callback_Any, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_ScrollState_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Callback_MouseEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Literal_String_script_Callback_String_Void_callback, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Tuple_ResourceColor_Number, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_SwiperContentTransitionProxy_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_T_Any_this, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_ComputedBarAttribute_Void, Callback_Callback_Any_Void, Callback_Any, Callback_Boolean, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_Literal_Function_callback_Object_fileSelector_Void, Literal_Function_callback_Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_ScrollState_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Callback_MouseEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { ImageAttachmentLayoutStyle, BackgroundColorStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, UrlStyle, LineHeightStyle, ParagraphStyle, ParagraphStyleInterface, ImageAttachment, ImageAttachmentInterface, GestureStyle, GestureStyleInterface, TextShadowStyle, LetterSpacingStyle, BaselineOffsetStyle, DecorationStyle, DecorationStyleInterface, TextStyle_styled_string, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" @@ -68,8 +68,6 @@ import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEf import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" -import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -94,7 +92,6 @@ import { Size, RenderingContextSettings, ImageData } from "./../ArkCanvasInterfa import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" -import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" @@ -164,7 +161,6 @@ import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptio import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" import { LinearGradient_data_panel, ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" -import { IPropertySubscriber, IPropertySubscriberInternal } from "./../ArkIPropertySubscriberMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" @@ -1560,37 +1556,6 @@ export class Serializer extends SerializerBase { ptr = peer.ptr valueSerializer.writePointer(ptr) } - writeNavPathStack(value: NavPathStack): void { - } - writeNavPathInfo(value: NavPathInfo): void { - let valueSerializer : Serializer = this - const value_name = value.name - valueSerializer.writeString(value_name) - const value_param = value.param - let value_param_type : int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Any", value_param_value) - } - const value_onPop = value.onPop - let value_onPop_type : int32 = RuntimeType.UNDEFINED - value_onPop_type = runtimeType(value_onPop) - valueSerializer.writeInt8(value_onPop_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { - const value_onPop_value = value_onPop! - valueSerializer.holdAndWriteCallback(value_onPop_value) - } - const value_isEntry = value.isEntry - let value_isEntry_type : int32 = RuntimeType.UNDEFINED - value_isEntry_type = runtimeType(value_isEntry) - valueSerializer.writeInt8(value_isEntry_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isEntry_type)) { - const value_isEntry_value = value_isEntry! - valueSerializer.writeBoolean(value_isEntry_value) - } - } writeColorMetrics(value: ColorMetrics): void { let valueSerializer : Serializer = this const value___ColorMetricsStub = value.__ColorMetricsStub @@ -2764,8 +2729,6 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(value_onLongPress_value) } } - writeTextModifier(value: TextModifier): void { - } writeSwipeActionItem(value: SwipeActionItem): void { let valueSerializer : Serializer = this const value_builder = value.builder @@ -3791,15 +3754,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_moduleName_value) } } - writeNavDestinationContext(value: NavDestinationContext): void { - let valueSerializer : Serializer = this - const base : MaterializedBase = (value as MaterializedBase) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeStyledString(value: StyledString): void { let valueSerializer : Serializer = this const base : MaterializedBase = (value as MaterializedBase) @@ -3809,72 +3763,6 @@ export class Serializer extends SerializerBase { ptr = peer.ptr valueSerializer.writePointer(ptr) } - writeNavigationAnimatedTransition(value: NavigationAnimatedTransition): void { - let valueSerializer : Serializer = this - const value_onTransitionEnd = value.onTransitionEnd - let value_onTransitionEnd_type : int32 = RuntimeType.UNDEFINED - value_onTransitionEnd_type = runtimeType(value_onTransitionEnd) - valueSerializer.writeInt8(value_onTransitionEnd_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onTransitionEnd_type)) { - const value_onTransitionEnd_value = value_onTransitionEnd! - valueSerializer.holdAndWriteCallback(value_onTransitionEnd_value) - } - const value_timeout = value.timeout - let value_timeout_type : int32 = RuntimeType.UNDEFINED - value_timeout_type = runtimeType(value_timeout) - valueSerializer.writeInt8(value_timeout_type as int32) - if ((RuntimeType.UNDEFINED) != (value_timeout_type)) { - const value_timeout_value = value_timeout! - valueSerializer.writeNumber(value_timeout_value) - } - const value_isInteractive = value.isInteractive - let value_isInteractive_type : int32 = RuntimeType.UNDEFINED - value_isInteractive_type = runtimeType(value_isInteractive) - valueSerializer.writeInt8(value_isInteractive_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isInteractive_type)) { - const value_isInteractive_value = value_isInteractive! - valueSerializer.writeBoolean(value_isInteractive_value) - } - const value_transition = value.transition - valueSerializer.holdAndWriteCallback(value_transition) - } - writeNavContentInfo(value: NavContentInfo): void { - let valueSerializer : Serializer = this - const value_name = value.name - let value_name_type : int32 = RuntimeType.UNDEFINED - value_name_type = runtimeType(value_name) - valueSerializer.writeInt8(value_name_type as int32) - if ((RuntimeType.UNDEFINED) != (value_name_type)) { - const value_name_value = value_name! - valueSerializer.writeString(value_name_value) - } - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_mode = value.mode - let value_mode_type : int32 = RuntimeType.UNDEFINED - value_mode_type = runtimeType(value_mode) - valueSerializer.writeInt8(value_mode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = value_mode! - valueSerializer.writeInt32(value_mode_value.ordinal) - } - const value_param = value.param - let value_param_type : int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Object", value_param_value) - } - const value_navDestinationId = value.navDestinationId - let value_navDestinationId_type : int32 = RuntimeType.UNDEFINED - value_navDestinationId_type = runtimeType(value_navDestinationId) - valueSerializer.writeInt8(value_navDestinationId_type as int32) - if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { - const value_navDestinationId_value = value_navDestinationId! - valueSerializer.writeString(value_navDestinationId_value) - } - } writeLinearIndicatorStyle(value: LinearIndicatorStyle): void { let valueSerializer : Serializer = this const value_space = value.space @@ -7518,194 +7406,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value) } } - writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { - let valueSerializer : Serializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type : int32 = RuntimeType.UNDEFINED - value_backgroundColor_type = runtimeType(value_backgroundColor) - valueSerializer.writeInt8(value_backgroundColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type : int32 = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (value_backgroundColor_value instanceof Color) { - valueSerializer.writeInt8(0 as int32) - const value_backgroundColor_value_0 = value_backgroundColor_value - valueSerializer.writeInt32(value_backgroundColor_value_0.ordinal) - } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_backgroundColor_value_1 = value_backgroundColor_value as number - valueSerializer.writeNumber(value_backgroundColor_value_1) - } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_backgroundColor_value_2 = value_backgroundColor_value as string - valueSerializer.writeString(value_backgroundColor_value_2) - } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(3 as int32) - const value_backgroundColor_value_3 = value_backgroundColor_value as Resource - valueSerializer.writeResource(value_backgroundColor_value_3) - } - } - const value_backgroundBlurStyle = value.backgroundBlurStyle - let value_backgroundBlurStyle_type : int32 = RuntimeType.UNDEFINED - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle) - valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { - const value_backgroundBlurStyle_value = value_backgroundBlurStyle! - valueSerializer.writeInt32(value_backgroundBlurStyle_value.ordinal) - } - const value_barStyle = value.barStyle - let value_barStyle_type : int32 = RuntimeType.UNDEFINED - value_barStyle_type = runtimeType(value_barStyle) - valueSerializer.writeInt8(value_barStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { - const value_barStyle_value = value_barStyle! - valueSerializer.writeInt32(value_barStyle_value.ordinal) - } - } - writeNavigationTitleOptions(value: NavigationTitleOptions): void { - let valueSerializer : Serializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type : int32 = RuntimeType.UNDEFINED - value_backgroundColor_type = runtimeType(value_backgroundColor) - valueSerializer.writeInt8(value_backgroundColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type : int32 = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (value_backgroundColor_value instanceof Color) { - valueSerializer.writeInt8(0 as int32) - const value_backgroundColor_value_0 = value_backgroundColor_value - valueSerializer.writeInt32(value_backgroundColor_value_0.ordinal) - } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_backgroundColor_value_1 = value_backgroundColor_value as number - valueSerializer.writeNumber(value_backgroundColor_value_1) - } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_backgroundColor_value_2 = value_backgroundColor_value as string - valueSerializer.writeString(value_backgroundColor_value_2) - } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(3 as int32) - const value_backgroundColor_value_3 = value_backgroundColor_value as Resource - valueSerializer.writeResource(value_backgroundColor_value_3) - } - } - const value_backgroundBlurStyle = value.backgroundBlurStyle - let value_backgroundBlurStyle_type : int32 = RuntimeType.UNDEFINED - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle) - valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { - const value_backgroundBlurStyle_value = value_backgroundBlurStyle! - valueSerializer.writeInt32(value_backgroundBlurStyle_value.ordinal) - } - const value_barStyle = value.barStyle - let value_barStyle_type : int32 = RuntimeType.UNDEFINED - value_barStyle_type = runtimeType(value_barStyle) - valueSerializer.writeInt8(value_barStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { - const value_barStyle_value = value_barStyle! - valueSerializer.writeInt32(value_barStyle_value.ordinal) - } - const value_paddingStart = value.paddingStart - let value_paddingStart_type : int32 = RuntimeType.UNDEFINED - value_paddingStart_type = runtimeType(value_paddingStart) - valueSerializer.writeInt8(value_paddingStart_type as int32) - if ((RuntimeType.UNDEFINED) != (value_paddingStart_type)) { - const value_paddingStart_value = value_paddingStart! - valueSerializer.writeLengthMetrics(value_paddingStart_value) - } - const value_paddingEnd = value.paddingEnd - let value_paddingEnd_type : int32 = RuntimeType.UNDEFINED - value_paddingEnd_type = runtimeType(value_paddingEnd) - valueSerializer.writeInt8(value_paddingEnd_type as int32) - if ((RuntimeType.UNDEFINED) != (value_paddingEnd_type)) { - const value_paddingEnd_value = value_paddingEnd! - valueSerializer.writeLengthMetrics(value_paddingEnd_value) - } - const value_mainTitleModifier = value.mainTitleModifier - let value_mainTitleModifier_type : int32 = RuntimeType.UNDEFINED - value_mainTitleModifier_type = runtimeType(value_mainTitleModifier) - valueSerializer.writeInt8(value_mainTitleModifier_type as int32) - if ((RuntimeType.UNDEFINED) != (value_mainTitleModifier_type)) { - const value_mainTitleModifier_value = value_mainTitleModifier! - valueSerializer.writeTextModifier(value_mainTitleModifier_value) - } - const value_subTitleModifier = value.subTitleModifier - let value_subTitleModifier_type : int32 = RuntimeType.UNDEFINED - value_subTitleModifier_type = runtimeType(value_subTitleModifier) - valueSerializer.writeInt8(value_subTitleModifier_type as int32) - if ((RuntimeType.UNDEFINED) != (value_subTitleModifier_type)) { - const value_subTitleModifier_value = value_subTitleModifier! - valueSerializer.writeTextModifier(value_subTitleModifier_value) - } - const value_enableHoverMode = value.enableHoverMode - let value_enableHoverMode_type : int32 = RuntimeType.UNDEFINED - value_enableHoverMode_type = runtimeType(value_enableHoverMode) - valueSerializer.writeInt8(value_enableHoverMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { - const value_enableHoverMode_value = value_enableHoverMode! - valueSerializer.writeBoolean(value_enableHoverMode_value) - } - } - writeNavDestinationCustomTitle(value: NavDestinationCustomTitle): void { - let valueSerializer : Serializer = this - const value_builder = value.builder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_builder)) - const value_height = value.height - let value_height_type : int32 = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - if (value_height instanceof TitleHeight) { - valueSerializer.writeInt8(0 as int32) - const value_height_0 = value_height - valueSerializer.writeInt32(value_height_0.ordinal) - } - else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { - valueSerializer.writeInt8(1 as int32) - const value_height_1 = value_height as Length - valueSerializer.writeLength(value_height_1) - } - } - writeNavDestinationCommonTitle(value: NavDestinationCommonTitle): void { - let valueSerializer : Serializer = this - const value_main = value.main - let value_main_type : int32 = RuntimeType.UNDEFINED - value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { - valueSerializer.writeInt8(0 as int32) - const value_main_0 = value_main as string - valueSerializer.writeString(value_main_0) - } - else if (((RuntimeType.OBJECT == value_main_type))) { - valueSerializer.writeInt8(1 as int32) - const value_main_1 = value_main as Resource - valueSerializer.writeResource(value_main_1) - } - const value_sub = value.sub - let value_sub_type : int32 = RuntimeType.UNDEFINED - value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { - valueSerializer.writeInt8(0 as int32) - const value_sub_0 = value_sub as string - valueSerializer.writeString(value_sub_0) - } - else if (((RuntimeType.OBJECT == value_sub_type))) { - valueSerializer.writeInt8(1 as int32) - const value_sub_1 = value_sub as Resource - valueSerializer.writeResource(value_sub_1) - } - } - writeSystemBarStyle(value: SystemBarStyle): void { - let valueSerializer : Serializer = this - const value___SystemBarStyleStub = value.__SystemBarStyleStub - valueSerializer.writeString(value___SystemBarStyleStub) - } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer : Serializer = this const value_startIcon = value.startIcon @@ -8384,15 +8084,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } - writeIPropertySubscriber(value: IPropertySubscriber): void { - let valueSerializer : Serializer = this - const base : MaterializedBase = (value as MaterializedBase) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeUIGestureEvent(value: UIGestureEvent): void { } writeFadingEdgeOptions(value: FadingEdgeOptions): void { @@ -13430,15 +13121,6 @@ export class Serializer extends SerializerBase { } writeWithThemeAttribute(value: WithThemeAttribute): void { } - writeNavigationTransitionProxy(value: NavigationTransitionProxy): void { - let valueSerializer : Serializer = this - const base : MaterializedBase = (value as MaterializedBase) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { } writeLinearIndicatorController(value: LinearIndicatorController): void { @@ -16479,158 +16161,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeCustomObject("Any", value_param_value) } } - writeToolbarItem(value: ToolbarItem): void { - let valueSerializer : Serializer = this - const value_value = value.value - let value_value_type : int32 = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_value_0 = value_value as string - valueSerializer.writeString(value_value_0) - } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_value_1 = value_value as Resource - valueSerializer.writeResource(value_value_1) - } - const value_icon = value.icon - let value_icon_type : int32 = RuntimeType.UNDEFINED - value_icon_type = runtimeType(value_icon) - valueSerializer.writeInt8(value_icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type : int32 = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_icon_value_0 = value_icon_value as string - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_icon_value_1 = value_icon_value as Resource - valueSerializer.writeResource(value_icon_value_1) - } - } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type : int32 = RuntimeType.UNDEFINED - value_symbolIcon_type = runtimeType(value_symbolIcon) - valueSerializer.writeInt8(value_symbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value) - } - const value_action = value.action - let value_action_type : int32 = RuntimeType.UNDEFINED - value_action_type = runtimeType(value_action) - valueSerializer.writeInt8(value_action_type as int32) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.holdAndWriteCallback(value_action_value) - } - const value_status = value.status - let value_status_type : int32 = RuntimeType.UNDEFINED - value_status_type = runtimeType(value_status) - valueSerializer.writeInt8(value_status_type as int32) - if ((RuntimeType.UNDEFINED) != (value_status_type)) { - const value_status_value = value_status! - valueSerializer.writeInt32(value_status_value.ordinal) - } - const value_activeIcon = value.activeIcon - let value_activeIcon_type : int32 = RuntimeType.UNDEFINED - value_activeIcon_type = runtimeType(value_activeIcon) - valueSerializer.writeInt8(value_activeIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_activeIcon_type)) { - const value_activeIcon_value = value_activeIcon! - let value_activeIcon_value_type : int32 = RuntimeType.UNDEFINED - value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_activeIcon_value_0 = value_activeIcon_value as string - valueSerializer.writeString(value_activeIcon_value_0) - } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_activeIcon_value_1 = value_activeIcon_value as Resource - valueSerializer.writeResource(value_activeIcon_value_1) - } - } - const value_activeSymbolIcon = value.activeSymbolIcon - let value_activeSymbolIcon_type : int32 = RuntimeType.UNDEFINED - value_activeSymbolIcon_type = runtimeType(value_activeSymbolIcon) - valueSerializer.writeInt8(value_activeSymbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_activeSymbolIcon_type)) { - const value_activeSymbolIcon_value = value_activeSymbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_activeSymbolIcon_value) - } - } - writeNavigationMenuItem(value: NavigationMenuItem): void { - let valueSerializer : Serializer = this - const value_value = value.value - let value_value_type : int32 = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_value_0 = value_value as string - valueSerializer.writeString(value_value_0) - } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_value_1 = value_value as Resource - valueSerializer.writeResource(value_value_1) - } - const value_icon = value.icon - let value_icon_type : int32 = RuntimeType.UNDEFINED - value_icon_type = runtimeType(value_icon) - valueSerializer.writeInt8(value_icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type : int32 = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_icon_value_0 = value_icon_value as string - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_icon_value_1 = value_icon_value as Resource - valueSerializer.writeResource(value_icon_value_1) - } - } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type : int32 = RuntimeType.UNDEFINED - value_symbolIcon_type = runtimeType(value_symbolIcon) - valueSerializer.writeInt8(value_symbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value) - } - const value_isEnabled = value.isEnabled - let value_isEnabled_type : int32 = RuntimeType.UNDEFINED - value_isEnabled_type = runtimeType(value_isEnabled) - valueSerializer.writeInt8(value_isEnabled_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isEnabled_type)) { - const value_isEnabled_value = value_isEnabled! - valueSerializer.writeBoolean(value_isEnabled_value) - } - const value_action = value.action - let value_action_type : int32 = RuntimeType.UNDEFINED - value_action_type = runtimeType(value_action) - valueSerializer.writeInt8(value_action_type as int32) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.holdAndWriteCallback(value_action_value) - } - } - writePopInfo(value: PopInfo): void { - let valueSerializer : Serializer = this - const value_info = value.info - valueSerializer.writeNavPathInfo(value_info) - const value_result = value.result - valueSerializer.writeCustomObject("Object", value_result) - } writeMenuItemGroupOptions(value: MenuItemGroupOptions): void { let valueSerializer : Serializer = this const value_header = value.header diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 4480686d8..38e2a2039 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -7,7 +7,7 @@ import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, LengthMetrics } from "./../ArkArkui-externalInterfaces" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { UIContext, ClickEvent, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, AnimateParam, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, TranslateOptions, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BaseEvent, BorderImageOption, LinearGradient_common, HoverEvent, MouseEvent, AccessibilityHoverEvent, TouchObject, HistoricalPoint, TouchEvent, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, DragEvent, IntentionCode, KeyEvent, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, Measurable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CustomComponent, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, UICommonEvent, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { UIContext, ClickEvent, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, AnimateParam, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, TranslateOptions, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BaseEvent, BorderImageOption, LinearGradient_common, HoverEvent, MouseEvent, AccessibilityHoverEvent, TouchObject, HistoricalPoint, TouchEvent, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, DragEvent, IntentionCode, KeyEvent, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, AttributeModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, Measurable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CustomComponent, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, UICommonEvent, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_ScrollState_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_common_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_Callback_Any, Callback_Any, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object_String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback_Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Callback_Literal_Function_callback_Object_fileSelector_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" @@ -49,7 +49,6 @@ import { ICurve } from "./../ArkICurveMaterialized" import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { EllipseAttribute, EllipseOptions, EllipseInterface } from "./../ArkEllipseInterfaces" @@ -63,11 +62,7 @@ import { ScrollState, ListItemAlign, ListItemGroupArea, StickyStyle, ChainEdgeEf import { ScrollOnWillScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" -import { AbstractProperty } from "./../ArkAbstractPropertyMaterialized" -import { IPropertySubscriber } from "./../ArkIPropertySubscriberMaterialized" -import { ISinglePropertyChangeSubscriber } from "./../ArkISinglePropertyChangeSubscriberMaterialized" -import { SubscribaleAbstract } from "./../ArkSubscribaleAbstractMaterialized" -import { EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" +import { AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, EnvPropsOptions, PersistPropsOptions } from "./../ArkCommonTsEtsApiInterfaces" import { Scene, ModelType, SceneOptions, Component3DInterface, Component3DAttribute } from "./../ArkComponent3dInterfaces" import { ContainerSpanInterface, ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { TextBackgroundStyle, BaseSpan, SpanInterface, SpanAttribute } from "./../ArkSpanInterfaces" @@ -118,11 +113,9 @@ import { ASTCResource, MediaCachedImageInterface, MediaCachedImageAttribute } fr import { MenuInterface, MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" import { MenuItemOptions, MenuItemInterface, MenuItemAttribute } from "./../ArkMenuItemInterfaces" import { MenuItemGroupOptions, MenuItemGroupInterface, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" -import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { NavPathInfo, NavPathStack, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, NavigationAttribute, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition } from "./../ArkNavigationInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavigationSystemTransitionType, NavDestinationMode, NavDestinationInterface, NavDestinationAttribute, RouteMapConfig, NavDestinationContext } from "./../ArkNavDestinationInterfaces" +import { NavPathInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, NavigationCommonTitle, NavigationCustomTitle, NavigationMode, NavBarPosition, NavigationTitleMode, PopInfo, LaunchMode, NavigationOptions, NavigationInterception, InterceptionShowCallback, InterceptionModeCallback, NavigationInterface, NavigationAttribute, ToolbarItemStatus, NavigationOperation, BarStyle, NavContentInfo, NavigationAnimatedTransition, NavigationTransitionProxy } from "./../ArkNavigationInterfaces" import { RouteInfo, NavRouterInterface, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" -import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" import { NavigationType, NavigatorInterface, NavigatorAttribute } from "./../ArkNavigatorInterfaces" import { NodeContainerInterface, NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" import { RouteType, SlideEffect, CommonTransition, PageTransitionOptions, PageTransitionEnterInterface, PageTransitionCallback, PageTransitionExitInterface } from "./../ArkPageTransitionInterfaces" diff --git a/arkoala-arkts/arkui/src/index.ts b/arkoala-arkts/arkui/src/index.ts index 6289cc1cf..2e39fbd6c 100644 --- a/arkoala-arkts/arkui/src/index.ts +++ b/arkoala-arkts/arkui/src/index.ts @@ -24,4 +24,7 @@ export * from "./stateOf" export * from "./ForEach" export * from "./LazyForEach" export * from "./ohos.router" -export * from "./ArkNavigation" \ No newline at end of file +export * from "./ArkNavigation" + +// TBD: Move to handwritten +export * from "./generated/ArkNavDestination" -- Gitee From 2170d038abb18c431372cc7fb6fa1662faa0b29b Mon Sep 17 00:00:00 2001 From: Yali Xie Date: Mon, 23 Dec 2024 17:11:03 +0300 Subject: [PATCH 2/4] Regenerate TS Signed-off-by: Yali Xie --- arkoala-arkts/arkui/types/index-full.d.ts | 6 +- arkoala/arkui-types/index-full.d.ts | 9 +- arkoala/arkui/src/NativeModuleRecorder.ts | 269 -- arkoala/arkui/src/peer_events.ts | 506 ++-- arkoala/arkui/src/peers/ArkUINodeType.ts | 1 - .../src/peers/CallbackDeserializeCall.ts | 77 - arkoala/arkui/src/peers/CallbackKind.ts | 6 - arkoala/arkui/src/peers/Deserializer.ts | 496 +--- arkoala/arkui/src/peers/Serializer.ts | 473 --- arkoala/arkui/src/peers/SerializerBase.ts | 10 +- .../native/src/generated/Serializers.h | 2596 +---------------- .../native/src/generated/all_events.cc | 492 ++-- .../src/generated/arkoala_api_generated.h | 646 +--- .../native/src/generated/bridge_generated.cc | 598 ---- .../generated/callback_deserialize_call.cc | 202 -- .../native/src/generated/callback_kind.h | 6 - .../src/generated/callback_managed_caller.cc | 204 -- .../native/src/generated/dummy_impl.cc | 909 +----- .../native/src/generated/real_impl.cc | 477 --- .../framework/src/generated/NativeModule.ts | 63 - .../src/generated/NativeModuleEmpty.ts | 210 -- 21 files changed, 556 insertions(+), 7700 deletions(-) diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 0c2bd4349..1991bb708 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -158,11 +158,15 @@ declare function LazyForEach( declare interface LayoutChild {} declare interface ContentModifier{} +// Handwritten + declare const PageTransitionEnter: PageTransitionEnterInterface declare const PageTransitionExit: PageTransitionExitInterface declare const Navigation: NavigationInterface +declare const NavDestination: NavDestinationInterface +declare const NavDestinationInstance: NavDestinationAttribute @@ -8865,8 +8869,6 @@ declare const MenuItem: MenuItemInterface declare const MenuItemInstance: MenuItemAttribute declare const MenuItemGroup: MenuItemGroupInterface declare const MenuItemGroupInstance: MenuItemGroupAttribute -declare const NavDestination: NavDestinationInterface -declare const NavDestinationInstance: NavDestinationAttribute declare const NavRouter: NavRouterInterface declare const NavRouterInstance: NavRouterAttribute declare const Navigator: NavigatorInterface diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index a11f0c20a..385a20d17 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -182,6 +182,13 @@ declare class performance { static now(): number; } +// Handwritten + +declare const NavDestination: NavDestinationInterface +declare const NavDestinationInstance: NavDestinationAttribute + + + type buffer = ArrayBuffer; @@ -8940,8 +8947,6 @@ declare const MenuItem: MenuItemInterface declare const MenuItemInstance: MenuItemAttribute declare const MenuItemGroup: MenuItemGroupInterface declare const MenuItemGroupInstance: MenuItemGroupAttribute -declare const NavDestination: NavDestinationInterface -declare const NavDestinationInstance: NavDestinationAttribute declare const NavRouter: NavRouterInterface declare const NavRouterInstance: NavRouterAttribute declare const Navigator: NavigatorInterface diff --git a/arkoala/arkui/src/NativeModuleRecorder.ts b/arkoala/arkui/src/NativeModuleRecorder.ts index 8302e8b7d..276ee02b8 100644 --- a/arkoala/arkui/src/NativeModuleRecorder.ts +++ b/arkoala/arkui/src/NativeModuleRecorder.ts @@ -763,33 +763,6 @@ export interface MenuItemInterface extends CommonMethodInterface,UIElement { export interface MenuItemGroupInterface extends CommonMethodInterface,UIElement { setMenuItemGroupOptions_value?: MenuItemGroupOptions | undefined } -export interface NavDestinationInterface extends CommonMethodInterface,UIElement { - hideTitleBar0_value?: boolean - hideTitleBar1_hide?: boolean - hideTitleBar1_animated?: boolean - onShown_value?: (() => void) - onHidden_value?: (() => void) - onBackPressed_value?: (() => boolean) - mode_value?: NavDestinationMode - backButtonIcon_value?: ResourceStr | PixelMap | SymbolGlyphModifier - menus_value?: Array | CustomBuilder - onReady_value?: ((parameter: NavDestinationContext) => void) - onWillAppear_value?: (() => void) - onWillDisappear_value?: (() => void) - onWillShow_value?: (() => void) - onWillHide_value?: (() => void) - systemBarStyle_value?: SystemBarStyle | undefined - recoverable_value?: boolean | undefined - systemTransition_value?: NavigationSystemTransitionType - title_value?: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource - title_options?: NavigationTitleOptions | undefined - toolbarConfiguration_toolbarParam?: Array | CustomBuilder - toolbarConfiguration_options?: NavigationToolbarOptions | undefined - hideToolBar_hide?: boolean - hideToolBar_animated?: boolean | undefined - ignoreLayoutSafeArea_types?: Array | undefined - ignoreLayoutSafeArea_edges?: Array | undefined -} export interface NavRouterInterface extends CommonMethodInterface,UIElement { setNavRouterOptions1_value?: RouteInfo onStateChange_value?: ((parameter: boolean) => void) @@ -2363,15 +2336,6 @@ export class NativeModuleRecorder extends NativeModuleEmpty { } return this.object2ptr(element) } - _NavDestination_construct(id: int32, flags: int32): KPointer { - let element: UIElement = { - nodeId: 0, - kind: '', - children: [], - elementId: undefined, - } - return this.object2ptr(element) - } _NavRouter_construct(id: int32, flags: int32): KPointer { let element: UIElement = { nodeId: 0, @@ -8748,239 +8712,6 @@ export class NativeModuleRecorder extends NativeModuleEmpty { } node.setMenuItemGroupOptions_value = setMenuItemGroupOptions_value_buf } - _NavDestinationInterface_setNavDestinationOptions(ptr: KPointer): void { - let node = this.ptr2object(ptr) - } - _NavDestinationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void { - let node = this.ptr2object(ptr) - node.hideTitleBar0_value = value - } - _NavDestinationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void { - let node = this.ptr2object(ptr) - node.hideTitleBar1_hide = hide - node.hideTitleBar1_animated = animated - } - _NavDestinationAttribute_onShown(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onShown_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_onHidden(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onHidden_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_onBackPressed(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onBackPressed_value = thisDeserializer.readCallback_Boolean() - } - _NavDestinationAttribute_mode(ptr: KPointer, value: KInt): void { - let node = this.ptr2object(ptr) - node.mode_value = value - } - _NavDestinationAttribute_backButtonIcon(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const backButtonIcon_value_buf_selector: number = thisDeserializer.readInt8() - let backButtonIcon_value_buf: ResourceStr | PixelMap | SymbolGlyphModifier | undefined|undefined - if (backButtonIcon_value_buf_selector == 0) { - const backButtonIcon_value_buf_u_selector: number = thisDeserializer.readInt8() - let backButtonIcon_value_buf_u: string | Resource | undefined|undefined - if (backButtonIcon_value_buf_u_selector == 0) { - backButtonIcon_value_buf_u = (thisDeserializer.readString() as string) - } - else if (backButtonIcon_value_buf_u_selector == 1) { - backButtonIcon_value_buf_u = thisDeserializer.readResource() - } - else { - throw new Error("One of the branches for backButtonIcon_value_buf_u has to be chosen through deserialisation.") - } - backButtonIcon_value_buf = (backButtonIcon_value_buf_u as string | Resource) - } - else if (backButtonIcon_value_buf_selector == 1) { - backButtonIcon_value_buf = (thisDeserializer.readPixelMap() as PixelMap) - } - else if (backButtonIcon_value_buf_selector == 2) { - backButtonIcon_value_buf = thisDeserializer.readSymbolGlyphModifier() - } - else { - throw new Error("One of the branches for backButtonIcon_value_buf has to be chosen through deserialisation.") - } - node.backButtonIcon_value = (backButtonIcon_value_buf as ResourceStr | PixelMap | SymbolGlyphModifier) - } - _NavDestinationAttribute_menus(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const menus_value_buf_selector: number = thisDeserializer.readInt8() - let menus_value_buf: Array | CustomBuilder | undefined|undefined - if (menus_value_buf_selector == 0) { - const menus_value_buf_u_length: int32 = thisDeserializer.readInt32() - let menus_value_buf_u: Array = new Array() - for (let menus_value_buf_u_i = 0; menus_value_buf_u_i < menus_value_buf_u_length; menus_value_buf_u_i++) { - menus_value_buf_u[menus_value_buf_u_i] = thisDeserializer.readNavigationMenuItem() - } - menus_value_buf = menus_value_buf_u - } - else if (menus_value_buf_selector == 1) { - menus_value_buf = CallbackTransformer.transformToCustomBuilder(thisDeserializer.readCustomNodeBuilder()) - } - else { - throw new Error("One of the branches for menus_value_buf has to be chosen through deserialisation.") - } - node.menus_value = (menus_value_buf as Array | CustomBuilder) - } - _NavDestinationAttribute_onReady(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onReady_value = thisDeserializer.readCallback_NavDestinationContext_Void() - } - _NavDestinationAttribute_onWillAppear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onWillAppear_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_onWillDisappear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onWillDisappear_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_onWillShow(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onWillShow_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_onWillHide(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - node.onWillHide_value = thisDeserializer.readCallback_Void() - } - _NavDestinationAttribute_systemBarStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const systemBarStyle_value_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let systemBarStyle_value_buf: SystemBarStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (systemBarStyle_value_buf_runtimeType)) - { - systemBarStyle_value_buf = thisDeserializer.readSystemBarStyle() - } - node.systemBarStyle_value = systemBarStyle_value_buf - } - _NavDestinationAttribute_recoverable(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const recoverable_value_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let recoverable_value_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (recoverable_value_buf_runtimeType)) - { - recoverable_value_buf = thisDeserializer.readBoolean() - } - node.recoverable_value = recoverable_value_buf - } - _NavDestinationAttribute_systemTransition(ptr: KPointer, value: KInt): void { - let node = this.ptr2object(ptr) - node.systemTransition_value = value - } - _NavDestinationAttribute_title(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const title_value_buf_selector: number = thisDeserializer.readInt8() - let title_value_buf: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource | undefined|undefined - if (title_value_buf_selector == 0) { - title_value_buf = (thisDeserializer.readString() as string) - } - else if (title_value_buf_selector == 1) { - title_value_buf = CallbackTransformer.transformToCustomBuilder(thisDeserializer.readCustomNodeBuilder()) - } - else if (title_value_buf_selector == 2) { - title_value_buf = thisDeserializer.readNavDestinationCommonTitle() - } - else if (title_value_buf_selector == 3) { - title_value_buf = thisDeserializer.readNavDestinationCustomTitle() - } - else if (title_value_buf_selector == 4) { - title_value_buf = thisDeserializer.readResource() - } - else { - throw new Error("One of the branches for title_value_buf has to be chosen through deserialisation.") - } - node.title_value = (title_value_buf as string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource) - const title_options_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let title_options_buf: NavigationTitleOptions | undefined|undefined - if ((RuntimeType.UNDEFINED) != (title_options_buf_runtimeType)) - { - title_options_buf = thisDeserializer.readNavigationTitleOptions() - } - node.title_options = title_options_buf - } - _NavDestinationAttribute_toolbarConfiguration(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const toolbarConfiguration_toolbarParam_buf_selector: number = thisDeserializer.readInt8() - let toolbarConfiguration_toolbarParam_buf: Array | CustomBuilder | undefined|undefined - if (toolbarConfiguration_toolbarParam_buf_selector == 0) { - const toolbarConfiguration_toolbarParam_buf_u_length: int32 = thisDeserializer.readInt32() - let toolbarConfiguration_toolbarParam_buf_u: Array = new Array() - for (let toolbarConfiguration_toolbarParam_buf_u_i = 0; toolbarConfiguration_toolbarParam_buf_u_i < toolbarConfiguration_toolbarParam_buf_u_length; toolbarConfiguration_toolbarParam_buf_u_i++) { - toolbarConfiguration_toolbarParam_buf_u[toolbarConfiguration_toolbarParam_buf_u_i] = thisDeserializer.readToolbarItem() - } - toolbarConfiguration_toolbarParam_buf = toolbarConfiguration_toolbarParam_buf_u - } - else if (toolbarConfiguration_toolbarParam_buf_selector == 1) { - toolbarConfiguration_toolbarParam_buf = CallbackTransformer.transformToCustomBuilder(thisDeserializer.readCustomNodeBuilder()) - } - else { - throw new Error("One of the branches for toolbarConfiguration_toolbarParam_buf has to be chosen through deserialisation.") - } - node.toolbarConfiguration_toolbarParam = (toolbarConfiguration_toolbarParam_buf as Array | CustomBuilder) - const toolbarConfiguration_options_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let toolbarConfiguration_options_buf: NavigationToolbarOptions | undefined|undefined - if ((RuntimeType.UNDEFINED) != (toolbarConfiguration_options_buf_runtimeType)) - { - toolbarConfiguration_options_buf = thisDeserializer.readNavigationToolbarOptions() - } - node.toolbarConfiguration_options = toolbarConfiguration_options_buf - } - _NavDestinationAttribute_hideToolBar(ptr: KPointer, hide: KInt, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - node.hideToolBar_hide = hide - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const hideToolBar_animated_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let hideToolBar_animated_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (hideToolBar_animated_buf_runtimeType)) - { - hideToolBar_animated_buf = thisDeserializer.readBoolean() - } - node.hideToolBar_animated = hideToolBar_animated_buf - } - _NavDestinationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - let node = this.ptr2object(ptr) - const thisDeserializer = new Deserializer(thisArray.buffer, thisLength) - const ignoreLayoutSafeArea_types_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let ignoreLayoutSafeArea_types_buf: Array | undefined|undefined - if ((RuntimeType.UNDEFINED) != (ignoreLayoutSafeArea_types_buf_runtimeType)) - { - const ignoreLayoutSafeArea_types_buf__length: int32 = thisDeserializer.readInt32() - let ignoreLayoutSafeArea_types_buf_: Array = new Array() - for (let ignoreLayoutSafeArea_types_buf__i = 0; ignoreLayoutSafeArea_types_buf__i < ignoreLayoutSafeArea_types_buf__length; ignoreLayoutSafeArea_types_buf__i++) { - ignoreLayoutSafeArea_types_buf_[ignoreLayoutSafeArea_types_buf__i] = (thisDeserializer.readInt32() as LayoutSafeAreaType) - } - ignoreLayoutSafeArea_types_buf = ignoreLayoutSafeArea_types_buf_ - } - node.ignoreLayoutSafeArea_types = ignoreLayoutSafeArea_types_buf - const ignoreLayoutSafeArea_edges_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let ignoreLayoutSafeArea_edges_buf: Array | undefined|undefined - if ((RuntimeType.UNDEFINED) != (ignoreLayoutSafeArea_edges_buf_runtimeType)) - { - const ignoreLayoutSafeArea_edges_buf__length: int32 = thisDeserializer.readInt32() - let ignoreLayoutSafeArea_edges_buf_: Array = new Array() - for (let ignoreLayoutSafeArea_edges_buf__i = 0; ignoreLayoutSafeArea_edges_buf__i < ignoreLayoutSafeArea_edges_buf__length; ignoreLayoutSafeArea_edges_buf__i++) { - ignoreLayoutSafeArea_edges_buf_[ignoreLayoutSafeArea_edges_buf__i] = (thisDeserializer.readInt32() as LayoutSafeAreaEdge) - } - ignoreLayoutSafeArea_edges_buf = ignoreLayoutSafeArea_edges_buf_ - } - node.ignoreLayoutSafeArea_edges = ignoreLayoutSafeArea_edges_buf - } _NavRouterInterface_setNavRouterOptions0(ptr: KPointer): void { let node = this.ptr2object(ptr) } diff --git a/arkoala/arkui/src/peer_events.ts b/arkoala/arkui/src/peer_events.ts index c3ad5f47f..857464cc1 100644 --- a/arkoala/arkui/src/peer_events.ts +++ b/arkoala/arkui/src/peer_events.ts @@ -122,214 +122,206 @@ export enum PeerEventKind { Marquee_onBounce = 116, Marquee_onFinish = 117, MenuItem_onChange = 118, - NavDestination_onShown = 119, - NavDestination_onHidden = 120, - NavDestination_onBackPressed = 121, - NavDestination_onReady = 122, - NavDestination_onWillAppear = 123, - NavDestination_onWillDisappear = 124, - NavDestination_onWillShow = 125, - NavDestination_onWillHide = 126, - NavRouter_onStateChange = 127, - Panel_onChange = 128, - Panel_onHeightChange = 129, - PasteButton_onClick = 130, - PatternLock_onPatternComplete = 131, - PatternLock_onDotConnect = 132, - PluginComponent_onComplete = 133, - PluginComponent_onError = 134, - Radio_onChange = 135, - Rating_onChange = 136, - Refresh_onStateChange = 137, - Refresh_onRefreshing = 138, - Refresh_onOffsetChange = 139, - RichEditor_onReady = 140, - RichEditor_onSelect = 141, - RichEditor_onSelectionChange = 142, - RichEditor_aboutToIMEInput = 143, - RichEditor_onIMEInputComplete = 144, - RichEditor_onDidIMEInput = 145, - RichEditor_aboutToDelete = 146, - RichEditor_onDeleteComplete = 147, - RichEditor_onPaste = 148, - RichEditor_onEditingChange = 149, - RichEditor_onSubmit = 150, - RichEditor_onWillChange = 151, - RichEditor_onDidChange = 152, - RichEditor_onCut = 153, - RichEditor_onCopy = 154, - RichEditor_bindSelectionMenu = 155, - RichEditor_customKeyboard = 156, - RichText_onStart = 157, - RichText_onComplete = 158, - SaveButton_onClick = 159, - Scroll_onScroll = 160, - Scroll_onScrollEdge = 161, - Scroll_onScrollStart = 162, - Scroll_onScrollEnd = 163, - Scroll_onScrollStop = 164, - Scroll_onScrollFrameBegin = 165, - Search_onEditChange = 166, - Search_onSubmit0 = 167, - Search_onSubmit1 = 168, - Search_onChange = 169, - Search_onTextSelectionChange = 170, - Search_onContentScroll = 171, - Search_onCopy = 172, - Search_onCut = 173, - Search_onPaste = 174, - Search_onWillInsert = 175, - Search_onDidInsert = 176, - Search_onWillDelete = 177, - Search_onDidDelete = 178, - Search_customKeyboard = 179, - Select_onSelect = 180, - Slider_onChange = 181, - Stepper_onFinish = 182, - Stepper_onSkip = 183, - Stepper_onChange = 184, - Stepper_onNext = 185, - Stepper_onPrevious = 186, - Swiper_onChange = 187, - Swiper_onAnimationStart = 188, - Swiper_onAnimationEnd = 189, - Swiper_onGestureSwipe = 190, - Swiper_onContentDidScroll = 191, - IndicatorComponent_onChange = 192, - Tabs_onChange = 193, - Tabs_onTabBarClick = 194, - Tabs_onAnimationStart = 195, - Tabs_onAnimationEnd = 196, - Tabs_onGestureSwipe = 197, - Tabs_customContentTransition = 198, - Tabs_onContentWillChange = 199, - TabContent_onWillShow = 200, - TabContent_onWillHide = 201, - Text_onCopy = 202, - Text_onTextSelectionChange = 203, - Text_bindSelectionMenu = 204, - TextArea_onSubmit0 = 205, - TextArea_onSubmit1 = 206, - TextArea_onChange = 207, - TextArea_onTextSelectionChange = 208, - TextArea_onContentScroll = 209, - TextArea_onEditChange = 210, - TextArea_onCopy = 211, - TextArea_onCut = 212, - TextArea_onPaste = 213, - TextArea_onWillInsert = 214, - TextArea_onDidInsert = 215, - TextArea_onWillDelete = 216, - TextArea_onDidDelete = 217, - TextArea_customKeyboard = 218, - TextClock_onDateChange = 219, - TextInput_onEditChanged = 220, - TextInput_onEditChange = 221, - TextInput_onSubmit = 222, - TextInput_onChange = 223, - TextInput_onTextSelectionChange = 224, - TextInput_onContentScroll = 225, - TextInput_onCopy = 226, - TextInput_onCut = 227, - TextInput_onPaste = 228, - TextInput_showUnit = 229, - TextInput_onSecurityStateChange = 230, - TextInput_onWillInsert = 231, - TextInput_onDidInsert = 232, - TextInput_onWillDelete = 233, - TextInput_onDidDelete = 234, - TextInput_customKeyboard = 235, - TextPicker_onAccept = 236, - TextPicker_onCancel = 237, - TextPicker_onChange = 238, - TextTimer_onTimer = 239, - TimePicker_onChange = 240, - Toggle_onChange = 241, - Video_onStart = 242, - Video_onPause = 243, - Video_onFinish = 244, - Video_onFullscreenChange = 245, - Video_onPrepared = 246, - Video_onSeeking = 247, - Video_onSeeked = 248, - Video_onUpdate = 249, - Video_onError = 250, - Video_onStop = 251, - Web_onPageEnd = 252, - Web_onPageBegin = 253, - Web_onProgressChange = 254, - Web_onTitleReceive = 255, - Web_onGeolocationHide = 256, - Web_onGeolocationShow = 257, - Web_onRequestSelected = 258, - Web_onAlert = 259, - Web_onBeforeUnload = 260, - Web_onConfirm = 261, - Web_onPrompt = 262, - Web_onConsole = 263, - Web_onErrorReceive = 264, - Web_onHttpErrorReceive = 265, - Web_onDownloadStart = 266, - Web_onRefreshAccessedHistory = 267, - Web_onUrlLoadIntercept = 268, - Web_onSslErrorReceive = 269, - Web_onRenderExited0 = 270, - Web_onRenderExited1 = 271, - Web_onShowFileSelector = 272, - Web_onFileSelectorShow = 273, - Web_onResourceLoad = 274, - Web_onFullScreenExit = 275, - Web_onFullScreenEnter = 276, - Web_onScaleChange = 277, - Web_onHttpAuthRequest = 278, - Web_onInterceptRequest = 279, - Web_onPermissionRequest = 280, - Web_onScreenCaptureRequest = 281, - Web_onContextMenuShow = 282, - Web_onContextMenuHide = 283, - Web_onSearchResultReceive = 284, - Web_onScroll = 285, - Web_onSslErrorEventReceive = 286, - Web_onSslErrorEvent = 287, - Web_onClientAuthenticationRequest = 288, - Web_onWindowNew = 289, - Web_onWindowExit = 290, - Web_onInterceptKeyEvent = 291, - Web_onTouchIconUrlReceived = 292, - Web_onFaviconReceived = 293, - Web_onPageVisible = 294, - Web_onDataResubmitted = 295, - Web_onAudioStateChanged = 296, - Web_onFirstContentfulPaint = 297, - Web_onFirstMeaningfulPaint = 298, - Web_onLargestContentfulPaint = 299, - Web_onLoadIntercept = 300, - Web_onControllerAttached = 301, - Web_onOverScroll = 302, - Web_onSafeBrowsingCheckResult = 303, - Web_onNavigationEntryCommitted = 304, - Web_onIntelligentTrackingPreventionResult = 305, - Web_onNativeEmbedLifecycleChange = 306, - Web_onNativeEmbedVisibilityChange = 307, - Web_onNativeEmbedGestureEvent = 308, - Web_onOverrideUrlLoading = 309, - Web_onRenderProcessNotResponding = 310, - Web_onRenderProcessResponding = 311, - Web_onViewportFitChanged = 312, - Web_onInterceptKeyboardAttach = 313, - Web_onAdsBlocked = 314, - Web_bindSelectionMenu = 315, - XComponent_onLoad = 316, - XComponent_onDestroy = 317, - SideBarContainer_onChange = 318, - WaterFlow_onReachStart = 319, - WaterFlow_onReachEnd = 320, - WaterFlow_onScrollFrameBegin = 321, - WaterFlow_onScrollIndex = 322, - UIExtensionComponent_onRemoteReady = 323, - UIExtensionComponent_onResult = 324, - UIExtensionComponent_onRelease = 325, - UIExtensionComponent_onTerminated = 326, + NavRouter_onStateChange = 119, + Panel_onChange = 120, + Panel_onHeightChange = 121, + PasteButton_onClick = 122, + PatternLock_onPatternComplete = 123, + PatternLock_onDotConnect = 124, + PluginComponent_onComplete = 125, + PluginComponent_onError = 126, + Radio_onChange = 127, + Rating_onChange = 128, + Refresh_onStateChange = 129, + Refresh_onRefreshing = 130, + Refresh_onOffsetChange = 131, + RichEditor_onReady = 132, + RichEditor_onSelect = 133, + RichEditor_onSelectionChange = 134, + RichEditor_aboutToIMEInput = 135, + RichEditor_onIMEInputComplete = 136, + RichEditor_onDidIMEInput = 137, + RichEditor_aboutToDelete = 138, + RichEditor_onDeleteComplete = 139, + RichEditor_onPaste = 140, + RichEditor_onEditingChange = 141, + RichEditor_onSubmit = 142, + RichEditor_onWillChange = 143, + RichEditor_onDidChange = 144, + RichEditor_onCut = 145, + RichEditor_onCopy = 146, + RichEditor_bindSelectionMenu = 147, + RichEditor_customKeyboard = 148, + RichText_onStart = 149, + RichText_onComplete = 150, + SaveButton_onClick = 151, + Scroll_onScroll = 152, + Scroll_onScrollEdge = 153, + Scroll_onScrollStart = 154, + Scroll_onScrollEnd = 155, + Scroll_onScrollStop = 156, + Scroll_onScrollFrameBegin = 157, + Search_onEditChange = 158, + Search_onSubmit0 = 159, + Search_onSubmit1 = 160, + Search_onChange = 161, + Search_onTextSelectionChange = 162, + Search_onContentScroll = 163, + Search_onCopy = 164, + Search_onCut = 165, + Search_onPaste = 166, + Search_onWillInsert = 167, + Search_onDidInsert = 168, + Search_onWillDelete = 169, + Search_onDidDelete = 170, + Search_customKeyboard = 171, + Select_onSelect = 172, + Slider_onChange = 173, + Stepper_onFinish = 174, + Stepper_onSkip = 175, + Stepper_onChange = 176, + Stepper_onNext = 177, + Stepper_onPrevious = 178, + Swiper_onChange = 179, + Swiper_onAnimationStart = 180, + Swiper_onAnimationEnd = 181, + Swiper_onGestureSwipe = 182, + Swiper_onContentDidScroll = 183, + IndicatorComponent_onChange = 184, + Tabs_onChange = 185, + Tabs_onTabBarClick = 186, + Tabs_onAnimationStart = 187, + Tabs_onAnimationEnd = 188, + Tabs_onGestureSwipe = 189, + Tabs_customContentTransition = 190, + Tabs_onContentWillChange = 191, + TabContent_onWillShow = 192, + TabContent_onWillHide = 193, + Text_onCopy = 194, + Text_onTextSelectionChange = 195, + Text_bindSelectionMenu = 196, + TextArea_onSubmit0 = 197, + TextArea_onSubmit1 = 198, + TextArea_onChange = 199, + TextArea_onTextSelectionChange = 200, + TextArea_onContentScroll = 201, + TextArea_onEditChange = 202, + TextArea_onCopy = 203, + TextArea_onCut = 204, + TextArea_onPaste = 205, + TextArea_onWillInsert = 206, + TextArea_onDidInsert = 207, + TextArea_onWillDelete = 208, + TextArea_onDidDelete = 209, + TextArea_customKeyboard = 210, + TextClock_onDateChange = 211, + TextInput_onEditChanged = 212, + TextInput_onEditChange = 213, + TextInput_onSubmit = 214, + TextInput_onChange = 215, + TextInput_onTextSelectionChange = 216, + TextInput_onContentScroll = 217, + TextInput_onCopy = 218, + TextInput_onCut = 219, + TextInput_onPaste = 220, + TextInput_showUnit = 221, + TextInput_onSecurityStateChange = 222, + TextInput_onWillInsert = 223, + TextInput_onDidInsert = 224, + TextInput_onWillDelete = 225, + TextInput_onDidDelete = 226, + TextInput_customKeyboard = 227, + TextPicker_onAccept = 228, + TextPicker_onCancel = 229, + TextPicker_onChange = 230, + TextTimer_onTimer = 231, + TimePicker_onChange = 232, + Toggle_onChange = 233, + Video_onStart = 234, + Video_onPause = 235, + Video_onFinish = 236, + Video_onFullscreenChange = 237, + Video_onPrepared = 238, + Video_onSeeking = 239, + Video_onSeeked = 240, + Video_onUpdate = 241, + Video_onError = 242, + Video_onStop = 243, + Web_onPageEnd = 244, + Web_onPageBegin = 245, + Web_onProgressChange = 246, + Web_onTitleReceive = 247, + Web_onGeolocationHide = 248, + Web_onGeolocationShow = 249, + Web_onRequestSelected = 250, + Web_onAlert = 251, + Web_onBeforeUnload = 252, + Web_onConfirm = 253, + Web_onPrompt = 254, + Web_onConsole = 255, + Web_onErrorReceive = 256, + Web_onHttpErrorReceive = 257, + Web_onDownloadStart = 258, + Web_onRefreshAccessedHistory = 259, + Web_onUrlLoadIntercept = 260, + Web_onSslErrorReceive = 261, + Web_onRenderExited0 = 262, + Web_onRenderExited1 = 263, + Web_onShowFileSelector = 264, + Web_onFileSelectorShow = 265, + Web_onResourceLoad = 266, + Web_onFullScreenExit = 267, + Web_onFullScreenEnter = 268, + Web_onScaleChange = 269, + Web_onHttpAuthRequest = 270, + Web_onInterceptRequest = 271, + Web_onPermissionRequest = 272, + Web_onScreenCaptureRequest = 273, + Web_onContextMenuShow = 274, + Web_onContextMenuHide = 275, + Web_onSearchResultReceive = 276, + Web_onScroll = 277, + Web_onSslErrorEventReceive = 278, + Web_onSslErrorEvent = 279, + Web_onClientAuthenticationRequest = 280, + Web_onWindowNew = 281, + Web_onWindowExit = 282, + Web_onInterceptKeyEvent = 283, + Web_onTouchIconUrlReceived = 284, + Web_onFaviconReceived = 285, + Web_onPageVisible = 286, + Web_onDataResubmitted = 287, + Web_onAudioStateChanged = 288, + Web_onFirstContentfulPaint = 289, + Web_onFirstMeaningfulPaint = 290, + Web_onLargestContentfulPaint = 291, + Web_onLoadIntercept = 292, + Web_onControllerAttached = 293, + Web_onOverScroll = 294, + Web_onSafeBrowsingCheckResult = 295, + Web_onNavigationEntryCommitted = 296, + Web_onIntelligentTrackingPreventionResult = 297, + Web_onNativeEmbedLifecycleChange = 298, + Web_onNativeEmbedVisibilityChange = 299, + Web_onNativeEmbedGestureEvent = 300, + Web_onOverrideUrlLoading = 301, + Web_onRenderProcessNotResponding = 302, + Web_onRenderProcessResponding = 303, + Web_onViewportFitChanged = 304, + Web_onInterceptKeyboardAttach = 305, + Web_onAdsBlocked = 306, + Web_bindSelectionMenu = 307, + XComponent_onLoad = 308, + XComponent_onDestroy = 309, + SideBarContainer_onChange = 310, + WaterFlow_onReachStart = 311, + WaterFlow_onReachEnd = 312, + WaterFlow_onScrollFrameBegin = 313, + WaterFlow_onScrollIndex = 314, + UIExtensionComponent_onRemoteReady = 315, + UIExtensionComponent_onResult = 316, + UIExtensionComponent_onRelease = 317, + UIExtensionComponent_onTerminated = 318, } interface PeerEvent { @@ -810,31 +802,6 @@ export interface MenuItem_onChange_event extends PeerEvent { readonly kind: PeerEventKind.MenuItem_onChange readonly parameter: boolean } -export interface NavDestination_onShown_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onShown -} -export interface NavDestination_onHidden_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onHidden -} -export interface NavDestination_onBackPressed_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onBackPressed -} -export interface NavDestination_onReady_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onReady - readonly parameter: NavDestinationContext -} -export interface NavDestination_onWillAppear_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillAppear -} -export interface NavDestination_onWillDisappear_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillDisappear -} -export interface NavDestination_onWillShow_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillShow -} -export interface NavDestination_onWillHide_event extends PeerEvent { - readonly kind: PeerEventKind.NavDestination_onWillHide -} export interface NavRouter_onStateChange_event extends PeerEvent { readonly kind: PeerEventKind.NavRouter_onStateChange readonly parameter: boolean @@ -1766,14 +1733,6 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" - case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" - case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" - case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" - case PeerEventKind.NavDestination_onReady: return "NavDestination_onReady" - case PeerEventKind.NavDestination_onWillAppear: return "NavDestination_onWillAppear" - case PeerEventKind.NavDestination_onWillDisappear: return "NavDestination_onWillDisappear" - case PeerEventKind.NavDestination_onWillShow: return "NavDestination_onWillShow" - case PeerEventKind.NavDestination_onWillHide: return "NavDestination_onWillHide" case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" case PeerEventKind.Panel_onChange: return "Panel_onChange" case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" @@ -2883,55 +2842,6 @@ export function deserializePeerEvent(eventDeserializer: Deserializer): PeerEvent event.parameter = eventDeserializer.readBoolean() return (event as MenuItem_onChange_event) } - else if ((kind) === (PeerEventKind.NavDestination_onShown)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onShown_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onHidden)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onHidden_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onBackPressed)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onBackPressed_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onReady)) { - const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} - event.kind = kind - event.nodeId = nodeId - event.parameter = (eventDeserializer.readNavDestinationContext() as NavDestinationContext) - return (event as NavDestination_onReady_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillAppear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillAppear_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillDisappear)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillDisappear_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillShow)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillShow_event) - } - else if ((kind) === (PeerEventKind.NavDestination_onWillHide)) { - const event: { kind?: number, nodeId?: PeerEventKind } = {} - event.kind = kind - event.nodeId = nodeId - return (event as NavDestination_onWillHide_event) - } else if ((kind) === (PeerEventKind.NavRouter_onStateChange)) { const event: { kind?: number, nodeId?: PeerEventKind, parameter?: any } = {} event.kind = kind @@ -4594,14 +4504,6 @@ export interface PeerEventsProperties { Marquee_onBounce?: (() => void) Marquee_onFinish?: (() => void) MenuItem_onChange?: ((parameter: boolean) => void) - NavDestination_onShown?: (() => void) - NavDestination_onHidden?: (() => void) - NavDestination_onBackPressed?: (() => boolean) - NavDestination_onReady?: ((parameter: NavDestinationContext) => void) - NavDestination_onWillAppear?: (() => void) - NavDestination_onWillDisappear?: (() => void) - NavDestination_onWillShow?: (() => void) - NavDestination_onWillHide?: (() => void) NavRouter_onStateChange?: ((parameter: boolean) => void) Panel_onChange?: ((width: number, height: number, mode: PanelMode) => void) Panel_onHeightChange?: ((index: number) => void) @@ -4924,14 +4826,6 @@ export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEven case PeerEventKind.Marquee_onBounce: properties.Marquee_onBounce?.(); break case PeerEventKind.Marquee_onFinish: properties.Marquee_onFinish?.(); break case PeerEventKind.MenuItem_onChange: properties.MenuItem_onChange?.((event as MenuItem_onChange_event).parameter); break - case PeerEventKind.NavDestination_onShown: properties.NavDestination_onShown?.(); break - case PeerEventKind.NavDestination_onHidden: properties.NavDestination_onHidden?.(); break - case PeerEventKind.NavDestination_onBackPressed: properties.NavDestination_onBackPressed?.(); break - case PeerEventKind.NavDestination_onReady: properties.NavDestination_onReady?.((event as NavDestination_onReady_event).parameter); break - case PeerEventKind.NavDestination_onWillAppear: properties.NavDestination_onWillAppear?.(); break - case PeerEventKind.NavDestination_onWillDisappear: properties.NavDestination_onWillDisappear?.(); break - case PeerEventKind.NavDestination_onWillShow: properties.NavDestination_onWillShow?.(); break - case PeerEventKind.NavDestination_onWillHide: properties.NavDestination_onWillHide?.(); break case PeerEventKind.NavRouter_onStateChange: properties.NavRouter_onStateChange?.((event as NavRouter_onStateChange_event).parameter); break case PeerEventKind.Panel_onChange: properties.Panel_onChange?.((event as Panel_onChange_event).width, (event as Panel_onChange_event).height, (event as Panel_onChange_event).mode); break case PeerEventKind.Panel_onHeightChange: properties.Panel_onHeightChange?.((event as Panel_onHeightChange_event).index); break diff --git a/arkoala/arkui/src/peers/ArkUINodeType.ts b/arkoala/arkui/src/peers/ArkUINodeType.ts index 3534ca642..501741ef3 100644 --- a/arkoala/arkui/src/peers/ArkUINodeType.ts +++ b/arkoala/arkui/src/peers/ArkUINodeType.ts @@ -56,7 +56,6 @@ export enum ArkUINodeType { Menu, MenuItem, MenuItemGroup, - NavDestination, NavRouter, Navigator, NodeContainer, diff --git a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts index 11fcb21e8..95fd8d344 100644 --- a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts @@ -478,12 +478,6 @@ export function deserializeAndCallCallback_NativeEmbedTouchInfo_Void(thisDeseria let event: NativeEmbedTouchInfo = thisDeserializer.readNativeEmbedTouchInfo() _call(event) } -export function deserializeAndCallCallback_NavDestinationContext_Void(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: NavDestinationContext) => void)) - let parameter: NavDestinationContext = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - _call(parameter) -} export function deserializeAndCallCallback_NavigationMode_Void(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((mode: NavigationMode) => void)) @@ -496,12 +490,6 @@ export function deserializeAndCallCallback_NavigationTitleMode_Void(thisDeserial let titleMode: NavigationTitleMode = (thisDeserializer.readInt32() as NavigationTitleMode) _call(titleMode) } -export function deserializeAndCallCallback_NavigationTransitionProxy_Void(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((transitionProxy: NavigationTransitionProxy) => void)) - let transitionProxy: NavigationTransitionProxy = (thisDeserializer.readNavigationTransitionProxy() as NavigationTransitionProxy) - _call(transitionProxy) -} export function deserializeAndCallCallback_Number_Boolean(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((index: number) => boolean)) @@ -868,18 +856,6 @@ export function deserializeAndCallCallback_Opt_Array_String_Void(thisDeserialize let error: Array | undefined|undefined = error_buf _call(error) } -export function deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((value: NavigationAnimatedTransition | undefined) => void)) - const value_buf_runtimeType = (thisDeserializer.readInt8() as int32) - let value_buf: NavigationAnimatedTransition | undefined|undefined - if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) - { - value_buf = thisDeserializer.readNavigationAnimatedTransition() - } - let value: NavigationAnimatedTransition | undefined|undefined = value_buf - _call(value) -} export function deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value?: StyledString | undefined, error?: Array | undefined) => void)) @@ -928,12 +904,6 @@ export function deserializeAndCallCallback_Pointer_Void(thisDeserializer: Deseri let value: KPointer = thisDeserializer.readPointer() _call(value) } -export function deserializeAndCallCallback_PopInfo_Void(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: PopInfo) => void)) - let parameter: PopInfo = thisDeserializer.readPopInfo() - _call(parameter) -} export function deserializeAndCallCallback_PreDragStatus_Void(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: PreDragStatus) => void)) @@ -1288,37 +1258,6 @@ export function deserializeAndCallInterceptionModeCallback(thisDeserializer: Des let mode: NavigationMode = (thisDeserializer.readInt32() as NavigationMode) _call(mode) } -export function deserializeAndCallInterceptionShowCallback(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as InterceptionShowCallback) - const from_buf_selector: number = thisDeserializer.readInt8() - let from_buf: NavDestinationContext | NavBar | undefined|undefined - if (from_buf_selector == 0) { - from_buf = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - } - else if (from_buf_selector == 1) { - from_buf = (thisDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for from_buf has to be chosen through deserialisation.") - } - let from: NavDestinationContext | NavBar = (from_buf as NavDestinationContext | NavBar) - const to_buf_selector: number = thisDeserializer.readInt8() - let to_buf: NavDestinationContext | NavBar | undefined|undefined - if (to_buf_selector == 0) { - to_buf = (thisDeserializer.readNavDestinationContext() as NavDestinationContext) - } - else if (to_buf_selector == 1) { - to_buf = (thisDeserializer.readString() as string) - } - else { - throw new Error("One of the branches for to_buf has to be chosen through deserialisation.") - } - let to: NavDestinationContext | NavBar = (to_buf as NavDestinationContext | NavBar) - let operation: NavigationOperation = (thisDeserializer.readInt32() as NavigationOperation) - let isAnimated: boolean = thisDeserializer.readBoolean() - _call(from, to, operation, isAnimated) -} export function deserializeAndCallIsolatedComponentInterface(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as IsolatedComponentInterface) @@ -1725,16 +1664,6 @@ export function deserializeAndCallTransitionFinishCallback(thisDeserializer: Des let transitionIn: boolean = thisDeserializer.readBoolean() _call(transitionIn) } -export function deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(thisDeserializer: Deserializer) { - const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined)) - let from: NavContentInfo = thisDeserializer.readNavContentInfo() - let to: NavContentInfo = thisDeserializer.readNavContentInfo() - let operation: NavigationOperation = (thisDeserializer.readInt32() as NavigationOperation) - let _continuation: ((value: NavigationAnimatedTransition | undefined) => void) = thisDeserializer.readCallback_Opt_NavigationAnimatedTransition_Void(true) - const _callResult = _call(from, to, operation) - _continuation(_callResult) -} export function deserializeAndCallType_TextPickerAttribute_onChange_callback(thisDeserializer: Deserializer) { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((value: string | Array, index: number | Array) => void)) @@ -1891,10 +1820,8 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case -1382640094/*CallbackKind.Kind_Callback_MouseEvent_Void*/: return deserializeAndCallCallback_MouseEvent_Void(thisDeserializer); case 477481563/*CallbackKind.Kind_Callback_NativeEmbedDataInfo_Void*/: return deserializeAndCallCallback_NativeEmbedDataInfo_Void(thisDeserializer); case -1090303858/*CallbackKind.Kind_Callback_NativeEmbedTouchInfo_Void*/: return deserializeAndCallCallback_NativeEmbedTouchInfo_Void(thisDeserializer); - case -1642725259/*CallbackKind.Kind_Callback_NavDestinationContext_Void*/: return deserializeAndCallCallback_NavDestinationContext_Void(thisDeserializer); case 960690982/*CallbackKind.Kind_Callback_NavigationMode_Void*/: return deserializeAndCallCallback_NavigationMode_Void(thisDeserializer); case 1685437830/*CallbackKind.Kind_Callback_NavigationTitleMode_Void*/: return deserializeAndCallCallback_NavigationTitleMode_Void(thisDeserializer); - case -1375731066/*CallbackKind.Kind_Callback_NavigationTransitionProxy_Void*/: return deserializeAndCallCallback_NavigationTransitionProxy_Void(thisDeserializer); case 1054099324/*CallbackKind.Kind_Callback_Number_Boolean*/: return deserializeAndCallCallback_Number_Boolean(thisDeserializer); case -1427334496/*CallbackKind.Kind_Callback_Number_Number_Boolean*/: return deserializeAndCallCallback_Number_Number_Boolean(thisDeserializer); case -3987624/*CallbackKind.Kind_Callback_Number_Number_ComputedBarAttribute*/: return deserializeAndCallCallback_Number_Number_ComputedBarAttribute(thisDeserializer); @@ -1947,12 +1874,10 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case 1657893064/*CallbackKind.Kind_Callback_OnTouchIconUrlReceivedEvent_Void*/: return deserializeAndCallCallback_OnTouchIconUrlReceivedEvent_Void(thisDeserializer); case -2052382574/*CallbackKind.Kind_Callback_OnWindowNewEvent_Void*/: return deserializeAndCallCallback_OnWindowNewEvent_Void(thisDeserializer); case -543655128/*CallbackKind.Kind_Callback_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_Array_String_Void(thisDeserializer); - case -2035339519/*CallbackKind.Kind_Callback_Opt_NavigationAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(thisDeserializer); case -756319131/*CallbackKind.Kind_Callback_Opt_StyledString_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(thisDeserializer); case -143931627/*CallbackKind.Kind_Callback_Opt_TabContentAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_TabContentAnimatedTransition_Void(thisDeserializer); case -2058966418/*CallbackKind.Kind_Callback_PlaybackInfo_Void*/: return deserializeAndCallCallback_PlaybackInfo_Void(thisDeserializer); case 721562324/*CallbackKind.Kind_Callback_Pointer_Void*/: return deserializeAndCallCallback_Pointer_Void(thisDeserializer); - case 624053870/*CallbackKind.Kind_Callback_PopInfo_Void*/: return deserializeAndCallCallback_PopInfo_Void(thisDeserializer); case 463894668/*CallbackKind.Kind_Callback_PreDragStatus_Void*/: return deserializeAndCallCallback_PreDragStatus_Void(thisDeserializer); case 1300890372/*CallbackKind.Kind_Callback_PreparedInfo_Void*/: return deserializeAndCallCallback_PreparedInfo_Void(thisDeserializer); case 797834474/*CallbackKind.Kind_Callback_RangeUpdate*/: return deserializeAndCallCallback_RangeUpdate(thisDeserializer); @@ -2000,7 +1925,6 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case -1180567691/*CallbackKind.Kind_ImageCompleteCallback*/: return deserializeAndCallImageCompleteCallback(thisDeserializer); case 1906248580/*CallbackKind.Kind_ImageErrorCallback*/: return deserializeAndCallImageErrorCallback(thisDeserializer); case 1502213270/*CallbackKind.Kind_InterceptionModeCallback*/: return deserializeAndCallInterceptionModeCallback(thisDeserializer); - case 1852781814/*CallbackKind.Kind_InterceptionShowCallback*/: return deserializeAndCallInterceptionShowCallback(thisDeserializer); case 2139680213/*CallbackKind.Kind_IsolatedComponentInterface*/: return deserializeAndCallIsolatedComponentInterface(thisDeserializer); case -614475458/*CallbackKind.Kind_MenuOnAppearCallback*/: return deserializeAndCallMenuOnAppearCallback(thisDeserializer); case 1572284740/*CallbackKind.Kind_OnAdsBlockedCallback*/: return deserializeAndCallOnAdsBlockedCallback(thisDeserializer); @@ -2056,7 +1980,6 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer) { case 221706282/*CallbackKind.Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallTabsCustomContentTransitionCallback(thisDeserializer); case -401980571/*CallbackKind.Kind_TextAreaSubmitCallback*/: return deserializeAndCallTextAreaSubmitCallback(thisDeserializer); case -1878458553/*CallbackKind.Kind_TransitionFinishCallback*/: return deserializeAndCallTransitionFinishCallback(thisDeserializer); - case 1044833488/*CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition_delegate*/: return deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(thisDeserializer); case -1078223620/*CallbackKind.Kind_Type_TextPickerAttribute_onChange_callback*/: return deserializeAndCallType_TextPickerAttribute_onChange_callback(thisDeserializer); case -985284966/*CallbackKind.Kind_Type_WebAttribute_onUrlLoadIntercept_callback*/: return deserializeAndCallType_WebAttribute_onUrlLoadIntercept_callback(thisDeserializer); case 541663396/*CallbackKind.Kind_VisibleAreaChangeCallback*/: return deserializeAndCallVisibleAreaChangeCallback(thisDeserializer); diff --git a/arkoala/arkui/src/peers/CallbackKind.ts b/arkoala/arkui/src/peers/CallbackKind.ts index 28fc029db..444852f8e 100644 --- a/arkoala/arkui/src/peers/CallbackKind.ts +++ b/arkoala/arkui/src/peers/CallbackKind.ts @@ -59,10 +59,8 @@ export enum CallbackKind { Kind_Callback_MouseEvent_Void = -1382640094, Kind_Callback_NativeEmbedDataInfo_Void = 477481563, Kind_Callback_NativeEmbedTouchInfo_Void = -1090303858, - Kind_Callback_NavDestinationContext_Void = -1642725259, Kind_Callback_NavigationMode_Void = 960690982, Kind_Callback_NavigationTitleMode_Void = 1685437830, - Kind_Callback_NavigationTransitionProxy_Void = -1375731066, Kind_Callback_Number_Boolean = 1054099324, Kind_Callback_Number_Number_Boolean = -1427334496, Kind_Callback_Number_Number_ComputedBarAttribute = -3987624, @@ -115,12 +113,10 @@ export enum CallbackKind { Kind_Callback_OnTouchIconUrlReceivedEvent_Void = 1657893064, Kind_Callback_OnWindowNewEvent_Void = -2052382574, Kind_Callback_Opt_Array_String_Void = -543655128, - Kind_Callback_Opt_NavigationAnimatedTransition_Void = -2035339519, Kind_Callback_Opt_StyledString_Opt_Array_String_Void = -756319131, Kind_Callback_Opt_TabContentAnimatedTransition_Void = -143931627, Kind_Callback_PlaybackInfo_Void = -2058966418, Kind_Callback_Pointer_Void = 721562324, - Kind_Callback_PopInfo_Void = 624053870, Kind_Callback_PreDragStatus_Void = 463894668, Kind_Callback_PreparedInfo_Void = 1300890372, Kind_Callback_RangeUpdate = 797834474, @@ -168,7 +164,6 @@ export enum CallbackKind { Kind_ImageCompleteCallback = -1180567691, Kind_ImageErrorCallback = 1906248580, Kind_InterceptionModeCallback = 1502213270, - Kind_InterceptionShowCallback = 1852781814, Kind_IsolatedComponentInterface = 2139680213, Kind_MenuOnAppearCallback = -614475458, Kind_OnAdsBlockedCallback = 1572284740, @@ -224,7 +219,6 @@ export enum CallbackKind { Kind_TabsCustomContentTransitionCallback = 221706282, Kind_TextAreaSubmitCallback = -401980571, Kind_TransitionFinishCallback = -1878458553, - Kind_Type_NavigationAttribute_customNavContentTransition_delegate = 1044833488, Kind_Type_TextPickerAttribute_onChange_callback = -1078223620, Kind_Type_WebAttribute_onUrlLoadIntercept_callback = -985284966, Kind_VisibleAreaChangeCallback = 541663396, diff --git a/arkoala/arkui/src/peers/Deserializer.ts b/arkoala/arkui/src/peers/Deserializer.ts index 67048adbb..97b3ddf46 100644 --- a/arkoala/arkui/src/peers/Deserializer.ts +++ b/arkoala/arkui/src/peers/Deserializer.ts @@ -52,16 +52,11 @@ import { DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" import { PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { AttributeModifierInternal } from "./../ArkAttributeModifierMaterialized" import { ViewInternal } from "./../ArkViewMaterialized" import { TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" import { DynamicNodeInternal } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { AbstractPropertyInternal } from "./../ArkAbstractPropertyMaterialized" -import { IPropertySubscriberInternal } from "./../ArkIPropertySubscriberMaterialized" -import { ISinglePropertyChangeSubscriberInternal } from "./../ArkISinglePropertyChangeSubscriberMaterialized" -import { SubscribaleAbstractInternal } from "./../ArkSubscribaleAbstractMaterialized" import { ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" @@ -73,8 +68,6 @@ import { PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" import { ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ListScrollerInternal } from "./../ArkListScrollerMaterialized" import { Matrix2DInternal } from "./../ArkMatrix2DMaterialized" -import { NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" -import { NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" import { PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" import { RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" @@ -584,12 +577,6 @@ export class Deserializer extends DeserializerBase { let value: GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } - readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: PopInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writePopInfo(parameter); (isSync) ? (nativeModule()._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readBackgroundColorStyle(): BackgroundColorStyle { let valueDeserializer: Deserializer = this const textBackgroundStyle_result: TextBackgroundStyle = valueDeserializer.readTextBackgroundStyle() @@ -1383,49 +1370,6 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); (isSync) ? (nativeModule()._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readNavPathStack(): NavPathStack { - let value: NavPathStack = ({} as NavPathStack) - return value - } - readNavPathInfo(): NavPathInfo { - let valueDeserializer: Deserializer = this - const name_result: string = (valueDeserializer.readString() as string) - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf: unknown | undefined|undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Any") as Object) - } - const param_result: unknown | undefined|undefined = param_buf - const onPop_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onPop_buf: ((parameter: PopInfo) => void) | undefined|undefined - if ((RuntimeType.UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf = valueDeserializer.readCallback_PopInfo_Void() - } - const onPop_result: ((parameter: PopInfo) => void) | undefined|undefined = onPop_buf - const isEntry_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEntry_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf = valueDeserializer.readBoolean() - } - const isEntry_result: boolean | undefined|undefined = isEntry_buf - let value: NavPathInfo = ({name: name_result,param: param_result,onPop: onPop_result,isEntry: isEntry_result} as NavPathInfo) - return value - } - readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavigationTransitionProxy(transitionProxy); (isSync) ? (nativeModule()._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } - readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeBoolean(parameter); (isSync) ? (nativeModule()._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readColorMetrics(): ColorMetrics { let valueDeserializer: Deserializer = this const __ColorMetricsStub_result: string = (valueDeserializer.readString() as string) @@ -2540,10 +2484,6 @@ export class Deserializer extends DeserializerBase { let value: RichEditorGesture = ({onClick: onClick_result,onLongPress: onLongPress_result} as RichEditorGesture) return value } - readTextModifier(): TextModifier { - let value: TextModifier = ({} as TextModifier) - return value - } readSwipeActionItem(): SwipeActionItem { let valueDeserializer: Deserializer = this const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -3558,77 +3498,11 @@ export class Deserializer extends DeserializerBase { let value: Want = ({bundleName: bundleName_result,abilityName: abilityName_result,deviceId: deviceId_result,uri: uri_result,type: type_result,flags: flags_result,action: action_result,parameters: parameters_result,entities: entities_result,moduleName: moduleName_result} as Want) return value } - readNavDestinationContext(): NavDestinationContext { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return NavDestinationContextInternal.fromPtr(ptr) - } readStyledString(): StyledString { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return StyledStringInternal.fromPtr(ptr) } - readNavigationAnimatedTransition(): NavigationAnimatedTransition { - let valueDeserializer: Deserializer = this - const onTransitionEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let onTransitionEnd_buf: ((parameter: boolean) => void) | undefined|undefined - if ((RuntimeType.UNDEFINED) != (onTransitionEnd_buf_runtimeType)) - { - onTransitionEnd_buf = valueDeserializer.readCallback_Boolean_Void() - } - const onTransitionEnd_result: ((parameter: boolean) => void) | undefined|undefined = onTransitionEnd_buf - const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let timeout_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) - { - timeout_buf = (valueDeserializer.readNumber() as number) - } - const timeout_result: number | undefined|undefined = timeout_buf - const isInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isInteractive_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (isInteractive_buf_runtimeType)) - { - isInteractive_buf = valueDeserializer.readBoolean() - } - const isInteractive_result: boolean | undefined|undefined = isInteractive_buf - const transition_result: ((transitionProxy: NavigationTransitionProxy) => void) = valueDeserializer.readCallback_NavigationTransitionProxy_Void() - let value: NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result,timeout: timeout_result,isInteractive: isInteractive_result,transition: transition_result} as NavigationAnimatedTransition) - return value - } - readNavContentInfo(): NavContentInfo { - let valueDeserializer: Deserializer = this - const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let name_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) - { - name_buf = (valueDeserializer.readString() as string) - } - const name_result: string | undefined|undefined = name_buf - const index_result: number = (valueDeserializer.readNumber() as number) - const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mode_buf: NavDestinationMode | undefined|undefined - if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) - } - const mode_result: NavDestinationMode | undefined|undefined = mode_buf - const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let param_buf: Object | undefined|undefined - if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) - { - param_buf = (valueDeserializer.readCustomObject("Object") as Object) - } - const param_result: Object | undefined|undefined = param_buf - const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let navDestinationId_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf = (valueDeserializer.readString() as string) - } - const navDestinationId_result: string | undefined|undefined = navDestinationId_buf - let value: NavContentInfo = ({name: name_result,index: index_result,mode: mode_result,param: param_result,navDestinationId: navDestinationId_result} as NavContentInfo) - return value - } readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -6408,180 +6282,6 @@ export class Deserializer extends DeserializerBase { let value: CircleStyleOptions = ({color: color_result,radius: radius_result,enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) return value } - readNavigationToolbarOptions(): NavigationToolbarOptions { - let valueDeserializer: Deserializer = this - const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundColor_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const backgroundColor_buf__selector: number = valueDeserializer.readInt8() - let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_ = (valueDeserializer.readString() as string) - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") - } - backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) - } - const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf - const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundBlurStyle_buf: BlurStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) - } - const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf - const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let barStyle_buf: BarStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf = (valueDeserializer.readInt32() as BarStyle) - } - const barStyle_result: BarStyle | undefined|undefined = barStyle_buf - let value: NavigationToolbarOptions = ({backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,barStyle: barStyle_result} as NavigationToolbarOptions) - return value - } - readNavigationTitleOptions(): NavigationTitleOptions { - let valueDeserializer: Deserializer = this - const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundColor_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const backgroundColor_buf__selector: number = valueDeserializer.readInt8() - let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_ = (valueDeserializer.readString() as string) - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") - } - backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) - } - const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf - const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let backgroundBlurStyle_buf: BlurStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) - } - const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf - const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let barStyle_buf: BarStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf = (valueDeserializer.readInt32() as BarStyle) - } - const barStyle_result: BarStyle | undefined|undefined = barStyle_buf - const paddingStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let paddingStart_buf: LengthMetrics | undefined|undefined - if ((RuntimeType.UNDEFINED) != (paddingStart_buf_runtimeType)) - { - paddingStart_buf = valueDeserializer.readLengthMetrics() - } - const paddingStart_result: LengthMetrics | undefined|undefined = paddingStart_buf - const paddingEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let paddingEnd_buf: LengthMetrics | undefined|undefined - if ((RuntimeType.UNDEFINED) != (paddingEnd_buf_runtimeType)) - { - paddingEnd_buf = valueDeserializer.readLengthMetrics() - } - const paddingEnd_result: LengthMetrics | undefined|undefined = paddingEnd_buf - const mainTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let mainTitleModifier_buf: TextModifier | undefined|undefined - if ((RuntimeType.UNDEFINED) != (mainTitleModifier_buf_runtimeType)) - { - mainTitleModifier_buf = valueDeserializer.readTextModifier() - } - const mainTitleModifier_result: TextModifier | undefined|undefined = mainTitleModifier_buf - const subTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let subTitleModifier_buf: TextModifier | undefined|undefined - if ((RuntimeType.UNDEFINED) != (subTitleModifier_buf_runtimeType)) - { - subTitleModifier_buf = valueDeserializer.readTextModifier() - } - const subTitleModifier_result: TextModifier | undefined|undefined = subTitleModifier_buf - const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let enableHoverMode_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) - { - enableHoverMode_buf = valueDeserializer.readBoolean() - } - const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf - let value: NavigationTitleOptions = ({backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,barStyle: barStyle_result,paddingStart: paddingStart_result,paddingEnd: paddingEnd_result,mainTitleModifier: mainTitleModifier_result,subTitleModifier: subTitleModifier_result,enableHoverMode: enableHoverMode_result} as NavigationTitleOptions) - return value - } - readNavDestinationCustomTitle(): NavDestinationCustomTitle { - let valueDeserializer: Deserializer = this - const builder_result: CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) - const height_buf_selector: number = valueDeserializer.readInt8() - let height_buf: TitleHeight | Length | undefined|undefined - if (height_buf_selector == 0) { - height_buf = (valueDeserializer.readInt32() as TitleHeight) - } - else if (height_buf_selector == 1) { - height_buf = (valueDeserializer.readLength() as Length) - } - else { - throw new Error("One of the branches for height_buf has to be chosen through deserialisation.") - } - const height_result: TitleHeight | Length = (height_buf as TitleHeight | Length) - let value: NavDestinationCustomTitle = ({builder: builder_result,height: height_result} as NavDestinationCustomTitle) - return value - } - readNavDestinationCommonTitle(): NavDestinationCommonTitle { - let valueDeserializer: Deserializer = this - const main_buf_selector: number = valueDeserializer.readInt8() - let main_buf: string | Resource | undefined|undefined - if (main_buf_selector == 0) { - main_buf = (valueDeserializer.readString() as string) - } - else if (main_buf_selector == 1) { - main_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for main_buf has to be chosen through deserialisation.") - } - const main_result: string | Resource = (main_buf as string | Resource) - const sub_buf_selector: number = valueDeserializer.readInt8() - let sub_buf: string | Resource | undefined|undefined - if (sub_buf_selector == 0) { - sub_buf = (valueDeserializer.readString() as string) - } - else if (sub_buf_selector == 1) { - sub_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for sub_buf has to be chosen through deserialisation.") - } - const sub_result: string | Resource = (sub_buf as string | Resource) - let value: NavDestinationCommonTitle = ({main: main_result,sub: sub_result} as NavDestinationCommonTitle) - return value - } - readSystemBarStyle(): SystemBarStyle { - let valueDeserializer: Deserializer = this - const __SystemBarStyleStub_result: string = (valueDeserializer.readString() as string) - let value: SystemBarStyle = ({__SystemBarStyleStub: __SystemBarStyleStub_result} as SystemBarStyle) - return value - } readMenuItemOptions(): MenuItemOptions { let valueDeserializer: Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7218,11 +6918,6 @@ export class Deserializer extends DeserializerBase { let value: AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } - readIPropertySubscriber(): IPropertySubscriber { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return IPropertySubscriberInternal.fromPtr(ptr) - } readUIGestureEvent(): UIGestureEvent { let value: UIGestureEvent = ({} as UIGestureEvent) return value @@ -11730,12 +11425,6 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (options: WithThemeOptions): WithThemeAttribute => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeWithThemeOptions(options); let _continuationValue: WithThemeAttribute | undefined|undefined; const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (nativeModule()._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as WithThemeAttribute); } } - readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavContentInfo(from); _argsSerializer.writeNavContentInfo(to); _argsSerializer.writeInt32(operation); let _continuationValue: NavigationAnimatedTransition | undefined|undefined; const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (nativeModule()._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as NavigationAnimatedTransition); } - } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -11773,12 +11462,6 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (options: IsolatedOptions): IsolatedComponentAttribute => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeIsolatedOptions(options); let _continuationValue: IsolatedComponentAttribute | undefined|undefined; const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (nativeModule()._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as IsolatedComponentAttribute); } } - readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let from_type: int32 = RuntimeType.UNDEFINED; from_type = runtimeType(from); if (((RuntimeType.OBJECT == from_type))) {; _argsSerializer.writeInt8(0); const from_0 = unsafeCast(from); _argsSerializer.writeNavDestinationContext(from_0); } else if (((RuntimeType.STRING == from_type))) {; _argsSerializer.writeInt8(1); const from_1 = unsafeCast(from); _argsSerializer.writeString(from_1); } let to_type: int32 = RuntimeType.UNDEFINED; to_type = runtimeType(to); if (((RuntimeType.OBJECT == to_type))) {; _argsSerializer.writeInt8(0); const to_0 = unsafeCast(to); _argsSerializer.writeNavDestinationContext(to_0); } else if (((RuntimeType.STRING == to_type))) {; _argsSerializer.writeInt8(1); const to_1 = unsafeCast(to); _argsSerializer.writeString(to_1); } _argsSerializer.writeInt32(operation); _argsSerializer.writeBoolean(isAnimated); (isSync) ? (nativeModule()._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -11867,12 +11550,6 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (value?: StyledString | undefined, error?: Array | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let value_type: int32 = RuntimeType.UNDEFINED; value_type = runtimeType(value); _argsSerializer.writeInt8(value_type); if ((RuntimeType.UNDEFINED) != (value_type)) {; const value_value = value!; _argsSerializer.writeStyledString(value_value); } let error_type: int32 = RuntimeType.UNDEFINED; error_type = runtimeType(error); _argsSerializer.writeInt8(error_type); if ((RuntimeType.UNDEFINED) != (error_type)) {; const error_value = error!; _argsSerializer.writeInt32(error_value.length); for (let i = 0; i < error_value.length; i++) {; const error_value_element = error_value[i]; _argsSerializer.writeString(error_value_element); } } (isSync) ? (nativeModule()._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let value_type: int32 = RuntimeType.UNDEFINED; value_type = runtimeType(value); _argsSerializer.writeInt8(value_type); if ((RuntimeType.UNDEFINED) != (value_type)) {; const value_value = value!; _argsSerializer.writeNavigationAnimatedTransition(value_value); } (isSync) ? (nativeModule()._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -11891,11 +11568,6 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (value: OffsetResult): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeOffsetResult(value); (isSync) ? (nativeModule()._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } - readNavigationTransitionProxy(): NavigationTransitionProxy { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return NavigationTransitionProxyInternal.fromPtr(ptr) - } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -11954,6 +11626,12 @@ export class Deserializer extends DeserializerBase { const _callSync: KPointer = this.readPointer() return (value: (() => any)): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.holdAndWriteCallback(value); (isSync) ? (nativeModule()._CallCallbackSync(1931725935, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(1931725935, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } } + readCallback_Boolean(isSync: boolean = false): (() => boolean) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (): boolean => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let _continuationValue: boolean | undefined|undefined; const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (nativeModule()._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as boolean); } + } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() @@ -15491,162 +15169,6 @@ export class Deserializer extends DeserializerBase { let value: RouteInfo = ({name: name_result,param: param_result} as RouteInfo) return value } - readToolbarItem(): ToolbarItem { - let valueDeserializer: Deserializer = this - const value_buf_selector: number = valueDeserializer.readInt8() - let value_buf: string | Resource | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (valueDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - const value_result: ResourceStr = (value_buf as string | Resource) - const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let icon_buf: ResourceStr | undefined|undefined - if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) - { - const icon_buf__selector: number = valueDeserializer.readInt8() - let icon_buf_: string | Resource | undefined|undefined - if (icon_buf__selector == 0) { - icon_buf_ = (valueDeserializer.readString() as string) - } - else if (icon_buf__selector == 1) { - icon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") - } - icon_buf = (icon_buf_ as string | Resource) - } - const icon_result: ResourceStr | undefined|undefined = icon_buf - const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined - if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf - const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let action_buf: (() => void) | undefined|undefined - if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) - { - action_buf = valueDeserializer.readCallback_Void() - } - const action_result: (() => void) | undefined|undefined = action_buf - const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let status_buf: ToolbarItemStatus | undefined|undefined - if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) - { - status_buf = (valueDeserializer.readInt32() as ToolbarItemStatus) - } - const status_result: ToolbarItemStatus | undefined|undefined = status_buf - const activeIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let activeIcon_buf: ResourceStr | undefined|undefined - if ((RuntimeType.UNDEFINED) != (activeIcon_buf_runtimeType)) - { - const activeIcon_buf__selector: number = valueDeserializer.readInt8() - let activeIcon_buf_: string | Resource | undefined|undefined - if (activeIcon_buf__selector == 0) { - activeIcon_buf_ = (valueDeserializer.readString() as string) - } - else if (activeIcon_buf__selector == 1) { - activeIcon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for activeIcon_buf_ has to be chosen through deserialisation.") - } - activeIcon_buf = (activeIcon_buf_ as string | Resource) - } - const activeIcon_result: ResourceStr | undefined|undefined = activeIcon_buf - const activeSymbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let activeSymbolIcon_buf: SymbolGlyphModifier | undefined|undefined - if ((RuntimeType.UNDEFINED) != (activeSymbolIcon_buf_runtimeType)) - { - activeSymbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const activeSymbolIcon_result: SymbolGlyphModifier | undefined|undefined = activeSymbolIcon_buf - let value: ToolbarItem = ({value: value_result,icon: icon_result,symbolIcon: symbolIcon_result,action: action_result,status: status_result,activeIcon: activeIcon_result,activeSymbolIcon: activeSymbolIcon_result} as ToolbarItem) - return value - } - readCallback_NavDestinationContext_Void(isSync: boolean = false): ((parameter: NavDestinationContext) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: NavDestinationContext): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeNavDestinationContext(parameter); (isSync) ? (nativeModule()._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } - } - readNavigationMenuItem(): NavigationMenuItem { - let valueDeserializer: Deserializer = this - const value_buf_selector: number = valueDeserializer.readInt8() - let value_buf: string | Resource | undefined|undefined - if (value_buf_selector == 0) { - value_buf = (valueDeserializer.readString() as string) - } - else if (value_buf_selector == 1) { - value_buf = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") - } - const value_result: string | Resource = (value_buf as string | Resource) - const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let icon_buf: string | Resource | undefined|undefined - if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) - { - const icon_buf__selector: number = valueDeserializer.readInt8() - let icon_buf_: string | Resource | undefined|undefined - if (icon_buf__selector == 0) { - icon_buf_ = (valueDeserializer.readString() as string) - } - else if (icon_buf__selector == 1) { - icon_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") - } - icon_buf = (icon_buf_ as string | Resource) - } - const icon_result: string | Resource | undefined|undefined = icon_buf - const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined - if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() - } - const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf - const isEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let isEnabled_buf: boolean | undefined|undefined - if ((RuntimeType.UNDEFINED) != (isEnabled_buf_runtimeType)) - { - isEnabled_buf = valueDeserializer.readBoolean() - } - const isEnabled_result: boolean | undefined|undefined = isEnabled_buf - const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let action_buf: (() => void) | undefined|undefined - if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) - { - action_buf = valueDeserializer.readCallback_Void() - } - const action_result: (() => void) | undefined|undefined = action_buf - let value: NavigationMenuItem = ({value: value_result,icon: icon_result,symbolIcon: symbolIcon_result,isEnabled: isEnabled_result,action: action_result} as NavigationMenuItem) - return value - } - readCallback_Boolean(isSync: boolean = false): (() => boolean) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (): boolean => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); let _continuationValue: boolean | undefined|undefined; const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; }; _argsSerializer.holdAndWriteCallback(_continuationCallback); (isSync) ? (nativeModule()._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return (_continuationValue as boolean); } - } - readPopInfo(): PopInfo { - let valueDeserializer: Deserializer = this - const info_result: NavPathInfo = valueDeserializer.readNavPathInfo() - const result_result: Object = (valueDeserializer.readCustomObject("Object") as Object) - let value: PopInfo = ({info: info_result,result: result_result} as PopInfo) - return value - } readMenuItemGroupOptions(): MenuItemGroupOptions { let valueDeserializer: Deserializer = this const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -16396,6 +15918,12 @@ export class Deserializer extends DeserializerBase { let value: GridColOptions = ({span: span_result,offset: offset_result,order: order_result} as GridColOptions) return value } + readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); _argsSerializer.writeInt32(_resource.resourceId); _argsSerializer.writePointer(_call); _argsSerializer.writePointer(_callSync); _argsSerializer.writeBoolean(parameter); (isSync) ? (nativeModule()._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (nativeModule()._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } + } readGridItemOptions(): GridItemOptions { let valueDeserializer: Deserializer = this const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) diff --git a/arkoala/arkui/src/peers/Serializer.ts b/arkoala/arkui/src/peers/Serializer.ts index 6c829983f..c7d94b92c 100644 --- a/arkoala/arkui/src/peers/Serializer.ts +++ b/arkoala/arkui/src/peers/Serializer.ts @@ -49,16 +49,11 @@ import { DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" import { PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { AttributeModifierInternal } from "./../ArkAttributeModifierMaterialized" import { ViewInternal } from "./../ArkViewMaterialized" import { TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" import { DynamicNodeInternal } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { AbstractPropertyInternal } from "./../ArkAbstractPropertyMaterialized" -import { IPropertySubscriberInternal } from "./../ArkIPropertySubscriberMaterialized" -import { ISinglePropertyChangeSubscriberInternal } from "./../ArkISinglePropertyChangeSubscriberMaterialized" -import { SubscribaleAbstractInternal } from "./../ArkSubscribaleAbstractMaterialized" import { ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" @@ -70,8 +65,6 @@ import { PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" import { ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ListScrollerInternal } from "./../ArkListScrollerMaterialized" import { Matrix2DInternal } from "./../ArkMatrix2DMaterialized" -import { NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" -import { NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" import { PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" import { RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" @@ -1471,37 +1464,6 @@ export class Serializer extends SerializerBase { ptr = peer.ptr valueSerializer.writePointer(ptr) } - writeNavPathStack(value: NavPathStack): void { - } - writeNavPathInfo(value: NavPathInfo): void { - let valueSerializer: Serializer = this - const value_name = value.name - valueSerializer.writeString(value_name) - const value_param = value.param - let value_param_type: int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Any", value_param_value) - } - const value_onPop = value.onPop - let value_onPop_type: int32 = RuntimeType.UNDEFINED - value_onPop_type = runtimeType(value_onPop) - valueSerializer.writeInt8(value_onPop_type) - if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { - const value_onPop_value = value_onPop! - valueSerializer.holdAndWriteCallback(value_onPop_value) - } - const value_isEntry = value.isEntry - let value_isEntry_type: int32 = RuntimeType.UNDEFINED - value_isEntry_type = runtimeType(value_isEntry) - valueSerializer.writeInt8(value_isEntry_type) - if ((RuntimeType.UNDEFINED) != (value_isEntry_type)) { - const value_isEntry_value = value_isEntry! - valueSerializer.writeBoolean(value_isEntry_value) - } - } writeColorMetrics(value: ColorMetrics): void { let valueSerializer: Serializer = this const value___ColorMetricsStub = value.__ColorMetricsStub @@ -2675,8 +2637,6 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(value_onLongPress_value) } } - writeTextModifier(value: TextModifier): void { - } writeSwipeActionItem(value: SwipeActionItem): void { let valueSerializer: Serializer = this const value_builder = value.builder @@ -3705,15 +3665,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_moduleName_value) } } - writeNavDestinationContext(value: NavDestinationContext): void { - let valueSerializer: Serializer = this - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeStyledString(value: StyledString): void { let valueSerializer: Serializer = this const base: MaterializedBase = unsafeCast(value) @@ -3723,72 +3674,6 @@ export class Serializer extends SerializerBase { ptr = peer.ptr valueSerializer.writePointer(ptr) } - writeNavigationAnimatedTransition(value: NavigationAnimatedTransition): void { - let valueSerializer: Serializer = this - const value_onTransitionEnd = value.onTransitionEnd - let value_onTransitionEnd_type: int32 = RuntimeType.UNDEFINED - value_onTransitionEnd_type = runtimeType(value_onTransitionEnd) - valueSerializer.writeInt8(value_onTransitionEnd_type) - if ((RuntimeType.UNDEFINED) != (value_onTransitionEnd_type)) { - const value_onTransitionEnd_value = value_onTransitionEnd! - valueSerializer.holdAndWriteCallback(value_onTransitionEnd_value) - } - const value_timeout = value.timeout - let value_timeout_type: int32 = RuntimeType.UNDEFINED - value_timeout_type = runtimeType(value_timeout) - valueSerializer.writeInt8(value_timeout_type) - if ((RuntimeType.UNDEFINED) != (value_timeout_type)) { - const value_timeout_value = value_timeout! - valueSerializer.writeNumber(value_timeout_value) - } - const value_isInteractive = value.isInteractive - let value_isInteractive_type: int32 = RuntimeType.UNDEFINED - value_isInteractive_type = runtimeType(value_isInteractive) - valueSerializer.writeInt8(value_isInteractive_type) - if ((RuntimeType.UNDEFINED) != (value_isInteractive_type)) { - const value_isInteractive_value = value_isInteractive! - valueSerializer.writeBoolean(value_isInteractive_value) - } - const value_transition = value.transition - valueSerializer.holdAndWriteCallback(value_transition) - } - writeNavContentInfo(value: NavContentInfo): void { - let valueSerializer: Serializer = this - const value_name = value.name - let value_name_type: int32 = RuntimeType.UNDEFINED - value_name_type = runtimeType(value_name) - valueSerializer.writeInt8(value_name_type) - if ((RuntimeType.UNDEFINED) != (value_name_type)) { - const value_name_value = value_name! - valueSerializer.writeString(value_name_value) - } - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_mode = value.mode - let value_mode_type: int32 = RuntimeType.UNDEFINED - value_mode_type = runtimeType(value_mode) - valueSerializer.writeInt8(value_mode_type) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = value_mode! - valueSerializer.writeInt32(value_mode_value) - } - const value_param = value.param - let value_param_type: int32 = RuntimeType.UNDEFINED - value_param_type = runtimeType(value_param) - valueSerializer.writeInt8(value_param_type) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Object", value_param_value) - } - const value_navDestinationId = value.navDestinationId - let value_navDestinationId_type: int32 = RuntimeType.UNDEFINED - value_navDestinationId_type = runtimeType(value_navDestinationId) - valueSerializer.writeInt8(value_navDestinationId_type) - if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { - const value_navDestinationId_value = value_navDestinationId! - valueSerializer.writeString(value_navDestinationId_value) - } - } writeLinearIndicatorStyle(value: LinearIndicatorStyle): void { let valueSerializer: Serializer = this const value_space = value.space @@ -7435,194 +7320,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value) } } - writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { - let valueSerializer: Serializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type: int32 = RuntimeType.UNDEFINED - value_backgroundColor_type = runtimeType(value_backgroundColor) - valueSerializer.writeInt8(value_backgroundColor_type) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type: int32 = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (((RuntimeType.NUMBER) == (value_backgroundColor_value_type)) && ((unsafeCast(value_backgroundColor_value)) >= (0)) && ((unsafeCast(value_backgroundColor_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeInt32(value_backgroundColor_value_0) - } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(1) - const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeNumber(value_backgroundColor_value_1) - } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(2) - const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeString(value_backgroundColor_value_2) - } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(3) - const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeResource(value_backgroundColor_value_3) - } - } - const value_backgroundBlurStyle = value.backgroundBlurStyle - let value_backgroundBlurStyle_type: int32 = RuntimeType.UNDEFINED - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle) - valueSerializer.writeInt8(value_backgroundBlurStyle_type) - if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { - const value_backgroundBlurStyle_value = value_backgroundBlurStyle! - valueSerializer.writeInt32(value_backgroundBlurStyle_value) - } - const value_barStyle = value.barStyle - let value_barStyle_type: int32 = RuntimeType.UNDEFINED - value_barStyle_type = runtimeType(value_barStyle) - valueSerializer.writeInt8(value_barStyle_type) - if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { - const value_barStyle_value = value_barStyle! - valueSerializer.writeInt32(value_barStyle_value) - } - } - writeNavigationTitleOptions(value: NavigationTitleOptions): void { - let valueSerializer: Serializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type: int32 = RuntimeType.UNDEFINED - value_backgroundColor_type = runtimeType(value_backgroundColor) - valueSerializer.writeInt8(value_backgroundColor_type) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type: int32 = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (((RuntimeType.NUMBER) == (value_backgroundColor_value_type)) && ((unsafeCast(value_backgroundColor_value)) >= (0)) && ((unsafeCast(value_backgroundColor_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeInt32(value_backgroundColor_value_0) - } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(1) - const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeNumber(value_backgroundColor_value_1) - } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(2) - const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeString(value_backgroundColor_value_2) - } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { - valueSerializer.writeInt8(3) - const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) - valueSerializer.writeResource(value_backgroundColor_value_3) - } - } - const value_backgroundBlurStyle = value.backgroundBlurStyle - let value_backgroundBlurStyle_type: int32 = RuntimeType.UNDEFINED - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle) - valueSerializer.writeInt8(value_backgroundBlurStyle_type) - if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { - const value_backgroundBlurStyle_value = value_backgroundBlurStyle! - valueSerializer.writeInt32(value_backgroundBlurStyle_value) - } - const value_barStyle = value.barStyle - let value_barStyle_type: int32 = RuntimeType.UNDEFINED - value_barStyle_type = runtimeType(value_barStyle) - valueSerializer.writeInt8(value_barStyle_type) - if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { - const value_barStyle_value = value_barStyle! - valueSerializer.writeInt32(value_barStyle_value) - } - const value_paddingStart = value.paddingStart - let value_paddingStart_type: int32 = RuntimeType.UNDEFINED - value_paddingStart_type = runtimeType(value_paddingStart) - valueSerializer.writeInt8(value_paddingStart_type) - if ((RuntimeType.UNDEFINED) != (value_paddingStart_type)) { - const value_paddingStart_value = value_paddingStart! - valueSerializer.writeLengthMetrics(value_paddingStart_value) - } - const value_paddingEnd = value.paddingEnd - let value_paddingEnd_type: int32 = RuntimeType.UNDEFINED - value_paddingEnd_type = runtimeType(value_paddingEnd) - valueSerializer.writeInt8(value_paddingEnd_type) - if ((RuntimeType.UNDEFINED) != (value_paddingEnd_type)) { - const value_paddingEnd_value = value_paddingEnd! - valueSerializer.writeLengthMetrics(value_paddingEnd_value) - } - const value_mainTitleModifier = value.mainTitleModifier - let value_mainTitleModifier_type: int32 = RuntimeType.UNDEFINED - value_mainTitleModifier_type = runtimeType(value_mainTitleModifier) - valueSerializer.writeInt8(value_mainTitleModifier_type) - if ((RuntimeType.UNDEFINED) != (value_mainTitleModifier_type)) { - const value_mainTitleModifier_value = value_mainTitleModifier! - valueSerializer.writeTextModifier(value_mainTitleModifier_value) - } - const value_subTitleModifier = value.subTitleModifier - let value_subTitleModifier_type: int32 = RuntimeType.UNDEFINED - value_subTitleModifier_type = runtimeType(value_subTitleModifier) - valueSerializer.writeInt8(value_subTitleModifier_type) - if ((RuntimeType.UNDEFINED) != (value_subTitleModifier_type)) { - const value_subTitleModifier_value = value_subTitleModifier! - valueSerializer.writeTextModifier(value_subTitleModifier_value) - } - const value_enableHoverMode = value.enableHoverMode - let value_enableHoverMode_type: int32 = RuntimeType.UNDEFINED - value_enableHoverMode_type = runtimeType(value_enableHoverMode) - valueSerializer.writeInt8(value_enableHoverMode_type) - if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { - const value_enableHoverMode_value = value_enableHoverMode! - valueSerializer.writeBoolean(value_enableHoverMode_value) - } - } - writeNavDestinationCustomTitle(value: NavDestinationCustomTitle): void { - let valueSerializer: Serializer = this - const value_builder = value.builder - valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_builder)) - const value_height = value.height - let value_height_type: int32 = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - if (((RuntimeType.NUMBER) == (value_height_type)) && ((unsafeCast(value_height)) >= (0)) && ((unsafeCast(value_height)) <= (1))) { - valueSerializer.writeInt8(0) - const value_height_0 = unsafeCast(value_height) - valueSerializer.writeInt32(value_height_0) - } - else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { - valueSerializer.writeInt8(1) - const value_height_1 = unsafeCast(value_height) - valueSerializer.writeLength(value_height_1) - } - } - writeNavDestinationCommonTitle(value: NavDestinationCommonTitle): void { - let valueSerializer: Serializer = this - const value_main = value.main - let value_main_type: int32 = RuntimeType.UNDEFINED - value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { - valueSerializer.writeInt8(0) - const value_main_0 = unsafeCast(value_main) - valueSerializer.writeString(value_main_0) - } - else if (((RuntimeType.OBJECT == value_main_type))) { - valueSerializer.writeInt8(1) - const value_main_1 = unsafeCast(value_main) - valueSerializer.writeResource(value_main_1) - } - const value_sub = value.sub - let value_sub_type: int32 = RuntimeType.UNDEFINED - value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { - valueSerializer.writeInt8(0) - const value_sub_0 = unsafeCast(value_sub) - valueSerializer.writeString(value_sub_0) - } - else if (((RuntimeType.OBJECT == value_sub_type))) { - valueSerializer.writeInt8(1) - const value_sub_1 = unsafeCast(value_sub) - valueSerializer.writeResource(value_sub_1) - } - } - writeSystemBarStyle(value: SystemBarStyle): void { - let valueSerializer: Serializer = this - const value___SystemBarStyleStub = value.__SystemBarStyleStub - valueSerializer.writeString(value___SystemBarStyleStub) - } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer: Serializer = this const value_startIcon = value.startIcon @@ -8301,15 +7998,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } - writeIPropertySubscriber(value: IPropertySubscriber): void { - let valueSerializer: Serializer = this - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeUIGestureEvent(value: UIGestureEvent): void { } writeFadingEdgeOptions(value: FadingEdgeOptions): void { @@ -13347,15 +13035,6 @@ export class Serializer extends SerializerBase { } writeWithThemeAttribute(value: WithThemeAttribute): void { } - writeNavigationTransitionProxy(value: NavigationTransitionProxy): void { - let valueSerializer: Serializer = this - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - } writeIsolatedComponentAttribute(value: IsolatedComponentAttribute): void { } writeLinearIndicatorController(value: LinearIndicatorController): void { @@ -16402,158 +16081,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeCustomObject("Any", value_param_value) } } - writeToolbarItem(value: ToolbarItem): void { - let valueSerializer: Serializer = this - const value_value = value.value - let value_value_type: int32 = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0) - const value_value_0 = unsafeCast(value_value) - valueSerializer.writeString(value_value_0) - } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1) - const value_value_1 = unsafeCast(value_value) - valueSerializer.writeResource(value_value_1) - } - const value_icon = value.icon - let value_icon_type: int32 = RuntimeType.UNDEFINED - value_icon_type = runtimeType(value_icon) - valueSerializer.writeInt8(value_icon_type) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type: int32 = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0) - const value_icon_value_0 = unsafeCast(value_icon_value) - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1) - const value_icon_value_1 = unsafeCast(value_icon_value) - valueSerializer.writeResource(value_icon_value_1) - } - } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type: int32 = RuntimeType.UNDEFINED - value_symbolIcon_type = runtimeType(value_symbolIcon) - valueSerializer.writeInt8(value_symbolIcon_type) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value) - } - const value_action = value.action - let value_action_type: int32 = RuntimeType.UNDEFINED - value_action_type = runtimeType(value_action) - valueSerializer.writeInt8(value_action_type) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.holdAndWriteCallback(value_action_value) - } - const value_status = value.status - let value_status_type: int32 = RuntimeType.UNDEFINED - value_status_type = runtimeType(value_status) - valueSerializer.writeInt8(value_status_type) - if ((RuntimeType.UNDEFINED) != (value_status_type)) { - const value_status_value = value_status! - valueSerializer.writeInt32(value_status_value) - } - const value_activeIcon = value.activeIcon - let value_activeIcon_type: int32 = RuntimeType.UNDEFINED - value_activeIcon_type = runtimeType(value_activeIcon) - valueSerializer.writeInt8(value_activeIcon_type) - if ((RuntimeType.UNDEFINED) != (value_activeIcon_type)) { - const value_activeIcon_value = value_activeIcon! - let value_activeIcon_value_type: int32 = RuntimeType.UNDEFINED - value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { - valueSerializer.writeInt8(0) - const value_activeIcon_value_0 = unsafeCast(value_activeIcon_value) - valueSerializer.writeString(value_activeIcon_value_0) - } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { - valueSerializer.writeInt8(1) - const value_activeIcon_value_1 = unsafeCast(value_activeIcon_value) - valueSerializer.writeResource(value_activeIcon_value_1) - } - } - const value_activeSymbolIcon = value.activeSymbolIcon - let value_activeSymbolIcon_type: int32 = RuntimeType.UNDEFINED - value_activeSymbolIcon_type = runtimeType(value_activeSymbolIcon) - valueSerializer.writeInt8(value_activeSymbolIcon_type) - if ((RuntimeType.UNDEFINED) != (value_activeSymbolIcon_type)) { - const value_activeSymbolIcon_value = value_activeSymbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_activeSymbolIcon_value) - } - } - writeNavigationMenuItem(value: NavigationMenuItem): void { - let valueSerializer: Serializer = this - const value_value = value.value - let value_value_type: int32 = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0) - const value_value_0 = unsafeCast(value_value) - valueSerializer.writeString(value_value_0) - } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1) - const value_value_1 = unsafeCast(value_value) - valueSerializer.writeResource(value_value_1) - } - const value_icon = value.icon - let value_icon_type: int32 = RuntimeType.UNDEFINED - value_icon_type = runtimeType(value_icon) - valueSerializer.writeInt8(value_icon_type) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type: int32 = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0) - const value_icon_value_0 = unsafeCast(value_icon_value) - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1) - const value_icon_value_1 = unsafeCast(value_icon_value) - valueSerializer.writeResource(value_icon_value_1) - } - } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type: int32 = RuntimeType.UNDEFINED - value_symbolIcon_type = runtimeType(value_symbolIcon) - valueSerializer.writeInt8(value_symbolIcon_type) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value) - } - const value_isEnabled = value.isEnabled - let value_isEnabled_type: int32 = RuntimeType.UNDEFINED - value_isEnabled_type = runtimeType(value_isEnabled) - valueSerializer.writeInt8(value_isEnabled_type) - if ((RuntimeType.UNDEFINED) != (value_isEnabled_type)) { - const value_isEnabled_value = value_isEnabled! - valueSerializer.writeBoolean(value_isEnabled_value) - } - const value_action = value.action - let value_action_type: int32 = RuntimeType.UNDEFINED - value_action_type = runtimeType(value_action) - valueSerializer.writeInt8(value_action_type) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.holdAndWriteCallback(value_action_value) - } - } - writePopInfo(value: PopInfo): void { - let valueSerializer: Serializer = this - const value_info = value.info - valueSerializer.writeNavPathInfo(value_info) - const value_result = value.result - valueSerializer.writeCustomObject("Object", value_result) - } writeMenuItemGroupOptions(value: MenuItemGroupOptions): void { let valueSerializer: Serializer = this const value_header = value.header diff --git a/arkoala/arkui/src/peers/SerializerBase.ts b/arkoala/arkui/src/peers/SerializerBase.ts index 31a1803a5..789effd4b 100644 --- a/arkoala/arkui/src/peers/SerializerBase.ts +++ b/arkoala/arkui/src/peers/SerializerBase.ts @@ -63,12 +63,16 @@ export function runtimeType(value: any): int32 { throw new Error(`bug: ${value} is ${type}`) } -export function isResource(value: Object): value is Resource { - return value.hasOwnProperty("bundleName") && value.hasOwnProperty("moduleName") +export function isResource(value: unknown): value is Resource { + return value !== undefined + && typeof value === 'object' + && value !== null + && value.hasOwnProperty("bundleName") + && value.hasOwnProperty("moduleName") } // Poor man's instanceof, fails on subclasses -export function isInstanceOf(className: string, value: Object | undefined): boolean { +export function isInstanceOf(className: string, value: object | undefined): boolean { return value?.constructor.name === className } diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index ce7d2ed5e..5075061ee 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -1828,55 +1828,6 @@ inline Ark_RuntimeType runtimeType(const Opt_SheetSize& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_PopInfo_Void& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_PopInfo_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_PopInfo_Void* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_PopInfo_Void& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline void WriteToString(std::string* result, const Opt_CustomObject* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_CustomObject& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_BackgroundColorStyle& value) { return ARK_RUNTIME_OBJECT; @@ -3681,35 +3632,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_CustomObject& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TitleHeight& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_TitleHeight value) { - result->append("Ark_TitleHeight("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TitleHeight* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TitleHeight& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Callback_SwipeActionState_Void& value) { return ARK_RUNTIME_OBJECT; @@ -4211,6 +4133,24 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_SheetSize_Length& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> +inline void WriteToString(std::string* result, const Opt_CustomObject* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != ARK_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CustomObject& value) +{ + return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); +} +template <> inline void WriteToString(std::string* result, const Opt_TransitionEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); @@ -4595,168 +4535,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Map_String_CustomObject& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavPathStack& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavPathStack* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavPathStack* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavPathStack& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavPathInfo& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavPathInfo* value) { - result->append("{"); - // Ark_String name - result->append(".name="); - WriteToString(result, &value->name); - // Ark_CustomObject param - result->append(", "); - result->append(".param="); - WriteToString(result, &value->param); - // Callback_PopInfo_Void onPop - result->append(", "); - result->append(".onPop="); - WriteToString(result, &value->onPop); - // Ark_Boolean isEntry - result->append(", "); - result->append(".isEntry="); - WriteToString(result, &value->isEntry); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavPathInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavPathInfo& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Callback_NavigationTransitionProxy_Void& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_NavigationTransitionProxy_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_NavigationTransitionProxy_Void* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_NavigationTransitionProxy_Void& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Callback_Boolean_Void& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_Boolean_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_Boolean_Void* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean_Void& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavDestinationMode& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavDestinationMode value) { - result->append("Ark_NavDestinationMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationMode* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavDestinationMode& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ColorMetrics& value) { return ARK_RUNTIME_OBJECT; @@ -7792,108 +7570,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Resource& value return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_BarStyle& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_BarStyle value) { - result->append("Ark_BarStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_BarStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_BarStyle& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_TextModifier& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_TextModifier* value) { - result->append("{"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_TextModifier* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_TextModifier& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_TitleHeight_Length& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_TitleHeight_Length: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_TitleHeight_Length* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_TitleHeight - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, value->value0); - } - // Ark_Length - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_TitleHeight_Length* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_TitleHeight_Length& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_SwipeActionItem& value) { return ARK_RUNTIME_OBJECT; @@ -10939,24 +10615,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Want& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationContext* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavDestinationContext& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline void WriteToString(std::string* result, const Opt_StyledString* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); @@ -10975,96 +10633,6 @@ inline Ark_RuntimeType runtimeType(const Opt_StyledString& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationAnimatedTransition& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationAnimatedTransition* value) { - result->append("{"); - // Callback_Boolean_Void onTransitionEnd - result->append(".onTransitionEnd="); - WriteToString(result, &value->onTransitionEnd); - // Ark_Number timeout - result->append(", "); - result->append(".timeout="); - WriteToString(result, &value->timeout); - // Ark_Boolean isInteractive - result->append(", "); - result->append(".isInteractive="); - WriteToString(result, &value->isInteractive); - // Callback_NavigationTransitionProxy_Void transition - result->append(", "); - result->append(".transition="); - WriteToString(result, &value->transition); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationAnimatedTransition* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationAnimatedTransition& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavContentInfo& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavContentInfo* value) { - result->append("{"); - // Ark_String name - result->append(".name="); - WriteToString(result, &value->name); - // Ark_Number index - result->append(", "); - result->append(".index="); - WriteToString(result, &value->index); - // Ark_NavDestinationMode mode - result->append(", "); - result->append(".mode="); - WriteToString(result, &value->mode); - // Ark_CustomObject param - result->append(", "); - result->append(".param="); - WriteToString(result, &value->param); - // Ark_String navDestinationId - result->append(", "); - result->append(".navDestinationId="); - WriteToString(result, &value->navDestinationId); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavContentInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavContentInfo& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const OnLinearIndicatorChangeCallback& value) { return ARK_RUNTIME_OBJECT; @@ -17238,312 +16806,6 @@ inline Ark_RuntimeType runtimeType(const Opt_NavigationType& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationToolbarOptions& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationToolbarOptions* value) { - result->append("{"); - // Ark_ResourceColor backgroundColor - result->append(".backgroundColor="); - WriteToString(result, &value->backgroundColor); - // Ark_BlurStyle backgroundBlurStyle - result->append(", "); - result->append(".backgroundBlurStyle="); - WriteToString(result, &value->backgroundBlurStyle); - // Ark_BarStyle barStyle - result->append(", "); - result->append(".barStyle="); - WriteToString(result, &value->barStyle); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationToolbarOptions* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationToolbarOptions& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ToolbarItemStatus& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ToolbarItemStatus value) { - result->append("Ark_ToolbarItemStatus("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ToolbarItemStatus* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ToolbarItemStatus& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_ToolbarItem& value) -{ - return ARK_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_ToolbarItem* value); - -inline void WriteToString(std::string* result, const Array_ToolbarItem* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_ToolbarItem*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_ToolbarItem* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_ToolbarItem& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationTitleOptions& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationTitleOptions* value) { - result->append("{"); - // Ark_ResourceColor backgroundColor - result->append(".backgroundColor="); - WriteToString(result, &value->backgroundColor); - // Ark_BlurStyle backgroundBlurStyle - result->append(", "); - result->append(".backgroundBlurStyle="); - WriteToString(result, &value->backgroundBlurStyle); - // Ark_BarStyle barStyle - result->append(", "); - result->append(".barStyle="); - WriteToString(result, &value->barStyle); - // Ark_LengthMetrics paddingStart - result->append(", "); - result->append(".paddingStart="); - WriteToString(result, &value->paddingStart); - // Ark_LengthMetrics paddingEnd - result->append(", "); - result->append(".paddingEnd="); - WriteToString(result, &value->paddingEnd); - // Ark_TextModifier mainTitleModifier - result->append(", "); - result->append(".mainTitleModifier="); - WriteToString(result, &value->mainTitleModifier); - // Ark_TextModifier subTitleModifier - result->append(", "); - result->append(".subTitleModifier="); - WriteToString(result, &value->subTitleModifier); - // Ark_Boolean enableHoverMode - result->append(", "); - result->append(".enableHoverMode="); - WriteToString(result, &value->enableHoverMode); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationTitleOptions* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationTitleOptions& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavDestinationCustomTitle& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavDestinationCustomTitle* value) { - result->append("{"); - // CustomNodeBuilder builder - result->append(".builder="); - WriteToString(result, &value->builder); - // Ark_Union_TitleHeight_Length height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationCustomTitle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavDestinationCustomTitle& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavDestinationCommonTitle& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavDestinationCommonTitle* value) { - result->append("{"); - // Ark_Union_String_Resource main - result->append(".main="); - WriteToString(result, &value->main); - // Ark_Union_String_Resource sub - result->append(", "); - result->append(".sub="); - WriteToString(result, &value->sub); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavDestinationCommonTitle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavDestinationCommonTitle& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_SystemBarStyle& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_SystemBarStyle* value) { - result->append("{"); - // Ark_String __SystemBarStyleStub - result->append(".__SystemBarStyleStub="); - WriteToString(result, &value->__SystemBarStyleStub); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_SystemBarStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_SystemBarStyle& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_NavigationMenuItem& value) -{ - return ARK_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_NavigationMenuItem* value); - -inline void WriteToString(std::string* result, const Array_NavigationMenuItem* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_NavigationMenuItem*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_NavigationMenuItem* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_NavigationMenuItem& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_CustomBuilder& value) { switch (value.selector) { @@ -19587,24 +18849,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceStr_Scene& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_IPropertySubscriber* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_IPropertySubscriber& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) { return ARK_RUNTIME_NUMBER; @@ -24284,37 +23528,6 @@ inline Ark_RuntimeType runtimeType(const Opt_WithThemeInterface& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Type_NavigationAttribute_customNavContentTransition_delegate& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Type_NavigationAttribute_customNavContentTransition_delegate* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Type_NavigationAttribute_customNavContentTransition_delegate* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Type_NavigationAttribute_customNavContentTransition_delegate& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const SliderTriggerChangeCallback& value) { return ARK_RUNTIME_OBJECT; @@ -24534,111 +23747,6 @@ inline Ark_RuntimeType runtimeType(const Opt_IsolatedComponentInterface& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationOperation& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationOperation value) { - result->append("Ark_NavigationOperation("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationOperation* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationOperation& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_NavDestinationContext_NavBar& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_NavDestinationContext_NavBar: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_NavDestinationContext_NavBar* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_NavDestinationContext - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_String - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_NavDestinationContext_NavBar* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_NavDestinationContext_NavBar& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const InterceptionShowCallback& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const InterceptionShowCallback* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_InterceptionShowCallback* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_InterceptionShowCallback& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const InterceptionModeCallback& value) { return ARK_RUNTIME_OBJECT; @@ -25101,37 +24209,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Opt_StyledString_Opt_Array return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_Opt_NavigationAnimatedTransition_Void& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_Opt_NavigationAnimatedTransition_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_Opt_NavigationAnimatedTransition_Void* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_Opt_NavigationAnimatedTransition_Void& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Callback_Opt_Array_String_Void& value) { return ARK_RUNTIME_OBJECT; @@ -25225,24 +24302,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_OffsetResult_Void& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline void WriteToString(std::string* result, const Opt_NavigationTransitionProxy* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationTransitionProxy& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationTitleMode& value) { return ARK_RUNTIME_NUMBER; @@ -25608,6 +24667,37 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Callback_Any_Void& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Callback_Boolean& value) +{ + return ARK_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Callback_Boolean* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Callback_Boolean* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != ARK_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean& value) +{ + return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Callback_Array_String_Void& value) { return ARK_RUNTIME_OBJECT; @@ -37028,574 +36118,6 @@ inline Ark_RuntimeType runtimeType(const Opt_RouteInfo& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LayoutSafeAreaEdge& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_LayoutSafeAreaEdge value) { - result->append("Ark_LayoutSafeAreaEdge("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_LayoutSafeAreaEdge* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_LayoutSafeAreaEdge& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_LayoutSafeAreaEdge& value) -{ - return ARK_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_LayoutSafeAreaEdge value); - -inline void WriteToString(std::string* result, const Array_LayoutSafeAreaEdge* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_LayoutSafeAreaEdge* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_LayoutSafeAreaEdge& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_LayoutSafeAreaType& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_LayoutSafeAreaType value) { - result->append("Ark_LayoutSafeAreaType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_LayoutSafeAreaType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_LayoutSafeAreaType& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Array_LayoutSafeAreaType& value) -{ - return ARK_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_LayoutSafeAreaType value); - -inline void WriteToString(std::string* result, const Array_LayoutSafeAreaType* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_LayoutSafeAreaType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_LayoutSafeAreaType& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ToolbarItem& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_ToolbarItem* value) { - result->append("{"); - // Ark_ResourceStr value - result->append(".value="); - WriteToString(result, &value->value); - // Ark_ResourceStr icon - result->append(", "); - result->append(".icon="); - WriteToString(result, &value->icon); - // Ark_SymbolGlyphModifier symbolIcon - result->append(", "); - result->append(".symbolIcon="); - WriteToString(result, &value->symbolIcon); - // Callback_Void action - result->append(", "); - result->append(".action="); - WriteToString(result, &value->action); - // Ark_ToolbarItemStatus status - result->append(", "); - result->append(".status="); - WriteToString(result, &value->status); - // Ark_ResourceStr activeIcon - result->append(", "); - result->append(".activeIcon="); - WriteToString(result, &value->activeIcon); - // Ark_SymbolGlyphModifier activeSymbolIcon - result->append(", "); - result->append(".activeSymbolIcon="); - WriteToString(result, &value->activeSymbolIcon); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ToolbarItem* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_ToolbarItem& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Array_ToolbarItem_CustomBuilder& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_ToolbarItem_CustomBuilder: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_Array_ToolbarItem_CustomBuilder* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Array_ToolbarItem - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // CustomNodeBuilder - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_Array_ToolbarItem_CustomBuilder* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Array_ToolbarItem_CustomBuilder& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Type_NavDestinationAttribute_title_value& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - case 3: return runtimeType(value.value3); - case 4: return runtimeType(value.value4); - default: throw "Bad selector in Ark_Type_NavDestinationAttribute_title_value: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Type_NavDestinationAttribute_title_value* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_String - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // CustomNodeBuilder - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_NavDestinationCommonTitle - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - // Ark_NavDestinationCustomTitle - if (value->selector == 3) { - result->append(".value3="); - WriteToString(result, &value->value3); - } - // Ark_Resource - if (value->selector == 4) { - result->append(".value4="); - WriteToString(result, &value->value4); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Type_NavDestinationAttribute_title_value* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Type_NavDestinationAttribute_title_value& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationSystemTransitionType& value) -{ - return ARK_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationSystemTransitionType value) { - result->append("Ark_NavigationSystemTransitionType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationSystemTransitionType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationSystemTransitionType& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Callback_NavDestinationContext_Void& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_NavDestinationContext_Void* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_NavDestinationContext_Void* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_NavDestinationContext_Void& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_NavigationMenuItem& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_NavigationMenuItem* value) { - result->append("{"); - // Ark_Union_String_Resource value - result->append(".value="); - WriteToString(result, &value->value); - // Ark_Union_String_Resource icon - result->append(", "); - result->append(".icon="); - WriteToString(result, &value->icon); - // Ark_SymbolGlyphModifier symbolIcon - result->append(", "); - result->append(".symbolIcon="); - WriteToString(result, &value->symbolIcon); - // Ark_Boolean isEnabled - result->append(", "); - result->append(".isEnabled="); - WriteToString(result, &value->isEnabled); - // Callback_Void action - result->append(", "); - result->append(".action="); - WriteToString(result, &value->action); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_NavigationMenuItem* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_NavigationMenuItem& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_Array_NavigationMenuItem_CustomBuilder& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - default: throw "Bad selector in Ark_Union_Array_NavigationMenuItem_CustomBuilder: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_Array_NavigationMenuItem_CustomBuilder* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Array_NavigationMenuItem - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // CustomNodeBuilder - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_Array_NavigationMenuItem_CustomBuilder* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_Array_NavigationMenuItem_CustomBuilder& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier& value) -{ - switch (value.selector) { - case 0: return runtimeType(value.value0); - case 1: return runtimeType(value.value1); - case 2: return runtimeType(value.value2); - default: throw "Bad selector in Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier: " + std::to_string(value.selector); - } -} -template <> -inline void WriteToString(std::string* result, const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier* value) { - result->append("{"); - result->append(".selector="); - result->append(std::to_string(value->selector)); - result->append(", "); - // Ark_ResourceStr - if (value->selector == 0) { - result->append(".value0="); - WriteToString(result, &value->value0); - } - // Ark_PixelMap - if (value->selector == 1) { - result->append(".value1="); - WriteToString(result, &value->value1); - } - // Ark_SymbolGlyphModifier - if (value->selector == 2) { - result->append(".value2="); - WriteToString(result, &value->value2); - } - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Callback_Boolean& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Callback_Boolean* value) { - result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Callback_Boolean* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_PopInfo& value) -{ - return ARK_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PopInfo* value) { - result->append("{"); - // Ark_NavPathInfo info - result->append(".info="); - WriteToString(result, &value->info); - // Ark_CustomObject result - result->append(", "); - result->append(".result="); - WriteToString(result, &value->result); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PopInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != ARK_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PopInfo& value) -{ - return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_MenuItemGroupOptions& value) { return ARK_RUNTIME_OBJECT; @@ -39539,6 +38061,37 @@ inline Ark_RuntimeType runtimeType(const Opt_GridColOptions& value) return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Callback_Boolean_Void& value) +{ + return ARK_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Callback_Boolean_Void* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Callback_Boolean_Void* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != ARK_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Callback_Boolean_Void& value) +{ + return (value.tag != ARK_TAG_UNDEFINED) ? (ARK_RUNTIME_OBJECT) : (ARK_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_GridItemOptions& value) { return ARK_RUNTIME_OBJECT; @@ -48912,41 +47465,6 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value.ptr); } - void writeNavPathStack(Ark_NavPathStack value) - { - } - void writeNavPathInfo(Ark_NavPathInfo value) - { - Serializer& valueSerializer = *this; - const auto value_name = value.name; - valueSerializer.writeString(value_name); - const auto value_param = value.param; - Ark_Int32 value_param_type = ARK_RUNTIME_UNDEFINED; - value_param_type = runtimeType(value_param); - valueSerializer.writeInt8(value_param_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_param_type)) { - const auto value_param_value = value_param.value; - valueSerializer.writeCustomObject("Any", value_param_value); - } - const auto value_onPop = value.onPop; - Ark_Int32 value_onPop_type = ARK_RUNTIME_UNDEFINED; - value_onPop_type = runtimeType(value_onPop); - valueSerializer.writeInt8(value_onPop_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_onPop_type)) { - const auto value_onPop_value = value_onPop.value; - valueSerializer.writeCallbackResource(value_onPop_value.resource); - valueSerializer.writePointer(reinterpret_cast(value_onPop_value.call)); - valueSerializer.writePointer(reinterpret_cast(value_onPop_value.callSync)); - } - const auto value_isEntry = value.isEntry; - Ark_Int32 value_isEntry_type = ARK_RUNTIME_UNDEFINED; - value_isEntry_type = runtimeType(value_isEntry); - valueSerializer.writeInt8(value_isEntry_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_isEntry_type)) { - const auto value_isEntry_value = value_isEntry.value; - valueSerializer.writeBoolean(value_isEntry_value); - } - } void writeColorMetrics(Ark_ColorMetrics value) { Serializer& valueSerializer = *this; @@ -50133,9 +48651,6 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_onLongPress_value.callSync)); } } - void writeTextModifier(Ark_TextModifier value) - { - } void writeSwipeActionItem(Ark_SwipeActionItem value) { Serializer& valueSerializer = *this; @@ -51197,88 +49712,11 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_moduleName_value); } } - void writeNavDestinationContext(Ark_NavDestinationContext value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } void writeStyledString(Ark_StyledString value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value.ptr); } - void writeNavigationAnimatedTransition(Ark_NavigationAnimatedTransition value) - { - Serializer& valueSerializer = *this; - const auto value_onTransitionEnd = value.onTransitionEnd; - Ark_Int32 value_onTransitionEnd_type = ARK_RUNTIME_UNDEFINED; - value_onTransitionEnd_type = runtimeType(value_onTransitionEnd); - valueSerializer.writeInt8(value_onTransitionEnd_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_onTransitionEnd_type)) { - const auto value_onTransitionEnd_value = value_onTransitionEnd.value; - valueSerializer.writeCallbackResource(value_onTransitionEnd_value.resource); - valueSerializer.writePointer(reinterpret_cast(value_onTransitionEnd_value.call)); - valueSerializer.writePointer(reinterpret_cast(value_onTransitionEnd_value.callSync)); - } - const auto value_timeout = value.timeout; - Ark_Int32 value_timeout_type = ARK_RUNTIME_UNDEFINED; - value_timeout_type = runtimeType(value_timeout); - valueSerializer.writeInt8(value_timeout_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_timeout_type)) { - const auto value_timeout_value = value_timeout.value; - valueSerializer.writeNumber(value_timeout_value); - } - const auto value_isInteractive = value.isInteractive; - Ark_Int32 value_isInteractive_type = ARK_RUNTIME_UNDEFINED; - value_isInteractive_type = runtimeType(value_isInteractive); - valueSerializer.writeInt8(value_isInteractive_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_isInteractive_type)) { - const auto value_isInteractive_value = value_isInteractive.value; - valueSerializer.writeBoolean(value_isInteractive_value); - } - const auto value_transition = value.transition; - valueSerializer.writeCallbackResource(value_transition.resource); - valueSerializer.writePointer(reinterpret_cast(value_transition.call)); - valueSerializer.writePointer(reinterpret_cast(value_transition.callSync)); - } - void writeNavContentInfo(Ark_NavContentInfo value) - { - Serializer& valueSerializer = *this; - const auto value_name = value.name; - Ark_Int32 value_name_type = ARK_RUNTIME_UNDEFINED; - value_name_type = runtimeType(value_name); - valueSerializer.writeInt8(value_name_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_name_type)) { - const auto value_name_value = value_name.value; - valueSerializer.writeString(value_name_value); - } - const auto value_index = value.index; - valueSerializer.writeNumber(value_index); - const auto value_mode = value.mode; - Ark_Int32 value_mode_type = ARK_RUNTIME_UNDEFINED; - value_mode_type = runtimeType(value_mode); - valueSerializer.writeInt8(value_mode_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_mode_type)) { - const auto value_mode_value = value_mode.value; - valueSerializer.writeInt32(value_mode_value); - } - const auto value_param = value.param; - Ark_Int32 value_param_type = ARK_RUNTIME_UNDEFINED; - value_param_type = runtimeType(value_param); - valueSerializer.writeInt8(value_param_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_param_type)) { - const auto value_param_value = value_param.value; - valueSerializer.writeCustomObject("Object", value_param_value); - } - const auto value_navDestinationId = value.navDestinationId; - Ark_Int32 value_navDestinationId_type = ARK_RUNTIME_UNDEFINED; - value_navDestinationId_type = runtimeType(value_navDestinationId); - valueSerializer.writeInt8(value_navDestinationId_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_navDestinationId_type)) { - const auto value_navDestinationId_value = value_navDestinationId.value; - valueSerializer.writeString(value_navDestinationId_value); - } - } void writeLinearIndicatorStyle(Ark_LinearIndicatorStyle value) { Serializer& valueSerializer = *this; @@ -54923,201 +53361,6 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_enableWaveEffect_value); } } - void writeNavigationToolbarOptions(Ark_NavigationToolbarOptions value) - { - Serializer& valueSerializer = *this; - const auto value_backgroundColor = value.backgroundColor; - Ark_Int32 value_backgroundColor_type = ARK_RUNTIME_UNDEFINED; - value_backgroundColor_type = runtimeType(value_backgroundColor); - valueSerializer.writeInt8(value_backgroundColor_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_backgroundColor_type)) { - const auto value_backgroundColor_value = value_backgroundColor.value; - Ark_Int32 value_backgroundColor_value_type = ARK_RUNTIME_UNDEFINED; - value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; - valueSerializer.writeInt32(value_backgroundColor_value_0); - } - else if (((value_backgroundColor_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; - valueSerializer.writeNumber(value_backgroundColor_value_1); - } - else if (((value_backgroundColor_value_type == 2))) { - valueSerializer.writeInt8(2); - const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; - valueSerializer.writeString(value_backgroundColor_value_2); - } - else if (((value_backgroundColor_value_type == 3))) { - valueSerializer.writeInt8(3); - const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; - valueSerializer.writeResource(value_backgroundColor_value_3); - } - } - const auto value_backgroundBlurStyle = value.backgroundBlurStyle; - Ark_Int32 value_backgroundBlurStyle_type = ARK_RUNTIME_UNDEFINED; - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle); - valueSerializer.writeInt8(value_backgroundBlurStyle_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_backgroundBlurStyle_type)) { - const auto value_backgroundBlurStyle_value = value_backgroundBlurStyle.value; - valueSerializer.writeInt32(value_backgroundBlurStyle_value); - } - const auto value_barStyle = value.barStyle; - Ark_Int32 value_barStyle_type = ARK_RUNTIME_UNDEFINED; - value_barStyle_type = runtimeType(value_barStyle); - valueSerializer.writeInt8(value_barStyle_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_barStyle_type)) { - const auto value_barStyle_value = value_barStyle.value; - valueSerializer.writeInt32(value_barStyle_value); - } - } - void writeNavigationTitleOptions(Ark_NavigationTitleOptions value) - { - Serializer& valueSerializer = *this; - const auto value_backgroundColor = value.backgroundColor; - Ark_Int32 value_backgroundColor_type = ARK_RUNTIME_UNDEFINED; - value_backgroundColor_type = runtimeType(value_backgroundColor); - valueSerializer.writeInt8(value_backgroundColor_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_backgroundColor_type)) { - const auto value_backgroundColor_value = value_backgroundColor.value; - Ark_Int32 value_backgroundColor_value_type = ARK_RUNTIME_UNDEFINED; - value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; - valueSerializer.writeInt32(value_backgroundColor_value_0); - } - else if (((value_backgroundColor_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; - valueSerializer.writeNumber(value_backgroundColor_value_1); - } - else if (((value_backgroundColor_value_type == 2))) { - valueSerializer.writeInt8(2); - const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; - valueSerializer.writeString(value_backgroundColor_value_2); - } - else if (((value_backgroundColor_value_type == 3))) { - valueSerializer.writeInt8(3); - const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; - valueSerializer.writeResource(value_backgroundColor_value_3); - } - } - const auto value_backgroundBlurStyle = value.backgroundBlurStyle; - Ark_Int32 value_backgroundBlurStyle_type = ARK_RUNTIME_UNDEFINED; - value_backgroundBlurStyle_type = runtimeType(value_backgroundBlurStyle); - valueSerializer.writeInt8(value_backgroundBlurStyle_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_backgroundBlurStyle_type)) { - const auto value_backgroundBlurStyle_value = value_backgroundBlurStyle.value; - valueSerializer.writeInt32(value_backgroundBlurStyle_value); - } - const auto value_barStyle = value.barStyle; - Ark_Int32 value_barStyle_type = ARK_RUNTIME_UNDEFINED; - value_barStyle_type = runtimeType(value_barStyle); - valueSerializer.writeInt8(value_barStyle_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_barStyle_type)) { - const auto value_barStyle_value = value_barStyle.value; - valueSerializer.writeInt32(value_barStyle_value); - } - const auto value_paddingStart = value.paddingStart; - Ark_Int32 value_paddingStart_type = ARK_RUNTIME_UNDEFINED; - value_paddingStart_type = runtimeType(value_paddingStart); - valueSerializer.writeInt8(value_paddingStart_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_paddingStart_type)) { - const auto value_paddingStart_value = value_paddingStart.value; - valueSerializer.writeLengthMetrics(value_paddingStart_value); - } - const auto value_paddingEnd = value.paddingEnd; - Ark_Int32 value_paddingEnd_type = ARK_RUNTIME_UNDEFINED; - value_paddingEnd_type = runtimeType(value_paddingEnd); - valueSerializer.writeInt8(value_paddingEnd_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_paddingEnd_type)) { - const auto value_paddingEnd_value = value_paddingEnd.value; - valueSerializer.writeLengthMetrics(value_paddingEnd_value); - } - const auto value_mainTitleModifier = value.mainTitleModifier; - Ark_Int32 value_mainTitleModifier_type = ARK_RUNTIME_UNDEFINED; - value_mainTitleModifier_type = runtimeType(value_mainTitleModifier); - valueSerializer.writeInt8(value_mainTitleModifier_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_mainTitleModifier_type)) { - const auto value_mainTitleModifier_value = value_mainTitleModifier.value; - valueSerializer.writeTextModifier(value_mainTitleModifier_value); - } - const auto value_subTitleModifier = value.subTitleModifier; - Ark_Int32 value_subTitleModifier_type = ARK_RUNTIME_UNDEFINED; - value_subTitleModifier_type = runtimeType(value_subTitleModifier); - valueSerializer.writeInt8(value_subTitleModifier_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_subTitleModifier_type)) { - const auto value_subTitleModifier_value = value_subTitleModifier.value; - valueSerializer.writeTextModifier(value_subTitleModifier_value); - } - const auto value_enableHoverMode = value.enableHoverMode; - Ark_Int32 value_enableHoverMode_type = ARK_RUNTIME_UNDEFINED; - value_enableHoverMode_type = runtimeType(value_enableHoverMode); - valueSerializer.writeInt8(value_enableHoverMode_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_enableHoverMode_type)) { - const auto value_enableHoverMode_value = value_enableHoverMode.value; - valueSerializer.writeBoolean(value_enableHoverMode_value); - } - } - void writeNavDestinationCustomTitle(Ark_NavDestinationCustomTitle value) - { - Serializer& valueSerializer = *this; - const auto value_builder = value.builder; - valueSerializer.writeCallbackResource(value_builder.resource); - valueSerializer.writePointer(reinterpret_cast(value_builder.call)); - valueSerializer.writePointer(reinterpret_cast(value_builder.callSync)); - const auto value_height = value.height; - Ark_Int32 value_height_type = ARK_RUNTIME_UNDEFINED; - value_height_type = value_height.selector; - if (((value_height_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_height_0 = value_height.value0; - valueSerializer.writeInt32(value_height_0); - } - else if (((value_height_type == 1)) || ((value_height_type == 1)) || ((value_height_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_height_1 = value_height.value1; - valueSerializer.writeLength(value_height_1); - } - } - void writeNavDestinationCommonTitle(Ark_NavDestinationCommonTitle value) - { - Serializer& valueSerializer = *this; - const auto value_main = value.main; - Ark_Int32 value_main_type = ARK_RUNTIME_UNDEFINED; - value_main_type = value_main.selector; - if (((value_main_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_main_0 = value_main.value0; - valueSerializer.writeString(value_main_0); - } - else if (((value_main_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_main_1 = value_main.value1; - valueSerializer.writeResource(value_main_1); - } - const auto value_sub = value.sub; - Ark_Int32 value_sub_type = ARK_RUNTIME_UNDEFINED; - value_sub_type = value_sub.selector; - if (((value_sub_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_sub_0 = value_sub.value0; - valueSerializer.writeString(value_sub_0); - } - else if (((value_sub_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_sub_1 = value_sub.value1; - valueSerializer.writeResource(value_sub_1); - } - } - void writeSystemBarStyle(Ark_SystemBarStyle value) - { - Serializer& valueSerializer = *this; - const auto value___SystemBarStyleStub = value.__SystemBarStyleStub; - valueSerializer.writeString(value___SystemBarStyleStub); - } void writeMenuItemOptions(Ark_MenuItemOptions value) { Serializer& valueSerializer = *this; @@ -55830,11 +54073,6 @@ class Serializer : public SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value); } } - void writeIPropertySubscriber(Ark_IPropertySubscriber value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } void writeUIGestureEvent(Ark_UIGestureEvent value) { } @@ -60996,11 +59234,6 @@ class Serializer : public SerializerBase { void writeWithThemeAttribute(Ark_WithThemeAttribute value) { } - void writeNavigationTransitionProxy(Ark_NavigationTransitionProxy value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value.ptr); - } void writeIsolatedComponentAttribute(Ark_IsolatedComponentAttribute value) { } @@ -64176,165 +62409,6 @@ class Serializer : public SerializerBase { valueSerializer.writeCustomObject("Any", value_param_value); } } - void writeToolbarItem(Ark_ToolbarItem value) - { - Serializer& valueSerializer = *this; - const auto value_value = value.value; - Ark_Int32 value_value_type = ARK_RUNTIME_UNDEFINED; - value_value_type = value_value.selector; - if (((value_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_value_0 = value_value.value0; - valueSerializer.writeString(value_value_0); - } - else if (((value_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_value_1 = value_value.value1; - valueSerializer.writeResource(value_value_1); - } - const auto value_icon = value.icon; - Ark_Int32 value_icon_type = ARK_RUNTIME_UNDEFINED; - value_icon_type = runtimeType(value_icon); - valueSerializer.writeInt8(value_icon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_icon_type)) { - const auto value_icon_value = value_icon.value; - Ark_Int32 value_icon_value_type = ARK_RUNTIME_UNDEFINED; - value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_icon_value_0 = value_icon_value.value0; - valueSerializer.writeString(value_icon_value_0); - } - else if (((value_icon_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_icon_value_1 = value_icon_value.value1; - valueSerializer.writeResource(value_icon_value_1); - } - } - const auto value_symbolIcon = value.symbolIcon; - Ark_Int32 value_symbolIcon_type = ARK_RUNTIME_UNDEFINED; - value_symbolIcon_type = runtimeType(value_symbolIcon); - valueSerializer.writeInt8(value_symbolIcon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_symbolIcon_type)) { - const auto value_symbolIcon_value = value_symbolIcon.value; - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value); - } - const auto value_action = value.action; - Ark_Int32 value_action_type = ARK_RUNTIME_UNDEFINED; - value_action_type = runtimeType(value_action); - valueSerializer.writeInt8(value_action_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_action_type)) { - const auto value_action_value = value_action.value; - valueSerializer.writeCallbackResource(value_action_value.resource); - valueSerializer.writePointer(reinterpret_cast(value_action_value.call)); - valueSerializer.writePointer(reinterpret_cast(value_action_value.callSync)); - } - const auto value_status = value.status; - Ark_Int32 value_status_type = ARK_RUNTIME_UNDEFINED; - value_status_type = runtimeType(value_status); - valueSerializer.writeInt8(value_status_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_status_type)) { - const auto value_status_value = value_status.value; - valueSerializer.writeInt32(value_status_value); - } - const auto value_activeIcon = value.activeIcon; - Ark_Int32 value_activeIcon_type = ARK_RUNTIME_UNDEFINED; - value_activeIcon_type = runtimeType(value_activeIcon); - valueSerializer.writeInt8(value_activeIcon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_activeIcon_type)) { - const auto value_activeIcon_value = value_activeIcon.value; - Ark_Int32 value_activeIcon_value_type = ARK_RUNTIME_UNDEFINED; - value_activeIcon_value_type = value_activeIcon_value.selector; - if (((value_activeIcon_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_activeIcon_value_0 = value_activeIcon_value.value0; - valueSerializer.writeString(value_activeIcon_value_0); - } - else if (((value_activeIcon_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_activeIcon_value_1 = value_activeIcon_value.value1; - valueSerializer.writeResource(value_activeIcon_value_1); - } - } - const auto value_activeSymbolIcon = value.activeSymbolIcon; - Ark_Int32 value_activeSymbolIcon_type = ARK_RUNTIME_UNDEFINED; - value_activeSymbolIcon_type = runtimeType(value_activeSymbolIcon); - valueSerializer.writeInt8(value_activeSymbolIcon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_activeSymbolIcon_type)) { - const auto value_activeSymbolIcon_value = value_activeSymbolIcon.value; - valueSerializer.writeSymbolGlyphModifier(value_activeSymbolIcon_value); - } - } - void writeNavigationMenuItem(Ark_NavigationMenuItem value) - { - Serializer& valueSerializer = *this; - const auto value_value = value.value; - Ark_Int32 value_value_type = ARK_RUNTIME_UNDEFINED; - value_value_type = value_value.selector; - if (((value_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_value_0 = value_value.value0; - valueSerializer.writeString(value_value_0); - } - else if (((value_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_value_1 = value_value.value1; - valueSerializer.writeResource(value_value_1); - } - const auto value_icon = value.icon; - Ark_Int32 value_icon_type = ARK_RUNTIME_UNDEFINED; - value_icon_type = runtimeType(value_icon); - valueSerializer.writeInt8(value_icon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_icon_type)) { - const auto value_icon_value = value_icon.value; - Ark_Int32 value_icon_value_type = ARK_RUNTIME_UNDEFINED; - value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_icon_value_0 = value_icon_value.value0; - valueSerializer.writeString(value_icon_value_0); - } - else if (((value_icon_value_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_icon_value_1 = value_icon_value.value1; - valueSerializer.writeResource(value_icon_value_1); - } - } - const auto value_symbolIcon = value.symbolIcon; - Ark_Int32 value_symbolIcon_type = ARK_RUNTIME_UNDEFINED; - value_symbolIcon_type = runtimeType(value_symbolIcon); - valueSerializer.writeInt8(value_symbolIcon_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_symbolIcon_type)) { - const auto value_symbolIcon_value = value_symbolIcon.value; - valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value); - } - const auto value_isEnabled = value.isEnabled; - Ark_Int32 value_isEnabled_type = ARK_RUNTIME_UNDEFINED; - value_isEnabled_type = runtimeType(value_isEnabled); - valueSerializer.writeInt8(value_isEnabled_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_isEnabled_type)) { - const auto value_isEnabled_value = value_isEnabled.value; - valueSerializer.writeBoolean(value_isEnabled_value); - } - const auto value_action = value.action; - Ark_Int32 value_action_type = ARK_RUNTIME_UNDEFINED; - value_action_type = runtimeType(value_action); - valueSerializer.writeInt8(value_action_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_action_type)) { - const auto value_action_value = value_action.value; - valueSerializer.writeCallbackResource(value_action_value.resource); - valueSerializer.writePointer(reinterpret_cast(value_action_value.call)); - valueSerializer.writePointer(reinterpret_cast(value_action_value.callSync)); - } - } - void writePopInfo(Ark_PopInfo value) - { - Serializer& valueSerializer = *this; - const auto value_info = value.info; - valueSerializer.writeNavPathInfo(value_info); - const auto value_result = value.result; - valueSerializer.writeCustomObject("Object", value_result); - } void writeMenuItemGroupOptions(Ark_MenuItemGroupOptions value) { Serializer& valueSerializer = *this; @@ -70999,42 +69073,6 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return { ptr }; } - Ark_NavPathStack readNavPathStack() - { - Ark_NavPathStack value = {}; - return value; - } - Ark_NavPathInfo readNavPathInfo() - { - Ark_NavPathInfo value = {}; - Deserializer& valueDeserializer = *this; - value.name = static_cast(valueDeserializer.readString()); - const auto param_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_CustomObject param_buf = {}; - param_buf.tag = param_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (param_buf_runtimeType)) - { - param_buf.value = static_cast(valueDeserializer.readCustomObject("Any")); - } - value.param = param_buf; - const auto onPop_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Callback_PopInfo_Void onPop_buf = {}; - onPop_buf.tag = onPop_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (onPop_buf_runtimeType)) - { - onPop_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))}; - } - value.onPop = onPop_buf; - const auto isEntry_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean isEntry_buf = {}; - isEntry_buf.tag = isEntry_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (isEntry_buf_runtimeType)) - { - isEntry_buf.value = valueDeserializer.readBoolean(); - } - value.isEntry = isEntry_buf; - return value; - } Ark_ColorMetrics readColorMetrics() { Ark_ColorMetrics value = {}; @@ -72323,11 +70361,6 @@ class Deserializer : public DeserializerBase { value.onLongPress = onLongPress_buf; return value; } - Ark_TextModifier readTextModifier() - { - Ark_TextModifier value = {}; - return value; - } Ark_SwipeActionItem readSwipeActionItem() { Ark_SwipeActionItem value = {}; @@ -73467,88 +71500,12 @@ class Deserializer : public DeserializerBase { value.moduleName = moduleName_buf; return value; } - Ark_NavDestinationContext readNavDestinationContext() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_StyledString readStyledString() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return { ptr }; } - Ark_NavigationAnimatedTransition readNavigationAnimatedTransition() - { - Ark_NavigationAnimatedTransition value = {}; - Deserializer& valueDeserializer = *this; - const auto onTransitionEnd_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Callback_Boolean_Void onTransitionEnd_buf = {}; - onTransitionEnd_buf.tag = onTransitionEnd_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (onTransitionEnd_buf_runtimeType)) - { - onTransitionEnd_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))}; - } - value.onTransitionEnd = onTransitionEnd_buf; - const auto timeout_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number timeout_buf = {}; - timeout_buf.tag = timeout_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (timeout_buf_runtimeType)) - { - timeout_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.timeout = timeout_buf; - const auto isInteractive_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean isInteractive_buf = {}; - isInteractive_buf.tag = isInteractive_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (isInteractive_buf_runtimeType)) - { - isInteractive_buf.value = valueDeserializer.readBoolean(); - } - value.isInteractive = isInteractive_buf; - value.transition = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_NavigationTransitionProxy_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_NavigationTransitionProxy_Void))))}; - return value; - } - Ark_NavContentInfo readNavContentInfo() - { - Ark_NavContentInfo value = {}; - Deserializer& valueDeserializer = *this; - const auto name_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_String name_buf = {}; - name_buf.tag = name_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (name_buf_runtimeType)) - { - name_buf.value = static_cast(valueDeserializer.readString()); - } - value.name = name_buf; - value.index = static_cast(valueDeserializer.readNumber()); - const auto mode_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_NavDestinationMode mode_buf = {}; - mode_buf.tag = mode_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (mode_buf_runtimeType)) - { - mode_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.mode = mode_buf; - const auto param_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_CustomObject param_buf = {}; - param_buf.tag = param_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (param_buf_runtimeType)) - { - param_buf.value = static_cast(valueDeserializer.readCustomObject("Object")); - } - value.param = param_buf; - const auto navDestinationId_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_String navDestinationId_buf = {}; - navDestinationId_buf.tag = navDestinationId_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (navDestinationId_buf_runtimeType)) - { - navDestinationId_buf.value = static_cast(valueDeserializer.readString()); - } - value.navDestinationId = navDestinationId_buf; - return value; - } Ark_LinearIndicatorStyle readLinearIndicatorStyle() { Ark_LinearIndicatorStyle value = {}; @@ -77413,215 +75370,6 @@ class Deserializer : public DeserializerBase { value.enableWaveEffect = enableWaveEffect_buf; return value; } - Ark_NavigationToolbarOptions readNavigationToolbarOptions() - { - Ark_NavigationToolbarOptions value = {}; - Deserializer& valueDeserializer = *this; - const auto backgroundColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor backgroundColor_buf = {}; - backgroundColor_buf.tag = backgroundColor_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const Ark_Int8 backgroundColor_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor backgroundColor_buf_ = {}; - backgroundColor_buf_.selector = backgroundColor_buf__selector; - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_.selector = 0; - backgroundColor_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_.selector = 1; - backgroundColor_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_.selector = 2; - backgroundColor_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_.selector = 3; - backgroundColor_buf_.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; - } - backgroundColor_buf.value = static_cast(backgroundColor_buf_); - } - value.backgroundColor = backgroundColor_buf; - const auto backgroundBlurStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_BlurStyle backgroundBlurStyle_buf = {}; - backgroundBlurStyle_buf.tag = backgroundBlurStyle_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.backgroundBlurStyle = backgroundBlurStyle_buf; - const auto barStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_BarStyle barStyle_buf = {}; - barStyle_buf.tag = barStyle_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.barStyle = barStyle_buf; - return value; - } - Ark_NavigationTitleOptions readNavigationTitleOptions() - { - Ark_NavigationTitleOptions value = {}; - Deserializer& valueDeserializer = *this; - const auto backgroundColor_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceColor backgroundColor_buf = {}; - backgroundColor_buf.tag = backgroundColor_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (backgroundColor_buf_runtimeType)) - { - const Ark_Int8 backgroundColor_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceColor backgroundColor_buf_ = {}; - backgroundColor_buf_.selector = backgroundColor_buf__selector; - if (backgroundColor_buf__selector == 0) { - backgroundColor_buf_.selector = 0; - backgroundColor_buf_.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (backgroundColor_buf__selector == 1) { - backgroundColor_buf_.selector = 1; - backgroundColor_buf_.value1 = static_cast(valueDeserializer.readNumber()); - } - else if (backgroundColor_buf__selector == 2) { - backgroundColor_buf_.selector = 2; - backgroundColor_buf_.value2 = static_cast(valueDeserializer.readString()); - } - else if (backgroundColor_buf__selector == 3) { - backgroundColor_buf_.selector = 3; - backgroundColor_buf_.value3 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for backgroundColor_buf_ has to be chosen through deserialisation."; - } - backgroundColor_buf.value = static_cast(backgroundColor_buf_); - } - value.backgroundColor = backgroundColor_buf; - const auto backgroundBlurStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_BlurStyle backgroundBlurStyle_buf = {}; - backgroundBlurStyle_buf.tag = backgroundBlurStyle_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) - { - backgroundBlurStyle_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.backgroundBlurStyle = backgroundBlurStyle_buf; - const auto barStyle_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_BarStyle barStyle_buf = {}; - barStyle_buf.tag = barStyle_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (barStyle_buf_runtimeType)) - { - barStyle_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.barStyle = barStyle_buf; - const auto paddingStart_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_LengthMetrics paddingStart_buf = {}; - paddingStart_buf.tag = paddingStart_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (paddingStart_buf_runtimeType)) - { - paddingStart_buf.value = valueDeserializer.readLengthMetrics(); - } - value.paddingStart = paddingStart_buf; - const auto paddingEnd_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_LengthMetrics paddingEnd_buf = {}; - paddingEnd_buf.tag = paddingEnd_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (paddingEnd_buf_runtimeType)) - { - paddingEnd_buf.value = valueDeserializer.readLengthMetrics(); - } - value.paddingEnd = paddingEnd_buf; - const auto mainTitleModifier_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_TextModifier mainTitleModifier_buf = {}; - mainTitleModifier_buf.tag = mainTitleModifier_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (mainTitleModifier_buf_runtimeType)) - { - mainTitleModifier_buf.value = valueDeserializer.readTextModifier(); - } - value.mainTitleModifier = mainTitleModifier_buf; - const auto subTitleModifier_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_TextModifier subTitleModifier_buf = {}; - subTitleModifier_buf.tag = subTitleModifier_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (subTitleModifier_buf_runtimeType)) - { - subTitleModifier_buf.value = valueDeserializer.readTextModifier(); - } - value.subTitleModifier = subTitleModifier_buf; - const auto enableHoverMode_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean enableHoverMode_buf = {}; - enableHoverMode_buf.tag = enableHoverMode_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (enableHoverMode_buf_runtimeType)) - { - enableHoverMode_buf.value = valueDeserializer.readBoolean(); - } - value.enableHoverMode = enableHoverMode_buf; - return value; - } - Ark_NavDestinationCustomTitle readNavDestinationCustomTitle() - { - Ark_NavDestinationCustomTitle value = {}; - Deserializer& valueDeserializer = *this; - value.builder = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; - const Ark_Int8 height_buf_selector = valueDeserializer.readInt8(); - Ark_Union_TitleHeight_Length height_buf = {}; - height_buf.selector = height_buf_selector; - if (height_buf_selector == 0) { - height_buf.selector = 0; - height_buf.value0 = static_cast(valueDeserializer.readInt32()); - } - else if (height_buf_selector == 1) { - height_buf.selector = 1; - height_buf.value1 = valueDeserializer.readLength(); - } - else { - throw "One of the branches for height_buf has to be chosen through deserialisation."; - } - value.height = static_cast(height_buf); - return value; - } - Ark_NavDestinationCommonTitle readNavDestinationCommonTitle() - { - Ark_NavDestinationCommonTitle value = {}; - Deserializer& valueDeserializer = *this; - const Ark_Int8 main_buf_selector = valueDeserializer.readInt8(); - Ark_Union_String_Resource main_buf = {}; - main_buf.selector = main_buf_selector; - if (main_buf_selector == 0) { - main_buf.selector = 0; - main_buf.value0 = static_cast(valueDeserializer.readString()); - } - else if (main_buf_selector == 1) { - main_buf.selector = 1; - main_buf.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for main_buf has to be chosen through deserialisation."; - } - value.main = static_cast(main_buf); - const Ark_Int8 sub_buf_selector = valueDeserializer.readInt8(); - Ark_Union_String_Resource sub_buf = {}; - sub_buf.selector = sub_buf_selector; - if (sub_buf_selector == 0) { - sub_buf.selector = 0; - sub_buf.value0 = static_cast(valueDeserializer.readString()); - } - else if (sub_buf_selector == 1) { - sub_buf.selector = 1; - sub_buf.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for sub_buf has to be chosen through deserialisation."; - } - value.sub = static_cast(sub_buf); - return value; - } - Ark_SystemBarStyle readSystemBarStyle() - { - Ark_SystemBarStyle value = {}; - Deserializer& valueDeserializer = *this; - value.__SystemBarStyleStub = static_cast(valueDeserializer.readString()); - return value; - } Ark_MenuItemOptions readMenuItemOptions() { Ark_MenuItemOptions value = {}; @@ -78359,12 +76107,6 @@ class Deserializer : public DeserializerBase { value.expectedFrameRateRange = expectedFrameRateRange_buf; return value; } - Ark_IPropertySubscriber readIPropertySubscriber() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_UIGestureEvent readUIGestureEvent() { Ark_UIGestureEvent value = {}; @@ -83741,12 +81483,6 @@ class Deserializer : public DeserializerBase { Ark_WithThemeAttribute value = {}; return value; } - Ark_NavigationTransitionProxy readNavigationTransitionProxy() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return { ptr }; - } Ark_IsolatedComponentAttribute readIsolatedComponentAttribute() { Ark_IsolatedComponentAttribute value = {}; @@ -87190,178 +84926,6 @@ class Deserializer : public DeserializerBase { value.param = param_buf; return value; } - Ark_ToolbarItem readToolbarItem() - { - Ark_ToolbarItem value = {}; - Deserializer& valueDeserializer = *this; - const Ark_Int8 value_buf_selector = valueDeserializer.readInt8(); - Ark_ResourceStr value_buf = {}; - value_buf.selector = value_buf_selector; - if (value_buf_selector == 0) { - value_buf.selector = 0; - value_buf.value0 = static_cast(valueDeserializer.readString()); - } - else if (value_buf_selector == 1) { - value_buf.selector = 1; - value_buf.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; - } - value.value = static_cast(value_buf); - const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceStr icon_buf = {}; - icon_buf.tag = icon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (icon_buf_runtimeType)) - { - const Ark_Int8 icon_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceStr icon_buf_ = {}; - icon_buf_.selector = icon_buf__selector; - if (icon_buf__selector == 0) { - icon_buf_.selector = 0; - icon_buf_.value0 = static_cast(valueDeserializer.readString()); - } - else if (icon_buf__selector == 1) { - icon_buf_.selector = 1; - icon_buf_.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; - } - icon_buf.value = static_cast(icon_buf_); - } - value.icon = icon_buf; - const auto symbolIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_SymbolGlyphModifier symbolIcon_buf = {}; - symbolIcon_buf.tag = symbolIcon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf.value = valueDeserializer.readSymbolGlyphModifier(); - } - value.symbolIcon = symbolIcon_buf; - const auto action_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Callback_Void action_buf = {}; - action_buf.tag = action_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (action_buf_runtimeType)) - { - action_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))}; - } - value.action = action_buf; - const auto status_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ToolbarItemStatus status_buf = {}; - status_buf.tag = status_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (status_buf_runtimeType)) - { - status_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.status = status_buf; - const auto activeIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ResourceStr activeIcon_buf = {}; - activeIcon_buf.tag = activeIcon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (activeIcon_buf_runtimeType)) - { - const Ark_Int8 activeIcon_buf__selector = valueDeserializer.readInt8(); - Ark_ResourceStr activeIcon_buf_ = {}; - activeIcon_buf_.selector = activeIcon_buf__selector; - if (activeIcon_buf__selector == 0) { - activeIcon_buf_.selector = 0; - activeIcon_buf_.value0 = static_cast(valueDeserializer.readString()); - } - else if (activeIcon_buf__selector == 1) { - activeIcon_buf_.selector = 1; - activeIcon_buf_.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for activeIcon_buf_ has to be chosen through deserialisation."; - } - activeIcon_buf.value = static_cast(activeIcon_buf_); - } - value.activeIcon = activeIcon_buf; - const auto activeSymbolIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_SymbolGlyphModifier activeSymbolIcon_buf = {}; - activeSymbolIcon_buf.tag = activeSymbolIcon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (activeSymbolIcon_buf_runtimeType)) - { - activeSymbolIcon_buf.value = valueDeserializer.readSymbolGlyphModifier(); - } - value.activeSymbolIcon = activeSymbolIcon_buf; - return value; - } - Ark_NavigationMenuItem readNavigationMenuItem() - { - Ark_NavigationMenuItem value = {}; - Deserializer& valueDeserializer = *this; - const Ark_Int8 value_buf_selector = valueDeserializer.readInt8(); - Ark_Union_String_Resource value_buf = {}; - value_buf.selector = value_buf_selector; - if (value_buf_selector == 0) { - value_buf.selector = 0; - value_buf.value0 = static_cast(valueDeserializer.readString()); - } - else if (value_buf_selector == 1) { - value_buf.selector = 1; - value_buf.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for value_buf has to be chosen through deserialisation."; - } - value.value = static_cast(value_buf); - const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Union_String_Resource icon_buf = {}; - icon_buf.tag = icon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (icon_buf_runtimeType)) - { - const Ark_Int8 icon_buf__selector = valueDeserializer.readInt8(); - Ark_Union_String_Resource icon_buf_ = {}; - icon_buf_.selector = icon_buf__selector; - if (icon_buf__selector == 0) { - icon_buf_.selector = 0; - icon_buf_.value0 = static_cast(valueDeserializer.readString()); - } - else if (icon_buf__selector == 1) { - icon_buf_.selector = 1; - icon_buf_.value1 = valueDeserializer.readResource(); - } - else { - throw "One of the branches for icon_buf_ has to be chosen through deserialisation."; - } - icon_buf.value = static_cast(icon_buf_); - } - value.icon = icon_buf; - const auto symbolIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_SymbolGlyphModifier symbolIcon_buf = {}; - symbolIcon_buf.tag = symbolIcon_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (symbolIcon_buf_runtimeType)) - { - symbolIcon_buf.value = valueDeserializer.readSymbolGlyphModifier(); - } - value.symbolIcon = symbolIcon_buf; - const auto isEnabled_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Boolean isEnabled_buf = {}; - isEnabled_buf.tag = isEnabled_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (isEnabled_buf_runtimeType)) - { - isEnabled_buf.value = valueDeserializer.readBoolean(); - } - value.isEnabled = isEnabled_buf; - const auto action_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Callback_Void action_buf = {}; - action_buf.tag = action_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (action_buf_runtimeType)) - { - action_buf.value = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))}; - } - value.action = action_buf; - return value; - } - Ark_PopInfo readPopInfo() - { - Ark_PopInfo value = {}; - Deserializer& valueDeserializer = *this; - value.info = valueDeserializer.readNavPathInfo(); - value.result = static_cast(valueDeserializer.readCustomObject("Object")); - return value; - } Ark_MenuItemGroupOptions readMenuItemGroupOptions() { Ark_MenuItemGroupOptions value = {}; diff --git a/arkoala/framework/native/src/generated/all_events.cc b/arkoala/framework/native/src/generated/all_events.cc index 38d72a1f7..11d2dcbdd 100644 --- a/arkoala/framework/native/src/generated/all_events.cc +++ b/arkoala/framework/native/src/generated/all_events.cc @@ -138,214 +138,206 @@ namespace Generated { KindMarquee_onBounce = 116, KindMarquee_onFinish = 117, KindMenuItem_onChange = 118, - KindNavDestination_onShown = 119, - KindNavDestination_onHidden = 120, - KindNavDestination_onBackPressed = 121, - KindNavDestination_onReady = 122, - KindNavDestination_onWillAppear = 123, - KindNavDestination_onWillDisappear = 124, - KindNavDestination_onWillShow = 125, - KindNavDestination_onWillHide = 126, - KindNavRouter_onStateChange = 127, - KindPanel_onChange = 128, - KindPanel_onHeightChange = 129, - KindPasteButton_onClick = 130, - KindPatternLock_onPatternComplete = 131, - KindPatternLock_onDotConnect = 132, - KindPluginComponent_onComplete = 133, - KindPluginComponent_onError = 134, - KindRadio_onChange = 135, - KindRating_onChange = 136, - KindRefresh_onStateChange = 137, - KindRefresh_onRefreshing = 138, - KindRefresh_onOffsetChange = 139, - KindRichEditor_onReady = 140, - KindRichEditor_onSelect = 141, - KindRichEditor_onSelectionChange = 142, - KindRichEditor_aboutToIMEInput = 143, - KindRichEditor_onIMEInputComplete = 144, - KindRichEditor_onDidIMEInput = 145, - KindRichEditor_aboutToDelete = 146, - KindRichEditor_onDeleteComplete = 147, - KindRichEditor_onPaste = 148, - KindRichEditor_onEditingChange = 149, - KindRichEditor_onSubmit = 150, - KindRichEditor_onWillChange = 151, - KindRichEditor_onDidChange = 152, - KindRichEditor_onCut = 153, - KindRichEditor_onCopy = 154, - KindRichEditor_bindSelectionMenu = 155, - KindRichEditor_customKeyboard = 156, - KindRichText_onStart = 157, - KindRichText_onComplete = 158, - KindSaveButton_onClick = 159, - KindScroll_onScroll = 160, - KindScroll_onScrollEdge = 161, - KindScroll_onScrollStart = 162, - KindScroll_onScrollEnd = 163, - KindScroll_onScrollStop = 164, - KindScroll_onScrollFrameBegin = 165, - KindSearch_onEditChange = 166, - KindSearch_onSubmit0 = 167, - KindSearch_onSubmit1 = 168, - KindSearch_onChange = 169, - KindSearch_onTextSelectionChange = 170, - KindSearch_onContentScroll = 171, - KindSearch_onCopy = 172, - KindSearch_onCut = 173, - KindSearch_onPaste = 174, - KindSearch_onWillInsert = 175, - KindSearch_onDidInsert = 176, - KindSearch_onWillDelete = 177, - KindSearch_onDidDelete = 178, - KindSearch_customKeyboard = 179, - KindSelect_onSelect = 180, - KindSlider_onChange = 181, - KindStepper_onFinish = 182, - KindStepper_onSkip = 183, - KindStepper_onChange = 184, - KindStepper_onNext = 185, - KindStepper_onPrevious = 186, - KindSwiper_onChange = 187, - KindSwiper_onAnimationStart = 188, - KindSwiper_onAnimationEnd = 189, - KindSwiper_onGestureSwipe = 190, - KindSwiper_onContentDidScroll = 191, - KindIndicatorComponent_onChange = 192, - KindTabs_onChange = 193, - KindTabs_onTabBarClick = 194, - KindTabs_onAnimationStart = 195, - KindTabs_onAnimationEnd = 196, - KindTabs_onGestureSwipe = 197, - KindTabs_customContentTransition = 198, - KindTabs_onContentWillChange = 199, - KindTabContent_onWillShow = 200, - KindTabContent_onWillHide = 201, - KindText_onCopy = 202, - KindText_onTextSelectionChange = 203, - KindText_bindSelectionMenu = 204, - KindTextArea_onSubmit0 = 205, - KindTextArea_onSubmit1 = 206, - KindTextArea_onChange = 207, - KindTextArea_onTextSelectionChange = 208, - KindTextArea_onContentScroll = 209, - KindTextArea_onEditChange = 210, - KindTextArea_onCopy = 211, - KindTextArea_onCut = 212, - KindTextArea_onPaste = 213, - KindTextArea_onWillInsert = 214, - KindTextArea_onDidInsert = 215, - KindTextArea_onWillDelete = 216, - KindTextArea_onDidDelete = 217, - KindTextArea_customKeyboard = 218, - KindTextClock_onDateChange = 219, - KindTextInput_onEditChanged = 220, - KindTextInput_onEditChange = 221, - KindTextInput_onSubmit = 222, - KindTextInput_onChange = 223, - KindTextInput_onTextSelectionChange = 224, - KindTextInput_onContentScroll = 225, - KindTextInput_onCopy = 226, - KindTextInput_onCut = 227, - KindTextInput_onPaste = 228, - KindTextInput_showUnit = 229, - KindTextInput_onSecurityStateChange = 230, - KindTextInput_onWillInsert = 231, - KindTextInput_onDidInsert = 232, - KindTextInput_onWillDelete = 233, - KindTextInput_onDidDelete = 234, - KindTextInput_customKeyboard = 235, - KindTextPicker_onAccept = 236, - KindTextPicker_onCancel = 237, - KindTextPicker_onChange = 238, - KindTextTimer_onTimer = 239, - KindTimePicker_onChange = 240, - KindToggle_onChange = 241, - KindVideo_onStart = 242, - KindVideo_onPause = 243, - KindVideo_onFinish = 244, - KindVideo_onFullscreenChange = 245, - KindVideo_onPrepared = 246, - KindVideo_onSeeking = 247, - KindVideo_onSeeked = 248, - KindVideo_onUpdate = 249, - KindVideo_onError = 250, - KindVideo_onStop = 251, - KindWeb_onPageEnd = 252, - KindWeb_onPageBegin = 253, - KindWeb_onProgressChange = 254, - KindWeb_onTitleReceive = 255, - KindWeb_onGeolocationHide = 256, - KindWeb_onGeolocationShow = 257, - KindWeb_onRequestSelected = 258, - KindWeb_onAlert = 259, - KindWeb_onBeforeUnload = 260, - KindWeb_onConfirm = 261, - KindWeb_onPrompt = 262, - KindWeb_onConsole = 263, - KindWeb_onErrorReceive = 264, - KindWeb_onHttpErrorReceive = 265, - KindWeb_onDownloadStart = 266, - KindWeb_onRefreshAccessedHistory = 267, - KindWeb_onUrlLoadIntercept = 268, - KindWeb_onSslErrorReceive = 269, - KindWeb_onRenderExited0 = 270, - KindWeb_onRenderExited1 = 271, - KindWeb_onShowFileSelector = 272, - KindWeb_onFileSelectorShow = 273, - KindWeb_onResourceLoad = 274, - KindWeb_onFullScreenExit = 275, - KindWeb_onFullScreenEnter = 276, - KindWeb_onScaleChange = 277, - KindWeb_onHttpAuthRequest = 278, - KindWeb_onInterceptRequest = 279, - KindWeb_onPermissionRequest = 280, - KindWeb_onScreenCaptureRequest = 281, - KindWeb_onContextMenuShow = 282, - KindWeb_onContextMenuHide = 283, - KindWeb_onSearchResultReceive = 284, - KindWeb_onScroll = 285, - KindWeb_onSslErrorEventReceive = 286, - KindWeb_onSslErrorEvent = 287, - KindWeb_onClientAuthenticationRequest = 288, - KindWeb_onWindowNew = 289, - KindWeb_onWindowExit = 290, - KindWeb_onInterceptKeyEvent = 291, - KindWeb_onTouchIconUrlReceived = 292, - KindWeb_onFaviconReceived = 293, - KindWeb_onPageVisible = 294, - KindWeb_onDataResubmitted = 295, - KindWeb_onAudioStateChanged = 296, - KindWeb_onFirstContentfulPaint = 297, - KindWeb_onFirstMeaningfulPaint = 298, - KindWeb_onLargestContentfulPaint = 299, - KindWeb_onLoadIntercept = 300, - KindWeb_onControllerAttached = 301, - KindWeb_onOverScroll = 302, - KindWeb_onSafeBrowsingCheckResult = 303, - KindWeb_onNavigationEntryCommitted = 304, - KindWeb_onIntelligentTrackingPreventionResult = 305, - KindWeb_onNativeEmbedLifecycleChange = 306, - KindWeb_onNativeEmbedVisibilityChange = 307, - KindWeb_onNativeEmbedGestureEvent = 308, - KindWeb_onOverrideUrlLoading = 309, - KindWeb_onRenderProcessNotResponding = 310, - KindWeb_onRenderProcessResponding = 311, - KindWeb_onViewportFitChanged = 312, - KindWeb_onInterceptKeyboardAttach = 313, - KindWeb_onAdsBlocked = 314, - KindWeb_bindSelectionMenu = 315, - KindXComponent_onLoad = 316, - KindXComponent_onDestroy = 317, - KindSideBarContainer_onChange = 318, - KindWaterFlow_onReachStart = 319, - KindWaterFlow_onReachEnd = 320, - KindWaterFlow_onScrollFrameBegin = 321, - KindWaterFlow_onScrollIndex = 322, - KindUIExtensionComponent_onRemoteReady = 323, - KindUIExtensionComponent_onResult = 324, - KindUIExtensionComponent_onRelease = 325, - KindUIExtensionComponent_onTerminated = 326, + KindNavRouter_onStateChange = 119, + KindPanel_onChange = 120, + KindPanel_onHeightChange = 121, + KindPasteButton_onClick = 122, + KindPatternLock_onPatternComplete = 123, + KindPatternLock_onDotConnect = 124, + KindPluginComponent_onComplete = 125, + KindPluginComponent_onError = 126, + KindRadio_onChange = 127, + KindRating_onChange = 128, + KindRefresh_onStateChange = 129, + KindRefresh_onRefreshing = 130, + KindRefresh_onOffsetChange = 131, + KindRichEditor_onReady = 132, + KindRichEditor_onSelect = 133, + KindRichEditor_onSelectionChange = 134, + KindRichEditor_aboutToIMEInput = 135, + KindRichEditor_onIMEInputComplete = 136, + KindRichEditor_onDidIMEInput = 137, + KindRichEditor_aboutToDelete = 138, + KindRichEditor_onDeleteComplete = 139, + KindRichEditor_onPaste = 140, + KindRichEditor_onEditingChange = 141, + KindRichEditor_onSubmit = 142, + KindRichEditor_onWillChange = 143, + KindRichEditor_onDidChange = 144, + KindRichEditor_onCut = 145, + KindRichEditor_onCopy = 146, + KindRichEditor_bindSelectionMenu = 147, + KindRichEditor_customKeyboard = 148, + KindRichText_onStart = 149, + KindRichText_onComplete = 150, + KindSaveButton_onClick = 151, + KindScroll_onScroll = 152, + KindScroll_onScrollEdge = 153, + KindScroll_onScrollStart = 154, + KindScroll_onScrollEnd = 155, + KindScroll_onScrollStop = 156, + KindScroll_onScrollFrameBegin = 157, + KindSearch_onEditChange = 158, + KindSearch_onSubmit0 = 159, + KindSearch_onSubmit1 = 160, + KindSearch_onChange = 161, + KindSearch_onTextSelectionChange = 162, + KindSearch_onContentScroll = 163, + KindSearch_onCopy = 164, + KindSearch_onCut = 165, + KindSearch_onPaste = 166, + KindSearch_onWillInsert = 167, + KindSearch_onDidInsert = 168, + KindSearch_onWillDelete = 169, + KindSearch_onDidDelete = 170, + KindSearch_customKeyboard = 171, + KindSelect_onSelect = 172, + KindSlider_onChange = 173, + KindStepper_onFinish = 174, + KindStepper_onSkip = 175, + KindStepper_onChange = 176, + KindStepper_onNext = 177, + KindStepper_onPrevious = 178, + KindSwiper_onChange = 179, + KindSwiper_onAnimationStart = 180, + KindSwiper_onAnimationEnd = 181, + KindSwiper_onGestureSwipe = 182, + KindSwiper_onContentDidScroll = 183, + KindIndicatorComponent_onChange = 184, + KindTabs_onChange = 185, + KindTabs_onTabBarClick = 186, + KindTabs_onAnimationStart = 187, + KindTabs_onAnimationEnd = 188, + KindTabs_onGestureSwipe = 189, + KindTabs_customContentTransition = 190, + KindTabs_onContentWillChange = 191, + KindTabContent_onWillShow = 192, + KindTabContent_onWillHide = 193, + KindText_onCopy = 194, + KindText_onTextSelectionChange = 195, + KindText_bindSelectionMenu = 196, + KindTextArea_onSubmit0 = 197, + KindTextArea_onSubmit1 = 198, + KindTextArea_onChange = 199, + KindTextArea_onTextSelectionChange = 200, + KindTextArea_onContentScroll = 201, + KindTextArea_onEditChange = 202, + KindTextArea_onCopy = 203, + KindTextArea_onCut = 204, + KindTextArea_onPaste = 205, + KindTextArea_onWillInsert = 206, + KindTextArea_onDidInsert = 207, + KindTextArea_onWillDelete = 208, + KindTextArea_onDidDelete = 209, + KindTextArea_customKeyboard = 210, + KindTextClock_onDateChange = 211, + KindTextInput_onEditChanged = 212, + KindTextInput_onEditChange = 213, + KindTextInput_onSubmit = 214, + KindTextInput_onChange = 215, + KindTextInput_onTextSelectionChange = 216, + KindTextInput_onContentScroll = 217, + KindTextInput_onCopy = 218, + KindTextInput_onCut = 219, + KindTextInput_onPaste = 220, + KindTextInput_showUnit = 221, + KindTextInput_onSecurityStateChange = 222, + KindTextInput_onWillInsert = 223, + KindTextInput_onDidInsert = 224, + KindTextInput_onWillDelete = 225, + KindTextInput_onDidDelete = 226, + KindTextInput_customKeyboard = 227, + KindTextPicker_onAccept = 228, + KindTextPicker_onCancel = 229, + KindTextPicker_onChange = 230, + KindTextTimer_onTimer = 231, + KindTimePicker_onChange = 232, + KindToggle_onChange = 233, + KindVideo_onStart = 234, + KindVideo_onPause = 235, + KindVideo_onFinish = 236, + KindVideo_onFullscreenChange = 237, + KindVideo_onPrepared = 238, + KindVideo_onSeeking = 239, + KindVideo_onSeeked = 240, + KindVideo_onUpdate = 241, + KindVideo_onError = 242, + KindVideo_onStop = 243, + KindWeb_onPageEnd = 244, + KindWeb_onPageBegin = 245, + KindWeb_onProgressChange = 246, + KindWeb_onTitleReceive = 247, + KindWeb_onGeolocationHide = 248, + KindWeb_onGeolocationShow = 249, + KindWeb_onRequestSelected = 250, + KindWeb_onAlert = 251, + KindWeb_onBeforeUnload = 252, + KindWeb_onConfirm = 253, + KindWeb_onPrompt = 254, + KindWeb_onConsole = 255, + KindWeb_onErrorReceive = 256, + KindWeb_onHttpErrorReceive = 257, + KindWeb_onDownloadStart = 258, + KindWeb_onRefreshAccessedHistory = 259, + KindWeb_onUrlLoadIntercept = 260, + KindWeb_onSslErrorReceive = 261, + KindWeb_onRenderExited0 = 262, + KindWeb_onRenderExited1 = 263, + KindWeb_onShowFileSelector = 264, + KindWeb_onFileSelectorShow = 265, + KindWeb_onResourceLoad = 266, + KindWeb_onFullScreenExit = 267, + KindWeb_onFullScreenEnter = 268, + KindWeb_onScaleChange = 269, + KindWeb_onHttpAuthRequest = 270, + KindWeb_onInterceptRequest = 271, + KindWeb_onPermissionRequest = 272, + KindWeb_onScreenCaptureRequest = 273, + KindWeb_onContextMenuShow = 274, + KindWeb_onContextMenuHide = 275, + KindWeb_onSearchResultReceive = 276, + KindWeb_onScroll = 277, + KindWeb_onSslErrorEventReceive = 278, + KindWeb_onSslErrorEvent = 279, + KindWeb_onClientAuthenticationRequest = 280, + KindWeb_onWindowNew = 281, + KindWeb_onWindowExit = 282, + KindWeb_onInterceptKeyEvent = 283, + KindWeb_onTouchIconUrlReceived = 284, + KindWeb_onFaviconReceived = 285, + KindWeb_onPageVisible = 286, + KindWeb_onDataResubmitted = 287, + KindWeb_onAudioStateChanged = 288, + KindWeb_onFirstContentfulPaint = 289, + KindWeb_onFirstMeaningfulPaint = 290, + KindWeb_onLargestContentfulPaint = 291, + KindWeb_onLoadIntercept = 292, + KindWeb_onControllerAttached = 293, + KindWeb_onOverScroll = 294, + KindWeb_onSafeBrowsingCheckResult = 295, + KindWeb_onNavigationEntryCommitted = 296, + KindWeb_onIntelligentTrackingPreventionResult = 297, + KindWeb_onNativeEmbedLifecycleChange = 298, + KindWeb_onNativeEmbedVisibilityChange = 299, + KindWeb_onNativeEmbedGestureEvent = 300, + KindWeb_onOverrideUrlLoading = 301, + KindWeb_onRenderProcessNotResponding = 302, + KindWeb_onRenderProcessResponding = 303, + KindWeb_onViewportFitChanged = 304, + KindWeb_onInterceptKeyboardAttach = 305, + KindWeb_onAdsBlocked = 306, + KindWeb_bindSelectionMenu = 307, + KindXComponent_onLoad = 308, + KindXComponent_onDestroy = 309, + KindSideBarContainer_onChange = 310, + KindWaterFlow_onReachStart = 311, + KindWaterFlow_onReachEnd = 312, + KindWaterFlow_onScrollFrameBegin = 313, + KindWaterFlow_onScrollIndex = 314, + KindUIExtensionComponent_onRemoteReady = 315, + KindUIExtensionComponent_onResult = 316, + KindUIExtensionComponent_onRelease = 317, + KindUIExtensionComponent_onTerminated = 318, }; namespace AbilityComponent { @@ -1664,74 +1656,6 @@ namespace Generated { sendEvent(&_eventBuffer); } } - namespace NavDestination { - void onShownImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onShown); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onHiddenImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onHidden); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onBackPressedImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onBackPressed); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onReadyImpl(Ark_Int32 nodeId, - const Ark_NavDestinationContext parameter) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onReady); - _eventBufferSerializer.writeInt32(nodeId); - _eventBufferSerializer.writeNavDestinationContext(parameter); - sendEvent(&_eventBuffer); - } - void onWillAppearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillAppear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillDisappearImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillDisappear); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillShowImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillShow); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - void onWillHideImpl(Ark_Int32 nodeId) - { - EventBuffer _eventBuffer; - Serializer _eventBufferSerializer(_eventBuffer.buffer); - _eventBufferSerializer.writeInt32(KindNavDestination_onWillHide); - _eventBufferSerializer.writeInt32(nodeId); - sendEvent(&_eventBuffer); - } - } namespace NavRouter { void onStateChangeImpl(Ark_Int32 nodeId, const Ark_Boolean parameter) @@ -4256,21 +4180,6 @@ namespace Generated { return &GENERATED_ArkUIMenuItemEventsReceiverImpl; } - const GENERATED_ArkUINavDestinationEventsReceiver* GetNavDestinationEventsReceiver() - { - static const GENERATED_ArkUINavDestinationEventsReceiver GENERATED_ArkUINavDestinationEventsReceiverImpl { - NavDestination::onShownImpl, - NavDestination::onHiddenImpl, - NavDestination::onBackPressedImpl, - NavDestination::onReadyImpl, - NavDestination::onWillAppearImpl, - NavDestination::onWillDisappearImpl, - NavDestination::onWillShowImpl, - NavDestination::onWillHideImpl, - }; - - return &GENERATED_ArkUINavDestinationEventsReceiverImpl; - } const GENERATED_ArkUINavRouterEventsReceiver* GetNavRouterEventsReceiver() { static const GENERATED_ArkUINavRouterEventsReceiver GENERATED_ArkUINavRouterEventsReceiverImpl { @@ -4739,7 +4648,6 @@ namespace Generated { GetLocationButtonEventsReceiver, GetMarqueeEventsReceiver, GetMenuItemEventsReceiver, - GetNavDestinationEventsReceiver, GetNavRouterEventsReceiver, GetPanelEventsReceiver, GetPasteButtonEventsReceiver, diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index bcf3c4327..738ea9ce4 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -23,7 +23,7 @@ // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 109 +#define GENERATED_ARKUI_FULL_API_VERSION 108 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 @@ -255,8 +255,6 @@ typedef struct Ark_ShadowOptions Ark_ShadowOptions; typedef struct Opt_ShadowOptions Opt_ShadowOptions; typedef struct Ark_GridRowSizeOption Ark_GridRowSizeOption; typedef struct Opt_GridRowSizeOption Opt_GridRowSizeOption; -typedef struct Callback_PopInfo_Void Callback_PopInfo_Void; -typedef struct Opt_Callback_PopInfo_Void Opt_Callback_PopInfo_Void; typedef struct Ark_BackgroundColorStyle Ark_BackgroundColorStyle; typedef struct Opt_BackgroundColorStyle Opt_BackgroundColorStyle; typedef struct Ark_UserDataSpan Ark_UserDataSpan; @@ -381,14 +379,6 @@ typedef struct VoidCallback VoidCallback; typedef struct Opt_VoidCallback Opt_VoidCallback; typedef struct Map_String_CustomObject Map_String_CustomObject; typedef struct Opt_Map_String_CustomObject Opt_Map_String_CustomObject; -typedef struct Ark_NavPathStack Ark_NavPathStack; -typedef struct Opt_NavPathStack Opt_NavPathStack; -typedef struct Ark_NavPathInfo Ark_NavPathInfo; -typedef struct Opt_NavPathInfo Opt_NavPathInfo; -typedef struct Callback_NavigationTransitionProxy_Void Callback_NavigationTransitionProxy_Void; -typedef struct Opt_Callback_NavigationTransitionProxy_Void Opt_Callback_NavigationTransitionProxy_Void; -typedef struct Callback_Boolean_Void Callback_Boolean_Void; -typedef struct Opt_Callback_Boolean_Void Opt_Callback_Boolean_Void; typedef struct Ark_ColorMetrics Ark_ColorMetrics; typedef struct Opt_ColorMetrics Opt_ColorMetrics; typedef struct Ark_StyledStringValue Ark_StyledStringValue; @@ -505,10 +495,6 @@ typedef struct Ark_Union_Number_String_Array_Any Ark_Union_Number_String_Array_A typedef struct Opt_Union_Number_String_Array_Any Opt_Union_Number_String_Array_Any; typedef struct Ark_Union_String_Number_Resource Ark_Union_String_Number_Resource; typedef struct Opt_Union_String_Number_Resource Opt_Union_String_Number_Resource; -typedef struct Ark_TextModifier Ark_TextModifier; -typedef struct Opt_TextModifier Opt_TextModifier; -typedef struct Ark_Union_TitleHeight_Length Ark_Union_TitleHeight_Length; -typedef struct Opt_Union_TitleHeight_Length Opt_Union_TitleHeight_Length; typedef struct Ark_SwipeActionItem Ark_SwipeActionItem; typedef struct Opt_SwipeActionItem Opt_SwipeActionItem; typedef struct Ark_GridRowColumnOption Ark_GridRowColumnOption; @@ -633,14 +619,8 @@ typedef struct Ark_RestrictedWorker Ark_RestrictedWorker; typedef struct Opt_RestrictedWorker Opt_RestrictedWorker; typedef struct Ark_Want Ark_Want; typedef struct Opt_Want Opt_Want; -typedef Ark_Materialized Ark_NavDestinationContext; -typedef struct Opt_NavDestinationContext Opt_NavDestinationContext; typedef Ark_Materialized Ark_StyledString; typedef struct Opt_StyledString Opt_StyledString; -typedef struct Ark_NavigationAnimatedTransition Ark_NavigationAnimatedTransition; -typedef struct Opt_NavigationAnimatedTransition Opt_NavigationAnimatedTransition; -typedef struct Ark_NavContentInfo Ark_NavContentInfo; -typedef struct Opt_NavContentInfo Opt_NavContentInfo; typedef struct OnLinearIndicatorChangeCallback OnLinearIndicatorChangeCallback; typedef struct Opt_OnLinearIndicatorChangeCallback Opt_OnLinearIndicatorChangeCallback; typedef struct Ark_LinearIndicatorStyle Ark_LinearIndicatorStyle; @@ -901,20 +881,6 @@ typedef struct Ark_PluginComponentTemplate Ark_PluginComponentTemplate; typedef struct Opt_PluginComponentTemplate Opt_PluginComponentTemplate; typedef struct Ark_CircleStyleOptions Ark_CircleStyleOptions; typedef struct Opt_CircleStyleOptions Opt_CircleStyleOptions; -typedef struct Ark_NavigationToolbarOptions Ark_NavigationToolbarOptions; -typedef struct Opt_NavigationToolbarOptions Opt_NavigationToolbarOptions; -typedef struct Array_ToolbarItem Array_ToolbarItem; -typedef struct Opt_Array_ToolbarItem Opt_Array_ToolbarItem; -typedef struct Ark_NavigationTitleOptions Ark_NavigationTitleOptions; -typedef struct Opt_NavigationTitleOptions Opt_NavigationTitleOptions; -typedef struct Ark_NavDestinationCustomTitle Ark_NavDestinationCustomTitle; -typedef struct Opt_NavDestinationCustomTitle Opt_NavDestinationCustomTitle; -typedef struct Ark_NavDestinationCommonTitle Ark_NavDestinationCommonTitle; -typedef struct Opt_NavDestinationCommonTitle Opt_NavDestinationCommonTitle; -typedef struct Ark_SystemBarStyle Ark_SystemBarStyle; -typedef struct Opt_SystemBarStyle Opt_SystemBarStyle; -typedef struct Array_NavigationMenuItem Array_NavigationMenuItem; -typedef struct Opt_Array_NavigationMenuItem Opt_Array_NavigationMenuItem; typedef struct Ark_Union_ResourceStr_CustomBuilder Ark_Union_ResourceStr_CustomBuilder; typedef struct Opt_Union_ResourceStr_CustomBuilder Opt_Union_ResourceStr_CustomBuilder; typedef struct Ark_MenuItemOptions Ark_MenuItemOptions; @@ -975,8 +941,6 @@ typedef struct Ark_AnimateParam Ark_AnimateParam; typedef struct Opt_AnimateParam Opt_AnimateParam; typedef struct Ark_Union_ResourceStr_Scene Ark_Union_ResourceStr_Scene; typedef struct Opt_Union_ResourceStr_Scene Opt_Union_ResourceStr_Scene; -typedef Ark_Materialized Ark_IPropertySubscriber; -typedef struct Opt_IPropertySubscriber Opt_IPropertySubscriber; typedef struct Ark_UIGestureEvent Ark_UIGestureEvent; typedef struct Opt_UIGestureEvent Opt_UIGestureEvent; typedef struct OnMoveHandler OnMoveHandler; @@ -1139,8 +1103,6 @@ typedef struct Ark_WithThemeOptions Ark_WithThemeOptions; typedef struct Opt_WithThemeOptions Opt_WithThemeOptions; typedef struct WithThemeInterface WithThemeInterface; typedef struct Opt_WithThemeInterface Opt_WithThemeInterface; -typedef struct Type_NavigationAttribute_customNavContentTransition_delegate Type_NavigationAttribute_customNavContentTransition_delegate; -typedef struct Opt_Type_NavigationAttribute_customNavContentTransition_delegate Opt_Type_NavigationAttribute_customNavContentTransition_delegate; typedef struct SliderTriggerChangeCallback SliderTriggerChangeCallback; typedef struct Opt_SliderTriggerChangeCallback Opt_SliderTriggerChangeCallback; typedef struct ScrollOnScrollCallback ScrollOnScrollCallback; @@ -1153,10 +1115,6 @@ typedef struct Ark_IsolatedOptions Ark_IsolatedOptions; typedef struct Opt_IsolatedOptions Opt_IsolatedOptions; typedef struct IsolatedComponentInterface IsolatedComponentInterface; typedef struct Opt_IsolatedComponentInterface Opt_IsolatedComponentInterface; -typedef struct Ark_Union_NavDestinationContext_NavBar Ark_Union_NavDestinationContext_NavBar; -typedef struct Opt_Union_NavDestinationContext_NavBar Opt_Union_NavDestinationContext_NavBar; -typedef struct InterceptionShowCallback InterceptionShowCallback; -typedef struct Opt_InterceptionShowCallback Opt_InterceptionShowCallback; typedef struct InterceptionModeCallback InterceptionModeCallback; typedef struct Opt_InterceptionModeCallback Opt_InterceptionModeCallback; typedef struct HoverCallback HoverCallback; @@ -1187,16 +1145,12 @@ typedef struct Callback_Opt_TabContentAnimatedTransition_Void Callback_Opt_TabCo typedef struct Opt_Callback_Opt_TabContentAnimatedTransition_Void Opt_Callback_Opt_TabContentAnimatedTransition_Void; typedef struct Callback_Opt_StyledString_Opt_Array_String_Void Callback_Opt_StyledString_Opt_Array_String_Void; typedef struct Opt_Callback_Opt_StyledString_Opt_Array_String_Void Opt_Callback_Opt_StyledString_Opt_Array_String_Void; -typedef struct Callback_Opt_NavigationAnimatedTransition_Void Callback_Opt_NavigationAnimatedTransition_Void; -typedef struct Opt_Callback_Opt_NavigationAnimatedTransition_Void Opt_Callback_Opt_NavigationAnimatedTransition_Void; typedef struct Callback_Opt_Array_String_Void Callback_Opt_Array_String_Void; typedef struct Opt_Callback_Opt_Array_String_Void Opt_Callback_Opt_Array_String_Void; typedef struct Callback_OnScrollFrameBeginHandlerResult_Void Callback_OnScrollFrameBeginHandlerResult_Void; typedef struct Opt_Callback_OnScrollFrameBeginHandlerResult_Void Opt_Callback_OnScrollFrameBeginHandlerResult_Void; typedef struct Callback_OffsetResult_Void Callback_OffsetResult_Void; typedef struct Opt_Callback_OffsetResult_Void Opt_Callback_OffsetResult_Void; -typedef Ark_Materialized Ark_NavigationTransitionProxy; -typedef struct Opt_NavigationTransitionProxy Opt_NavigationTransitionProxy; typedef struct Callback_NavigationTitleMode_Void Callback_NavigationTitleMode_Void; typedef struct Opt_Callback_NavigationTitleMode_Void Opt_Callback_NavigationTitleMode_Void; typedef struct Callback_NavigationMode_Void Callback_NavigationMode_Void; @@ -1217,6 +1171,8 @@ typedef struct Callback_ComputedBarAttribute_Void Callback_ComputedBarAttribute_ typedef struct Opt_Callback_ComputedBarAttribute_Void Opt_Callback_ComputedBarAttribute_Void; typedef struct Callback_Callback_Any_Void Callback_Callback_Any_Void; typedef struct Opt_Callback_Callback_Any_Void Opt_Callback_Callback_Any_Void; +typedef struct Callback_Boolean Callback_Boolean; +typedef struct Opt_Callback_Boolean Opt_Callback_Boolean; typedef struct Callback_Array_String_Void Callback_Array_String_Void; typedef struct Opt_Callback_Array_String_Void Opt_Callback_Array_String_Void; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; @@ -1805,28 +1761,6 @@ typedef struct Ark_Literal_String_target_NavigationType_type Ark_Literal_String_ typedef struct Opt_Literal_String_target_NavigationType_type Opt_Literal_String_target_NavigationType_type; typedef struct Ark_RouteInfo Ark_RouteInfo; typedef struct Opt_RouteInfo Opt_RouteInfo; -typedef struct Array_LayoutSafeAreaEdge Array_LayoutSafeAreaEdge; -typedef struct Opt_Array_LayoutSafeAreaEdge Opt_Array_LayoutSafeAreaEdge; -typedef struct Array_LayoutSafeAreaType Array_LayoutSafeAreaType; -typedef struct Opt_Array_LayoutSafeAreaType Opt_Array_LayoutSafeAreaType; -typedef struct Ark_ToolbarItem Ark_ToolbarItem; -typedef struct Opt_ToolbarItem Opt_ToolbarItem; -typedef struct Ark_Union_Array_ToolbarItem_CustomBuilder Ark_Union_Array_ToolbarItem_CustomBuilder; -typedef struct Opt_Union_Array_ToolbarItem_CustomBuilder Opt_Union_Array_ToolbarItem_CustomBuilder; -typedef struct Ark_Type_NavDestinationAttribute_title_value Ark_Type_NavDestinationAttribute_title_value; -typedef struct Opt_Type_NavDestinationAttribute_title_value Opt_Type_NavDestinationAttribute_title_value; -typedef struct Callback_NavDestinationContext_Void Callback_NavDestinationContext_Void; -typedef struct Opt_Callback_NavDestinationContext_Void Opt_Callback_NavDestinationContext_Void; -typedef struct Ark_NavigationMenuItem Ark_NavigationMenuItem; -typedef struct Opt_NavigationMenuItem Opt_NavigationMenuItem; -typedef struct Ark_Union_Array_NavigationMenuItem_CustomBuilder Ark_Union_Array_NavigationMenuItem_CustomBuilder; -typedef struct Opt_Union_Array_NavigationMenuItem_CustomBuilder Opt_Union_Array_NavigationMenuItem_CustomBuilder; -typedef struct Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier; -typedef struct Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier; -typedef struct Callback_Boolean Callback_Boolean; -typedef struct Opt_Callback_Boolean Opt_Callback_Boolean; -typedef struct Ark_PopInfo Ark_PopInfo; -typedef struct Opt_PopInfo Opt_PopInfo; typedef struct Ark_MenuItemGroupOptions Ark_MenuItemGroupOptions; typedef struct Opt_MenuItemGroupOptions Opt_MenuItemGroupOptions; typedef struct Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier Ark_Union_Boolean_ResourceStr_SymbolGlyphModifier; @@ -1905,6 +1839,8 @@ typedef struct Ark_GridContainerOptions Ark_GridContainerOptions; typedef struct Opt_GridContainerOptions Opt_GridContainerOptions; typedef struct Ark_GridColOptions Ark_GridColOptions; typedef struct Opt_GridColOptions Opt_GridColOptions; +typedef struct Callback_Boolean_Void Callback_Boolean_Void; +typedef struct Opt_Callback_Boolean_Void Opt_Callback_Boolean_Void; typedef struct Ark_GridItemOptions Ark_GridItemOptions; typedef struct Opt_GridItemOptions Opt_GridItemOptions; typedef struct Ark_Literal_Number_offsetRemain Ark_Literal_Number_offsetRemain; @@ -2518,14 +2454,6 @@ typedef struct Opt_SymbolEffectStrategy { Ark_Tag tag; Ark_SymbolEffectStrategy value; } Opt_SymbolEffectStrategy; -typedef enum Ark_TitleHeight { - ARK_TITLE_HEIGHT_MAIN_ONLY = 0, - ARK_TITLE_HEIGHT_MAIN_WITH_SUB = 1, -} Ark_TitleHeight; -typedef struct Opt_TitleHeight { - Ark_Tag tag; - Ark_TitleHeight value; -} Opt_TitleHeight; typedef enum Ark_GradientDirection { ARK_GRADIENT_DIRECTION_LEFT = 0, ARK_GRADIENT_DIRECTION_TOP = 1, @@ -2576,14 +2504,6 @@ typedef struct Opt_DialogButtonStyle { Ark_Tag tag; Ark_DialogButtonStyle value; } Opt_DialogButtonStyle; -typedef enum Ark_NavDestinationMode { - ARK_NAV_DESTINATION_MODE_STANDARD = 0, - ARK_NAV_DESTINATION_MODE_DIALOG = 1, -} Ark_NavDestinationMode; -typedef struct Opt_NavDestinationMode { - Ark_Tag tag; - Ark_NavDestinationMode value; -} Opt_NavDestinationMode; typedef enum Ark_StyledStringKey { ARK_STYLED_STRING_KEY_FONT = 0, ARK_STYLED_STRING_KEY_DECORATION = 1, @@ -2816,15 +2736,6 @@ typedef struct Opt_ProgressStatus { Ark_Tag tag; Ark_ProgressStatus value; } Opt_ProgressStatus; -typedef enum Ark_BarStyle { - ARK_BAR_STYLE_STANDARD = 0, - ARK_BAR_STYLE_STACK = 1, - ARK_BAR_STYLE_SAFE_AREA_PADDING = 2, -} Ark_BarStyle; -typedef struct Opt_BarStyle { - Ark_Tag tag; - Ark_BarStyle value; -} Opt_BarStyle; typedef enum Ark_BreakpointsReference { ARK_BREAKPOINTS_REFERENCE_WINDOW_SIZE = 0, ARK_BREAKPOINTS_REFERENCE_COMPONENT_SIZE = 1, @@ -3448,15 +3359,6 @@ typedef struct Opt_NavigationType { Ark_Tag tag; Ark_NavigationType value; } Opt_NavigationType; -typedef enum Ark_ToolbarItemStatus { - ARK_TOOLBAR_ITEM_STATUS_NORMAL = 0, - ARK_TOOLBAR_ITEM_STATUS_DISABLED = 1, - ARK_TOOLBAR_ITEM_STATUS_ACTIVE = 2, -} Ark_ToolbarItemStatus; -typedef struct Opt_ToolbarItemStatus { - Ark_Tag tag; - Ark_ToolbarItemStatus value; -} Opt_ToolbarItemStatus; typedef enum Ark_LocationDescription { ARK_LOCATION_DESCRIPTION_CURRENT_LOCATION = 0, ARK_LOCATION_DESCRIPTION_ADD_LOCATION = 1, @@ -4061,15 +3963,6 @@ typedef struct Opt_RouteType { Ark_Tag tag; Ark_RouteType value; } Opt_RouteType; -typedef enum Ark_NavigationOperation { - ARK_NAVIGATION_OPERATION_PUSH = 1, - ARK_NAVIGATION_OPERATION_POP = 2, - ARK_NAVIGATION_OPERATION_REPLACE = 3, -} Ark_NavigationOperation; -typedef struct Opt_NavigationOperation { - Ark_Tag tag; - Ark_NavigationOperation value; -} Opt_NavigationOperation; typedef enum Ark_NavigationTitleMode { ARK_NAVIGATION_TITLE_MODE_FREE = 0, ARK_NAVIGATION_TITLE_MODE_FULL = 1, @@ -4435,31 +4328,6 @@ typedef struct Opt_NavRouteMode { Ark_Tag tag; Ark_NavRouteMode value; } Opt_NavRouteMode; -typedef enum Ark_LayoutSafeAreaEdge { - ARK_LAYOUT_SAFE_AREA_EDGE_TOP = 0, - ARK_LAYOUT_SAFE_AREA_EDGE_BOTTOM = 1, -} Ark_LayoutSafeAreaEdge; -typedef struct Opt_LayoutSafeAreaEdge { - Ark_Tag tag; - Ark_LayoutSafeAreaEdge value; -} Opt_LayoutSafeAreaEdge; -typedef enum Ark_LayoutSafeAreaType { - ARK_LAYOUT_SAFE_AREA_TYPE_SYSTEM = 0, -} Ark_LayoutSafeAreaType; -typedef struct Opt_LayoutSafeAreaType { - Ark_Tag tag; - Ark_LayoutSafeAreaType value; -} Opt_LayoutSafeAreaType; -typedef enum Ark_NavigationSystemTransitionType { - ARK_NAVIGATION_SYSTEM_TRANSITION_TYPE_DEFAULT = 0, - ARK_NAVIGATION_SYSTEM_TRANSITION_TYPE_NONE = 1, - ARK_NAVIGATION_SYSTEM_TRANSITION_TYPE_TITLE = 2, - ARK_NAVIGATION_SYSTEM_TRANSITION_TYPE_CONTENT = 3, -} Ark_NavigationSystemTransitionType; -typedef struct Opt_NavigationSystemTransitionType { - Ark_Tag tag; - Ark_NavigationSystemTransitionType value; -} Opt_NavigationSystemTransitionType; typedef enum Ark_SubMenuExpandingMode { ARK_SUB_MENU_EXPANDING_MODE_SIDE_EXPAND = 0, ARK_SUB_MENU_EXPANDING_MODE_EMBEDDED_EXPAND = 1, @@ -5080,19 +4948,6 @@ typedef struct Opt_GridRowSizeOption { Ark_Tag tag; Ark_GridRowSizeOption value; } Opt_GridRowSizeOption; -typedef struct Callback_PopInfo_Void { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_PopInfo parameter); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_PopInfo parameter); -} Callback_PopInfo_Void; -typedef struct Opt_Callback_PopInfo_Void { - Ark_Tag tag; - Callback_PopInfo_Void value; -} Opt_Callback_PopInfo_Void; -typedef struct Opt_CustomObject { - Ark_Tag tag; - Ark_CustomObject value; -} Opt_CustomObject; typedef struct Ark_BackgroundColorStyle { Ark_TextBackgroundStyle textBackgroundStyle; } Ark_BackgroundColorStyle; @@ -5574,6 +5429,10 @@ typedef struct Opt_Union_SheetSize_Length { Ark_Tag tag; Ark_Union_SheetSize_Length value; } Opt_Union_SheetSize_Length; +typedef struct Opt_CustomObject { + Ark_Tag tag; + Ark_CustomObject value; +} Opt_CustomObject; typedef struct Opt_TransitionEffect { Ark_Tag tag; Ark_TransitionEffect value; @@ -5638,41 +5497,6 @@ typedef struct Opt_Map_String_CustomObject { Ark_Tag tag; Map_String_CustomObject value; } Opt_Map_String_CustomObject; -typedef struct Ark_NavPathStack { - void *handle; -} Ark_NavPathStack; -typedef struct Opt_NavPathStack { - Ark_Tag tag; - Ark_NavPathStack value; -} Opt_NavPathStack; -typedef struct Ark_NavPathInfo { - Ark_String name; - Opt_CustomObject param; - Opt_Callback_PopInfo_Void onPop; - Opt_Boolean isEntry; -} Ark_NavPathInfo; -typedef struct Opt_NavPathInfo { - Ark_Tag tag; - Ark_NavPathInfo value; -} Opt_NavPathInfo; -typedef struct Callback_NavigationTransitionProxy_Void { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_NavigationTransitionProxy transitionProxy); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_NavigationTransitionProxy transitionProxy); -} Callback_NavigationTransitionProxy_Void; -typedef struct Opt_Callback_NavigationTransitionProxy_Void { - Ark_Tag tag; - Callback_NavigationTransitionProxy_Void value; -} Opt_Callback_NavigationTransitionProxy_Void; -typedef struct Callback_Boolean_Void { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_Boolean parameter); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Boolean parameter); -} Callback_Boolean_Void; -typedef struct Opt_Callback_Boolean_Void { - Ark_Tag tag; - Callback_Boolean_Void value; -} Opt_Callback_Boolean_Void; typedef struct Ark_ColorMetrics { Ark_String __ColorMetricsStub; } Ark_ColorMetrics; @@ -6235,24 +6059,6 @@ typedef struct Opt_Union_String_Number_Resource { Ark_Tag tag; Ark_Union_String_Number_Resource value; } Opt_Union_String_Number_Resource; -typedef struct Ark_TextModifier { - void *handle; -} Ark_TextModifier; -typedef struct Opt_TextModifier { - Ark_Tag tag; - Ark_TextModifier value; -} Opt_TextModifier; -typedef struct Ark_Union_TitleHeight_Length { - Ark_Int32 selector; - union { - Ark_TitleHeight value0; - Ark_Length value1; - }; -} Ark_Union_TitleHeight_Length; -typedef struct Opt_Union_TitleHeight_Length { - Ark_Tag tag; - Ark_Union_TitleHeight_Length value; -} Opt_Union_TitleHeight_Length; typedef struct Ark_SwipeActionItem { Opt_CustomNodeBuilder builder; Opt_Length actionAreaDistance; @@ -6855,35 +6661,10 @@ typedef struct Opt_Want { Ark_Tag tag; Ark_Want value; } Opt_Want; -typedef struct Opt_NavDestinationContext { - Ark_Tag tag; - Ark_NavDestinationContext value; -} Opt_NavDestinationContext; typedef struct Opt_StyledString { Ark_Tag tag; Ark_StyledString value; } Opt_StyledString; -typedef struct Ark_NavigationAnimatedTransition { - Opt_Callback_Boolean_Void onTransitionEnd; - Opt_Number timeout; - Opt_Boolean isInteractive; - Callback_NavigationTransitionProxy_Void transition; -} Ark_NavigationAnimatedTransition; -typedef struct Opt_NavigationAnimatedTransition { - Ark_Tag tag; - Ark_NavigationAnimatedTransition value; -} Opt_NavigationAnimatedTransition; -typedef struct Ark_NavContentInfo { - Opt_String name; - Ark_Number index; - Opt_NavDestinationMode mode; - Opt_CustomObject param; - Opt_String navDestinationId; -} Ark_NavContentInfo; -typedef struct Opt_NavContentInfo { - Ark_Tag tag; - Ark_NavContentInfo value; -} Opt_NavContentInfo; typedef struct OnLinearIndicatorChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number index, const Ark_Number progress); @@ -7987,68 +7768,6 @@ typedef struct Opt_CircleStyleOptions { Ark_Tag tag; Ark_CircleStyleOptions value; } Opt_CircleStyleOptions; -typedef struct Ark_NavigationToolbarOptions { - Opt_ResourceColor backgroundColor; - Opt_BlurStyle backgroundBlurStyle; - Opt_BarStyle barStyle; -} Ark_NavigationToolbarOptions; -typedef struct Opt_NavigationToolbarOptions { - Ark_Tag tag; - Ark_NavigationToolbarOptions value; -} Opt_NavigationToolbarOptions; -typedef struct Array_ToolbarItem { - Ark_ToolbarItem* array; - Ark_Int32 length; -} Array_ToolbarItem; -typedef struct Opt_Array_ToolbarItem { - Ark_Tag tag; - Array_ToolbarItem value; -} Opt_Array_ToolbarItem; -typedef struct Ark_NavigationTitleOptions { - Opt_ResourceColor backgroundColor; - Opt_BlurStyle backgroundBlurStyle; - Opt_BarStyle barStyle; - Opt_LengthMetrics paddingStart; - Opt_LengthMetrics paddingEnd; - Opt_TextModifier mainTitleModifier; - Opt_TextModifier subTitleModifier; - Opt_Boolean enableHoverMode; -} Ark_NavigationTitleOptions; -typedef struct Opt_NavigationTitleOptions { - Ark_Tag tag; - Ark_NavigationTitleOptions value; -} Opt_NavigationTitleOptions; -typedef struct Ark_NavDestinationCustomTitle { - CustomNodeBuilder builder; - Ark_Union_TitleHeight_Length height; -} Ark_NavDestinationCustomTitle; -typedef struct Opt_NavDestinationCustomTitle { - Ark_Tag tag; - Ark_NavDestinationCustomTitle value; -} Opt_NavDestinationCustomTitle; -typedef struct Ark_NavDestinationCommonTitle { - Ark_Union_String_Resource main; - Ark_Union_String_Resource sub; -} Ark_NavDestinationCommonTitle; -typedef struct Opt_NavDestinationCommonTitle { - Ark_Tag tag; - Ark_NavDestinationCommonTitle value; -} Opt_NavDestinationCommonTitle; -typedef struct Ark_SystemBarStyle { - Ark_String __SystemBarStyleStub; -} Ark_SystemBarStyle; -typedef struct Opt_SystemBarStyle { - Ark_Tag tag; - Ark_SystemBarStyle value; -} Opt_SystemBarStyle; -typedef struct Array_NavigationMenuItem { - Ark_NavigationMenuItem* array; - Ark_Int32 length; -} Array_NavigationMenuItem; -typedef struct Opt_Array_NavigationMenuItem { - Ark_Tag tag; - Array_NavigationMenuItem value; -} Opt_Array_NavigationMenuItem; typedef struct Ark_Union_ResourceStr_CustomBuilder { Ark_Int32 selector; union { @@ -8357,10 +8076,6 @@ typedef struct Opt_Union_ResourceStr_Scene { Ark_Tag tag; Ark_Union_ResourceStr_Scene value; } Opt_Union_ResourceStr_Scene; -typedef struct Opt_IPropertySubscriber { - Ark_Tag tag; - Ark_IPropertySubscriber value; -} Opt_IPropertySubscriber; typedef struct Ark_UIGestureEvent { void *handle; } Ark_UIGestureEvent; @@ -9283,15 +8998,6 @@ typedef struct Opt_WithThemeInterface { Ark_Tag tag; WithThemeInterface value; } Opt_WithThemeInterface; -typedef struct Type_NavigationAttribute_customNavContentTransition_delegate { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_NavContentInfo from, const Ark_NavContentInfo to, Ark_NavigationOperation operation, const Callback_Opt_NavigationAnimatedTransition_Void continuation); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_NavContentInfo from, const Ark_NavContentInfo to, Ark_NavigationOperation operation, const Callback_Opt_NavigationAnimatedTransition_Void continuation); -} Type_NavigationAttribute_customNavContentTransition_delegate; -typedef struct Opt_Type_NavigationAttribute_customNavContentTransition_delegate { - Ark_Tag tag; - Type_NavigationAttribute_customNavContentTransition_delegate value; -} Opt_Type_NavigationAttribute_customNavContentTransition_delegate; typedef struct SliderTriggerChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number value, Ark_SliderChangeMode mode); @@ -9345,26 +9051,6 @@ typedef struct Opt_IsolatedComponentInterface { Ark_Tag tag; IsolatedComponentInterface value; } Opt_IsolatedComponentInterface; -typedef struct Ark_Union_NavDestinationContext_NavBar { - Ark_Int32 selector; - union { - Ark_NavDestinationContext value0; - Ark_String value1; - }; -} Ark_Union_NavDestinationContext_NavBar; -typedef struct Opt_Union_NavDestinationContext_NavBar { - Ark_Tag tag; - Ark_Union_NavDestinationContext_NavBar value; -} Opt_Union_NavDestinationContext_NavBar; -typedef struct InterceptionShowCallback { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_Union_NavDestinationContext_NavBar from, const Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, const Ark_Boolean isAnimated); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Union_NavDestinationContext_NavBar from, const Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, const Ark_Boolean isAnimated); -} InterceptionShowCallback; -typedef struct Opt_InterceptionShowCallback { - Ark_Tag tag; - InterceptionShowCallback value; -} Opt_InterceptionShowCallback; typedef struct InterceptionModeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, Ark_NavigationMode mode); @@ -9498,15 +9184,6 @@ typedef struct Opt_Callback_Opt_StyledString_Opt_Array_String_Void { Ark_Tag tag; Callback_Opt_StyledString_Opt_Array_String_Void value; } Opt_Callback_Opt_StyledString_Opt_Array_String_Void; -typedef struct Callback_Opt_NavigationAnimatedTransition_Void { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Opt_NavigationAnimatedTransition value); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Opt_NavigationAnimatedTransition value); -} Callback_Opt_NavigationAnimatedTransition_Void; -typedef struct Opt_Callback_Opt_NavigationAnimatedTransition_Void { - Ark_Tag tag; - Callback_Opt_NavigationAnimatedTransition_Void value; -} Opt_Callback_Opt_NavigationAnimatedTransition_Void; typedef struct Callback_Opt_Array_String_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Opt_Array_String error); @@ -9534,10 +9211,6 @@ typedef struct Opt_Callback_OffsetResult_Void { Ark_Tag tag; Callback_OffsetResult_Void value; } Opt_Callback_OffsetResult_Void; -typedef struct Opt_NavigationTransitionProxy { - Ark_Tag tag; - Ark_NavigationTransitionProxy value; -} Opt_NavigationTransitionProxy; typedef struct Callback_NavigationTitleMode_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, Ark_NavigationTitleMode titleMode); @@ -9626,6 +9299,15 @@ typedef struct Opt_Callback_Callback_Any_Void { Ark_Tag tag; Callback_Callback_Any_Void value; } Opt_Callback_Callback_Any_Void; +typedef struct Callback_Boolean { + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Callback_Boolean_Void continuation); + void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Callback_Boolean_Void continuation); +} Callback_Boolean; +typedef struct Opt_Callback_Boolean { + Ark_Tag tag; + Callback_Boolean value; +} Opt_Callback_Boolean; typedef struct Callback_Array_String_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Array_String value); @@ -12232,120 +11914,6 @@ typedef struct Opt_RouteInfo { Ark_Tag tag; Ark_RouteInfo value; } Opt_RouteInfo; -typedef struct Array_LayoutSafeAreaEdge { - Ark_LayoutSafeAreaEdge* array; - Ark_Int32 length; -} Array_LayoutSafeAreaEdge; -typedef struct Opt_Array_LayoutSafeAreaEdge { - Ark_Tag tag; - Array_LayoutSafeAreaEdge value; -} Opt_Array_LayoutSafeAreaEdge; -typedef struct Array_LayoutSafeAreaType { - Ark_LayoutSafeAreaType* array; - Ark_Int32 length; -} Array_LayoutSafeAreaType; -typedef struct Opt_Array_LayoutSafeAreaType { - Ark_Tag tag; - Array_LayoutSafeAreaType value; -} Opt_Array_LayoutSafeAreaType; -typedef struct Ark_ToolbarItem { - Ark_ResourceStr value; - Opt_ResourceStr icon; - Opt_SymbolGlyphModifier symbolIcon; - Opt_Callback_Void action; - Opt_ToolbarItemStatus status; - Opt_ResourceStr activeIcon; - Opt_SymbolGlyphModifier activeSymbolIcon; -} Ark_ToolbarItem; -typedef struct Opt_ToolbarItem { - Ark_Tag tag; - Ark_ToolbarItem value; -} Opt_ToolbarItem; -typedef struct Ark_Union_Array_ToolbarItem_CustomBuilder { - Ark_Int32 selector; - union { - Array_ToolbarItem value0; - CustomNodeBuilder value1; - }; -} Ark_Union_Array_ToolbarItem_CustomBuilder; -typedef struct Opt_Union_Array_ToolbarItem_CustomBuilder { - Ark_Tag tag; - Ark_Union_Array_ToolbarItem_CustomBuilder value; -} Opt_Union_Array_ToolbarItem_CustomBuilder; -typedef struct Ark_Type_NavDestinationAttribute_title_value { - Ark_Int32 selector; - union { - Ark_String value0; - CustomNodeBuilder value1; - Ark_NavDestinationCommonTitle value2; - Ark_NavDestinationCustomTitle value3; - Ark_Resource value4; - }; -} Ark_Type_NavDestinationAttribute_title_value; -typedef struct Opt_Type_NavDestinationAttribute_title_value { - Ark_Tag tag; - Ark_Type_NavDestinationAttribute_title_value value; -} Opt_Type_NavDestinationAttribute_title_value; -typedef struct Callback_NavDestinationContext_Void { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Ark_NavDestinationContext parameter); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_NavDestinationContext parameter); -} Callback_NavDestinationContext_Void; -typedef struct Opt_Callback_NavDestinationContext_Void { - Ark_Tag tag; - Callback_NavDestinationContext_Void value; -} Opt_Callback_NavDestinationContext_Void; -typedef struct Ark_NavigationMenuItem { - Ark_Union_String_Resource value; - Opt_Union_String_Resource icon; - Opt_SymbolGlyphModifier symbolIcon; - Opt_Boolean isEnabled; - Opt_Callback_Void action; -} Ark_NavigationMenuItem; -typedef struct Opt_NavigationMenuItem { - Ark_Tag tag; - Ark_NavigationMenuItem value; -} Opt_NavigationMenuItem; -typedef struct Ark_Union_Array_NavigationMenuItem_CustomBuilder { - Ark_Int32 selector; - union { - Array_NavigationMenuItem value0; - CustomNodeBuilder value1; - }; -} Ark_Union_Array_NavigationMenuItem_CustomBuilder; -typedef struct Opt_Union_Array_NavigationMenuItem_CustomBuilder { - Ark_Tag tag; - Ark_Union_Array_NavigationMenuItem_CustomBuilder value; -} Opt_Union_Array_NavigationMenuItem_CustomBuilder; -typedef struct Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier { - Ark_Int32 selector; - union { - Ark_ResourceStr value0; - Ark_PixelMap value1; - Ark_SymbolGlyphModifier value2; - }; -} Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier; -typedef struct Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier { - Ark_Tag tag; - Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier value; -} Opt_Union_ResourceStr_PixelMap_SymbolGlyphModifier; -typedef struct Callback_Boolean { - Ark_CallbackResource resource; - void (*call)(const Ark_Int32 resourceId, const Callback_Boolean_Void continuation); - void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Callback_Boolean_Void continuation); -} Callback_Boolean; -typedef struct Opt_Callback_Boolean { - Ark_Tag tag; - Callback_Boolean value; -} Opt_Callback_Boolean; -typedef struct Ark_PopInfo { - Ark_NavPathInfo info; - Ark_CustomObject result; -} Ark_PopInfo; -typedef struct Opt_PopInfo { - Ark_Tag tag; - Ark_PopInfo value; -} Opt_PopInfo; typedef struct Ark_MenuItemGroupOptions { Opt_Union_ResourceStr_CustomBuilder header; Opt_Union_ResourceStr_CustomBuilder footer; @@ -12739,6 +12307,15 @@ typedef struct Opt_GridColOptions { Ark_Tag tag; Ark_GridColOptions value; } Opt_GridColOptions; +typedef struct Callback_Boolean_Void { + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_Boolean parameter); + void (*callSync)(Ark_VMContext context, const Ark_Int32 resourceId, const Ark_Boolean parameter); +} Callback_Boolean_Void; +typedef struct Opt_Callback_Boolean_Void { + Ark_Tag tag; + Callback_Boolean_Void value; +} Opt_Callback_Boolean_Void; typedef struct Ark_GridItemOptions { Opt_GridItemStyle style; } Ark_GridItemOptions; @@ -16040,57 +15617,6 @@ typedef struct GENERATED_ArkUIMenuItemGroupModifier { const Opt_MenuItemGroupOptions* value); } GENERATED_ArkUIMenuItemGroupModifier; -typedef struct GENERATED_ArkUINavDestinationModifier { - Ark_NativePointer (*construct)(Ark_Int32 id, - Ark_Int32 flags); - void (*setNavDestinationOptions)(Ark_NativePointer node); - void (*setHideTitleBar0)(Ark_NativePointer node, - Ark_Boolean value); - void (*setHideTitleBar1)(Ark_NativePointer node, - Ark_Boolean hide, - Ark_Boolean animated); - void (*setOnShown)(Ark_NativePointer node, - const Callback_Void* value); - void (*setOnHidden)(Ark_NativePointer node, - const Callback_Void* value); - void (*setOnBackPressed)(Ark_NativePointer node, - const Callback_Boolean* value); - void (*setMode)(Ark_NativePointer node, - Ark_NavDestinationMode value); - void (*setBackButtonIcon)(Ark_NativePointer node, - const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier* value); - void (*setMenus)(Ark_NativePointer node, - const Ark_Union_Array_NavigationMenuItem_CustomBuilder* value); - void (*setOnReady)(Ark_NativePointer node, - const Callback_NavDestinationContext_Void* value); - void (*setOnWillAppear)(Ark_NativePointer node, - const Callback_Void* value); - void (*setOnWillDisappear)(Ark_NativePointer node, - const Callback_Void* value); - void (*setOnWillShow)(Ark_NativePointer node, - const Callback_Void* value); - void (*setOnWillHide)(Ark_NativePointer node, - const Callback_Void* value); - void (*setSystemBarStyle)(Ark_NativePointer node, - const Opt_SystemBarStyle* value); - void (*setRecoverable)(Ark_NativePointer node, - const Opt_Boolean* value); - void (*setSystemTransition)(Ark_NativePointer node, - Ark_NavigationSystemTransitionType value); - void (*setTitle)(Ark_NativePointer node, - const Ark_Type_NavDestinationAttribute_title_value* value, - const Opt_NavigationTitleOptions* options); - void (*setToolbarConfiguration)(Ark_NativePointer node, - const Ark_Union_Array_ToolbarItem_CustomBuilder* toolbarParam, - const Opt_NavigationToolbarOptions* options); - void (*setHideToolBar)(Ark_NativePointer node, - Ark_Boolean hide, - const Opt_Boolean* animated); - void (*setIgnoreLayoutSafeArea)(Ark_NativePointer node, - const Opt_Array_LayoutSafeAreaType* types, - const Opt_Array_LayoutSafeAreaEdge* edges); -} GENERATED_ArkUINavDestinationModifier; - typedef struct GENERATED_ArkUINavRouterModifier { Ark_NativePointer (*construct)(Ark_Int32 id, Ark_Int32 flags); @@ -18520,23 +18046,6 @@ typedef struct GENERATED_ArkUIProgressMaskAccessor { Ark_Boolean value); } GENERATED_ArkUIProgressMaskAccessor; -typedef struct AttributeModifierPeer AttributeModifierPeer; -typedef struct GENERATED_ArkUIAttributeModifierAccessor { - void (*destroyPeer)(AttributeModifierPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - void (*applyNormalAttribute)(AttributeModifierPeer* peer, - const Ark_CustomObject* instance); - void (*applyPressedAttribute)(AttributeModifierPeer* peer, - const Ark_CustomObject* instance); - void (*applyFocusedAttribute)(AttributeModifierPeer* peer, - const Ark_CustomObject* instance); - void (*applyDisabledAttribute)(AttributeModifierPeer* peer, - const Ark_CustomObject* instance); - void (*applySelectedAttribute)(AttributeModifierPeer* peer, - const Ark_CustomObject* instance); -} GENERATED_ArkUIAttributeModifierAccessor; - typedef struct ViewPeer ViewPeer; typedef struct GENERATED_ArkUIViewAccessor { void (*destroyPeer)(ViewPeer* peer); @@ -18591,52 +18100,6 @@ typedef struct GENERATED_ArkUIGestureModifierAccessor { const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct AbstractPropertyPeer AbstractPropertyPeer; -typedef struct GENERATED_ArkUIAbstractPropertyAccessor { - void (*destroyPeer)(AbstractPropertyPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - void (*get)(AbstractPropertyPeer* peer); - void (*set)(AbstractPropertyPeer* peer, - const Ark_CustomObject* newValue); - void (*info)(AbstractPropertyPeer* peer); -} GENERATED_ArkUIAbstractPropertyAccessor; - -typedef struct IPropertySubscriberPeer IPropertySubscriberPeer; -typedef struct GENERATED_ArkUIIPropertySubscriberAccessor { - void (*destroyPeer)(IPropertySubscriberPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*id)(IPropertySubscriberPeer* peer); - void (*aboutToBeDeleted)(IPropertySubscriberPeer* peer, - const Opt_IPropertySubscriber* owningView); -} GENERATED_ArkUIIPropertySubscriberAccessor; - -typedef struct ISinglePropertyChangeSubscriberPeer ISinglePropertyChangeSubscriberPeer; -typedef struct GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor { - void (*destroyPeer)(ISinglePropertyChangeSubscriberPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - void (*hasChanged)(ISinglePropertyChangeSubscriberPeer* peer, - const Ark_CustomObject* newValue); -} GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor; - -typedef struct SubscribaleAbstractPeer SubscribaleAbstractPeer; -typedef struct GENERATED_ArkUISubscribaleAbstractAccessor { - void (*destroyPeer)(SubscribaleAbstractPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - void (*notifyPropertyHasChanged)(SubscribaleAbstractPeer* peer, - const Ark_String* propName, - const Ark_CustomObject* newValue); - void (*addOwningProperty)(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* subscriber); - void (*removeOwningProperty)(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* property); - void (*removeOwningPropertyById)(SubscribaleAbstractPeer* peer, - const Ark_Number* subscriberId); -} GENERATED_ArkUISubscribaleAbstractAccessor; - typedef struct ContextMenuPeer ContextMenuPeer; typedef struct GENERATED_ArkUIContextMenuAccessor { void (*destroyPeer)(ContextMenuPeer* peer); @@ -18787,39 +18250,6 @@ typedef struct GENERATED_ArkUIMatrix2DAccessor { const Ark_Number* translateY); } GENERATED_ArkUIMatrix2DAccessor; -typedef struct NavDestinationContextPeer NavDestinationContextPeer; -typedef struct GENERATED_ArkUINavDestinationContextAccessor { - void (*destroyPeer)(NavDestinationContextPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getConfigInRouteMap)(NavDestinationContextPeer* peer); - void (*setPathInfo)(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo); - void (*setPathStack)(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack); - void (*getNavDestinationId)(NavDestinationContextPeer* peer); - void (*setNavDestinationId)(NavDestinationContextPeer* peer, - const Ark_String* navDestinationId); -} GENERATED_ArkUINavDestinationContextAccessor; - -typedef struct NavigationTransitionProxyPeer NavigationTransitionProxyPeer; -typedef struct GENERATED_ArkUINavigationTransitionProxyAccessor { - void (*destroyPeer)(NavigationTransitionProxyPeer* peer); - Ark_NativePointer (*ctor)(); - Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(NavigationTransitionProxyPeer* peer); - void (*cancelTransition)(NavigationTransitionProxyPeer* peer); - void (*updateTransition)(NavigationTransitionProxyPeer* peer, - const Ark_Number* progress); - void (*setFrom)(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* from); - void (*setTo)(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* to); - Ark_Boolean (*getIsInteractive)(NavigationTransitionProxyPeer* peer); - void (*setIsInteractive)(NavigationTransitionProxyPeer* peer, - Ark_Boolean isInteractive); -} GENERATED_ArkUINavigationTransitionProxyAccessor; - typedef struct PatternLockControllerPeer PatternLockControllerPeer; typedef struct GENERATED_ArkUIPatternLockControllerAccessor { void (*destroyPeer)(PatternLockControllerPeer* peer); @@ -19953,18 +19383,6 @@ typedef struct GENERATED_ArkUIMenuItemEventsReceiver { const Ark_Boolean parameter); } GENERATED_ArkUIMenuItemEventsReceiver; -typedef struct GENERATED_ArkUINavDestinationEventsReceiver { - void (*onShown)(Ark_Int32 nodeId); - void (*onHidden)(Ark_Int32 nodeId); - void (*onBackPressed)(Ark_Int32 nodeId); - void (*onReady)(Ark_Int32 nodeId, - const Ark_NavDestinationContext parameter); - void (*onWillAppear)(Ark_Int32 nodeId); - void (*onWillDisappear)(Ark_Int32 nodeId); - void (*onWillShow)(Ark_Int32 nodeId); - void (*onWillHide)(Ark_Int32 nodeId); -} GENERATED_ArkUINavDestinationEventsReceiver; - typedef struct GENERATED_ArkUINavRouterEventsReceiver { void (*onStateChange)(Ark_Int32 nodeId, const Ark_Boolean parameter); @@ -20540,7 +19958,6 @@ typedef struct GENERATED_ArkUINodeModifiers { const GENERATED_ArkUIMenuModifier* (*getMenuModifier)(); const GENERATED_ArkUIMenuItemModifier* (*getMenuItemModifier)(); const GENERATED_ArkUIMenuItemGroupModifier* (*getMenuItemGroupModifier)(); - const GENERATED_ArkUINavDestinationModifier* (*getNavDestinationModifier)(); const GENERATED_ArkUINavRouterModifier* (*getNavRouterModifier)(); const GENERATED_ArkUINavigatorModifier* (*getNavigatorModifier)(); const GENERATED_ArkUINodeContainerModifier* (*getNodeContainerModifier)(); @@ -20626,16 +20043,11 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUITransitionEffectAccessor* (*getTransitionEffectAccessor)(); const GENERATED_ArkUIPixelMapMockAccessor* (*getPixelMapMockAccessor)(); const GENERATED_ArkUIProgressMaskAccessor* (*getProgressMaskAccessor)(); - const GENERATED_ArkUIAttributeModifierAccessor* (*getAttributeModifierAccessor)(); const GENERATED_ArkUIViewAccessor* (*getViewAccessor)(); const GENERATED_ArkUITextContentControllerBaseAccessor* (*getTextContentControllerBaseAccessor)(); const GENERATED_ArkUIDynamicNodeAccessor* (*getDynamicNodeAccessor)(); const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); - const GENERATED_ArkUIAbstractPropertyAccessor* (*getAbstractPropertyAccessor)(); - const GENERATED_ArkUIIPropertySubscriberAccessor* (*getIPropertySubscriberAccessor)(); - const GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor* (*getISinglePropertyChangeSubscriberAccessor)(); - const GENERATED_ArkUISubscribaleAbstractAccessor* (*getSubscribaleAbstractAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); const GENERATED_ArkUIDatePickerDialogAccessor* (*getDatePickerDialogAccessor)(); @@ -20647,8 +20059,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIImageAnalyzerControllerAccessor* (*getImageAnalyzerControllerAccessor)(); const GENERATED_ArkUIListScrollerAccessor* (*getListScrollerAccessor)(); const GENERATED_ArkUIMatrix2DAccessor* (*getMatrix2DAccessor)(); - const GENERATED_ArkUINavDestinationContextAccessor* (*getNavDestinationContextAccessor)(); - const GENERATED_ArkUINavigationTransitionProxyAccessor* (*getNavigationTransitionProxyAccessor)(); const GENERATED_ArkUIPatternLockControllerAccessor* (*getPatternLockControllerAccessor)(); const GENERATED_ArkUIRichEditorBaseControllerAccessor* (*getRichEditorBaseControllerAccessor)(); const GENERATED_ArkUIRichEditorControllerAccessor* (*getRichEditorControllerAccessor)(); @@ -20737,7 +20147,6 @@ typedef struct GENERATED_ArkUIEventsAPI { const GENERATED_ArkUILocationButtonEventsReceiver* (*getLocationButtonEventsReceiver)(); const GENERATED_ArkUIMarqueeEventsReceiver* (*getMarqueeEventsReceiver)(); const GENERATED_ArkUIMenuItemEventsReceiver* (*getMenuItemEventsReceiver)(); - const GENERATED_ArkUINavDestinationEventsReceiver* (*getNavDestinationEventsReceiver)(); const GENERATED_ArkUINavRouterEventsReceiver* (*getNavRouterEventsReceiver)(); const GENERATED_ArkUIPanelEventsReceiver* (*getPanelEventsReceiver)(); const GENERATED_ArkUIPasteButtonEventsReceiver* (*getPasteButtonEventsReceiver)(); @@ -20832,7 +20241,6 @@ typedef enum GENERATED_Ark_NodeType { GENERATED_ARKUI_MENU, GENERATED_ARKUI_MENU_ITEM, GENERATED_ARKUI_MENU_ITEM_GROUP, - GENERATED_ARKUI_NAV_DESTINATION, GENERATED_ARKUI_NAV_ROUTER, GENERATED_ARKUI_NAVIGATOR, GENERATED_ARKUI_NODE_CONTAINER, diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index 91d138c39..29b564f1d 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -8500,335 +8500,6 @@ void impl_MenuItemGroupInterface_setMenuItemGroupOptions(Ark_NativePointer thisP } KOALA_INTEROP_V3(MenuItemGroupInterface_setMenuItemGroupOptions, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_NavDestination_construct(Ark_Int32 id, Ark_Int32 flags) { - return GetNodeModifiers()->getNavDestinationModifier()->construct(id, flags); -} -KOALA_INTEROP_2(NavDestination_construct, Ark_NativePointer, Ark_Int32, Ark_Int32) - -void impl_NavDestinationInterface_setNavDestinationOptions(Ark_NativePointer thisPtr) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getNavDestinationModifier()->setNavDestinationOptions(self); -} -KOALA_INTEROP_V1(NavDestinationInterface_setNavDestinationOptions, Ark_NativePointer) - -void impl_NavDestinationAttribute_hideTitleBar0(Ark_NativePointer thisPtr, Ark_Boolean value) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getNavDestinationModifier()->setHideTitleBar0(self, value); -} -KOALA_INTEROP_V2(NavDestinationAttribute_hideTitleBar0, Ark_NativePointer, Ark_Boolean) - -void impl_NavDestinationAttribute_hideTitleBar1(Ark_NativePointer thisPtr, Ark_Boolean hide, Ark_Boolean animated) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getNavDestinationModifier()->setHideTitleBar1(self, hide, animated); -} -KOALA_INTEROP_V3(NavDestinationAttribute_hideTitleBar1, Ark_NativePointer, Ark_Boolean, Ark_Boolean) - -void impl_NavDestinationAttribute_onShown(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnShown(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onShown, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onHidden(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnHidden(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onHidden, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onBackPressed(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Boolean value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnBackPressed(self, (const Callback_Boolean*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onBackPressed, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_mode(Ark_NativePointer thisPtr, Ark_Int32 value) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getNavDestinationModifier()->setMode(self, static_cast(value)); -} -KOALA_INTEROP_V2(NavDestinationAttribute_mode, Ark_NativePointer, Ark_Int32) - -void impl_NavDestinationAttribute_backButtonIcon(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - const Ark_Int8 value_value_buf_u_selector = thisDeserializer.readInt8(); - Ark_ResourceStr value_value_buf_u = {}; - value_value_buf_u.selector = value_value_buf_u_selector; - if (value_value_buf_u_selector == 0) { - value_value_buf_u.selector = 0; - value_value_buf_u.value0 = static_cast(thisDeserializer.readString()); - } - else if (value_value_buf_u_selector == 1) { - value_value_buf_u.selector = 1; - value_value_buf_u.value1 = thisDeserializer.readResource(); - } - else { - throw "One of the branches for value_value_buf_u has to be chosen through deserialisation."; - } - value_value_buf.value0 = static_cast(value_value_buf_u); - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = static_cast(thisDeserializer.readPixelMap()); - } - else if (value_value_buf_selector == 2) { - value_value_buf.selector = 2; - value_value_buf.value2 = thisDeserializer.readSymbolGlyphModifier(); - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; - } - Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getNavDestinationModifier()->setBackButtonIcon(self, (const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_backButtonIcon, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_menus(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_Array_NavigationMenuItem_CustomBuilder value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - const Ark_Int32 value_value_buf_u_length = thisDeserializer.readInt32(); - Array_NavigationMenuItem value_value_buf_u = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(&value_value_buf_u, value_value_buf_u_length); - for (int value_value_buf_u_i = 0; value_value_buf_u_i < value_value_buf_u_length; value_value_buf_u_i++) { - value_value_buf_u.array[value_value_buf_u_i] = thisDeserializer.readNavigationMenuItem(); - } - value_value_buf.value0 = value_value_buf_u; - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; - } - Ark_Union_Array_NavigationMenuItem_CustomBuilder value_value = static_cast(value_value_buf);; - GetNodeModifiers()->getNavDestinationModifier()->setMenus(self, (const Ark_Union_Array_NavigationMenuItem_CustomBuilder*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_menus, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onReady(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_NavDestinationContext_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_NavDestinationContext_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_NavDestinationContext_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnReady(self, (const Callback_NavDestinationContext_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onReady, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onWillAppear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnWillAppear(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onWillAppear, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onWillDisappear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnWillDisappear(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onWillDisappear, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onWillShow(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnWillShow(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onWillShow, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_onWillHide(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Callback_Void value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetNodeModifiers()->getNavDestinationModifier()->setOnWillHide(self, (const Callback_Void*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_onWillHide, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_systemBarStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_SystemBarStyle value_value_buf = {}; - value_value_buf.tag = value_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) - { - value_value_buf.value = thisDeserializer.readSystemBarStyle(); - } - Opt_SystemBarStyle value_value = value_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setSystemBarStyle(self, (const Opt_SystemBarStyle*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_systemBarStyle, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_recoverable(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Boolean value_value_buf = {}; - value_value_buf.tag = value_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (value_value_buf_runtimeType)) - { - value_value_buf.value = thisDeserializer.readBoolean(); - } - Opt_Boolean value_value = value_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setRecoverable(self, (const Opt_Boolean*)&value_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_recoverable, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_systemTransition(Ark_NativePointer thisPtr, Ark_Int32 value) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - GetNodeModifiers()->getNavDestinationModifier()->setSystemTransition(self, static_cast(value)); -} -KOALA_INTEROP_V2(NavDestinationAttribute_systemTransition, Ark_NativePointer, Ark_Int32) - -void impl_NavDestinationAttribute_title(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); - Ark_Type_NavDestinationAttribute_title_value value_value_buf = {}; - value_value_buf.selector = value_value_buf_selector; - if (value_value_buf_selector == 0) { - value_value_buf.selector = 0; - value_value_buf.value0 = static_cast(thisDeserializer.readString()); - } - else if (value_value_buf_selector == 1) { - value_value_buf.selector = 1; - value_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; - } - else if (value_value_buf_selector == 2) { - value_value_buf.selector = 2; - value_value_buf.value2 = thisDeserializer.readNavDestinationCommonTitle(); - } - else if (value_value_buf_selector == 3) { - value_value_buf.selector = 3; - value_value_buf.value3 = thisDeserializer.readNavDestinationCustomTitle(); - } - else if (value_value_buf_selector == 4) { - value_value_buf.selector = 4; - value_value_buf.value4 = thisDeserializer.readResource(); - } - else { - throw "One of the branches for value_value_buf has to be chosen through deserialisation."; - } - Ark_Type_NavDestinationAttribute_title_value value_value = static_cast(value_value_buf);; - const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_NavigationTitleOptions options_value_buf = {}; - options_value_buf.tag = options_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (options_value_buf_runtimeType)) - { - options_value_buf.value = thisDeserializer.readNavigationTitleOptions(); - } - Opt_NavigationTitleOptions options_value = options_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setTitle(self, (const Ark_Type_NavDestinationAttribute_title_value*)&value_value, (const Opt_NavigationTitleOptions*)&options_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_title, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_toolbarConfiguration(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int8 toolbarParam_value_buf_selector = thisDeserializer.readInt8(); - Ark_Union_Array_ToolbarItem_CustomBuilder toolbarParam_value_buf = {}; - toolbarParam_value_buf.selector = toolbarParam_value_buf_selector; - if (toolbarParam_value_buf_selector == 0) { - toolbarParam_value_buf.selector = 0; - const Ark_Int32 toolbarParam_value_buf_u_length = thisDeserializer.readInt32(); - Array_ToolbarItem toolbarParam_value_buf_u = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(&toolbarParam_value_buf_u, toolbarParam_value_buf_u_length); - for (int toolbarParam_value_buf_u_i = 0; toolbarParam_value_buf_u_i < toolbarParam_value_buf_u_length; toolbarParam_value_buf_u_i++) { - toolbarParam_value_buf_u.array[toolbarParam_value_buf_u_i] = thisDeserializer.readToolbarItem(); - } - toolbarParam_value_buf.value0 = toolbarParam_value_buf_u; - } - else if (toolbarParam_value_buf_selector == 1) { - toolbarParam_value_buf.selector = 1; - toolbarParam_value_buf.value1 = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))}; - } - else { - throw "One of the branches for toolbarParam_value_buf has to be chosen through deserialisation."; - } - Ark_Union_Array_ToolbarItem_CustomBuilder toolbarParam_value = static_cast(toolbarParam_value_buf);; - const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_NavigationToolbarOptions options_value_buf = {}; - options_value_buf.tag = options_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (options_value_buf_runtimeType)) - { - options_value_buf.value = thisDeserializer.readNavigationToolbarOptions(); - } - Opt_NavigationToolbarOptions options_value = options_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setToolbarConfiguration(self, (const Ark_Union_Array_ToolbarItem_CustomBuilder*)&toolbarParam_value, (const Opt_NavigationToolbarOptions*)&options_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_toolbarConfiguration, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_hideToolBar(Ark_NativePointer thisPtr, Ark_Boolean hide, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Boolean animated_value_buf = {}; - animated_value_buf.tag = animated_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (animated_value_buf_runtimeType)) - { - animated_value_buf.value = thisDeserializer.readBoolean(); - } - Opt_Boolean animated_value = animated_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setHideToolBar(self, hide, (const Opt_Boolean*)&animated_value); -} -KOALA_INTEROP_V4(NavDestinationAttribute_hideToolBar, Ark_NativePointer, Ark_Boolean, uint8_t*, int32_t) - -void impl_NavDestinationAttribute_ignoreLayoutSafeArea(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Ark_NodeHandle self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto types_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Array_LayoutSafeAreaType types_value_buf = {}; - types_value_buf.tag = types_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (types_value_buf_runtimeType)) - { - const Ark_Int32 types_value_buf__length = thisDeserializer.readInt32(); - Array_LayoutSafeAreaType types_value_buf_ = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(&types_value_buf_, types_value_buf__length); - for (int types_value_buf__i = 0; types_value_buf__i < types_value_buf__length; types_value_buf__i++) { - types_value_buf_.array[types_value_buf__i] = static_cast(thisDeserializer.readInt32()); - } - types_value_buf.value = types_value_buf_; - } - Opt_Array_LayoutSafeAreaType types_value = types_value_buf;; - const auto edges_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Array_LayoutSafeAreaEdge edges_value_buf = {}; - edges_value_buf.tag = edges_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (edges_value_buf_runtimeType)) - { - const Ark_Int32 edges_value_buf__length = thisDeserializer.readInt32(); - Array_LayoutSafeAreaEdge edges_value_buf_ = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(&edges_value_buf_, edges_value_buf__length); - for (int edges_value_buf__i = 0; edges_value_buf__i < edges_value_buf__length; edges_value_buf__i++) { - edges_value_buf_.array[edges_value_buf__i] = static_cast(thisDeserializer.readInt32()); - } - edges_value_buf.value = edges_value_buf_; - } - Opt_Array_LayoutSafeAreaEdge edges_value = edges_value_buf;; - GetNodeModifiers()->getNavDestinationModifier()->setIgnoreLayoutSafeArea(self, (const Opt_Array_LayoutSafeAreaType*)&types_value, (const Opt_Array_LayoutSafeAreaEdge*)&edges_value); -} -KOALA_INTEROP_V3(NavDestinationAttribute_ignoreLayoutSafeArea, Ark_NativePointer, uint8_t*, int32_t) - Ark_NativePointer impl_NavRouter_construct(Ark_Int32 id, Ark_Int32 flags) { return GetNodeModifiers()->getNavRouterModifier()->construct(id, flags); } @@ -20023,56 +19694,6 @@ void impl_ProgressMask_enableBreathingAnimation(Ark_NativePointer thisPtr, Ark_B } KOALA_INTEROP_V2(ProgressMask_enableBreathingAnimation, Ark_NativePointer, Ark_Boolean) -Ark_NativePointer impl_AttributeModifier_ctor() { - return GetAccessors()->getAttributeModifierAccessor()->ctor(); -} -KOALA_INTEROP_0(AttributeModifier_ctor, Ark_NativePointer) - -Ark_NativePointer impl_AttributeModifier_getFinalizer() { - return GetAccessors()->getAttributeModifierAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(AttributeModifier_getFinalizer, Ark_NativePointer) - -void impl_AttributeModifier_applyNormalAttribute(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AttributeModifierPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject instance_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAttributeModifierAccessor()->applyNormalAttribute(self, (const Ark_CustomObject*)&instance_value); -} -KOALA_INTEROP_V3(AttributeModifier_applyNormalAttribute, Ark_NativePointer, uint8_t*, int32_t) - -void impl_AttributeModifier_applyPressedAttribute(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AttributeModifierPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject instance_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAttributeModifierAccessor()->applyPressedAttribute(self, (const Ark_CustomObject*)&instance_value); -} -KOALA_INTEROP_V3(AttributeModifier_applyPressedAttribute, Ark_NativePointer, uint8_t*, int32_t) - -void impl_AttributeModifier_applyFocusedAttribute(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AttributeModifierPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject instance_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAttributeModifierAccessor()->applyFocusedAttribute(self, (const Ark_CustomObject*)&instance_value); -} -KOALA_INTEROP_V3(AttributeModifier_applyFocusedAttribute, Ark_NativePointer, uint8_t*, int32_t) - -void impl_AttributeModifier_applyDisabledAttribute(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AttributeModifierPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject instance_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAttributeModifierAccessor()->applyDisabledAttribute(self, (const Ark_CustomObject*)&instance_value); -} -KOALA_INTEROP_V3(AttributeModifier_applyDisabledAttribute, Ark_NativePointer, uint8_t*, int32_t) - -void impl_AttributeModifier_applySelectedAttribute(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AttributeModifierPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject instance_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAttributeModifierAccessor()->applySelectedAttribute(self, (const Ark_CustomObject*)&instance_value); -} -KOALA_INTEROP_V3(AttributeModifier_applySelectedAttribute, Ark_NativePointer, uint8_t*, int32_t) - Ark_NativePointer impl_View_ctor() { return GetAccessors()->getViewAccessor()->ctor(); } @@ -20220,125 +19841,6 @@ void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(GestureModifier_applyGesture, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_AbstractProperty_ctor() { - return GetAccessors()->getAbstractPropertyAccessor()->ctor(); -} -KOALA_INTEROP_0(AbstractProperty_ctor, Ark_NativePointer) - -Ark_NativePointer impl_AbstractProperty_getFinalizer() { - return GetAccessors()->getAbstractPropertyAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(AbstractProperty_getFinalizer, Ark_NativePointer) - -void impl_AbstractProperty_get(Ark_NativePointer thisPtr) { - AbstractPropertyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getAbstractPropertyAccessor()->get(self); -} -KOALA_INTEROP_V1(AbstractProperty_get, Ark_NativePointer) - -void impl_AbstractProperty_set(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - AbstractPropertyPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject newValue_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getAbstractPropertyAccessor()->set(self, (const Ark_CustomObject*)&newValue_value); -} -KOALA_INTEROP_V3(AbstractProperty_set, Ark_NativePointer, uint8_t*, int32_t) - -void impl_AbstractProperty_info(Ark_NativePointer thisPtr) { - AbstractPropertyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getAbstractPropertyAccessor()->info(self); -} -KOALA_INTEROP_V1(AbstractProperty_info, Ark_NativePointer) - -Ark_NativePointer impl_IPropertySubscriber_ctor() { - return GetAccessors()->getIPropertySubscriberAccessor()->ctor(); -} -KOALA_INTEROP_0(IPropertySubscriber_ctor, Ark_NativePointer) - -Ark_NativePointer impl_IPropertySubscriber_getFinalizer() { - return GetAccessors()->getIPropertySubscriberAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(IPropertySubscriber_getFinalizer, Ark_NativePointer) - -Ark_Int32 impl_IPropertySubscriber_id(Ark_NativePointer thisPtr) { - IPropertySubscriberPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getIPropertySubscriberAccessor()->id(self); -} -KOALA_INTEROP_1(IPropertySubscriber_id, Ark_Int32, Ark_NativePointer) - -void impl_IPropertySubscriber_aboutToBeDeleted(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - IPropertySubscriberPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - const auto owningView_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_IPropertySubscriber owningView_value_buf = {}; - owningView_value_buf.tag = owningView_value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (owningView_value_buf_runtimeType)) - { - owningView_value_buf.value = static_cast(thisDeserializer.readIPropertySubscriber()); - } - Opt_IPropertySubscriber owningView_value = owningView_value_buf;; - GetAccessors()->getIPropertySubscriberAccessor()->aboutToBeDeleted(self, (const Opt_IPropertySubscriber*)&owningView_value); -} -KOALA_INTEROP_V3(IPropertySubscriber_aboutToBeDeleted, Ark_NativePointer, uint8_t*, int32_t) - -Ark_NativePointer impl_ISinglePropertyChangeSubscriber_ctor() { - return GetAccessors()->getISinglePropertyChangeSubscriberAccessor()->ctor(); -} -KOALA_INTEROP_0(ISinglePropertyChangeSubscriber_ctor, Ark_NativePointer) - -Ark_NativePointer impl_ISinglePropertyChangeSubscriber_getFinalizer() { - return GetAccessors()->getISinglePropertyChangeSubscriberAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(ISinglePropertyChangeSubscriber_getFinalizer, Ark_NativePointer) - -void impl_ISinglePropertyChangeSubscriber_hasChanged(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ISinglePropertyChangeSubscriberPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject newValue_value = static_cast(thisDeserializer.readCustomObject("T"));; - GetAccessors()->getISinglePropertyChangeSubscriberAccessor()->hasChanged(self, (const Ark_CustomObject*)&newValue_value); -} -KOALA_INTEROP_V3(ISinglePropertyChangeSubscriber_hasChanged, Ark_NativePointer, uint8_t*, int32_t) - -Ark_NativePointer impl_SubscribaleAbstract_ctor() { - return GetAccessors()->getSubscribaleAbstractAccessor()->ctor(); -} -KOALA_INTEROP_0(SubscribaleAbstract_ctor, Ark_NativePointer) - -Ark_NativePointer impl_SubscribaleAbstract_getFinalizer() { - return GetAccessors()->getSubscribaleAbstractAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(SubscribaleAbstract_getFinalizer, Ark_NativePointer) - -void impl_SubscribaleAbstract_notifyPropertyHasChanged(Ark_NativePointer thisPtr, const KStringPtr& propName, uint8_t* thisArray, int32_t thisLength) { - SubscribaleAbstractPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject newValue_value = static_cast(thisDeserializer.readCustomObject("Any"));; - GetAccessors()->getSubscribaleAbstractAccessor()->notifyPropertyHasChanged(self, (const Ark_String*)&propName, (const Ark_CustomObject*)&newValue_value); -} -KOALA_INTEROP_V4(SubscribaleAbstract_notifyPropertyHasChanged, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) - -void impl_SubscribaleAbstract_addOwningProperty(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - SubscribaleAbstractPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_IPropertySubscriber subscriber_value = static_cast(thisDeserializer.readIPropertySubscriber());; - GetAccessors()->getSubscribaleAbstractAccessor()->addOwningProperty(self, (const Ark_IPropertySubscriber*)&subscriber_value); -} -KOALA_INTEROP_V3(SubscribaleAbstract_addOwningProperty, Ark_NativePointer, uint8_t*, int32_t) - -void impl_SubscribaleAbstract_removeOwningProperty(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - SubscribaleAbstractPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_IPropertySubscriber property_value = static_cast(thisDeserializer.readIPropertySubscriber());; - GetAccessors()->getSubscribaleAbstractAccessor()->removeOwningProperty(self, (const Ark_IPropertySubscriber*)&property_value); -} -KOALA_INTEROP_V3(SubscribaleAbstract_removeOwningProperty, Ark_NativePointer, uint8_t*, int32_t) - -void impl_SubscribaleAbstract_removeOwningPropertyById(Ark_NativePointer thisPtr, KInteropNumber subscriberId) { - SubscribaleAbstractPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getSubscribaleAbstractAccessor()->removeOwningPropertyById(self, (const Ark_Number*)&subscriberId); -} -KOALA_INTEROP_V2(SubscribaleAbstract_removeOwningPropertyById, Ark_NativePointer, KInteropNumber) - Ark_NativePointer impl_ContextMenu_ctor() { return GetAccessors()->getContextMenuAccessor()->ctor(); } @@ -20859,106 +20361,6 @@ void impl_Matrix2D_setTranslateY(Ark_NativePointer thisPtr, KInteropNumber trans } KOALA_INTEROP_V2(Matrix2D_setTranslateY, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_NavDestinationContext_ctor() { - return GetAccessors()->getNavDestinationContextAccessor()->ctor(); -} -KOALA_INTEROP_0(NavDestinationContext_ctor, Ark_NativePointer) - -Ark_NativePointer impl_NavDestinationContext_getFinalizer() { - return GetAccessors()->getNavDestinationContextAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(NavDestinationContext_getFinalizer, Ark_NativePointer) - -Ark_NativePointer impl_NavDestinationContext_getConfigInRouteMap(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavDestinationContextAccessor()->getConfigInRouteMap(self); -} -KOALA_INTEROP_1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer, Ark_NativePointer) - -void impl_NavDestinationContext_setPathInfo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathInfo pathInfo_value = thisDeserializer.readNavPathInfo();; - GetAccessors()->getNavDestinationContextAccessor()->setPathInfo(self, (const Ark_NavPathInfo*)&pathInfo_value); -} -KOALA_INTEROP_V3(NavDestinationContext_setPathInfo, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationContext_setPathStack(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavPathStack pathStack_value = thisDeserializer.readNavPathStack();; - GetAccessors()->getNavDestinationContextAccessor()->setPathStack(self, (const Ark_NavPathStack*)&pathStack_value); -} -KOALA_INTEROP_V3(NavDestinationContext_setPathStack, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavDestinationContext_getNavDestinationId(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavDestinationContextAccessor()->getNavDestinationId(self); -} -KOALA_INTEROP_V1(NavDestinationContext_getNavDestinationId, Ark_NativePointer) - -void impl_NavDestinationContext_setNavDestinationId(Ark_NativePointer thisPtr, const KStringPtr& navDestinationId) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavDestinationContextAccessor()->setNavDestinationId(self, (const Ark_String*)&navDestinationId); -} -KOALA_INTEROP_V2(NavDestinationContext_setNavDestinationId, Ark_NativePointer, KStringPtr) - -Ark_NativePointer impl_NavigationTransitionProxy_ctor() { - return GetAccessors()->getNavigationTransitionProxyAccessor()->ctor(); -} -KOALA_INTEROP_0(NavigationTransitionProxy_ctor, Ark_NativePointer) - -Ark_NativePointer impl_NavigationTransitionProxy_getFinalizer() { - return GetAccessors()->getNavigationTransitionProxyAccessor()->getFinalizer(); -} -KOALA_INTEROP_0(NavigationTransitionProxy_getFinalizer, Ark_NativePointer) - -void impl_NavigationTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavigationTransitionProxyAccessor()->finishTransition(self); -} -KOALA_INTEROP_V1(NavigationTransitionProxy_finishTransition, Ark_NativePointer) - -void impl_NavigationTransitionProxy_cancelTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavigationTransitionProxyAccessor()->cancelTransition(self); -} -KOALA_INTEROP_V1(NavigationTransitionProxy_cancelTransition, Ark_NativePointer) - -void impl_NavigationTransitionProxy_updateTransition(Ark_NativePointer thisPtr, KInteropNumber progress) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavigationTransitionProxyAccessor()->updateTransition(self, (const Ark_Number*)&progress); -} -KOALA_INTEROP_V2(NavigationTransitionProxy_updateTransition, Ark_NativePointer, KInteropNumber) - -void impl_NavigationTransitionProxy_setFrom(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavContentInfo from_value = thisDeserializer.readNavContentInfo();; - GetAccessors()->getNavigationTransitionProxyAccessor()->setFrom(self, (const Ark_NavContentInfo*)&from_value); -} -KOALA_INTEROP_V3(NavigationTransitionProxy_setFrom, Ark_NativePointer, uint8_t*, int32_t) - -void impl_NavigationTransitionProxy_setTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - Deserializer thisDeserializer(thisArray, thisLength); - Ark_NavContentInfo to_value = thisDeserializer.readNavContentInfo();; - GetAccessors()->getNavigationTransitionProxyAccessor()->setTo(self, (const Ark_NavContentInfo*)&to_value); -} -KOALA_INTEROP_V3(NavigationTransitionProxy_setTo, Ark_NativePointer, uint8_t*, int32_t) - -Ark_Boolean impl_NavigationTransitionProxy_getIsInteractive(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavigationTransitionProxyAccessor()->getIsInteractive(self); -} -KOALA_INTEROP_1(NavigationTransitionProxy_getIsInteractive, Ark_Boolean, Ark_NativePointer) - -void impl_NavigationTransitionProxy_setIsInteractive(Ark_NativePointer thisPtr, Ark_Boolean isInteractive) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavigationTransitionProxyAccessor()->setIsInteractive(self, isInteractive); -} -KOALA_INTEROP_V2(NavigationTransitionProxy_setIsInteractive, Ark_NativePointer, Ark_Boolean) - Ark_NativePointer impl_PatternLockController_ctor() { return GetAccessors()->getPatternLockControllerAccessor()->ctor(); } diff --git a/arkoala/framework/native/src/generated/callback_deserialize_call.cc b/arkoala/framework/native/src/generated/callback_deserialize_call.cc index 5eead647d..82bda13be 100644 --- a/arkoala/framework/native/src/generated/callback_deserialize_call.cc +++ b/arkoala/framework/native/src/generated/callback_deserialize_call.cc @@ -1314,24 +1314,6 @@ void deserializeAndCallSyncCallback_NativeEmbedTouchInfo_Void(Ark_VMContext vmCo Ark_NativeEmbedTouchInfo event = thisDeserializer.readNativeEmbedTouchInfo(); _callSync(vmContext, _resourceId, event); } -void deserializeAndCallCallback_NavDestinationContext_Void(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - Ark_NavDestinationContext parameter = static_cast(thisDeserializer.readNavDestinationContext()); - _call(_resourceId, parameter); -} -void deserializeAndCallSyncCallback_NavDestinationContext_Void(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - Ark_NavDestinationContext parameter = static_cast(thisDeserializer.readNavDestinationContext()); - _callSync(vmContext, _resourceId, parameter); -} void deserializeAndCallCallback_NavigationMode_Void(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -1368,24 +1350,6 @@ void deserializeAndCallSyncCallback_NavigationTitleMode_Void(Ark_VMContext vmCon Ark_NavigationTitleMode titleMode = static_cast(thisDeserializer.readInt32()); _callSync(vmContext, _resourceId, titleMode); } -void deserializeAndCallCallback_NavigationTransitionProxy_Void(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - Ark_NavigationTransitionProxy transitionProxy = static_cast(thisDeserializer.readNavigationTransitionProxy()); - _call(_resourceId, transitionProxy); -} -void deserializeAndCallSyncCallback_NavigationTransitionProxy_Void(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - Ark_NavigationTransitionProxy transitionProxy = static_cast(thisDeserializer.readNavigationTransitionProxy()); - _callSync(vmContext, _resourceId, transitionProxy); -} void deserializeAndCallCallback_Number_Boolean(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -2404,38 +2368,6 @@ void deserializeAndCallSyncCallback_Opt_Array_String_Void(Ark_VMContext vmContex Opt_Array_String error = error_buf; _callSync(vmContext, _resourceId, error); } -void deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - const auto value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_NavigationAnimatedTransition value_buf = {}; - value_buf.tag = value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (value_buf_runtimeType)) - { - value_buf.value = thisDeserializer.readNavigationAnimatedTransition(); - } - Opt_NavigationAnimatedTransition value = value_buf; - _call(_resourceId, value); -} -void deserializeAndCallSyncCallback_Opt_NavigationAnimatedTransition_Void(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - const auto value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_NavigationAnimatedTransition value_buf = {}; - value_buf.tag = value_buf_runtimeType == ARK_RUNTIME_UNDEFINED ? ARK_TAG_UNDEFINED : ARK_TAG_OBJECT; - if ((ARK_RUNTIME_UNDEFINED) != (value_buf_runtimeType)) - { - value_buf.value = thisDeserializer.readNavigationAnimatedTransition(); - } - Opt_NavigationAnimatedTransition value = value_buf; - _callSync(vmContext, _resourceId, value); -} void deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -2566,24 +2498,6 @@ void deserializeAndCallSyncCallback_Pointer_Void(Ark_VMContext vmContext, uint8_ Ark_NativePointer value = thisDeserializer.readPointer(); _callSync(vmContext, _resourceId, value); } -void deserializeAndCallCallback_PopInfo_Void(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - Ark_PopInfo parameter = thisDeserializer.readPopInfo(); - _call(_resourceId, parameter); -} -void deserializeAndCallSyncCallback_PopInfo_Void(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - Ark_PopInfo parameter = thisDeserializer.readPopInfo(); - _callSync(vmContext, _resourceId, parameter); -} void deserializeAndCallCallback_PreDragStatus_Void(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3576,86 +3490,6 @@ void deserializeAndCallSyncInterceptionModeCallback(Ark_VMContext vmContext, uin Ark_NavigationMode mode = static_cast(thisDeserializer.readInt32()); _callSync(vmContext, _resourceId, mode); } -void deserializeAndCallInterceptionShowCallback(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - const Ark_Int8 from_buf_selector = thisDeserializer.readInt8(); - Ark_Union_NavDestinationContext_NavBar from_buf = {}; - from_buf.selector = from_buf_selector; - if (from_buf_selector == 0) { - from_buf.selector = 0; - from_buf.value0 = static_cast(thisDeserializer.readNavDestinationContext()); - } - else if (from_buf_selector == 1) { - from_buf.selector = 1; - from_buf.value1 = static_cast(thisDeserializer.readString()); - } - else { - throw "One of the branches for from_buf has to be chosen through deserialisation."; - } - Ark_Union_NavDestinationContext_NavBar from = static_cast(from_buf); - const Ark_Int8 to_buf_selector = thisDeserializer.readInt8(); - Ark_Union_NavDestinationContext_NavBar to_buf = {}; - to_buf.selector = to_buf_selector; - if (to_buf_selector == 0) { - to_buf.selector = 0; - to_buf.value0 = static_cast(thisDeserializer.readNavDestinationContext()); - } - else if (to_buf_selector == 1) { - to_buf.selector = 1; - to_buf.value1 = static_cast(thisDeserializer.readString()); - } - else { - throw "One of the branches for to_buf has to be chosen through deserialisation."; - } - Ark_Union_NavDestinationContext_NavBar to = static_cast(to_buf); - Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); - Ark_Boolean isAnimated = thisDeserializer.readBoolean(); - _call(_resourceId, from, to, operation, isAnimated); -} -void deserializeAndCallSyncInterceptionShowCallback(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - const Ark_Int8 from_buf_selector = thisDeserializer.readInt8(); - Ark_Union_NavDestinationContext_NavBar from_buf = {}; - from_buf.selector = from_buf_selector; - if (from_buf_selector == 0) { - from_buf.selector = 0; - from_buf.value0 = static_cast(thisDeserializer.readNavDestinationContext()); - } - else if (from_buf_selector == 1) { - from_buf.selector = 1; - from_buf.value1 = static_cast(thisDeserializer.readString()); - } - else { - throw "One of the branches for from_buf has to be chosen through deserialisation."; - } - Ark_Union_NavDestinationContext_NavBar from = static_cast(from_buf); - const Ark_Int8 to_buf_selector = thisDeserializer.readInt8(); - Ark_Union_NavDestinationContext_NavBar to_buf = {}; - to_buf.selector = to_buf_selector; - if (to_buf_selector == 0) { - to_buf.selector = 0; - to_buf.value0 = static_cast(thisDeserializer.readNavDestinationContext()); - } - else if (to_buf_selector == 1) { - to_buf.selector = 1; - to_buf.value1 = static_cast(thisDeserializer.readString()); - } - else { - throw "One of the branches for to_buf has to be chosen through deserialisation."; - } - Ark_Union_NavDestinationContext_NavBar to = static_cast(to_buf); - Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); - Ark_Boolean isAnimated = thisDeserializer.readBoolean(); - _callSync(vmContext, _resourceId, from, to, operation, isAnimated); -} void deserializeAndCallIsolatedComponentInterface(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -4794,30 +4628,6 @@ void deserializeAndCallSyncTransitionFinishCallback(Ark_VMContext vmContext, uin Ark_Boolean transitionIn = thisDeserializer.readBoolean(); _callSync(vmContext, _resourceId, transitionIn); } -void deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - const auto _call = reinterpret_cast(thisDeserializer.readPointer()); - thisDeserializer.readPointer(); - Ark_NavContentInfo from = thisDeserializer.readNavContentInfo(); - Ark_NavContentInfo to = thisDeserializer.readNavContentInfo(); - Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); - Callback_Opt_NavigationAnimatedTransition_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_NavigationAnimatedTransition_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_NavigationAnimatedTransition_Void))))}; - _call(_resourceId, from, to, operation, _continuation); -} -void deserializeAndCallSyncType_NavigationAttribute_customNavContentTransition_delegate(Ark_VMContext vmContext, uint8_t* thisArray, Ark_Int32 thisLength) -{ - Deserializer thisDeserializer = Deserializer(thisArray, thisLength); - const Ark_Int32 _resourceId = thisDeserializer.readInt32(); - thisDeserializer.readPointer(); - const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); - Ark_NavContentInfo from = thisDeserializer.readNavContentInfo(); - Ark_NavContentInfo to = thisDeserializer.readNavContentInfo(); - Ark_NavigationOperation operation = static_cast(thisDeserializer.readInt32()); - Callback_Opt_NavigationAnimatedTransition_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_NavigationAnimatedTransition_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_NavigationAnimatedTransition_Void))))}; - _callSync(vmContext, _resourceId, from, to, operation, _continuation); -} void deserializeAndCallType_TextPickerAttribute_onChange_callback(uint8_t* thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -5127,10 +4937,8 @@ void deserializeAndCallCallback(Ark_Int32 kind, uint8_t* thisArray, Ark_Int32 th case -1382640094/*Kind_Callback_MouseEvent_Void*/: return deserializeAndCallCallback_MouseEvent_Void(thisArray, thisLength); case 477481563/*Kind_Callback_NativeEmbedDataInfo_Void*/: return deserializeAndCallCallback_NativeEmbedDataInfo_Void(thisArray, thisLength); case -1090303858/*Kind_Callback_NativeEmbedTouchInfo_Void*/: return deserializeAndCallCallback_NativeEmbedTouchInfo_Void(thisArray, thisLength); - case -1642725259/*Kind_Callback_NavDestinationContext_Void*/: return deserializeAndCallCallback_NavDestinationContext_Void(thisArray, thisLength); case 960690982/*Kind_Callback_NavigationMode_Void*/: return deserializeAndCallCallback_NavigationMode_Void(thisArray, thisLength); case 1685437830/*Kind_Callback_NavigationTitleMode_Void*/: return deserializeAndCallCallback_NavigationTitleMode_Void(thisArray, thisLength); - case -1375731066/*Kind_Callback_NavigationTransitionProxy_Void*/: return deserializeAndCallCallback_NavigationTransitionProxy_Void(thisArray, thisLength); case 1054099324/*Kind_Callback_Number_Boolean*/: return deserializeAndCallCallback_Number_Boolean(thisArray, thisLength); case -1427334496/*Kind_Callback_Number_Number_Boolean*/: return deserializeAndCallCallback_Number_Number_Boolean(thisArray, thisLength); case -3987624/*Kind_Callback_Number_Number_ComputedBarAttribute*/: return deserializeAndCallCallback_Number_Number_ComputedBarAttribute(thisArray, thisLength); @@ -5183,12 +4991,10 @@ void deserializeAndCallCallback(Ark_Int32 kind, uint8_t* thisArray, Ark_Int32 th case 1657893064/*Kind_Callback_OnTouchIconUrlReceivedEvent_Void*/: return deserializeAndCallCallback_OnTouchIconUrlReceivedEvent_Void(thisArray, thisLength); case -2052382574/*Kind_Callback_OnWindowNewEvent_Void*/: return deserializeAndCallCallback_OnWindowNewEvent_Void(thisArray, thisLength); case -543655128/*Kind_Callback_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_Array_String_Void(thisArray, thisLength); - case -2035339519/*Kind_Callback_Opt_NavigationAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_NavigationAnimatedTransition_Void(thisArray, thisLength); case -756319131/*Kind_Callback_Opt_StyledString_Opt_Array_String_Void*/: return deserializeAndCallCallback_Opt_StyledString_Opt_Array_String_Void(thisArray, thisLength); case -143931627/*Kind_Callback_Opt_TabContentAnimatedTransition_Void*/: return deserializeAndCallCallback_Opt_TabContentAnimatedTransition_Void(thisArray, thisLength); case -2058966418/*Kind_Callback_PlaybackInfo_Void*/: return deserializeAndCallCallback_PlaybackInfo_Void(thisArray, thisLength); case 721562324/*Kind_Callback_Pointer_Void*/: return deserializeAndCallCallback_Pointer_Void(thisArray, thisLength); - case 624053870/*Kind_Callback_PopInfo_Void*/: return deserializeAndCallCallback_PopInfo_Void(thisArray, thisLength); case 463894668/*Kind_Callback_PreDragStatus_Void*/: return deserializeAndCallCallback_PreDragStatus_Void(thisArray, thisLength); case 1300890372/*Kind_Callback_PreparedInfo_Void*/: return deserializeAndCallCallback_PreparedInfo_Void(thisArray, thisLength); case 797834474/*Kind_Callback_RangeUpdate*/: return deserializeAndCallCallback_RangeUpdate(thisArray, thisLength); @@ -5236,7 +5042,6 @@ void deserializeAndCallCallback(Ark_Int32 kind, uint8_t* thisArray, Ark_Int32 th case -1180567691/*Kind_ImageCompleteCallback*/: return deserializeAndCallImageCompleteCallback(thisArray, thisLength); case 1906248580/*Kind_ImageErrorCallback*/: return deserializeAndCallImageErrorCallback(thisArray, thisLength); case 1502213270/*Kind_InterceptionModeCallback*/: return deserializeAndCallInterceptionModeCallback(thisArray, thisLength); - case 1852781814/*Kind_InterceptionShowCallback*/: return deserializeAndCallInterceptionShowCallback(thisArray, thisLength); case 2139680213/*Kind_IsolatedComponentInterface*/: return deserializeAndCallIsolatedComponentInterface(thisArray, thisLength); case -614475458/*Kind_MenuOnAppearCallback*/: return deserializeAndCallMenuOnAppearCallback(thisArray, thisLength); case 1572284740/*Kind_OnAdsBlockedCallback*/: return deserializeAndCallOnAdsBlockedCallback(thisArray, thisLength); @@ -5292,7 +5097,6 @@ void deserializeAndCallCallback(Ark_Int32 kind, uint8_t* thisArray, Ark_Int32 th case 221706282/*Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallTabsCustomContentTransitionCallback(thisArray, thisLength); case -401980571/*Kind_TextAreaSubmitCallback*/: return deserializeAndCallTextAreaSubmitCallback(thisArray, thisLength); case -1878458553/*Kind_TransitionFinishCallback*/: return deserializeAndCallTransitionFinishCallback(thisArray, thisLength); - case 1044833488/*Kind_Type_NavigationAttribute_customNavContentTransition_delegate*/: return deserializeAndCallType_NavigationAttribute_customNavContentTransition_delegate(thisArray, thisLength); case -1078223620/*Kind_Type_TextPickerAttribute_onChange_callback*/: return deserializeAndCallType_TextPickerAttribute_onChange_callback(thisArray, thisLength); case -985284966/*Kind_Type_WebAttribute_onUrlLoadIntercept_callback*/: return deserializeAndCallType_WebAttribute_onUrlLoadIntercept_callback(thisArray, thisLength); case 541663396/*Kind_VisibleAreaChangeCallback*/: return deserializeAndCallVisibleAreaChangeCallback(thisArray, thisLength); @@ -5365,10 +5169,8 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, uin case -1382640094/*Kind_Callback_MouseEvent_Void*/: return deserializeAndCallSyncCallback_MouseEvent_Void(vmContext, thisArray, thisLength); case 477481563/*Kind_Callback_NativeEmbedDataInfo_Void*/: return deserializeAndCallSyncCallback_NativeEmbedDataInfo_Void(vmContext, thisArray, thisLength); case -1090303858/*Kind_Callback_NativeEmbedTouchInfo_Void*/: return deserializeAndCallSyncCallback_NativeEmbedTouchInfo_Void(vmContext, thisArray, thisLength); - case -1642725259/*Kind_Callback_NavDestinationContext_Void*/: return deserializeAndCallSyncCallback_NavDestinationContext_Void(vmContext, thisArray, thisLength); case 960690982/*Kind_Callback_NavigationMode_Void*/: return deserializeAndCallSyncCallback_NavigationMode_Void(vmContext, thisArray, thisLength); case 1685437830/*Kind_Callback_NavigationTitleMode_Void*/: return deserializeAndCallSyncCallback_NavigationTitleMode_Void(vmContext, thisArray, thisLength); - case -1375731066/*Kind_Callback_NavigationTransitionProxy_Void*/: return deserializeAndCallSyncCallback_NavigationTransitionProxy_Void(vmContext, thisArray, thisLength); case 1054099324/*Kind_Callback_Number_Boolean*/: return deserializeAndCallSyncCallback_Number_Boolean(vmContext, thisArray, thisLength); case -1427334496/*Kind_Callback_Number_Number_Boolean*/: return deserializeAndCallSyncCallback_Number_Number_Boolean(vmContext, thisArray, thisLength); case -3987624/*Kind_Callback_Number_Number_ComputedBarAttribute*/: return deserializeAndCallSyncCallback_Number_Number_ComputedBarAttribute(vmContext, thisArray, thisLength); @@ -5421,12 +5223,10 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, uin case 1657893064/*Kind_Callback_OnTouchIconUrlReceivedEvent_Void*/: return deserializeAndCallSyncCallback_OnTouchIconUrlReceivedEvent_Void(vmContext, thisArray, thisLength); case -2052382574/*Kind_Callback_OnWindowNewEvent_Void*/: return deserializeAndCallSyncCallback_OnWindowNewEvent_Void(vmContext, thisArray, thisLength); case -543655128/*Kind_Callback_Opt_Array_String_Void*/: return deserializeAndCallSyncCallback_Opt_Array_String_Void(vmContext, thisArray, thisLength); - case -2035339519/*Kind_Callback_Opt_NavigationAnimatedTransition_Void*/: return deserializeAndCallSyncCallback_Opt_NavigationAnimatedTransition_Void(vmContext, thisArray, thisLength); case -756319131/*Kind_Callback_Opt_StyledString_Opt_Array_String_Void*/: return deserializeAndCallSyncCallback_Opt_StyledString_Opt_Array_String_Void(vmContext, thisArray, thisLength); case -143931627/*Kind_Callback_Opt_TabContentAnimatedTransition_Void*/: return deserializeAndCallSyncCallback_Opt_TabContentAnimatedTransition_Void(vmContext, thisArray, thisLength); case -2058966418/*Kind_Callback_PlaybackInfo_Void*/: return deserializeAndCallSyncCallback_PlaybackInfo_Void(vmContext, thisArray, thisLength); case 721562324/*Kind_Callback_Pointer_Void*/: return deserializeAndCallSyncCallback_Pointer_Void(vmContext, thisArray, thisLength); - case 624053870/*Kind_Callback_PopInfo_Void*/: return deserializeAndCallSyncCallback_PopInfo_Void(vmContext, thisArray, thisLength); case 463894668/*Kind_Callback_PreDragStatus_Void*/: return deserializeAndCallSyncCallback_PreDragStatus_Void(vmContext, thisArray, thisLength); case 1300890372/*Kind_Callback_PreparedInfo_Void*/: return deserializeAndCallSyncCallback_PreparedInfo_Void(vmContext, thisArray, thisLength); case 797834474/*Kind_Callback_RangeUpdate*/: return deserializeAndCallSyncCallback_RangeUpdate(vmContext, thisArray, thisLength); @@ -5474,7 +5274,6 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, uin case -1180567691/*Kind_ImageCompleteCallback*/: return deserializeAndCallSyncImageCompleteCallback(vmContext, thisArray, thisLength); case 1906248580/*Kind_ImageErrorCallback*/: return deserializeAndCallSyncImageErrorCallback(vmContext, thisArray, thisLength); case 1502213270/*Kind_InterceptionModeCallback*/: return deserializeAndCallSyncInterceptionModeCallback(vmContext, thisArray, thisLength); - case 1852781814/*Kind_InterceptionShowCallback*/: return deserializeAndCallSyncInterceptionShowCallback(vmContext, thisArray, thisLength); case 2139680213/*Kind_IsolatedComponentInterface*/: return deserializeAndCallSyncIsolatedComponentInterface(vmContext, thisArray, thisLength); case -614475458/*Kind_MenuOnAppearCallback*/: return deserializeAndCallSyncMenuOnAppearCallback(vmContext, thisArray, thisLength); case 1572284740/*Kind_OnAdsBlockedCallback*/: return deserializeAndCallSyncOnAdsBlockedCallback(vmContext, thisArray, thisLength); @@ -5530,7 +5329,6 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, uin case 221706282/*Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallSyncTabsCustomContentTransitionCallback(vmContext, thisArray, thisLength); case -401980571/*Kind_TextAreaSubmitCallback*/: return deserializeAndCallSyncTextAreaSubmitCallback(vmContext, thisArray, thisLength); case -1878458553/*Kind_TransitionFinishCallback*/: return deserializeAndCallSyncTransitionFinishCallback(vmContext, thisArray, thisLength); - case 1044833488/*Kind_Type_NavigationAttribute_customNavContentTransition_delegate*/: return deserializeAndCallSyncType_NavigationAttribute_customNavContentTransition_delegate(vmContext, thisArray, thisLength); case -1078223620/*Kind_Type_TextPickerAttribute_onChange_callback*/: return deserializeAndCallSyncType_TextPickerAttribute_onChange_callback(vmContext, thisArray, thisLength); case -985284966/*Kind_Type_WebAttribute_onUrlLoadIntercept_callback*/: return deserializeAndCallSyncType_WebAttribute_onUrlLoadIntercept_callback(vmContext, thisArray, thisLength); case 541663396/*Kind_VisibleAreaChangeCallback*/: return deserializeAndCallSyncVisibleAreaChangeCallback(vmContext, thisArray, thisLength); diff --git a/arkoala/framework/native/src/generated/callback_kind.h b/arkoala/framework/native/src/generated/callback_kind.h index 02da0cb2b..0b478b4ab 100644 --- a/arkoala/framework/native/src/generated/callback_kind.h +++ b/arkoala/framework/native/src/generated/callback_kind.h @@ -63,10 +63,8 @@ typedef enum CallbackKind { Kind_Callback_MouseEvent_Void = -1382640094, Kind_Callback_NativeEmbedDataInfo_Void = 477481563, Kind_Callback_NativeEmbedTouchInfo_Void = -1090303858, - Kind_Callback_NavDestinationContext_Void = -1642725259, Kind_Callback_NavigationMode_Void = 960690982, Kind_Callback_NavigationTitleMode_Void = 1685437830, - Kind_Callback_NavigationTransitionProxy_Void = -1375731066, Kind_Callback_Number_Boolean = 1054099324, Kind_Callback_Number_Number_Boolean = -1427334496, Kind_Callback_Number_Number_ComputedBarAttribute = -3987624, @@ -119,12 +117,10 @@ typedef enum CallbackKind { Kind_Callback_OnTouchIconUrlReceivedEvent_Void = 1657893064, Kind_Callback_OnWindowNewEvent_Void = -2052382574, Kind_Callback_Opt_Array_String_Void = -543655128, - Kind_Callback_Opt_NavigationAnimatedTransition_Void = -2035339519, Kind_Callback_Opt_StyledString_Opt_Array_String_Void = -756319131, Kind_Callback_Opt_TabContentAnimatedTransition_Void = -143931627, Kind_Callback_PlaybackInfo_Void = -2058966418, Kind_Callback_Pointer_Void = 721562324, - Kind_Callback_PopInfo_Void = 624053870, Kind_Callback_PreDragStatus_Void = 463894668, Kind_Callback_PreparedInfo_Void = 1300890372, Kind_Callback_RangeUpdate = 797834474, @@ -172,7 +168,6 @@ typedef enum CallbackKind { Kind_ImageCompleteCallback = -1180567691, Kind_ImageErrorCallback = 1906248580, Kind_InterceptionModeCallback = 1502213270, - Kind_InterceptionShowCallback = 1852781814, Kind_IsolatedComponentInterface = 2139680213, Kind_MenuOnAppearCallback = -614475458, Kind_OnAdsBlockedCallback = 1572284740, @@ -228,7 +223,6 @@ typedef enum CallbackKind { Kind_TabsCustomContentTransitionCallback = 221706282, Kind_TextAreaSubmitCallback = -401980571, Kind_TransitionFinishCallback = -1878458553, - Kind_Type_NavigationAttribute_customNavContentTransition_delegate = 1044833488, Kind_Type_TextPickerAttribute_onChange_callback = -1078223620, Kind_Type_WebAttribute_onUrlLoadIntercept_callback = -985284966, Kind_VisibleAreaChangeCallback = 541663396, diff --git a/arkoala/framework/native/src/generated/callback_managed_caller.cc b/arkoala/framework/native/src/generated/callback_managed_caller.cc index 1ffdd80bf..6dad45a18 100644 --- a/arkoala/framework/native/src/generated/callback_managed_caller.cc +++ b/arkoala/framework/native/src/generated/callback_managed_caller.cc @@ -1441,26 +1441,6 @@ void callManagedCallback_NativeEmbedTouchInfo_VoidSync(Ark_VMContext vmContext, argsSerializer.writeNativeEmbedTouchInfo(event); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedCallback_NavDestinationContext_Void(Ark_Int32 resourceId, Ark_NavDestinationContext parameter) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_Callback_NavDestinationContext_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavDestinationContext(parameter); - enqueueArkoalaCallback(&__buffer); -} -void callManagedCallback_NavDestinationContext_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavDestinationContext parameter) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_Callback_NavDestinationContext_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavDestinationContext(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedCallback_NavigationMode_Void(Ark_Int32 resourceId, Ark_NavigationMode mode) { CallbackBuffer __buffer = {{}, {}}; @@ -1501,26 +1481,6 @@ void callManagedCallback_NavigationTitleMode_VoidSync(Ark_VMContext vmContext, A argsSerializer.writeInt32(titleMode); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedCallback_NavigationTransitionProxy_Void(Ark_Int32 resourceId, Ark_NavigationTransitionProxy transitionProxy) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_Callback_NavigationTransitionProxy_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavigationTransitionProxy(transitionProxy); - enqueueArkoalaCallback(&__buffer); -} -void callManagedCallback_NavigationTransitionProxy_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavigationTransitionProxy transitionProxy) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_Callback_NavigationTransitionProxy_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavigationTransitionProxy(transitionProxy); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedCallback_Number_Boolean(Ark_Int32 resourceId, Ark_Number index, Callback_Boolean_Void continuation) { CallbackBuffer __buffer = {{}, {}}; @@ -2699,38 +2659,6 @@ void callManagedCallback_Opt_Array_String_VoidSync(Ark_VMContext vmContext, Ark_ } KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedCallback_Opt_NavigationAnimatedTransition_Void(Ark_Int32 resourceId, Opt_NavigationAnimatedTransition value) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_Callback_Opt_NavigationAnimatedTransition_Void); - argsSerializer.writeInt32(resourceId); - Ark_Int32 value_type = ARK_RUNTIME_UNDEFINED; - value_type = runtimeType(value); - argsSerializer.writeInt8(value_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_type)) { - const auto value_value = value.value; - argsSerializer.writeNavigationAnimatedTransition(value_value); - } - enqueueArkoalaCallback(&__buffer); -} -void callManagedCallback_Opt_NavigationAnimatedTransition_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Opt_NavigationAnimatedTransition value) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_Callback_Opt_NavigationAnimatedTransition_Void); - argsSerializer.writeInt32(resourceId); - Ark_Int32 value_type = ARK_RUNTIME_UNDEFINED; - value_type = runtimeType(value); - argsSerializer.writeInt8(value_type); - if ((ARK_RUNTIME_UNDEFINED) != (value_type)) { - const auto value_value = value.value; - argsSerializer.writeNavigationAnimatedTransition(value_value); - } - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedCallback_Opt_StyledString_Opt_Array_String_Void(Ark_Int32 resourceId, Opt_StyledString value, Opt_Array_String error) { CallbackBuffer __buffer = {{}, {}}; @@ -2857,26 +2785,6 @@ void callManagedCallback_Pointer_VoidSync(Ark_VMContext vmContext, Ark_Int32 res argsSerializer.writePointer(value); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedCallback_PopInfo_Void(Ark_Int32 resourceId, Ark_PopInfo parameter) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_Callback_PopInfo_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writePopInfo(parameter); - enqueueArkoalaCallback(&__buffer); -} -void callManagedCallback_PopInfo_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_PopInfo parameter) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_Callback_PopInfo_Void); - argsSerializer.writeInt32(resourceId); - argsSerializer.writePopInfo(parameter); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedCallback_PreDragStatus_Void(Ark_Int32 resourceId, Ark_PreDragStatus parameter) { CallbackBuffer __buffer = {{}, {}}; @@ -4005,76 +3913,6 @@ void callManagedInterceptionModeCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeInt32(mode); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedInterceptionShowCallback(Ark_Int32 resourceId, Ark_Union_NavDestinationContext_NavBar from, Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, Ark_Boolean isAnimated) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_InterceptionShowCallback); - argsSerializer.writeInt32(resourceId); - Ark_Int32 from_type = ARK_RUNTIME_UNDEFINED; - from_type = from.selector; - if (((from_type == 0))) { - argsSerializer.writeInt8(0); - const auto from_0 = from.value0; - argsSerializer.writeNavDestinationContext(from_0); - } - else if (((from_type == 1))) { - argsSerializer.writeInt8(1); - const auto from_1 = from.value1; - argsSerializer.writeString(from_1); - } - Ark_Int32 to_type = ARK_RUNTIME_UNDEFINED; - to_type = to.selector; - if (((to_type == 0))) { - argsSerializer.writeInt8(0); - const auto to_0 = to.value0; - argsSerializer.writeNavDestinationContext(to_0); - } - else if (((to_type == 1))) { - argsSerializer.writeInt8(1); - const auto to_1 = to.value1; - argsSerializer.writeString(to_1); - } - argsSerializer.writeInt32(operation); - argsSerializer.writeBoolean(isAnimated); - enqueueArkoalaCallback(&__buffer); -} -void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_Union_NavDestinationContext_NavBar from, Ark_Union_NavDestinationContext_NavBar to, Ark_NavigationOperation operation, Ark_Boolean isAnimated) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_InterceptionShowCallback); - argsSerializer.writeInt32(resourceId); - Ark_Int32 from_type = ARK_RUNTIME_UNDEFINED; - from_type = from.selector; - if (((from_type == 0))) { - argsSerializer.writeInt8(0); - const auto from_0 = from.value0; - argsSerializer.writeNavDestinationContext(from_0); - } - else if (((from_type == 1))) { - argsSerializer.writeInt8(1); - const auto from_1 = from.value1; - argsSerializer.writeString(from_1); - } - Ark_Int32 to_type = ARK_RUNTIME_UNDEFINED; - to_type = to.selector; - if (((to_type == 0))) { - argsSerializer.writeInt8(0); - const auto to_0 = to.value0; - argsSerializer.writeNavDestinationContext(to_0); - } - else if (((to_type == 1))) { - argsSerializer.writeInt8(1); - const auto to_1 = to.value1; - argsSerializer.writeString(to_1); - } - argsSerializer.writeInt32(operation); - argsSerializer.writeBoolean(isAnimated); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedIsolatedComponentInterface(Ark_Int32 resourceId, Ark_IsolatedOptions options, Callback_IsolatedComponentAttribute_Void continuation) { CallbackBuffer __buffer = {{}, {}}; @@ -5341,36 +5179,6 @@ void callManagedTransitionFinishCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeBoolean(transitionIn); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); } -void callManagedType_NavigationAttribute_customNavContentTransition_delegate(Ark_Int32 resourceId, Ark_NavContentInfo from, Ark_NavContentInfo to, Ark_NavigationOperation operation, Callback_Opt_NavigationAnimatedTransition_Void continuation) -{ - CallbackBuffer __buffer = {{}, {}}; - const Ark_CallbackResource __callbackResource = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; - __buffer.resourceHolder.holdCallbackResource(&__callbackResource); - Serializer argsSerializer = Serializer(__buffer.buffer, &(__buffer.resourceHolder)); - argsSerializer.writeInt32(Kind_Type_NavigationAttribute_customNavContentTransition_delegate); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavContentInfo(from); - argsSerializer.writeNavContentInfo(to); - argsSerializer.writeInt32(operation); - argsSerializer.writeCallbackResource(continuation.resource); - argsSerializer.writePointer(reinterpret_cast(continuation.call)); - argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - enqueueArkoalaCallback(&__buffer); -} -void callManagedType_NavigationAttribute_customNavContentTransition_delegateSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NavContentInfo from, Ark_NavContentInfo to, Ark_NavigationOperation operation, Callback_Opt_NavigationAnimatedTransition_Void continuation) -{ - uint8_t __buffer[60 * 4]; - Serializer argsSerializer = Serializer(__buffer, nullptr); - argsSerializer.writeInt32(Kind_Type_NavigationAttribute_customNavContentTransition_delegate); - argsSerializer.writeInt32(resourceId); - argsSerializer.writeNavContentInfo(from); - argsSerializer.writeNavContentInfo(to); - argsSerializer.writeInt32(operation); - argsSerializer.writeCallbackResource(continuation.resource); - argsSerializer.writePointer(reinterpret_cast(continuation.call)); - argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); - KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(__buffer), __buffer); -} void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, Ark_Union_String_Array_String value, Ark_Union_Number_Array_Number index) { CallbackBuffer __buffer = {{}, {}}; @@ -5670,10 +5478,8 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_Callback_MouseEvent_Void: return reinterpret_cast(callManagedCallback_MouseEvent_Void); case Kind_Callback_NativeEmbedDataInfo_Void: return reinterpret_cast(callManagedCallback_NativeEmbedDataInfo_Void); case Kind_Callback_NativeEmbedTouchInfo_Void: return reinterpret_cast(callManagedCallback_NativeEmbedTouchInfo_Void); - case Kind_Callback_NavDestinationContext_Void: return reinterpret_cast(callManagedCallback_NavDestinationContext_Void); case Kind_Callback_NavigationMode_Void: return reinterpret_cast(callManagedCallback_NavigationMode_Void); case Kind_Callback_NavigationTitleMode_Void: return reinterpret_cast(callManagedCallback_NavigationTitleMode_Void); - case Kind_Callback_NavigationTransitionProxy_Void: return reinterpret_cast(callManagedCallback_NavigationTransitionProxy_Void); case Kind_Callback_Number_Boolean: return reinterpret_cast(callManagedCallback_Number_Boolean); case Kind_Callback_Number_Number_Boolean: return reinterpret_cast(callManagedCallback_Number_Number_Boolean); case Kind_Callback_Number_Number_ComputedBarAttribute: return reinterpret_cast(callManagedCallback_Number_Number_ComputedBarAttribute); @@ -5726,12 +5532,10 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_Callback_OnTouchIconUrlReceivedEvent_Void: return reinterpret_cast(callManagedCallback_OnTouchIconUrlReceivedEvent_Void); case Kind_Callback_OnWindowNewEvent_Void: return reinterpret_cast(callManagedCallback_OnWindowNewEvent_Void); case Kind_Callback_Opt_Array_String_Void: return reinterpret_cast(callManagedCallback_Opt_Array_String_Void); - case Kind_Callback_Opt_NavigationAnimatedTransition_Void: return reinterpret_cast(callManagedCallback_Opt_NavigationAnimatedTransition_Void); case Kind_Callback_Opt_StyledString_Opt_Array_String_Void: return reinterpret_cast(callManagedCallback_Opt_StyledString_Opt_Array_String_Void); case Kind_Callback_Opt_TabContentAnimatedTransition_Void: return reinterpret_cast(callManagedCallback_Opt_TabContentAnimatedTransition_Void); case Kind_Callback_PlaybackInfo_Void: return reinterpret_cast(callManagedCallback_PlaybackInfo_Void); case Kind_Callback_Pointer_Void: return reinterpret_cast(callManagedCallback_Pointer_Void); - case Kind_Callback_PopInfo_Void: return reinterpret_cast(callManagedCallback_PopInfo_Void); case Kind_Callback_PreDragStatus_Void: return reinterpret_cast(callManagedCallback_PreDragStatus_Void); case Kind_Callback_PreparedInfo_Void: return reinterpret_cast(callManagedCallback_PreparedInfo_Void); case Kind_Callback_RangeUpdate: return reinterpret_cast(callManagedCallback_RangeUpdate); @@ -5779,7 +5583,6 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_ImageCompleteCallback: return reinterpret_cast(callManagedImageCompleteCallback); case Kind_ImageErrorCallback: return reinterpret_cast(callManagedImageErrorCallback); case Kind_InterceptionModeCallback: return reinterpret_cast(callManagedInterceptionModeCallback); - case Kind_InterceptionShowCallback: return reinterpret_cast(callManagedInterceptionShowCallback); case Kind_IsolatedComponentInterface: return reinterpret_cast(callManagedIsolatedComponentInterface); case Kind_MenuOnAppearCallback: return reinterpret_cast(callManagedMenuOnAppearCallback); case Kind_OnAdsBlockedCallback: return reinterpret_cast(callManagedOnAdsBlockedCallback); @@ -5835,7 +5638,6 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_TabsCustomContentTransitionCallback: return reinterpret_cast(callManagedTabsCustomContentTransitionCallback); case Kind_TextAreaSubmitCallback: return reinterpret_cast(callManagedTextAreaSubmitCallback); case Kind_TransitionFinishCallback: return reinterpret_cast(callManagedTransitionFinishCallback); - case Kind_Type_NavigationAttribute_customNavContentTransition_delegate: return reinterpret_cast(callManagedType_NavigationAttribute_customNavContentTransition_delegate); case Kind_Type_TextPickerAttribute_onChange_callback: return reinterpret_cast(callManagedType_TextPickerAttribute_onChange_callback); case Kind_Type_WebAttribute_onUrlLoadIntercept_callback: return reinterpret_cast(callManagedType_WebAttribute_onUrlLoadIntercept_callback); case Kind_VisibleAreaChangeCallback: return reinterpret_cast(callManagedVisibleAreaChangeCallback); @@ -5908,10 +5710,8 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_Callback_MouseEvent_Void: return reinterpret_cast(callManagedCallback_MouseEvent_VoidSync); case Kind_Callback_NativeEmbedDataInfo_Void: return reinterpret_cast(callManagedCallback_NativeEmbedDataInfo_VoidSync); case Kind_Callback_NativeEmbedTouchInfo_Void: return reinterpret_cast(callManagedCallback_NativeEmbedTouchInfo_VoidSync); - case Kind_Callback_NavDestinationContext_Void: return reinterpret_cast(callManagedCallback_NavDestinationContext_VoidSync); case Kind_Callback_NavigationMode_Void: return reinterpret_cast(callManagedCallback_NavigationMode_VoidSync); case Kind_Callback_NavigationTitleMode_Void: return reinterpret_cast(callManagedCallback_NavigationTitleMode_VoidSync); - case Kind_Callback_NavigationTransitionProxy_Void: return reinterpret_cast(callManagedCallback_NavigationTransitionProxy_VoidSync); case Kind_Callback_Number_Boolean: return reinterpret_cast(callManagedCallback_Number_BooleanSync); case Kind_Callback_Number_Number_Boolean: return reinterpret_cast(callManagedCallback_Number_Number_BooleanSync); case Kind_Callback_Number_Number_ComputedBarAttribute: return reinterpret_cast(callManagedCallback_Number_Number_ComputedBarAttributeSync); @@ -5964,12 +5764,10 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_Callback_OnTouchIconUrlReceivedEvent_Void: return reinterpret_cast(callManagedCallback_OnTouchIconUrlReceivedEvent_VoidSync); case Kind_Callback_OnWindowNewEvent_Void: return reinterpret_cast(callManagedCallback_OnWindowNewEvent_VoidSync); case Kind_Callback_Opt_Array_String_Void: return reinterpret_cast(callManagedCallback_Opt_Array_String_VoidSync); - case Kind_Callback_Opt_NavigationAnimatedTransition_Void: return reinterpret_cast(callManagedCallback_Opt_NavigationAnimatedTransition_VoidSync); case Kind_Callback_Opt_StyledString_Opt_Array_String_Void: return reinterpret_cast(callManagedCallback_Opt_StyledString_Opt_Array_String_VoidSync); case Kind_Callback_Opt_TabContentAnimatedTransition_Void: return reinterpret_cast(callManagedCallback_Opt_TabContentAnimatedTransition_VoidSync); case Kind_Callback_PlaybackInfo_Void: return reinterpret_cast(callManagedCallback_PlaybackInfo_VoidSync); case Kind_Callback_Pointer_Void: return reinterpret_cast(callManagedCallback_Pointer_VoidSync); - case Kind_Callback_PopInfo_Void: return reinterpret_cast(callManagedCallback_PopInfo_VoidSync); case Kind_Callback_PreDragStatus_Void: return reinterpret_cast(callManagedCallback_PreDragStatus_VoidSync); case Kind_Callback_PreparedInfo_Void: return reinterpret_cast(callManagedCallback_PreparedInfo_VoidSync); case Kind_Callback_RangeUpdate: return reinterpret_cast(callManagedCallback_RangeUpdateSync); @@ -6017,7 +5815,6 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_ImageCompleteCallback: return reinterpret_cast(callManagedImageCompleteCallbackSync); case Kind_ImageErrorCallback: return reinterpret_cast(callManagedImageErrorCallbackSync); case Kind_InterceptionModeCallback: return reinterpret_cast(callManagedInterceptionModeCallbackSync); - case Kind_InterceptionShowCallback: return reinterpret_cast(callManagedInterceptionShowCallbackSync); case Kind_IsolatedComponentInterface: return reinterpret_cast(callManagedIsolatedComponentInterfaceSync); case Kind_MenuOnAppearCallback: return reinterpret_cast(callManagedMenuOnAppearCallbackSync); case Kind_OnAdsBlockedCallback: return reinterpret_cast(callManagedOnAdsBlockedCallbackSync); @@ -6073,7 +5870,6 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_TabsCustomContentTransitionCallback: return reinterpret_cast(callManagedTabsCustomContentTransitionCallbackSync); case Kind_TextAreaSubmitCallback: return reinterpret_cast(callManagedTextAreaSubmitCallbackSync); case Kind_TransitionFinishCallback: return reinterpret_cast(callManagedTransitionFinishCallbackSync); - case Kind_Type_NavigationAttribute_customNavContentTransition_delegate: return reinterpret_cast(callManagedType_NavigationAttribute_customNavContentTransition_delegateSync); case Kind_Type_TextPickerAttribute_onChange_callback: return reinterpret_cast(callManagedType_TextPickerAttribute_onChange_callbackSync); case Kind_Type_WebAttribute_onUrlLoadIntercept_callback: return reinterpret_cast(callManagedType_WebAttribute_onUrlLoadIntercept_callbackSync); case Kind_VisibleAreaChangeCallback: return reinterpret_cast(callManagedVisibleAreaChangeCallbackSync); diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index 98946a7b3..dc2752452 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -7883,249 +7883,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // MenuItemGroupInterfaceModifier - namespace NavDestinationModifier { - Ark_NativePointer ConstructImpl(Ark_Int32 id, - Ark_Int32 flags) - { - if (!needGroupedLog(1)) - return new TreeNode("NavDestination", id, flags);; - string out("construct("); - WriteToString(&out, id); - out.append(", "); - WriteToString(&out, flags); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return new TreeNode("NavDestination", id, flags);; - } - } // NavDestinationModifier - namespace NavDestinationInterfaceModifier { - void SetNavDestinationOptionsImpl(Ark_NativePointer node) - { - if (!needGroupedLog(1)) - return; - string out("setNavDestinationOptions("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // NavDestinationInterfaceModifier - namespace NavDestinationAttributeModifier { - void HideTitleBar0Impl(Ark_NativePointer node, - Ark_Boolean value) - { - if (!needGroupedLog(1)) - return; - string out("hideTitleBar("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void HideTitleBar1Impl(Ark_NativePointer node, - Ark_Boolean hide, - Ark_Boolean animated) - { - if (!needGroupedLog(1)) - return; - string out("hideTitleBar("); - WriteToString(&out, hide); - out.append(", "); - WriteToString(&out, animated); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnShownImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onShown("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnHiddenImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onHidden("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnBackPressedImpl(Ark_NativePointer node, - const Callback_Boolean* value) - { - if (!needGroupedLog(1)) - return; - string out("onBackPressed("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ModeImpl(Ark_NativePointer node, - Ark_NavDestinationMode value) - { - if (!needGroupedLog(1)) - return; - string out("mode("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void BackButtonIconImpl(Ark_NativePointer node, - const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier* value) - { - if (!needGroupedLog(1)) - return; - string out("backButtonIcon("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void MenusImpl(Ark_NativePointer node, - const Ark_Union_Array_NavigationMenuItem_CustomBuilder* value) - { - if (!needGroupedLog(1)) - return; - string out("menus("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnReadyImpl(Ark_NativePointer node, - const Callback_NavDestinationContext_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onReady("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnWillAppearImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onWillAppear("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnWillDisappearImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onWillDisappear("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnWillShowImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onWillShow("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void OnWillHideImpl(Ark_NativePointer node, - const Callback_Void* value) - { - if (!needGroupedLog(1)) - return; - string out("onWillHide("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SystemBarStyleImpl(Ark_NativePointer node, - const Opt_SystemBarStyle* value) - { - if (!needGroupedLog(1)) - return; - string out("systemBarStyle("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RecoverableImpl(Ark_NativePointer node, - const Opt_Boolean* value) - { - if (!needGroupedLog(1)) - return; - string out("recoverable("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SystemTransitionImpl(Ark_NativePointer node, - Ark_NavigationSystemTransitionType value) - { - if (!needGroupedLog(1)) - return; - string out("systemTransition("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void TitleImpl(Ark_NativePointer node, - const Ark_Type_NavDestinationAttribute_title_value* value, - const Opt_NavigationTitleOptions* options) - { - if (!needGroupedLog(1)) - return; - string out("title("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, options); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ToolbarConfigurationImpl(Ark_NativePointer node, - const Ark_Union_Array_ToolbarItem_CustomBuilder* toolbarParam, - const Opt_NavigationToolbarOptions* options) - { - if (!needGroupedLog(1)) - return; - string out("toolbarConfiguration("); - WriteToString(&out, toolbarParam); - out.append(", "); - WriteToString(&out, options); - out.append(") \n"); - appendGroupedLog(1, out); - } - void HideToolBarImpl(Ark_NativePointer node, - Ark_Boolean hide, - const Opt_Boolean* animated) - { - if (!needGroupedLog(1)) - return; - string out("hideToolBar("); - WriteToString(&out, hide); - out.append(", "); - WriteToString(&out, animated); - out.append(") \n"); - appendGroupedLog(1, out); - } - void IgnoreLayoutSafeAreaImpl(Ark_NativePointer node, - const Opt_Array_LayoutSafeAreaType* types, - const Opt_Array_LayoutSafeAreaEdge* edges) - { - if (!needGroupedLog(1)) - return; - string out("ignoreLayoutSafeArea("); - WriteToString(&out, types); - out.append(", "); - WriteToString(&out, edges); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // NavDestinationAttributeModifier namespace NavRouterModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) @@ -18325,35 +18082,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &ArkUIMenuItemGroupModifierImpl; } - const GENERATED_ArkUINavDestinationModifier* GetNavDestinationModifier() - { - static const GENERATED_ArkUINavDestinationModifier ArkUINavDestinationModifierImpl { - NavDestinationModifier::ConstructImpl, - NavDestinationInterfaceModifier::SetNavDestinationOptionsImpl, - NavDestinationAttributeModifier::HideTitleBar0Impl, - NavDestinationAttributeModifier::HideTitleBar1Impl, - NavDestinationAttributeModifier::OnShownImpl, - NavDestinationAttributeModifier::OnHiddenImpl, - NavDestinationAttributeModifier::OnBackPressedImpl, - NavDestinationAttributeModifier::ModeImpl, - NavDestinationAttributeModifier::BackButtonIconImpl, - NavDestinationAttributeModifier::MenusImpl, - NavDestinationAttributeModifier::OnReadyImpl, - NavDestinationAttributeModifier::OnWillAppearImpl, - NavDestinationAttributeModifier::OnWillDisappearImpl, - NavDestinationAttributeModifier::OnWillShowImpl, - NavDestinationAttributeModifier::OnWillHideImpl, - NavDestinationAttributeModifier::SystemBarStyleImpl, - NavDestinationAttributeModifier::RecoverableImpl, - NavDestinationAttributeModifier::SystemTransitionImpl, - NavDestinationAttributeModifier::TitleImpl, - NavDestinationAttributeModifier::ToolbarConfigurationImpl, - NavDestinationAttributeModifier::HideToolBarImpl, - NavDestinationAttributeModifier::IgnoreLayoutSafeAreaImpl, - }; - return &ArkUINavDestinationModifierImpl; - } - const GENERATED_ArkUINavRouterModifier* GetNavRouterModifier() { static const GENERATED_ArkUINavRouterModifier ArkUINavRouterModifierImpl { @@ -19674,7 +19402,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetMenuModifier, GetMenuItemModifier, GetMenuItemGroupModifier, - GetNavDestinationModifier, GetNavRouterModifier, GetNavigatorModifier, GetNodeContainerModifier, @@ -22292,86 +22019,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // ProgressMaskAccessor - namespace AttributeModifierAccessor { - void DestroyPeerImpl(AttributeModifierPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (AttributeModifierPeer*) 100; - string out("new AttributeModifier("); - out.append(") \n"); - out.append("[return (AttributeModifierPeer*) 100] \n"); - appendGroupedLog(1, out); - return (AttributeModifierPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void ApplyNormalAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - if (!needGroupedLog(1)) - return; - string out("applyNormalAttribute("); - WriteToString(&out, instance); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ApplyPressedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - if (!needGroupedLog(1)) - return; - string out("applyPressedAttribute("); - WriteToString(&out, instance); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ApplyFocusedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - if (!needGroupedLog(1)) - return; - string out("applyFocusedAttribute("); - WriteToString(&out, instance); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ApplyDisabledAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - if (!needGroupedLog(1)) - return; - string out("applyDisabledAttribute("); - WriteToString(&out, instance); - out.append(") \n"); - appendGroupedLog(1, out); - } - void ApplySelectedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - if (!needGroupedLog(1)) - return; - string out("applySelectedAttribute("); - WriteToString(&out, instance); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // AttributeModifierAccessor namespace ViewAccessor { void DestroyPeerImpl(ViewPeer* peer) { @@ -22632,8 +22279,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GestureModifierAccessor - namespace AbstractPropertyAccessor { - void DestroyPeerImpl(AbstractPropertyPeer* peer) + namespace ContextMenuAccessor { + void DestroyPeerImpl(ContextMenuPeer* peer) { if (!needGroupedLog(1)) return; @@ -22644,12 +22291,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NativePointer CtorImpl() { if (!needGroupedLog(1)) - return (AbstractPropertyPeer*) 100; - string out("new AbstractProperty("); + return (ContextMenuPeer*) 100; + string out("new ContextMenu("); out.append(") \n"); - out.append("[return (AbstractPropertyPeer*) 100] \n"); + out.append("[return (ContextMenuPeer*) 100] \n"); appendGroupedLog(1, out); - return (AbstractPropertyPeer*) 100; + return (ContextMenuPeer*) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22661,255 +22308,36 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetImpl(AbstractPropertyPeer* peer) + void CloseImpl() { if (!needGroupedLog(1)) return; - string out("get("); + string out("close("); out.append(") \n"); appendGroupedLog(1, out); } - void SetImpl(AbstractPropertyPeer* peer, - const Ark_CustomObject* newValue) + } // ContextMenuAccessor + namespace CustomDialogControllerAccessor { + void DestroyPeerImpl(CustomDialogControllerPeer* peer) { if (!needGroupedLog(1)) return; - string out("set("); - WriteToString(&out, newValue); + string out("destroyPeer("); out.append(") \n"); appendGroupedLog(1, out); } - void InfoImpl(AbstractPropertyPeer* peer) + Ark_NativePointer CtorImpl(const Ark_CustomDialogControllerOptions* value) { if (!needGroupedLog(1)) - return; - string out("info("); + return (CustomDialogControllerPeer*) 100; + string out("new CustomDialogController("); + WriteToString(&out, value); out.append(") \n"); + out.append("[return (CustomDialogControllerPeer*) 100] \n"); appendGroupedLog(1, out); + return (CustomDialogControllerPeer*) 100; } - } // AbstractPropertyAccessor - namespace IPropertySubscriberAccessor { - void DestroyPeerImpl(IPropertySubscriberPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (IPropertySubscriberPeer*) 100; - string out("new IPropertySubscriber("); - out.append(") \n"); - out.append("[return (IPropertySubscriberPeer*) 100] \n"); - appendGroupedLog(1, out); - return (IPropertySubscriberPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - Ark_Int32 IdImpl(IPropertySubscriberPeer* peer) - { - if (!needGroupedLog(1)) - return 0; - string out("id("); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - void AboutToBeDeletedImpl(IPropertySubscriberPeer* peer, - const Opt_IPropertySubscriber* owningView) - { - if (!needGroupedLog(1)) - return; - string out("aboutToBeDeleted("); - WriteToString(&out, owningView); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // IPropertySubscriberAccessor - namespace ISinglePropertyChangeSubscriberAccessor { - void DestroyPeerImpl(ISinglePropertyChangeSubscriberPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (ISinglePropertyChangeSubscriberPeer*) 100; - string out("new ISinglePropertyChangeSubscriber("); - out.append(") \n"); - out.append("[return (ISinglePropertyChangeSubscriberPeer*) 100] \n"); - appendGroupedLog(1, out); - return (ISinglePropertyChangeSubscriberPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void HasChangedImpl(ISinglePropertyChangeSubscriberPeer* peer, - const Ark_CustomObject* newValue) - { - if (!needGroupedLog(1)) - return; - string out("hasChanged("); - WriteToString(&out, newValue); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // ISinglePropertyChangeSubscriberAccessor - namespace SubscribaleAbstractAccessor { - void DestroyPeerImpl(SubscribaleAbstractPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (SubscribaleAbstractPeer*) 100; - string out("new SubscribaleAbstract("); - out.append(") \n"); - out.append("[return (SubscribaleAbstractPeer*) 100] \n"); - appendGroupedLog(1, out); - return (SubscribaleAbstractPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void NotifyPropertyHasChangedImpl(SubscribaleAbstractPeer* peer, - const Ark_String* propName, - const Ark_CustomObject* newValue) - { - if (!needGroupedLog(1)) - return; - string out("notifyPropertyHasChanged("); - WriteToString(&out, propName); - out.append(", "); - WriteToString(&out, newValue); - out.append(") \n"); - appendGroupedLog(1, out); - } - void AddOwningPropertyImpl(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* subscriber) - { - if (!needGroupedLog(1)) - return; - string out("addOwningProperty("); - WriteToString(&out, subscriber); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RemoveOwningPropertyImpl(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* property) - { - if (!needGroupedLog(1)) - return; - string out("removeOwningProperty("); - WriteToString(&out, property); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RemoveOwningPropertyByIdImpl(SubscribaleAbstractPeer* peer, - const Ark_Number* subscriberId) - { - if (!needGroupedLog(1)) - return; - string out("removeOwningPropertyById("); - WriteToString(&out, subscriberId); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // SubscribaleAbstractAccessor - namespace ContextMenuAccessor { - void DestroyPeerImpl(ContextMenuPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (ContextMenuPeer*) 100; - string out("new ContextMenu("); - out.append(") \n"); - out.append("[return (ContextMenuPeer*) 100] \n"); - appendGroupedLog(1, out); - return (ContextMenuPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void CloseImpl() - { - if (!needGroupedLog(1)) - return; - string out("close("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // ContextMenuAccessor - namespace CustomDialogControllerAccessor { - void DestroyPeerImpl(CustomDialogControllerPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl(const Ark_CustomDialogControllerOptions* value) - { - if (!needGroupedLog(1)) - return (CustomDialogControllerPeer*) 100; - string out("new CustomDialogController("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return (CustomDialogControllerPeer*) 100] \n"); - appendGroupedLog(1, out); - return (CustomDialogControllerPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() + Ark_NativePointer GetFinalizerImpl() { if (!needGroupedLog(1)) return fnPtr(dummyClassFinalizer); @@ -23654,180 +23082,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // Matrix2DAccessor - namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (NavDestinationContextPeer*) 100; - string out("new NavDestinationContext("); - out.append(") \n"); - out.append("[return (NavDestinationContextPeer*) 100] \n"); - appendGroupedLog(1, out); - return (NavDestinationContextPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) - { - if (!needGroupedLog(1)) - return 0; - string out("getConfigInRouteMap("); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - void SetPathInfoImpl(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo) - { - if (!needGroupedLog(1)) - return; - string out("setPathInfo("); - WriteToString(&out, pathInfo); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SetPathStackImpl(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack) - { - if (!needGroupedLog(1)) - return; - string out("setPathStack("); - WriteToString(&out, pathStack); - out.append(") \n"); - appendGroupedLog(1, out); - } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("getNavDestinationId("); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, - const Ark_String* navDestinationId) - { - if (!needGroupedLog(1)) - return; - string out("setNavDestinationId("); - WriteToString(&out, navDestinationId); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // NavDestinationContextAccessor - namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer CtorImpl() - { - if (!needGroupedLog(1)) - return (NavigationTransitionProxyPeer*) 100; - string out("new NavigationTransitionProxy("); - out.append(") \n"); - out.append("[return (NavigationTransitionProxyPeer*) 100] \n"); - appendGroupedLog(1, out); - return (NavigationTransitionProxyPeer*) 100; - } - Ark_NativePointer GetFinalizerImpl() - { - if (!needGroupedLog(1)) - return fnPtr(dummyClassFinalizer); - string out("getFinalizer("); - out.append(") \n"); - out.append("[return fnPtr(dummyClassFinalizer)] \n"); - appendGroupedLog(1, out); - return fnPtr(dummyClassFinalizer); - } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("finishTransition("); - out.append(") \n"); - appendGroupedLog(1, out); - } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("cancelTransition("); - out.append(") \n"); - appendGroupedLog(1, out); - } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, - const Ark_Number* progress) - { - if (!needGroupedLog(1)) - return; - string out("updateTransition("); - WriteToString(&out, progress); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SetFromImpl(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* from) - { - if (!needGroupedLog(1)) - return; - string out("setFrom("); - WriteToString(&out, from); - out.append(") \n"); - appendGroupedLog(1, out); - } - void SetToImpl(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* to) - { - if (!needGroupedLog(1)) - return; - string out("setTo("); - WriteToString(&out, to); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) - { - if (!needGroupedLog(1)) - return 0; - string out("getIsInteractive("); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, - Ark_Boolean isInteractive) - { - if (!needGroupedLog(1)) - return; - string out("setIsInteractive("); - WriteToString(&out, isInteractive); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { void DestroyPeerImpl(PatternLockControllerPeer* peer) { @@ -28571,24 +27825,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ProgressMaskPeer { virtual ~ProgressMaskPeer() = default; }; - const GENERATED_ArkUIAttributeModifierAccessor* GetAttributeModifierAccessor() - { - static const GENERATED_ArkUIAttributeModifierAccessor AttributeModifierAccessorImpl { - AttributeModifierAccessor::DestroyPeerImpl, - AttributeModifierAccessor::CtorImpl, - AttributeModifierAccessor::GetFinalizerImpl, - AttributeModifierAccessor::ApplyNormalAttributeImpl, - AttributeModifierAccessor::ApplyPressedAttributeImpl, - AttributeModifierAccessor::ApplyFocusedAttributeImpl, - AttributeModifierAccessor::ApplyDisabledAttributeImpl, - AttributeModifierAccessor::ApplySelectedAttributeImpl, - }; - return &AttributeModifierAccessorImpl; - } - - struct AttributeModifierPeer { - virtual ~AttributeModifierPeer() = default; - }; const GENERATED_ArkUIViewAccessor* GetViewAccessor() { static const GENERATED_ArkUIViewAccessor ViewAccessorImpl { @@ -28664,68 +27900,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIAbstractPropertyAccessor* GetAbstractPropertyAccessor() - { - static const GENERATED_ArkUIAbstractPropertyAccessor AbstractPropertyAccessorImpl { - AbstractPropertyAccessor::DestroyPeerImpl, - AbstractPropertyAccessor::CtorImpl, - AbstractPropertyAccessor::GetFinalizerImpl, - AbstractPropertyAccessor::GetImpl, - AbstractPropertyAccessor::SetImpl, - AbstractPropertyAccessor::InfoImpl, - }; - return &AbstractPropertyAccessorImpl; - } - - struct AbstractPropertyPeer { - virtual ~AbstractPropertyPeer() = default; - }; - const GENERATED_ArkUIIPropertySubscriberAccessor* GetIPropertySubscriberAccessor() - { - static const GENERATED_ArkUIIPropertySubscriberAccessor IPropertySubscriberAccessorImpl { - IPropertySubscriberAccessor::DestroyPeerImpl, - IPropertySubscriberAccessor::CtorImpl, - IPropertySubscriberAccessor::GetFinalizerImpl, - IPropertySubscriberAccessor::IdImpl, - IPropertySubscriberAccessor::AboutToBeDeletedImpl, - }; - return &IPropertySubscriberAccessorImpl; - } - - struct IPropertySubscriberPeer { - virtual ~IPropertySubscriberPeer() = default; - }; - const GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor* GetISinglePropertyChangeSubscriberAccessor() - { - static const GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor ISinglePropertyChangeSubscriberAccessorImpl { - ISinglePropertyChangeSubscriberAccessor::DestroyPeerImpl, - ISinglePropertyChangeSubscriberAccessor::CtorImpl, - ISinglePropertyChangeSubscriberAccessor::GetFinalizerImpl, - ISinglePropertyChangeSubscriberAccessor::HasChangedImpl, - }; - return &ISinglePropertyChangeSubscriberAccessorImpl; - } - - struct ISinglePropertyChangeSubscriberPeer { - virtual ~ISinglePropertyChangeSubscriberPeer() = default; - }; - const GENERATED_ArkUISubscribaleAbstractAccessor* GetSubscribaleAbstractAccessor() - { - static const GENERATED_ArkUISubscribaleAbstractAccessor SubscribaleAbstractAccessorImpl { - SubscribaleAbstractAccessor::DestroyPeerImpl, - SubscribaleAbstractAccessor::CtorImpl, - SubscribaleAbstractAccessor::GetFinalizerImpl, - SubscribaleAbstractAccessor::NotifyPropertyHasChangedImpl, - SubscribaleAbstractAccessor::AddOwningPropertyImpl, - SubscribaleAbstractAccessor::RemoveOwningPropertyImpl, - SubscribaleAbstractAccessor::RemoveOwningPropertyByIdImpl, - }; - return &SubscribaleAbstractAccessorImpl; - } - - struct SubscribaleAbstractPeer { - virtual ~SubscribaleAbstractPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -28913,44 +28087,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct Matrix2DPeer { virtual ~Matrix2DPeer() = default; }; - const GENERATED_ArkUINavDestinationContextAccessor* GetNavDestinationContextAccessor() - { - static const GENERATED_ArkUINavDestinationContextAccessor NavDestinationContextAccessorImpl { - NavDestinationContextAccessor::DestroyPeerImpl, - NavDestinationContextAccessor::CtorImpl, - NavDestinationContextAccessor::GetFinalizerImpl, - NavDestinationContextAccessor::GetConfigInRouteMapImpl, - NavDestinationContextAccessor::SetPathInfoImpl, - NavDestinationContextAccessor::SetPathStackImpl, - NavDestinationContextAccessor::GetNavDestinationIdImpl, - NavDestinationContextAccessor::SetNavDestinationIdImpl, - }; - return &NavDestinationContextAccessorImpl; - } - - struct NavDestinationContextPeer { - virtual ~NavDestinationContextPeer() = default; - }; - const GENERATED_ArkUINavigationTransitionProxyAccessor* GetNavigationTransitionProxyAccessor() - { - static const GENERATED_ArkUINavigationTransitionProxyAccessor NavigationTransitionProxyAccessorImpl { - NavigationTransitionProxyAccessor::DestroyPeerImpl, - NavigationTransitionProxyAccessor::CtorImpl, - NavigationTransitionProxyAccessor::GetFinalizerImpl, - NavigationTransitionProxyAccessor::FinishTransitionImpl, - NavigationTransitionProxyAccessor::CancelTransitionImpl, - NavigationTransitionProxyAccessor::UpdateTransitionImpl, - NavigationTransitionProxyAccessor::SetFromImpl, - NavigationTransitionProxyAccessor::SetToImpl, - NavigationTransitionProxyAccessor::GetIsInteractiveImpl, - NavigationTransitionProxyAccessor::SetIsInteractiveImpl, - }; - return &NavigationTransitionProxyAccessorImpl; - } - - struct NavigationTransitionProxyPeer { - virtual ~NavigationTransitionProxyPeer() = default; - }; const GENERATED_ArkUIPatternLockControllerAccessor* GetPatternLockControllerAccessor() { static const GENERATED_ArkUIPatternLockControllerAccessor PatternLockControllerAccessorImpl { @@ -29941,16 +29077,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetTransitionEffectAccessor, GetPixelMapMockAccessor, GetProgressMaskAccessor, - GetAttributeModifierAccessor, GetViewAccessor, GetTextContentControllerBaseAccessor, GetDynamicNodeAccessor, GetChildrenMainSizeAccessor, GetGestureModifierAccessor, - GetAbstractPropertyAccessor, - GetIPropertySubscriberAccessor, - GetISinglePropertyChangeSubscriberAccessor, - GetSubscribaleAbstractAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetDatePickerDialogAccessor, @@ -29962,8 +29093,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAnalyzerControllerAccessor, GetListScrollerAccessor, GetMatrix2DAccessor, - GetNavDestinationContextAccessor, - GetNavigationTransitionProxyAccessor, GetPatternLockControllerAccessor, GetRichEditorBaseControllerAccessor, GetRichEditorControllerAccessor, diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 6154ab19c..5dbde6ca7 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -3757,105 +3757,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // MenuItemGroupInterfaceModifier - namespace NavDestinationModifier { - Ark_NativePointer ConstructImpl(Ark_Int32 id, - Ark_Int32 flags) - { - return nullptr; - } - } // NavDestinationModifier - namespace NavDestinationInterfaceModifier { - void SetNavDestinationOptionsImpl(Ark_NativePointer node) - { - } - } // NavDestinationInterfaceModifier - namespace NavDestinationAttributeModifier { - void HideTitleBar0Impl(Ark_NativePointer node, - Ark_Boolean value) - { - } - void HideTitleBar1Impl(Ark_NativePointer node, - Ark_Boolean hide, - Ark_Boolean animated) - { - } - void OnShownImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void OnHiddenImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void OnBackPressedImpl(Ark_NativePointer node, - const Callback_Boolean* value) - { - } - void ModeImpl(Ark_NativePointer node, - Ark_NavDestinationMode value) - { - } - void BackButtonIconImpl(Ark_NativePointer node, - const Ark_Union_ResourceStr_PixelMap_SymbolGlyphModifier* value) - { - } - void MenusImpl(Ark_NativePointer node, - const Ark_Union_Array_NavigationMenuItem_CustomBuilder* value) - { - } - void OnReadyImpl(Ark_NativePointer node, - const Callback_NavDestinationContext_Void* value) - { - } - void OnWillAppearImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void OnWillDisappearImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void OnWillShowImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void OnWillHideImpl(Ark_NativePointer node, - const Callback_Void* value) - { - } - void SystemBarStyleImpl(Ark_NativePointer node, - const Opt_SystemBarStyle* value) - { - } - void RecoverableImpl(Ark_NativePointer node, - const Opt_Boolean* value) - { - } - void SystemTransitionImpl(Ark_NativePointer node, - Ark_NavigationSystemTransitionType value) - { - } - void TitleImpl(Ark_NativePointer node, - const Ark_Type_NavDestinationAttribute_title_value* value, - const Opt_NavigationTitleOptions* options) - { - } - void ToolbarConfigurationImpl(Ark_NativePointer node, - const Ark_Union_Array_ToolbarItem_CustomBuilder* toolbarParam, - const Opt_NavigationToolbarOptions* options) - { - } - void HideToolBarImpl(Ark_NativePointer node, - Ark_Boolean hide, - const Opt_Boolean* animated) - { - } - void IgnoreLayoutSafeAreaImpl(Ark_NativePointer node, - const Opt_Array_LayoutSafeAreaType* types, - const Opt_Array_LayoutSafeAreaEdge* edges) - { - } - } // NavDestinationAttributeModifier namespace NavRouterModifier { Ark_NativePointer ConstructImpl(Ark_Int32 id, Ark_Int32 flags) @@ -8709,35 +8610,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &ArkUIMenuItemGroupModifierImpl; } - const GENERATED_ArkUINavDestinationModifier* GetNavDestinationModifier() - { - static const GENERATED_ArkUINavDestinationModifier ArkUINavDestinationModifierImpl { - NavDestinationModifier::ConstructImpl, - NavDestinationInterfaceModifier::SetNavDestinationOptionsImpl, - NavDestinationAttributeModifier::HideTitleBar0Impl, - NavDestinationAttributeModifier::HideTitleBar1Impl, - NavDestinationAttributeModifier::OnShownImpl, - NavDestinationAttributeModifier::OnHiddenImpl, - NavDestinationAttributeModifier::OnBackPressedImpl, - NavDestinationAttributeModifier::ModeImpl, - NavDestinationAttributeModifier::BackButtonIconImpl, - NavDestinationAttributeModifier::MenusImpl, - NavDestinationAttributeModifier::OnReadyImpl, - NavDestinationAttributeModifier::OnWillAppearImpl, - NavDestinationAttributeModifier::OnWillDisappearImpl, - NavDestinationAttributeModifier::OnWillShowImpl, - NavDestinationAttributeModifier::OnWillHideImpl, - NavDestinationAttributeModifier::SystemBarStyleImpl, - NavDestinationAttributeModifier::RecoverableImpl, - NavDestinationAttributeModifier::SystemTransitionImpl, - NavDestinationAttributeModifier::TitleImpl, - NavDestinationAttributeModifier::ToolbarConfigurationImpl, - NavDestinationAttributeModifier::HideToolBarImpl, - NavDestinationAttributeModifier::IgnoreLayoutSafeAreaImpl, - }; - return &ArkUINavDestinationModifierImpl; - } - const GENERATED_ArkUINavRouterModifier* GetNavRouterModifier() { static const GENERATED_ArkUINavRouterModifier ArkUINavRouterModifierImpl { @@ -10058,7 +9930,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetMenuModifier, GetMenuItemModifier, GetMenuItemGroupModifier, - GetNavDestinationModifier, GetNavRouterModifier, GetNavigatorModifier, GetNodeContainerModifier, @@ -11244,43 +11115,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // ProgressMaskAccessor - namespace AttributeModifierAccessor { - void DestroyPeerImpl(AttributeModifierPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new AttributeModifierPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void ApplyNormalAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - } - void ApplyPressedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - } - void ApplyFocusedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - } - void ApplyDisabledAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - } - void ApplySelectedAttributeImpl(AttributeModifierPeer* peer, - const Ark_CustomObject* instance) - { - } - } // AttributeModifierAccessor namespace ViewAccessor { void DestroyPeerImpl(ViewPeer* peer) { @@ -11409,113 +11243,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // GestureModifierAccessor - namespace AbstractPropertyAccessor { - void DestroyPeerImpl(AbstractPropertyPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new AbstractPropertyPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void GetImpl(AbstractPropertyPeer* peer) - { - } - void SetImpl(AbstractPropertyPeer* peer, - const Ark_CustomObject* newValue) - { - } - void InfoImpl(AbstractPropertyPeer* peer) - { - } - } // AbstractPropertyAccessor - namespace IPropertySubscriberAccessor { - void DestroyPeerImpl(IPropertySubscriberPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new IPropertySubscriberPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - Ark_Int32 IdImpl(IPropertySubscriberPeer* peer) - { - return 0; - } - void AboutToBeDeletedImpl(IPropertySubscriberPeer* peer, - const Opt_IPropertySubscriber* owningView) - { - } - } // IPropertySubscriberAccessor - namespace ISinglePropertyChangeSubscriberAccessor { - void DestroyPeerImpl(ISinglePropertyChangeSubscriberPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new ISinglePropertyChangeSubscriberPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void HasChangedImpl(ISinglePropertyChangeSubscriberPeer* peer, - const Ark_CustomObject* newValue) - { - } - } // ISinglePropertyChangeSubscriberAccessor - namespace SubscribaleAbstractAccessor { - void DestroyPeerImpl(SubscribaleAbstractPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new SubscribaleAbstractPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void NotifyPropertyHasChangedImpl(SubscribaleAbstractPeer* peer, - const Ark_String* propName, - const Ark_CustomObject* newValue) - { - } - void AddOwningPropertyImpl(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* subscriber) - { - } - void RemoveOwningPropertyImpl(SubscribaleAbstractPeer* peer, - const Ark_IPropertySubscriber* property) - { - } - void RemoveOwningPropertyByIdImpl(SubscribaleAbstractPeer* peer, - const Ark_Number* subscriberId) - { - } - } // SubscribaleAbstractAccessor namespace ContextMenuAccessor { void DestroyPeerImpl(ContextMenuPeer* peer) { @@ -11889,85 +11616,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // Matrix2DAccessor - namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new NavDestinationContextPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) - { - return 0; - } - void SetPathInfoImpl(NavDestinationContextPeer* peer, - const Ark_NavPathInfo* pathInfo) - { - } - void SetPathStackImpl(NavDestinationContextPeer* peer, - const Ark_NavPathStack* pathStack) - { - } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) - { - } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, - const Ark_String* navDestinationId) - { - } - } // NavDestinationContextAccessor - namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer CtorImpl() - { - return new NavigationTransitionProxyPeer(); - } - Ark_NativePointer GetFinalizerImpl() - { - return reinterpret_cast(&DestroyPeerImpl); - } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) - { - } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) - { - } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, - const Ark_Number* progress) - { - } - void SetFromImpl(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* from) - { - } - void SetToImpl(NavigationTransitionProxyPeer* peer, - const Ark_NavContentInfo* to) - { - } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) - { - return 0; - } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, - Ark_Boolean isInteractive) - { - } - } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { void DestroyPeerImpl(PatternLockControllerPeer* peer) { @@ -14378,24 +14026,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ProgressMaskPeer { virtual ~ProgressMaskPeer() = default; }; - const GENERATED_ArkUIAttributeModifierAccessor* GetAttributeModifierAccessor() - { - static const GENERATED_ArkUIAttributeModifierAccessor AttributeModifierAccessorImpl { - AttributeModifierAccessor::DestroyPeerImpl, - AttributeModifierAccessor::CtorImpl, - AttributeModifierAccessor::GetFinalizerImpl, - AttributeModifierAccessor::ApplyNormalAttributeImpl, - AttributeModifierAccessor::ApplyPressedAttributeImpl, - AttributeModifierAccessor::ApplyFocusedAttributeImpl, - AttributeModifierAccessor::ApplyDisabledAttributeImpl, - AttributeModifierAccessor::ApplySelectedAttributeImpl, - }; - return &AttributeModifierAccessorImpl; - } - - struct AttributeModifierPeer { - virtual ~AttributeModifierPeer() = default; - }; const GENERATED_ArkUIViewAccessor* GetViewAccessor() { static const GENERATED_ArkUIViewAccessor ViewAccessorImpl { @@ -14471,68 +14101,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIAbstractPropertyAccessor* GetAbstractPropertyAccessor() - { - static const GENERATED_ArkUIAbstractPropertyAccessor AbstractPropertyAccessorImpl { - AbstractPropertyAccessor::DestroyPeerImpl, - AbstractPropertyAccessor::CtorImpl, - AbstractPropertyAccessor::GetFinalizerImpl, - AbstractPropertyAccessor::GetImpl, - AbstractPropertyAccessor::SetImpl, - AbstractPropertyAccessor::InfoImpl, - }; - return &AbstractPropertyAccessorImpl; - } - - struct AbstractPropertyPeer { - virtual ~AbstractPropertyPeer() = default; - }; - const GENERATED_ArkUIIPropertySubscriberAccessor* GetIPropertySubscriberAccessor() - { - static const GENERATED_ArkUIIPropertySubscriberAccessor IPropertySubscriberAccessorImpl { - IPropertySubscriberAccessor::DestroyPeerImpl, - IPropertySubscriberAccessor::CtorImpl, - IPropertySubscriberAccessor::GetFinalizerImpl, - IPropertySubscriberAccessor::IdImpl, - IPropertySubscriberAccessor::AboutToBeDeletedImpl, - }; - return &IPropertySubscriberAccessorImpl; - } - - struct IPropertySubscriberPeer { - virtual ~IPropertySubscriberPeer() = default; - }; - const GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor* GetISinglePropertyChangeSubscriberAccessor() - { - static const GENERATED_ArkUIISinglePropertyChangeSubscriberAccessor ISinglePropertyChangeSubscriberAccessorImpl { - ISinglePropertyChangeSubscriberAccessor::DestroyPeerImpl, - ISinglePropertyChangeSubscriberAccessor::CtorImpl, - ISinglePropertyChangeSubscriberAccessor::GetFinalizerImpl, - ISinglePropertyChangeSubscriberAccessor::HasChangedImpl, - }; - return &ISinglePropertyChangeSubscriberAccessorImpl; - } - - struct ISinglePropertyChangeSubscriberPeer { - virtual ~ISinglePropertyChangeSubscriberPeer() = default; - }; - const GENERATED_ArkUISubscribaleAbstractAccessor* GetSubscribaleAbstractAccessor() - { - static const GENERATED_ArkUISubscribaleAbstractAccessor SubscribaleAbstractAccessorImpl { - SubscribaleAbstractAccessor::DestroyPeerImpl, - SubscribaleAbstractAccessor::CtorImpl, - SubscribaleAbstractAccessor::GetFinalizerImpl, - SubscribaleAbstractAccessor::NotifyPropertyHasChangedImpl, - SubscribaleAbstractAccessor::AddOwningPropertyImpl, - SubscribaleAbstractAccessor::RemoveOwningPropertyImpl, - SubscribaleAbstractAccessor::RemoveOwningPropertyByIdImpl, - }; - return &SubscribaleAbstractAccessorImpl; - } - - struct SubscribaleAbstractPeer { - virtual ~SubscribaleAbstractPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -14720,44 +14288,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct Matrix2DPeer { virtual ~Matrix2DPeer() = default; }; - const GENERATED_ArkUINavDestinationContextAccessor* GetNavDestinationContextAccessor() - { - static const GENERATED_ArkUINavDestinationContextAccessor NavDestinationContextAccessorImpl { - NavDestinationContextAccessor::DestroyPeerImpl, - NavDestinationContextAccessor::CtorImpl, - NavDestinationContextAccessor::GetFinalizerImpl, - NavDestinationContextAccessor::GetConfigInRouteMapImpl, - NavDestinationContextAccessor::SetPathInfoImpl, - NavDestinationContextAccessor::SetPathStackImpl, - NavDestinationContextAccessor::GetNavDestinationIdImpl, - NavDestinationContextAccessor::SetNavDestinationIdImpl, - }; - return &NavDestinationContextAccessorImpl; - } - - struct NavDestinationContextPeer { - virtual ~NavDestinationContextPeer() = default; - }; - const GENERATED_ArkUINavigationTransitionProxyAccessor* GetNavigationTransitionProxyAccessor() - { - static const GENERATED_ArkUINavigationTransitionProxyAccessor NavigationTransitionProxyAccessorImpl { - NavigationTransitionProxyAccessor::DestroyPeerImpl, - NavigationTransitionProxyAccessor::CtorImpl, - NavigationTransitionProxyAccessor::GetFinalizerImpl, - NavigationTransitionProxyAccessor::FinishTransitionImpl, - NavigationTransitionProxyAccessor::CancelTransitionImpl, - NavigationTransitionProxyAccessor::UpdateTransitionImpl, - NavigationTransitionProxyAccessor::SetFromImpl, - NavigationTransitionProxyAccessor::SetToImpl, - NavigationTransitionProxyAccessor::GetIsInteractiveImpl, - NavigationTransitionProxyAccessor::SetIsInteractiveImpl, - }; - return &NavigationTransitionProxyAccessorImpl; - } - - struct NavigationTransitionProxyPeer { - virtual ~NavigationTransitionProxyPeer() = default; - }; const GENERATED_ArkUIPatternLockControllerAccessor* GetPatternLockControllerAccessor() { static const GENERATED_ArkUIPatternLockControllerAccessor PatternLockControllerAccessorImpl { @@ -15748,16 +15278,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetTransitionEffectAccessor, GetPixelMapMockAccessor, GetProgressMaskAccessor, - GetAttributeModifierAccessor, GetViewAccessor, GetTextContentControllerBaseAccessor, GetDynamicNodeAccessor, GetChildrenMainSizeAccessor, GetGestureModifierAccessor, - GetAbstractPropertyAccessor, - GetIPropertySubscriberAccessor, - GetISinglePropertyChangeSubscriberAccessor, - GetSubscribaleAbstractAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetDatePickerDialogAccessor, @@ -15769,8 +15294,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAnalyzerControllerAccessor, GetListScrollerAccessor, GetMatrix2DAccessor, - GetNavDestinationContextAccessor, - GetNavigationTransitionProxyAccessor, GetPatternLockControllerAccessor, GetRichEditorBaseControllerAccessor, GetRichEditorControllerAccessor, diff --git a/arkoala/framework/src/generated/NativeModule.ts b/arkoala/framework/src/generated/NativeModule.ts index 37a240a24..6c112a334 100644 --- a/arkoala/framework/src/generated/NativeModule.ts +++ b/arkoala/framework/src/generated/NativeModule.ts @@ -817,28 +817,6 @@ export interface ComponentOps { _MenuItemAttribute_labelFontColor(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void _MenuItemGroup_construct(id: KInt, flags: KInt): KPointer _MenuItemGroupInterface_setMenuItemGroupOptions(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestination_construct(id: KInt, flags: KInt): KPointer - _NavDestinationInterface_setNavDestinationOptions(ptr: KPointer): void - _NavDestinationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void - _NavDestinationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void - _NavDestinationAttribute_onShown(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onHidden(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onBackPressed(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_mode(ptr: KPointer, value: KInt): void - _NavDestinationAttribute_backButtonIcon(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_menus(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onReady(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onWillAppear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onWillDisappear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onWillShow(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_onWillHide(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_systemBarStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_recoverable(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_systemTransition(ptr: KPointer, value: KInt): void - _NavDestinationAttribute_title(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_toolbarConfiguration(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_hideToolBar(ptr: KPointer, hide: KInt, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void _NavRouter_construct(id: KInt, flags: KInt): KPointer _NavRouterInterface_setNavRouterOptions0(ptr: KPointer): void _NavRouterInterface_setNavRouterOptions1(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void @@ -1887,13 +1865,6 @@ export interface ComponentOps { _ProgressMask_updateProgress(ptr: KPointer, value: number): void _ProgressMask_updateColor(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void - _AttributeModifier_ctor(): KPointer - _AttributeModifier_getFinalizer(): KPointer - _AttributeModifier_applyNormalAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AttributeModifier_applyPressedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AttributeModifier_applyFocusedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AttributeModifier_applyDisabledAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AttributeModifier_applySelectedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void _View_ctor(): KPointer _View_getFinalizer(): KPointer _View_create(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): any @@ -1914,24 +1885,6 @@ export interface ComponentOps { _GestureModifier_ctor(): KPointer _GestureModifier_getFinalizer(): KPointer _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AbstractProperty_ctor(): KPointer - _AbstractProperty_getFinalizer(): KPointer - _AbstractProperty_get(ptr: KPointer): KPointer - _AbstractProperty_set(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _AbstractProperty_info(ptr: KPointer): string - _IPropertySubscriber_ctor(): KPointer - _IPropertySubscriber_getFinalizer(): KPointer - _IPropertySubscriber_id(ptr: KPointer): number - _IPropertySubscriber_aboutToBeDeleted(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _ISinglePropertyChangeSubscriber_ctor(): KPointer - _ISinglePropertyChangeSubscriber_getFinalizer(): KPointer - _ISinglePropertyChangeSubscriber_hasChanged(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _SubscribaleAbstract_ctor(): KPointer - _SubscribaleAbstract_getFinalizer(): KPointer - _SubscribaleAbstract_notifyPropertyHasChanged(ptr: KPointer, propName: KStringPtr, thisArray: Uint8Array, thisLength: int32): void - _SubscribaleAbstract_addOwningProperty(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _SubscribaleAbstract_removeOwningProperty(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _SubscribaleAbstract_removeOwningPropertyById(ptr: KPointer, subscriberId: number): void _ContextMenu_ctor(): KPointer _ContextMenu_getFinalizer(): KPointer _ContextMenu_close(): undefined @@ -1998,22 +1951,6 @@ export interface ComponentOps { _Matrix2D_setTranslateX(ptr: KPointer, translateX: number): void _Matrix2D_getTranslateY(ptr: KPointer): number _Matrix2D_setTranslateY(ptr: KPointer, translateY: number): void - _NavDestinationContext_ctor(): KPointer - _NavDestinationContext_getFinalizer(): KPointer - _NavDestinationContext_getConfigInRouteMap(ptr: KPointer): KPointer - _NavDestinationContext_setPathInfo(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationContext_setPathStack(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavDestinationContext_getNavDestinationId(ptr: KPointer): string - _NavDestinationContext_setNavDestinationId(ptr: KPointer, navDestinationId: KStringPtr): void - _NavigationTransitionProxy_ctor(): KPointer - _NavigationTransitionProxy_getFinalizer(): KPointer - _NavigationTransitionProxy_finishTransition(ptr: KPointer): void - _NavigationTransitionProxy_cancelTransition(ptr: KPointer): void - _NavigationTransitionProxy_updateTransition(ptr: KPointer, progress: number): void - _NavigationTransitionProxy_setFrom(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavigationTransitionProxy_setTo(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void - _NavigationTransitionProxy_getIsInteractive(ptr: KPointer): boolean - _NavigationTransitionProxy_setIsInteractive(ptr: KPointer, isInteractive: KInt): void _PatternLockController_ctor(): KPointer _PatternLockController_getFinalizer(): KPointer _PatternLockController_reset(ptr: KPointer): undefined diff --git a/arkoala/framework/src/generated/NativeModuleEmpty.ts b/arkoala/framework/src/generated/NativeModuleEmpty.ts index e723934d9..0161c92ab 100644 --- a/arkoala/framework/src/generated/NativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/NativeModuleEmpty.ts @@ -2323,73 +2323,6 @@ export class NativeModuleEmptyIntegrated implements NativeModuleIntegrated { _MenuItemGroupInterface_setMenuItemGroupOptions(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_MenuItemGroupInterface_setMenuItemGroupOptions") } - _NavDestination_construct(id: KInt, flags: KInt): KPointer { - console.log("_NavDestination_construct") - return -1 - } - _NavDestinationInterface_setNavDestinationOptions(ptr: KPointer): void { - console.log("_NavDestinationInterface_setNavDestinationOptions") - } - _NavDestinationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void { - console.log("_NavDestinationAttribute_hideTitleBar0") - } - _NavDestinationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void { - console.log("_NavDestinationAttribute_hideTitleBar1") - } - _NavDestinationAttribute_onShown(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onShown") - } - _NavDestinationAttribute_onHidden(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onHidden") - } - _NavDestinationAttribute_onBackPressed(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onBackPressed") - } - _NavDestinationAttribute_mode(ptr: KPointer, value: KInt): void { - console.log("_NavDestinationAttribute_mode") - } - _NavDestinationAttribute_backButtonIcon(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_backButtonIcon") - } - _NavDestinationAttribute_menus(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_menus") - } - _NavDestinationAttribute_onReady(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onReady") - } - _NavDestinationAttribute_onWillAppear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onWillAppear") - } - _NavDestinationAttribute_onWillDisappear(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onWillDisappear") - } - _NavDestinationAttribute_onWillShow(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onWillShow") - } - _NavDestinationAttribute_onWillHide(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_onWillHide") - } - _NavDestinationAttribute_systemBarStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_systemBarStyle") - } - _NavDestinationAttribute_recoverable(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_recoverable") - } - _NavDestinationAttribute_systemTransition(ptr: KPointer, value: KInt): void { - console.log("_NavDestinationAttribute_systemTransition") - } - _NavDestinationAttribute_title(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_title") - } - _NavDestinationAttribute_toolbarConfiguration(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_toolbarConfiguration") - } - _NavDestinationAttribute_hideToolBar(ptr: KPointer, hide: KInt, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_hideToolBar") - } - _NavDestinationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationAttribute_ignoreLayoutSafeArea") - } _NavRouter_construct(id: KInt, flags: KInt): KPointer { console.log("_NavRouter_construct") return -1 @@ -5699,29 +5632,6 @@ export class NativeModuleEmptyIntegrated implements NativeModuleIntegrated { _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void { console.log("_ProgressMask_enableBreathingAnimation") } - _AttributeModifier_ctor(): KPointer { - console.log("_AttributeModifier_ctor") - return -1 - } - _AttributeModifier_getFinalizer(): KPointer { - console.log("_AttributeModifier_getFinalizer") - return -1 - } - _AttributeModifier_applyNormalAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AttributeModifier_applyNormalAttribute") - } - _AttributeModifier_applyPressedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AttributeModifier_applyPressedAttribute") - } - _AttributeModifier_applyFocusedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AttributeModifier_applyFocusedAttribute") - } - _AttributeModifier_applyDisabledAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AttributeModifier_applyDisabledAttribute") - } - _AttributeModifier_applySelectedAttribute(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AttributeModifier_applySelectedAttribute") - } _View_ctor(): KPointer { console.log("_View_ctor") return -1 @@ -5798,71 +5708,6 @@ export class NativeModuleEmptyIntegrated implements NativeModuleIntegrated { _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureModifier_applyGesture") } - _AbstractProperty_ctor(): KPointer { - console.log("_AbstractProperty_ctor") - return -1 - } - _AbstractProperty_getFinalizer(): KPointer { - console.log("_AbstractProperty_getFinalizer") - return -1 - } - _AbstractProperty_get(ptr: KPointer): KPointer { - console.log("_AbstractProperty_get") - return -1 - } - _AbstractProperty_set(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_AbstractProperty_set") - } - _AbstractProperty_info(ptr: KPointer): string { - console.log("_AbstractProperty_info") - return "" - } - _IPropertySubscriber_ctor(): KPointer { - console.log("_IPropertySubscriber_ctor") - return -1 - } - _IPropertySubscriber_getFinalizer(): KPointer { - console.log("_IPropertySubscriber_getFinalizer") - return -1 - } - _IPropertySubscriber_id(ptr: KPointer): number { - console.log("_IPropertySubscriber_id") - return 1 - } - _IPropertySubscriber_aboutToBeDeleted(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_IPropertySubscriber_aboutToBeDeleted") - } - _ISinglePropertyChangeSubscriber_ctor(): KPointer { - console.log("_ISinglePropertyChangeSubscriber_ctor") - return -1 - } - _ISinglePropertyChangeSubscriber_getFinalizer(): KPointer { - console.log("_ISinglePropertyChangeSubscriber_getFinalizer") - return -1 - } - _ISinglePropertyChangeSubscriber_hasChanged(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_ISinglePropertyChangeSubscriber_hasChanged") - } - _SubscribaleAbstract_ctor(): KPointer { - console.log("_SubscribaleAbstract_ctor") - return -1 - } - _SubscribaleAbstract_getFinalizer(): KPointer { - console.log("_SubscribaleAbstract_getFinalizer") - return -1 - } - _SubscribaleAbstract_notifyPropertyHasChanged(ptr: KPointer, propName: KStringPtr, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SubscribaleAbstract_notifyPropertyHasChanged") - } - _SubscribaleAbstract_addOwningProperty(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SubscribaleAbstract_addOwningProperty") - } - _SubscribaleAbstract_removeOwningProperty(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_SubscribaleAbstract_removeOwningProperty") - } - _SubscribaleAbstract_removeOwningPropertyById(ptr: KPointer, subscriberId: number): void { - console.log("_SubscribaleAbstract_removeOwningPropertyById") - } _ContextMenu_ctor(): KPointer { console.log("_ContextMenu_ctor") return -1 @@ -6118,61 +5963,6 @@ export class NativeModuleEmptyIntegrated implements NativeModuleIntegrated { _Matrix2D_setTranslateY(ptr: KPointer, translateY: number): void { console.log("_Matrix2D_setTranslateY") } - _NavDestinationContext_ctor(): KPointer { - console.log("_NavDestinationContext_ctor") - return -1 - } - _NavDestinationContext_getFinalizer(): KPointer { - console.log("_NavDestinationContext_getFinalizer") - return -1 - } - _NavDestinationContext_getConfigInRouteMap(ptr: KPointer): KPointer { - console.log("_NavDestinationContext_getConfigInRouteMap") - return -1 - } - _NavDestinationContext_setPathInfo(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationContext_setPathInfo") - } - _NavDestinationContext_setPathStack(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavDestinationContext_setPathStack") - } - _NavDestinationContext_getNavDestinationId(ptr: KPointer): string { - console.log("_NavDestinationContext_getNavDestinationId") - return "" - } - _NavDestinationContext_setNavDestinationId(ptr: KPointer, navDestinationId: KStringPtr): void { - console.log("_NavDestinationContext_setNavDestinationId") - } - _NavigationTransitionProxy_ctor(): KPointer { - console.log("_NavigationTransitionProxy_ctor") - return -1 - } - _NavigationTransitionProxy_getFinalizer(): KPointer { - console.log("_NavigationTransitionProxy_getFinalizer") - return -1 - } - _NavigationTransitionProxy_finishTransition(ptr: KPointer): void { - console.log("_NavigationTransitionProxy_finishTransition") - } - _NavigationTransitionProxy_cancelTransition(ptr: KPointer): void { - console.log("_NavigationTransitionProxy_cancelTransition") - } - _NavigationTransitionProxy_updateTransition(ptr: KPointer, progress: number): void { - console.log("_NavigationTransitionProxy_updateTransition") - } - _NavigationTransitionProxy_setFrom(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavigationTransitionProxy_setFrom") - } - _NavigationTransitionProxy_setTo(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { - console.log("_NavigationTransitionProxy_setTo") - } - _NavigationTransitionProxy_getIsInteractive(ptr: KPointer): boolean { - console.log("_NavigationTransitionProxy_getIsInteractive") - return false - } - _NavigationTransitionProxy_setIsInteractive(ptr: KPointer, isInteractive: KInt): void { - console.log("_NavigationTransitionProxy_setIsInteractive") - } _PatternLockController_ctor(): KPointer { console.log("_PatternLockController_ctor") return -1 -- Gitee From 44d1819bd4e086ef295a53e850de7803ada878a7 Mon Sep 17 00:00:00 2001 From: Yali Xie Date: Mon, 23 Dec 2024 17:20:26 +0300 Subject: [PATCH 3/4] Fix TS Signed-off-by: Yali Xie --- .../src/ArkAbstractPropertyMaterialized.ts | 81 +--- .../src/ArkAttributeModifierMaterialized.ts | 105 +---- .../src/ArkIPropertySubscriberMaterialized.ts | 51 +-- ...glePropertyChangeSubscriberMaterialized.ts | 70 +-- arkoala/arkui/src/ArkNavDestination.ts | 48 +- .../ArkNavDestinationContextMaterialized.ts | 77 +--- ...rkNavigationTransitionProxyMaterialized.ts | 58 +-- .../src/ArkSubscribaleAbstractMaterialized.ts | 104 +---- .../arkui/src/peers/ArkNavDestinationPeer.ts | 418 +++++++++--------- 9 files changed, 280 insertions(+), 732 deletions(-) diff --git a/arkoala/arkui/src/ArkAbstractPropertyMaterialized.ts b/arkoala/arkui/src/ArkAbstractPropertyMaterialized.ts index d29453d83..a6a25fb8d 100644 --- a/arkoala/arkui/src/ArkAbstractPropertyMaterialized.ts +++ b/arkoala/arkui/src/ArkAbstractPropertyMaterialized.ts @@ -17,89 +17,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { nativeModule } from "@koalaui/arkoala" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./peers/SerializerBase" -import { unsafeCast } from "./shared/generated-utils" -import { registerCallback } from "./peers/SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" - -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class AbstractProperty implements MaterializedBase,AbstractProperty { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): AbstractProperty { - const objAbstractProperty: AbstractProperty = new AbstractProperty() - objAbstractProperty.peer = new Finalizable(ptr, AbstractProperty.getFinalizer()) - return objAbstractProperty - } - static ctor(): KPointer { - const retval = nativeModule()._AbstractProperty_ctor() - return retval - } +export class AbstractProperty implements AbstractProperty { constructor() { - { - const ctorPtr: KPointer = AbstractProperty.ctor() - this.peer = new Finalizable(ctorPtr, AbstractProperty.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._AbstractProperty_getFinalizer() } get(): T { - return this.get_serialize() + throw Error("TBD") } set(newValue: T): void { - const newValue_casted = newValue as (T) - this?.set_serialize(newValue_casted) + throw Error("TBD") } info(): string { - return this.info_serialize() - } - private get_serialize(): T { - const retval = nativeModule()._AbstractProperty_get(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } - private set_serialize(newValue: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", newValue) - nativeModule()._AbstractProperty_set(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private info_serialize(): string { - const retval = nativeModule()._AbstractProperty_info(this.peer!.ptr) - return retval - } -} -export class AbstractPropertyInternal { - public static fromPtr(ptr: KPointer): AbstractProperty { - const obj: AbstractProperty = new AbstractProperty() - obj.peer = new Finalizable(ptr, AbstractProperty.getFinalizer()) - return obj + throw Error("TBD") } } diff --git a/arkoala/arkui/src/ArkAttributeModifierMaterialized.ts b/arkoala/arkui/src/ArkAttributeModifierMaterialized.ts index ca0c61257..a66490149 100644 --- a/arkoala/arkui/src/ArkAttributeModifierMaterialized.ts +++ b/arkoala/arkui/src/ArkAttributeModifierMaterialized.ts @@ -17,115 +17,22 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { nativeModule } from "@koalaui/arkoala" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./peers/SerializerBase" -import { unsafeCast } from "./shared/generated-utils" -import { registerCallback } from "./peers/SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" - -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class AttributeModifier implements MaterializedBase,AttributeModifier { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): AttributeModifier { - const objAttributeModifier: AttributeModifier = new AttributeModifier() - objAttributeModifier.peer = new Finalizable(ptr, AttributeModifier.getFinalizer()) - return objAttributeModifier - } - static ctor(): KPointer { - const retval = nativeModule()._AttributeModifier_ctor() - return retval - } +export class AttributeModifier implements AttributeModifier { constructor() { - { - const ctorPtr: KPointer = AttributeModifier.ctor() - this.peer = new Finalizable(ctorPtr, AttributeModifier.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._AttributeModifier_getFinalizer() } applyNormalAttribute(instance: T): void { - const instance_casted = instance as (T) - this?.applyNormalAttribute_serialize(instance_casted) + throw Error("TBD") } applyPressedAttribute(instance: T): void { - const instance_casted = instance as (T) - this?.applyPressedAttribute_serialize(instance_casted) + throw Error("TBD") } applyFocusedAttribute(instance: T): void { - const instance_casted = instance as (T) - this?.applyFocusedAttribute_serialize(instance_casted) + throw Error("TBD") } applyDisabledAttribute(instance: T): void { - const instance_casted = instance as (T) - this?.applyDisabledAttribute_serialize(instance_casted) + throw Error("TBD") } applySelectedAttribute(instance: T): void { - const instance_casted = instance as (T) - this?.applySelectedAttribute_serialize(instance_casted) - } - private applyNormalAttribute_serialize(instance: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", instance) - nativeModule()._AttributeModifier_applyNormalAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private applyPressedAttribute_serialize(instance: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", instance) - nativeModule()._AttributeModifier_applyPressedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private applyFocusedAttribute_serialize(instance: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", instance) - nativeModule()._AttributeModifier_applyFocusedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private applyDisabledAttribute_serialize(instance: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", instance) - nativeModule()._AttributeModifier_applyDisabledAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private applySelectedAttribute_serialize(instance: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", instance) - nativeModule()._AttributeModifier_applySelectedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class AttributeModifierInternal { - public static fromPtr(ptr: KPointer): AttributeModifier { - const obj: AttributeModifier = new AttributeModifier() - obj.peer = new Finalizable(ptr, AttributeModifier.getFinalizer()) - return obj + throw Error("TBD") } } diff --git a/arkoala/arkui/src/ArkIPropertySubscriberMaterialized.ts b/arkoala/arkui/src/ArkIPropertySubscriberMaterialized.ts index 6ddbeb3c9..b8af95e63 100644 --- a/arkoala/arkui/src/ArkIPropertySubscriberMaterialized.ts +++ b/arkoala/arkui/src/ArkIPropertySubscriberMaterialized.ts @@ -48,57 +48,10 @@ import { } from "@koalaui/interop" -export class IPropertySubscriber implements MaterializedBase,IPropertySubscriber { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): IPropertySubscriber { - const objIPropertySubscriber: IPropertySubscriber = new IPropertySubscriber() - objIPropertySubscriber.peer = new Finalizable(ptr, IPropertySubscriber.getFinalizer()) - return objIPropertySubscriber - } - static ctor(): KPointer { - const retval = nativeModule()._IPropertySubscriber_ctor() - return retval - } - constructor() { - { - const ctorPtr: KPointer = IPropertySubscriber.ctor() - this.peer = new Finalizable(ctorPtr, IPropertySubscriber.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._IPropertySubscriber_getFinalizer() - } +export class IPropertySubscriber { id(): number { - return this.id_serialize() + throw Error("TBD") } aboutToBeDeleted(owningView?: IPropertySubscriber): void { - const owningView_casted = owningView as (IPropertySubscriber | undefined) - this?.aboutToBeDeleted_serialize(owningView_casted) - } - private id_serialize(): number { - const retval = nativeModule()._IPropertySubscriber_id(this.peer!.ptr) - return retval - } - private aboutToBeDeleted_serialize(owningView?: IPropertySubscriber): void { - const thisSerializer: Serializer = Serializer.hold() - let owningView_type: int32 = RuntimeType.UNDEFINED - owningView_type = runtimeType(owningView) - thisSerializer.writeInt8(owningView_type) - if ((RuntimeType.UNDEFINED) != (owningView_type)) { - const owningView_value = owningView! - thisSerializer.writeIPropertySubscriber(owningView_value) - } - nativeModule()._IPropertySubscriber_aboutToBeDeleted(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class IPropertySubscriberInternal { - public static fromPtr(ptr: KPointer): IPropertySubscriber { - const obj: IPropertySubscriber = new IPropertySubscriber() - obj.peer = new Finalizable(ptr, IPropertySubscriber.getFinalizer()) - return obj } } diff --git a/arkoala/arkui/src/ArkISinglePropertyChangeSubscriberMaterialized.ts b/arkoala/arkui/src/ArkISinglePropertyChangeSubscriberMaterialized.ts index 445f4726f..261bef960 100644 --- a/arkoala/arkui/src/ArkISinglePropertyChangeSubscriberMaterialized.ts +++ b/arkoala/arkui/src/ArkISinglePropertyChangeSubscriberMaterialized.ts @@ -18,76 +18,8 @@ import { IPropertySubscriber } from "./ArkIPropertySubscriberMaterialized" -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { nativeModule } from "@koalaui/arkoala" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./peers/SerializerBase" -import { unsafeCast } from "./shared/generated-utils" -import { registerCallback } from "./peers/SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ISinglePropertyChangeSubscriber extends IPropertySubscriber implements ISinglePropertyChangeSubscriber { -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class ISinglePropertyChangeSubscriber extends IPropertySubscriber implements MaterializedBase,ISinglePropertyChangeSubscriber { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): ISinglePropertyChangeSubscriber { - const objISinglePropertyChangeSubscriber: ISinglePropertyChangeSubscriber = new ISinglePropertyChangeSubscriber() - objISinglePropertyChangeSubscriber.peer = new Finalizable(ptr, ISinglePropertyChangeSubscriber.getFinalizer()) - return objISinglePropertyChangeSubscriber - } - static ctor(): KPointer { - const retval = nativeModule()._ISinglePropertyChangeSubscriber_ctor() - return retval - } - constructor() { - super() - { - const ctorPtr: KPointer = ISinglePropertyChangeSubscriber.ctor() - this.peer = new Finalizable(ctorPtr, ISinglePropertyChangeSubscriber.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._ISinglePropertyChangeSubscriber_getFinalizer() - } hasChanged(newValue: T): void { - const newValue_casted = newValue as (T) - this?.hasChanged_serialize(newValue_casted) - } - private hasChanged_serialize(newValue: T): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("T", newValue) - nativeModule()._ISinglePropertyChangeSubscriber_hasChanged(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } -} -export class ISinglePropertyChangeSubscriberInternal { - public static fromPtr(ptr: KPointer): ISinglePropertyChangeSubscriber { - const obj: ISinglePropertyChangeSubscriber = new ISinglePropertyChangeSubscriber() - obj.peer = new Finalizable(ptr, ISinglePropertyChangeSubscriber.getFinalizer()) - return obj } } diff --git a/arkoala/arkui/src/ArkNavDestination.ts b/arkoala/arkui/src/ArkNavDestination.ts index 02a5bf379..1c0af01f8 100644 --- a/arkoala/arkui/src/ArkNavDestination.ts +++ b/arkoala/arkui/src/ArkNavDestination.ts @@ -61,9 +61,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onShown(value: (() => void)): this { if (this.checkPriority("onShown")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onShown: value_casted}) - this.getPeer()?.onShownAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onShown: value_casted}) + // this.getPeer()?.onShownAttribute(value_casted) return this } return this @@ -71,9 +71,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onHidden(value: (() => void)): this { if (this.checkPriority("onHidden")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onHidden: value_casted}) - this.getPeer()?.onHiddenAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onHidden: value_casted}) + // this.getPeer()?.onHiddenAttribute(value_casted) return this } return this @@ -81,9 +81,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onBackPressed(value: (() => boolean)): this { if (this.checkPriority("onBackPressed")) { - const value_casted = value as ((() => boolean)) - UseEventsProperties({NavDestination_onBackPressed: value_casted}) - this.getPeer()?.onBackPressedAttribute(value_casted) + // const value_casted = value as ((() => boolean)) + // UseEventsProperties({NavDestination_onBackPressed: value_casted}) + // this.getPeer()?.onBackPressedAttribute(value_casted) return this } return this @@ -118,9 +118,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onReady(value: ((parameter: NavDestinationContext) => void)): this { if (this.checkPriority("onReady")) { - const value_casted = value as (((parameter: NavDestinationContext) => void)) - UseEventsProperties({NavDestination_onReady: value_casted}) - this.getPeer()?.onReadyAttribute(value_casted) + // const value_casted = value as (((parameter: NavDestinationContext) => void)) + // UseEventsProperties({NavDestination_onReady: value_casted}) + // this.getPeer()?.onReadyAttribute(value_casted) return this } return this @@ -128,9 +128,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onWillAppear(value: (() => void)): this { if (this.checkPriority("onWillAppear")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillAppear: value_casted}) - this.getPeer()?.onWillAppearAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onWillAppear: value_casted}) + // this.getPeer()?.onWillAppearAttribute(value_casted) return this } return this @@ -138,9 +138,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onWillDisappear(value: (() => void)): this { if (this.checkPriority("onWillDisappear")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillDisappear: value_casted}) - this.getPeer()?.onWillDisappearAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onWillDisappear: value_casted}) + // this.getPeer()?.onWillDisappearAttribute(value_casted) return this } return this @@ -148,9 +148,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onWillShow(value: (() => void)): this { if (this.checkPriority("onWillShow")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillShow: value_casted}) - this.getPeer()?.onWillShowAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onWillShow: value_casted}) + // this.getPeer()?.onWillShowAttribute(value_casted) return this } return this @@ -158,9 +158,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { /** @memo */ onWillHide(value: (() => void)): this { if (this.checkPriority("onWillHide")) { - const value_casted = value as ((() => void)) - UseEventsProperties({NavDestination_onWillHide: value_casted}) - this.getPeer()?.onWillHideAttribute(value_casted) + // const value_casted = value as ((() => void)) + // UseEventsProperties({NavDestination_onWillHide: value_casted}) + // this.getPeer()?.onWillHideAttribute(value_casted) return this } return this diff --git a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts index b7a804145..16a4acf28 100644 --- a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts @@ -16,40 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { NavPathStack } from "./handwritten/ArkNavPathStack" -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { nativeModule } from "@koalaui/arkoala" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./peers/SerializerBase" -import { unsafeCast } from "./shared/generated-utils" -import { registerCallback } from "./peers/SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavDestinationContext implements NavDestinationContext { -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class NavDestinationContext implements MaterializedBase,NavDestinationContext { - peer?: Finalizable get pathInfo(): NavPathInfo { throw new Error("Not implemented") } @@ -69,27 +39,6 @@ export class NavDestinationContext implements MaterializedBase,NavDestinationCon const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): NavDestinationContext { - const objNavDestinationContext: NavDestinationContext = new NavDestinationContext() - objNavDestinationContext.peer = new Finalizable(ptr, NavDestinationContext.getFinalizer()) - return objNavDestinationContext - } - static ctor(): KPointer { - const retval = nativeModule()._NavDestinationContext_ctor() - return retval - } - constructor() { - { - const ctorPtr: KPointer = NavDestinationContext.ctor() - this.peer = new Finalizable(ctorPtr, NavDestinationContext.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._NavDestinationContext_getFinalizer() - } getConfigInRouteMap(): RouteMapConfig | undefined { return this.getConfigInRouteMap_serialize() } @@ -109,33 +58,15 @@ export class NavDestinationContext implements MaterializedBase,NavDestinationCon this?.setNavDestinationId_serialize(navDestinationId_casted) } private getConfigInRouteMap_serialize(): RouteMapConfig | undefined { - const retval = nativeModule()._NavDestinationContext_getConfigInRouteMap(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + throw Error("TBD") } private setPathInfo_serialize(pathInfo: NavPathInfo): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeNavPathInfo(pathInfo) - nativeModule()._NavDestinationContext_setPathInfo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() } private setPathStack_serialize(pathStack: NavPathStack): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeNavPathStack(pathStack) - nativeModule()._NavDestinationContext_setPathStack(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() } private getNavDestinationId_serialize(): string { - const retval = nativeModule()._NavDestinationContext_getNavDestinationId(this.peer!.ptr) - return retval + throw Error("TBD") } private setNavDestinationId_serialize(navDestinationId: string): void { - nativeModule()._NavDestinationContext_setNavDestinationId(this.peer!.ptr, navDestinationId) - } -} -export class NavDestinationContextInternal { - public static fromPtr(ptr: KPointer): NavDestinationContext { - const obj: NavDestinationContext = new NavDestinationContext() - obj.peer = new Finalizable(ptr, NavDestinationContext.getFinalizer()) - return obj } } diff --git a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts index 045baa454..dfccb4f9c 100644 --- a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts @@ -48,8 +48,7 @@ import { } from "@koalaui/interop" -export class NavigationTransitionProxy implements MaterializedBase,NavigationTransitionProxy { - peer?: Finalizable +export class NavigationTransitionProxy { get from(): NavContentInfo { throw new Error("Not implemented") } @@ -68,27 +67,8 @@ export class NavigationTransitionProxy implements MaterializedBase,NavigationTra set isInteractive(isInteractive: boolean) { const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) - } - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): NavigationTransitionProxy { - const objNavigationTransitionProxy: NavigationTransitionProxy = new NavigationTransitionProxy() - objNavigationTransitionProxy.peer = new Finalizable(ptr, NavigationTransitionProxy.getFinalizer()) - return objNavigationTransitionProxy - } - static ctor(): KPointer { - const retval = nativeModule()._NavigationTransitionProxy_ctor() - return retval } constructor() { - { - const ctorPtr: KPointer = NavigationTransitionProxy.ctor() - this.peer = new Finalizable(ctorPtr, NavigationTransitionProxy.getFinalizer()) - } - } - static getFinalizer(): KPointer { - return nativeModule()._NavigationTransitionProxy_getFinalizer() } finishTransition(): void { this?.finishTransition_serialize() @@ -116,38 +96,32 @@ export class NavigationTransitionProxy implements MaterializedBase,NavigationTra this?.setIsInteractive_serialize(isInteractive_casted) } private finishTransition_serialize(): void { - nativeModule()._NavigationTransitionProxy_finishTransition(this.peer!.ptr) + // nativeModule()._NavigationTransitionProxy_finishTransition(this.peer!.ptr) } private cancelTransition_serialize(): void { - nativeModule()._NavigationTransitionProxy_cancelTransition(this.peer!.ptr) + // nativeModule()._NavigationTransitionProxy_cancelTransition(this.peer!.ptr) } private updateTransition_serialize(progress: number): void { - nativeModule()._NavigationTransitionProxy_updateTransition(this.peer!.ptr, progress) + // nativeModule()._NavigationTransitionProxy_updateTransition(this.peer!.ptr, progress) } private setFrom_serialize(from: NavContentInfo): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeNavContentInfo(from) - nativeModule()._NavigationTransitionProxy_setFrom(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.writeNavContentInfo(from) + // nativeModule()._NavigationTransitionProxy_setFrom(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private setTo_serialize(to: NavContentInfo): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeNavContentInfo(to) - nativeModule()._NavigationTransitionProxy_setTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.writeNavContentInfo(to) + // nativeModule()._NavigationTransitionProxy_setTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } private getIsInteractive_serialize(): boolean { - const retval = nativeModule()._NavigationTransitionProxy_getIsInteractive(this.peer!.ptr) - return retval + // const retval = nativeModule()._NavigationTransitionProxy_getIsInteractive(this.peer!.ptr) + // return retval + return false } private setIsInteractive_serialize(isInteractive: boolean): void { - nativeModule()._NavigationTransitionProxy_setIsInteractive(this.peer!.ptr, +isInteractive) - } -} -export class NavigationTransitionProxyInternal { - public static fromPtr(ptr: KPointer): NavigationTransitionProxy { - const obj: NavigationTransitionProxy = new NavigationTransitionProxy() - obj.peer = new Finalizable(ptr, NavigationTransitionProxy.getFinalizer()) - return obj + // nativeModule()._NavigationTransitionProxy_setIsInteractive(this.peer!.ptr, +isInteractive) } } diff --git a/arkoala/arkui/src/ArkSubscribaleAbstractMaterialized.ts b/arkoala/arkui/src/ArkSubscribaleAbstractMaterialized.ts index d19129fb6..a66490149 100644 --- a/arkoala/arkui/src/ArkSubscribaleAbstractMaterialized.ts +++ b/arkoala/arkui/src/ArkSubscribaleAbstractMaterialized.ts @@ -16,105 +16,23 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { IPropertySubscriber } from "./ArkIPropertySubscriberMaterialized" -import { Finalizable } from "./Finalizable" -import { MaterializedBase } from "./MaterializedBase" -import { nativeModule } from "@koalaui/arkoala" -import { Serializer } from "./peers/Serializer" -import { isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./peers/SerializerBase" -import { unsafeCast } from "./shared/generated-utils" -import { registerCallback } from "./peers/SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" - -import { - int32, - float32 -} from "@koalaui/common" -import { - KInt, - KBoolean, - KFloat, - KUInt, - KStringPtr, - KPointer, - KNativePointer, - KInt32ArrayPtr, - KUint8ArrayPtr, - KFloat32ArrayPtr, - pointer -} from "@koalaui/interop" - - -export class SubscribaleAbstract implements MaterializedBase,SubscribaleAbstract { - peer?: Finalizable - getPeer(): Finalizable | undefined { - return this.peer - } - static construct(ptr: KPointer): SubscribaleAbstract { - const objSubscribaleAbstract: SubscribaleAbstract = new SubscribaleAbstract() - objSubscribaleAbstract.peer = new Finalizable(ptr, SubscribaleAbstract.getFinalizer()) - return objSubscribaleAbstract - } - static ctor(): KPointer { - const retval = nativeModule()._SubscribaleAbstract_ctor() - return retval - } +export class AttributeModifier implements AttributeModifier { constructor() { - { - const ctorPtr: KPointer = SubscribaleAbstract.ctor() - this.peer = new Finalizable(ctorPtr, SubscribaleAbstract.getFinalizer()) - } } - static getFinalizer(): KPointer { - return nativeModule()._SubscribaleAbstract_getFinalizer() + applyNormalAttribute(instance: T): void { + throw Error("TBD") } - notifyPropertyHasChanged(propName: string, newValue: any): void { - const propName_casted = propName as (string) - const newValue_casted = newValue as (any) - this?.notifyPropertyHasChanged_serialize(propName_casted, newValue_casted) + applyPressedAttribute(instance: T): void { + throw Error("TBD") } - addOwningProperty(subscriber: IPropertySubscriber): void { - const subscriber_casted = subscriber as (IPropertySubscriber) - this?.addOwningProperty_serialize(subscriber_casted) + applyFocusedAttribute(instance: T): void { + throw Error("TBD") } - removeOwningProperty(property: IPropertySubscriber): void { - const property_casted = property as (IPropertySubscriber) - this?.removeOwningProperty_serialize(property_casted) + applyDisabledAttribute(instance: T): void { + throw Error("TBD") } - removeOwningPropertyById(subscriberId: number): void { - const subscriberId_casted = subscriberId as (number) - this?.removeOwningPropertyById_serialize(subscriberId_casted) - } - private notifyPropertyHasChanged_serialize(propName: string, newValue: any): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Any", newValue) - nativeModule()._SubscribaleAbstract_notifyPropertyHasChanged(this.peer!.ptr, propName, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private addOwningProperty_serialize(subscriber: IPropertySubscriber): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeIPropertySubscriber(subscriber) - nativeModule()._SubscribaleAbstract_addOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private removeOwningProperty_serialize(property: IPropertySubscriber): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeIPropertySubscriber(property) - nativeModule()._SubscribaleAbstract_removeOwningProperty(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private removeOwningPropertyById_serialize(subscriberId: number): void { - nativeModule()._SubscribaleAbstract_removeOwningPropertyById(this.peer!.ptr, subscriberId) - } -} -export class SubscribaleAbstractInternal { - public static fromPtr(ptr: KPointer): SubscribaleAbstract { - const obj: SubscribaleAbstract = new SubscribaleAbstract() - obj.peer = new Finalizable(ptr, SubscribaleAbstract.getFinalizer()) - return obj + applySelectedAttribute(instance: T): void { + throw Error("TBD") } } diff --git a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts index 230ec8fbb..7f5fdf050 100644 --- a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts @@ -42,257 +42,263 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { } public static create(component?: ComponentBase, flags: int32 = 0): ArkNavDestinationPeer { const peerId = PeerNode.nextId() - const _peerPtr = nativeModule()._NavDestination_construct(peerId, flags) + //const _peerPtr = nativeModule()._NavDestination_construct(peerId, flags) + // TBD: Chang construct to Custom + const _peerPtr = nativeModule()._Column_construct(peerId, flags) + const _peer = new ArkNavDestinationPeer(_peerPtr, peerId, "NavDestination", flags) component?.setPeer(_peer) return _peer } setNavDestinationOptionsAttribute(): void { - nativeModule()._NavDestinationInterface_setNavDestinationOptions(this.peer.ptr) + // nativeModule()._NavDestinationInterface_setNavDestinationOptions(this.peer.ptr) } hideTitleBar0Attribute(value: boolean): void { - nativeModule()._NavDestinationAttribute_hideTitleBar0(this.peer.ptr, +value) + // nativeModule()._NavDestinationAttribute_hideTitleBar0(this.peer.ptr, +value) } hideTitleBar1Attribute(hide: boolean, animated: boolean): void { - nativeModule()._NavDestinationAttribute_hideTitleBar1(this.peer.ptr, +hide, +animated) + // nativeModule()._NavDestinationAttribute_hideTitleBar1(this.peer.ptr, +hide, +animated) } onShownAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onShown(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onShown(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onHiddenAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onHidden(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onHidden(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onBackPressedAttribute(value: (() => boolean)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onBackPressed(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onBackPressed(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } modeAttribute(value: NavDestinationMode): void { - nativeModule()._NavDestinationAttribute_mode(this.peer.ptr, value) + // nativeModule()._NavDestinationAttribute_mode(this.peer.ptr, value) } backButtonIconAttribute(value: ResourceStr | PixelMap | SymbolGlyphModifier): void { - const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast(value) - let value_0_type: int32 = RuntimeType.UNDEFINED - value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { - thisSerializer.writeInt8(0) - const value_0_0 = unsafeCast(value_0) - thisSerializer.writeString(value_0_0) - } - else if (((RuntimeType.OBJECT == value_0_type))) { - thisSerializer.writeInt8(1) - const value_0_1 = unsafeCast(value_0) - thisSerializer.writeResource(value_0_1) - } - } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writePixelMap(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("__SymbolGlyphModifierStub"))))) { - thisSerializer.writeInt8(2) - const value_2 = unsafeCast(value) - thisSerializer.writeSymbolGlyphModifier(value_2) - } - nativeModule()._NavDestinationAttribute_backButtonIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let value_type: int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + // thisSerializer.writeInt8(0) + // const value_0 = unsafeCast(value) + // let value_0_type: int32 = RuntimeType.UNDEFINED + // value_0_type = runtimeType(value_0) + // if (((RuntimeType.STRING == value_0_type))) { + // thisSerializer.writeInt8(0) + // const value_0_0 = unsafeCast(value_0) + // thisSerializer.writeString(value_0_0) + // } + // else if (((RuntimeType.OBJECT == value_0_type))) { + // thisSerializer.writeInt8(1) + // const value_0_1 = unsafeCast(value_0) + // thisSerializer.writeResource(value_0_1) + // } + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + // thisSerializer.writeInt8(1) + // const value_1 = unsafeCast(value) + // thisSerializer.writePixelMap(value_1) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("__SymbolGlyphModifierStub"))))) { + // thisSerializer.writeInt8(2) + // const value_2 = unsafeCast(value) + // thisSerializer.writeSymbolGlyphModifier(value_2) + // } + // nativeModule()._NavDestinationAttribute_backButtonIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } menusAttribute(value: Array | CustomBuilder): void { - const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast>(value) - thisSerializer.writeInt32(value_0.length) - for (let i = 0; i < value_0.length; i++) { - const value_0_element = value_0[i] - thisSerializer.writeNavigationMenuItem(value_0_element) - } - } - else if (((RuntimeType.FUNCTION == value_type))) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) - } - nativeModule()._NavDestinationAttribute_menus(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let value_type: int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.OBJECT == value_type))) { + // thisSerializer.writeInt8(0) + // const value_0 = unsafeCast>(value) + // thisSerializer.writeInt32(value_0.length) + // for (let i = 0; i < value_0.length; i++) { + // const value_0_element = value_0[i] + // thisSerializer.writeNavigationMenuItem(value_0_element) + // } + // } + // else if (((RuntimeType.FUNCTION == value_type))) { + // thisSerializer.writeInt8(1) + // const value_1 = unsafeCast(value) + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) + // } + // nativeModule()._NavDestinationAttribute_menus(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onReadyAttribute(value: ((parameter: NavDestinationContext) => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onReady(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onReady(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onWillAppearAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onWillAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onWillAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onWillDisappearAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onWillDisappear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onWillDisappear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onWillShowAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onWillShow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onWillShow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } onWillHideAttribute(value: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(value) - nativeModule()._NavDestinationAttribute_onWillHide(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // thisSerializer.holdAndWriteCallback(value) + // nativeModule()._NavDestinationAttribute_onWillHide(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } systemBarStyleAttribute(value?: SystemBarStyle): void { - const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.writeSystemBarStyle(value_value) - } - nativeModule()._NavDestinationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let value_type: int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // thisSerializer.writeInt8(value_type) + // if ((RuntimeType.UNDEFINED) != (value_type)) { + // const value_value = value! + // thisSerializer.writeSystemBarStyle(value_value) + // } + // nativeModule()._NavDestinationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } recoverableAttribute(value?: boolean): void { - const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - thisSerializer.writeInt8(value_type) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.writeBoolean(value_value) - } - nativeModule()._NavDestinationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let value_type: int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // thisSerializer.writeInt8(value_type) + // if ((RuntimeType.UNDEFINED) != (value_type)) { + // const value_value = value! + // thisSerializer.writeBoolean(value_value) + // } + // nativeModule()._NavDestinationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } systemTransitionAttribute(value: NavigationSystemTransitionType): void { - nativeModule()._NavDestinationAttribute_systemTransition(this.peer.ptr, value) + // nativeModule()._NavDestinationAttribute_systemTransition(this.peer.ptr, value) } titleAttribute(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): void { - const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast(value) - thisSerializer.writeString(value_0) - } - else if (((RuntimeType.FUNCTION == value_type))) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("main"))))) { - thisSerializer.writeInt8(2) - const value_2 = unsafeCast(value) - thisSerializer.writeNavDestinationCommonTitle(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("builder"))))) { - thisSerializer.writeInt8(3) - const value_3 = unsafeCast(value) - thisSerializer.writeNavDestinationCustomTitle(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { - thisSerializer.writeInt8(4) - const value_4 = unsafeCast(value) - thisSerializer.writeResource(value_4) - } - let options_type: int32 = RuntimeType.UNDEFINED - options_type = runtimeType(options) - thisSerializer.writeInt8(options_type) - if ((RuntimeType.UNDEFINED) != (options_type)) { - const options_value = options! - thisSerializer.writeNavigationTitleOptions(options_value) - } - nativeModule()._NavDestinationAttribute_title(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let value_type: int32 = RuntimeType.UNDEFINED + // value_type = runtimeType(value) + // if (((RuntimeType.STRING == value_type))) { + // thisSerializer.writeInt8(0) + // const value_0 = unsafeCast(value) + // thisSerializer.writeString(value_0) + // } + // else if (((RuntimeType.FUNCTION == value_type))) { + // thisSerializer.writeInt8(1) + // const value_1 = unsafeCast(value) + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("main"))))) { + // thisSerializer.writeInt8(2) + // const value_2 = unsafeCast(value) + // thisSerializer.writeNavDestinationCommonTitle(value_2) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("builder"))))) { + // thisSerializer.writeInt8(3) + // const value_3 = unsafeCast(value) + // thisSerializer.writeNavDestinationCustomTitle(value_3) + // } + // else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + // thisSerializer.writeInt8(4) + // const value_4 = unsafeCast(value) + // thisSerializer.writeResource(value_4) + // } + // let options_type: int32 = RuntimeType.UNDEFINED + // options_type = runtimeType(options) + // thisSerializer.writeInt8(options_type) + // if ((RuntimeType.UNDEFINED) != (options_type)) { + // const options_value = options! + // thisSerializer.writeNavigationTitleOptions(options_value) + // } + // nativeModule()._NavDestinationAttribute_title(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } toolbarConfigurationAttribute(toolbarParam: Array | CustomBuilder, options?: NavigationToolbarOptions): void { - const thisSerializer: Serializer = Serializer.hold() - let toolbarParam_type: int32 = RuntimeType.UNDEFINED - toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { - thisSerializer.writeInt8(0) - const toolbarParam_0 = unsafeCast>(toolbarParam) - thisSerializer.writeInt32(toolbarParam_0.length) - for (let i = 0; i < toolbarParam_0.length; i++) { - const toolbarParam_0_element = toolbarParam_0[i] - thisSerializer.writeToolbarItem(toolbarParam_0_element) - } - } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { - thisSerializer.writeInt8(1) - const toolbarParam_1 = unsafeCast(toolbarParam) - thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) - } - let options_type: int32 = RuntimeType.UNDEFINED - options_type = runtimeType(options) - thisSerializer.writeInt8(options_type) - if ((RuntimeType.UNDEFINED) != (options_type)) { - const options_value = options! - thisSerializer.writeNavigationToolbarOptions(options_value) - } - nativeModule()._NavDestinationAttribute_toolbarConfiguration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let toolbarParam_type: int32 = RuntimeType.UNDEFINED + // toolbarParam_type = runtimeType(toolbarParam) + // if (((RuntimeType.OBJECT == toolbarParam_type))) { + // thisSerializer.writeInt8(0) + // const toolbarParam_0 = unsafeCast>(toolbarParam) + // thisSerializer.writeInt32(toolbarParam_0.length) + // for (let i = 0; i < toolbarParam_0.length; i++) { + // const toolbarParam_0_element = toolbarParam_0[i] + // thisSerializer.writeToolbarItem(toolbarParam_0_element) + // } + // } + // else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + // thisSerializer.writeInt8(1) + // const toolbarParam_1 = unsafeCast(toolbarParam) + // thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) + // } + // let options_type: int32 = RuntimeType.UNDEFINED + // options_type = runtimeType(options) + // thisSerializer.writeInt8(options_type) + // if ((RuntimeType.UNDEFINED) != (options_type)) { + // const options_value = options! + // thisSerializer.writeNavigationToolbarOptions(options_value) + // } + // nativeModule()._NavDestinationAttribute_toolbarConfiguration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } hideToolBarAttribute(hide: boolean, animated?: boolean): void { - const thisSerializer: Serializer = Serializer.hold() - let animated_type: int32 = RuntimeType.UNDEFINED - animated_type = runtimeType(animated) - thisSerializer.writeInt8(animated_type) - if ((RuntimeType.UNDEFINED) != (animated_type)) { - const animated_value = animated! - thisSerializer.writeBoolean(animated_value) - } - nativeModule()._NavDestinationAttribute_hideToolBar(this.peer.ptr, +hide, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let animated_type: int32 = RuntimeType.UNDEFINED + // animated_type = runtimeType(animated) + // thisSerializer.writeInt8(animated_type) + // if ((RuntimeType.UNDEFINED) != (animated_type)) { + // const animated_value = animated! + // thisSerializer.writeBoolean(animated_value) + // } + // nativeModule()._NavDestinationAttribute_hideToolBar(this.peer.ptr, +hide, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() } ignoreLayoutSafeAreaAttribute(types?: Array, edges?: Array): void { - const thisSerializer: Serializer = Serializer.hold() - let types_type: int32 = RuntimeType.UNDEFINED - types_type = runtimeType(types) - thisSerializer.writeInt8(types_type) - if ((RuntimeType.UNDEFINED) != (types_type)) { - const types_value = types! - thisSerializer.writeInt32(types_value.length) - for (let i = 0; i < types_value.length; i++) { - const types_value_element = types_value[i] - thisSerializer.writeInt32(types_value_element) - } - } - let edges_type: int32 = RuntimeType.UNDEFINED - edges_type = runtimeType(edges) - thisSerializer.writeInt8(edges_type) - if ((RuntimeType.UNDEFINED) != (edges_type)) { - const edges_value = edges! - thisSerializer.writeInt32(edges_value.length) - for (let i = 0; i < edges_value.length; i++) { - const edges_value_element = edges_value[i] - thisSerializer.writeInt32(edges_value_element) - } - } - nativeModule()._NavDestinationAttribute_ignoreLayoutSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + // const thisSerializer: Serializer = Serializer.hold() + // let types_type: int32 = RuntimeType.UNDEFINED + // types_type = runtimeType(types) + // thisSerializer.writeInt8(types_type) + // if ((RuntimeType.UNDEFINED) != (types_type)) { + // const types_value = types! + // thisSerializer.writeInt32(types_value.length) + // for (let i = 0; i < types_value.length; i++) { + // const types_value_element = types_value[i] + // thisSerializer.writeInt32(types_value_element) + // } + // } + // let edges_type: int32 = RuntimeType.UNDEFINED + // edges_type = runtimeType(edges) + // thisSerializer.writeInt8(edges_type) + // if ((RuntimeType.UNDEFINED) != (edges_type)) { + // const edges_value = edges! + // thisSerializer.writeInt32(edges_value.length) + // for (let i = 0; i < edges_value.length; i++) { + // const edges_value_element = edges_value[i] + // thisSerializer.writeInt32(edges_value_element) + // } + // } + // nativeModule()._NavDestinationAttribute_ignoreLayoutSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + // thisSerializer.release() + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) } } export interface ArkNavDestinationAttributes extends ArkCommonMethodAttributes { -- Gitee From 4b8998c94e9c34e6ae637d1b81009d0ff752eaa3 Mon Sep 17 00:00:00 2001 From: Yali Xie Date: Mon, 23 Dec 2024 17:35:05 +0300 Subject: [PATCH 4/4] Remove some comments Signed-off-by: Yali Xie --- .../src/generated/ArkAbstractPropertyMaterialized.ts | 1 - .../generated/ArkAttributeModifierMaterialized.ts | 1 - .../generated/ArkIPropertySubscriberMaterialized.ts | 1 - .../ArkNavDestinationContextMaterialized.ts | 1 - .../arkui/src/generated/ArkNavigationInterfaces.ts | 12 ------------ 5 files changed, 16 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts index 3a2ed219f..778418a97 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbstractPropertyMaterialized.ts @@ -16,7 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -// import { INTERFACE_AbstractProperty } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" diff --git a/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts index 378ea1803..1a67b4a63 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts @@ -16,7 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -// import { INTERFACE_AttributeModifier } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" diff --git a/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts index 3bbfc6350..8ab6197c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIPropertySubscriberMaterialized.ts @@ -16,7 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -// import { INTERFACE_IPropertySubscriber } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index 6cf91c88d..5d1d3a336 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -19,7 +19,6 @@ import { NavPathInfo } from "./ArkNavigationInterfaces" import { NavPathStack } from "./../handwritten/ArkNavPathStack" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" -// import { INTERFACE_NavDestinationContext } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts index 85c7cedb2..87b05ac0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts @@ -166,18 +166,6 @@ export interface NavigationOptions { launchMode?: LaunchMode; animated?: boolean; } -/* -export interface NavPathStack { - - - - - - - - -} -*/ export type NavBar = string; export type InterceptionShowCallback = (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean) => void; export type InterceptionModeCallback = (mode: NavigationMode) => void; -- Gitee