1/* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 17// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! 18 19import { int32, float32 } from "@koalaui/common" 20import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" 21import { runtimeType, RuntimeType } from "@koalaui/interop" 22import { Serializer } from "./Serializer" 23import { ComponentBase } from "../../ComponentBase" 24import { PeerNode } from "../../PeerNode" 25import { isInstanceOf } from "@koalaui/interop" 26import { isResource, isPadding } from "../../utils" 27import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" 28import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./../ArkUnitsInterfaces" 29import { DrawModifier } from "./../ArkDrawModifierMaterialized" 30import { Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, 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, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" 31import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, NestedScrollMode } from "./../ArkEnumsInterfaces" 32import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" 33import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" 34import { Resource } from "./../ArkResourceInterfaces" 35import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" 36import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" 37import { CircleShape } from "./../ArkCircleShapeMaterialized" 38import { EllipseShape } from "./../ArkEllipseShapeMaterialized" 39import { PathShape } from "./../ArkPathShapeMaterialized" 40import { RectShape } from "./../ArkRectShapeMaterialized" 41import { ProgressMask } from "./../ArkProgressMaskMaterialized" 42import { AttributeModifier } from "./../../handwritten" 43import { GestureModifier } from "./../ArkGestureModifierMaterialized" 44import { PixelMap } from "./../ArkPixelMapMaterialized" 45import { GestureType, GestureMask, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" 46import { TapGestureInterface } from "./../ArkTapGestureInterfaceMaterialized" 47import { LongPressGestureInterface } from "./../ArkLongPressGestureInterfaceMaterialized" 48import { PanGestureInterface } from "./../ArkPanGestureInterfaceMaterialized" 49import { PinchGestureInterface } from "./../ArkPinchGestureInterfaceMaterialized" 50import { SwipeGestureInterface } from "./../ArkSwipeGestureInterfaceMaterialized" 51import { RotationGestureInterface } from "./../ArkRotationGestureInterfaceMaterialized" 52import { GestureGroupInterface } from "./../ArkGestureGroupInterfaceMaterialized" 53import { LengthUnit, ShapeSize, PathShapeOptions, RectShapeOptions, RoundRectShapeOptions } from "./../ArkArkuiExternalInterfaces" 54import { ClickEvent } from "./../ArkClickEventMaterialized" 55import { HoverEvent } from "./../ArkHoverEventMaterialized" 56import { MouseEvent } from "./../ArkMouseEventMaterialized" 57import { TouchEvent } from "./../ArkTouchEventMaterialized" 58import { KeyEvent } from "./../ArkKeyEventMaterialized" 59import { ColorMetrics } from "./../ArkColorMetricsMaterialized" 60import { ICurve } from "./../ArkICurveMaterialized" 61import { DragEvent } from "./../ArkDragEventMaterialized" 62import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" 63import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" 64import { BaseEvent } from "./../ArkBaseEventMaterialized" 65import { UnifiedData } from "./../ArkUnifiedDataMaterialized" 66import { GestureControl } from "./../ArkGestureControlNamespace" 67import { GestureEvent } from "./../ArkGestureEventMaterialized" 68import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" 69import { GestureName, GestureComponent } from "./../shared/generated-utils" 70import { CallbackKind } from "./CallbackKind" 71import { CallbackTransformer } from "./CallbackTransformer" 72import { unsafeCast } from "@koalaui/common" 73import { Deserializer, createDeserializer } from "./Deserializer" 74import { MaterializedBase, toPeerPtr, wrapCallback } from "@koalaui/interop" 75import { DotIndicator } from "./../ArkDotIndicatorBuilder" 76import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" 77import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" 78import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" 79export class ArkCommonMethodPeer extends PeerNode { 80 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 81 super(peerPtr, id, name, flags) 82 } 83 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonMethodPeer { 84 const peerId = PeerNode.nextId() 85 const _peerPtr = ArkUIGeneratedNativeModule._CommonMethod_construct(peerId, flags) 86 const _peer = new ArkCommonMethodPeer(_peerPtr, peerId, "CommonMethod", flags) 87 component?.setPeer(_peer) 88 return _peer 89 } 90 widthAttribute(value: Length): void { 91 ArkUIGeneratedNativeModule._CommonMethod_width(this.peer.ptr, value) 92 } 93 heightAttribute(value: Length): void { 94 ArkUIGeneratedNativeModule._CommonMethod_height(this.peer.ptr, value) 95 } 96 drawModifierAttribute(value?: DrawModifier): void { 97 const thisSerializer: Serializer = Serializer.hold() 98 let value_type: int32 = RuntimeType.UNDEFINED 99 value_type = runtimeType(value) 100 thisSerializer.writeInt8(value_type) 101 if ((RuntimeType.UNDEFINED) != (value_type)) { 102 const value_value = value! 103 thisSerializer.writeDrawModifier(value_value) 104 } 105 ArkUIGeneratedNativeModule._CommonMethod_drawModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 106 thisSerializer.release() 107 } 108 responseRegionAttribute(value: Array<Rectangle> | Rectangle): void { 109 const thisSerializer: Serializer = Serializer.hold() 110 let value_type: int32 = RuntimeType.UNDEFINED 111 value_type = runtimeType(value) 112 if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array<Rectangle>)) { 113 thisSerializer.writeInt8(0) 114 const value_0 = unsafeCast<Array<Rectangle>>(value) 115 thisSerializer.writeInt32(value_0.length) 116 for (let i = 0; i < value_0.length; i++) { 117 const value_0_element: Rectangle = value_0[i] 118 thisSerializer.writeRectangle(value_0_element) 119 } 120 } 121 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("x")) || (value!.hasOwnProperty("y")) || (value!.hasOwnProperty("width")) || (value!.hasOwnProperty("height"))))) { 122 thisSerializer.writeInt8(1) 123 const value_1 = unsafeCast<Rectangle>(value) 124 thisSerializer.writeRectangle(value_1) 125 } 126 ArkUIGeneratedNativeModule._CommonMethod_responseRegion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 127 thisSerializer.release() 128 } 129 mouseResponseRegionAttribute(value: Array<Rectangle> | Rectangle): void { 130 const thisSerializer: Serializer = Serializer.hold() 131 let value_type: int32 = RuntimeType.UNDEFINED 132 value_type = runtimeType(value) 133 if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array<Rectangle>)) { 134 thisSerializer.writeInt8(0) 135 const value_0 = unsafeCast<Array<Rectangle>>(value) 136 thisSerializer.writeInt32(value_0.length) 137 for (let i = 0; i < value_0.length; i++) { 138 const value_0_element: Rectangle = value_0[i] 139 thisSerializer.writeRectangle(value_0_element) 140 } 141 } 142 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("x")) || (value!.hasOwnProperty("y")) || (value!.hasOwnProperty("width")) || (value!.hasOwnProperty("height"))))) { 143 thisSerializer.writeInt8(1) 144 const value_1 = unsafeCast<Rectangle>(value) 145 thisSerializer.writeRectangle(value_1) 146 } 147 ArkUIGeneratedNativeModule._CommonMethod_mouseResponseRegion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 148 thisSerializer.release() 149 } 150 sizeAttribute(value: SizeOptions): void { 151 const thisSerializer: Serializer = Serializer.hold() 152 thisSerializer.writeSizeOptions(value) 153 ArkUIGeneratedNativeModule._CommonMethod_size(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 154 thisSerializer.release() 155 } 156 constraintSizeAttribute(value: ConstraintSizeOptions): void { 157 const thisSerializer: Serializer = Serializer.hold() 158 thisSerializer.writeConstraintSizeOptions(value) 159 ArkUIGeneratedNativeModule._CommonMethod_constraintSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 160 thisSerializer.release() 161 } 162 touchableAttribute(value: boolean): void { 163 ArkUIGeneratedNativeModule._CommonMethod_touchable(this.peer.ptr, +value) 164 } 165 hitTestBehaviorAttribute(value: HitTestMode): void { 166 ArkUIGeneratedNativeModule._CommonMethod_hitTestBehavior(this.peer.ptr, value) 167 } 168 onChildTouchTestAttribute(value: ((value: Array<TouchTestInfo>) => TouchResult)): void { 169 const thisSerializer: Serializer = Serializer.hold() 170 thisSerializer.holdAndWriteCallback(value) 171 ArkUIGeneratedNativeModule._CommonMethod_onChildTouchTest(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 172 thisSerializer.release() 173 } 174 layoutWeightAttribute(value: number | string): void { 175 const thisSerializer: Serializer = Serializer.hold() 176 let value_type: int32 = RuntimeType.UNDEFINED 177 value_type = runtimeType(value) 178 if (RuntimeType.NUMBER == value_type) { 179 thisSerializer.writeInt8(0) 180 const value_0 = unsafeCast<number>(value) 181 thisSerializer.writeNumber(value_0) 182 } 183 else if (RuntimeType.STRING == value_type) { 184 thisSerializer.writeInt8(1) 185 const value_1 = unsafeCast<string>(value) 186 thisSerializer.writeString(value_1) 187 } 188 ArkUIGeneratedNativeModule._CommonMethod_layoutWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 189 thisSerializer.release() 190 } 191 chainWeightAttribute(value: ChainWeightOptions): void { 192 const thisSerializer: Serializer = Serializer.hold() 193 thisSerializer.writeChainWeightOptions(value) 194 ArkUIGeneratedNativeModule._CommonMethod_chainWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 195 thisSerializer.release() 196 } 197 paddingAttribute(value: Padding | Length | LocalizedPadding): void { 198 const thisSerializer: Serializer = Serializer.hold() 199 let value_type: int32 = RuntimeType.UNDEFINED 200 value_type = runtimeType(value) 201 if (isPadding(value)) { 202 thisSerializer.writeInt8(0) 203 const value_0 = unsafeCast<Padding>(value) 204 const value_0_top = value_0.top 205 let value_0_top_type: int32 = RuntimeType.UNDEFINED 206 value_0_top_type = runtimeType(value_0_top) 207 thisSerializer.writeInt8(value_0_top_type) 208 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 209 const value_0_top_value = value_0_top! 210 thisSerializer.writeLength(value_0_top_value) 211 } 212 const value_0_right = value_0.right 213 let value_0_right_type: int32 = RuntimeType.UNDEFINED 214 value_0_right_type = runtimeType(value_0_right) 215 thisSerializer.writeInt8(value_0_right_type) 216 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 217 const value_0_right_value = value_0_right! 218 thisSerializer.writeLength(value_0_right_value) 219 } 220 const value_0_bottom = value_0.bottom 221 let value_0_bottom_type: int32 = RuntimeType.UNDEFINED 222 value_0_bottom_type = runtimeType(value_0_bottom) 223 thisSerializer.writeInt8(value_0_bottom_type) 224 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 225 const value_0_bottom_value = value_0_bottom! 226 thisSerializer.writeLength(value_0_bottom_value) 227 } 228 const value_0_left = value_0.left 229 let value_0_left_type: int32 = RuntimeType.UNDEFINED 230 value_0_left_type = runtimeType(value_0_left) 231 thisSerializer.writeInt8(value_0_left_type) 232 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 233 const value_0_left_value = value_0_left! 234 thisSerializer.writeLength(value_0_left_value) 235 } 236 } 237 else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 238 thisSerializer.writeInt8(1) 239 const value_1 = unsafeCast<Length>(value) 240 thisSerializer.writeLength(value_1) 241 } 242 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 243 thisSerializer.writeInt8(2) 244 const value_2 = unsafeCast<LocalizedPadding>(value) 245 thisSerializer.writeLocalizedPadding(value_2) 246 } 247 ArkUIGeneratedNativeModule._CommonMethod_padding(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 248 thisSerializer.release() 249 } 250 safeAreaPaddingAttribute(value: Padding | LengthMetrics | LocalizedPadding): void { 251 const thisSerializer: Serializer = Serializer.hold() 252 let value_type: int32 = RuntimeType.UNDEFINED 253 value_type = runtimeType(value) 254 if (isPadding(value)) { 255 thisSerializer.writeInt8(0) 256 const value_0 = unsafeCast<Padding>(value) 257 const value_0_top = value_0.top 258 let value_0_top_type: int32 = RuntimeType.UNDEFINED 259 value_0_top_type = runtimeType(value_0_top) 260 thisSerializer.writeInt8(value_0_top_type) 261 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 262 const value_0_top_value = value_0_top! 263 thisSerializer.writeLength(value_0_top_value) 264 } 265 const value_0_right = value_0.right 266 let value_0_right_type: int32 = RuntimeType.UNDEFINED 267 value_0_right_type = runtimeType(value_0_right) 268 thisSerializer.writeInt8(value_0_right_type) 269 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 270 const value_0_right_value = value_0_right! 271 thisSerializer.writeLength(value_0_right_value) 272 } 273 const value_0_bottom = value_0.bottom 274 let value_0_bottom_type: int32 = RuntimeType.UNDEFINED 275 value_0_bottom_type = runtimeType(value_0_bottom) 276 thisSerializer.writeInt8(value_0_bottom_type) 277 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 278 const value_0_bottom_value = value_0_bottom! 279 thisSerializer.writeLength(value_0_bottom_value) 280 } 281 const value_0_left = value_0.left 282 let value_0_left_type: int32 = RuntimeType.UNDEFINED 283 value_0_left_type = runtimeType(value_0_left) 284 thisSerializer.writeInt8(value_0_left_type) 285 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 286 const value_0_left_value = value_0_left! 287 thisSerializer.writeLength(value_0_left_value) 288 } 289 } 290 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof LengthMetrics)) { 291 thisSerializer.writeInt8(1) 292 const value_1 = unsafeCast<LengthMetrics>(value) 293 thisSerializer.writeLengthMetrics(value_1) 294 } 295 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 296 thisSerializer.writeInt8(2) 297 const value_2 = unsafeCast<LocalizedPadding>(value) 298 thisSerializer.writeLocalizedPadding(value_2) 299 } 300 ArkUIGeneratedNativeModule._CommonMethod_safeAreaPadding(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 301 thisSerializer.release() 302 } 303 marginAttribute(value: Margin | Length | LocalizedMargin): void { 304 const thisSerializer: Serializer = Serializer.hold() 305 let value_type: int32 = RuntimeType.UNDEFINED 306 value_type = runtimeType(value) 307 if (isPadding(value)) { 308 thisSerializer.writeInt8(0) 309 const value_0 = unsafeCast<Margin>(value) 310 const value_0_top = value_0.top 311 let value_0_top_type: int32 = RuntimeType.UNDEFINED 312 value_0_top_type = runtimeType(value_0_top) 313 thisSerializer.writeInt8(value_0_top_type) 314 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 315 const value_0_top_value = value_0_top! 316 thisSerializer.writeLength(value_0_top_value) 317 } 318 const value_0_right = value_0.right 319 let value_0_right_type: int32 = RuntimeType.UNDEFINED 320 value_0_right_type = runtimeType(value_0_right) 321 thisSerializer.writeInt8(value_0_right_type) 322 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 323 const value_0_right_value = value_0_right! 324 thisSerializer.writeLength(value_0_right_value) 325 } 326 const value_0_bottom = value_0.bottom 327 let value_0_bottom_type: int32 = RuntimeType.UNDEFINED 328 value_0_bottom_type = runtimeType(value_0_bottom) 329 thisSerializer.writeInt8(value_0_bottom_type) 330 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 331 const value_0_bottom_value = value_0_bottom! 332 thisSerializer.writeLength(value_0_bottom_value) 333 } 334 const value_0_left = value_0.left 335 let value_0_left_type: int32 = RuntimeType.UNDEFINED 336 value_0_left_type = runtimeType(value_0_left) 337 thisSerializer.writeInt8(value_0_left_type) 338 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 339 const value_0_left_value = value_0_left! 340 thisSerializer.writeLength(value_0_left_value) 341 } 342 } 343 else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 344 thisSerializer.writeInt8(1) 345 const value_1 = unsafeCast<Length>(value) 346 thisSerializer.writeLength(value_1) 347 } 348 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 349 thisSerializer.writeInt8(2) 350 const value_2 = unsafeCast<LocalizedMargin>(value) 351 thisSerializer.writeLocalizedPadding(value_2) 352 } 353 ArkUIGeneratedNativeModule._CommonMethod_margin(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 354 thisSerializer.release() 355 } 356 backgroundColorAttribute(value: ResourceColor): void { 357 const thisSerializer: Serializer = Serializer.hold() 358 let value_type: int32 = RuntimeType.UNDEFINED 359 value_type = runtimeType(value) 360 if (((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) { 361 thisSerializer.writeInt8(0) 362 const value_0 = unsafeCast<Color>(value) 363 thisSerializer.writeInt32(value_0) 364 } 365 else if (RuntimeType.NUMBER == value_type) { 366 thisSerializer.writeInt8(1) 367 const value_1 = unsafeCast<number>(value) 368 thisSerializer.writeNumber(value_1) 369 } 370 else if (RuntimeType.STRING == value_type) { 371 thisSerializer.writeInt8(2) 372 const value_2 = unsafeCast<string>(value) 373 thisSerializer.writeString(value_2) 374 } 375 else if (RuntimeType.OBJECT == value_type) { 376 thisSerializer.writeInt8(3) 377 const value_3 = unsafeCast<Resource>(value) 378 thisSerializer.writeResource(value_3) 379 } 380 ArkUIGeneratedNativeModule._CommonMethod_backgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 381 thisSerializer.release() 382 } 383 pixelRoundAttribute(value: PixelRoundPolicy): void { 384 const thisSerializer: Serializer = Serializer.hold() 385 thisSerializer.writePixelRoundPolicy(value) 386 ArkUIGeneratedNativeModule._CommonMethod_pixelRound(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 387 thisSerializer.release() 388 } 389 backgroundImageSizeAttribute(value: SizeOptions | ImageSize): void { 390 const thisSerializer: Serializer = Serializer.hold() 391 let value_type: int32 = RuntimeType.UNDEFINED 392 value_type = runtimeType(value) 393 if (RuntimeType.OBJECT == value_type) { 394 thisSerializer.writeInt8(0) 395 const value_0 = unsafeCast<SizeOptions>(value) 396 thisSerializer.writeSizeOptions(value_0) 397 } 398 else if (RuntimeType.NUMBER == value_type) { 399 thisSerializer.writeInt8(1) 400 const value_1 = unsafeCast<ImageSize>(value) 401 thisSerializer.writeInt32(value_1) 402 } 403 ArkUIGeneratedNativeModule._CommonMethod_backgroundImageSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 404 thisSerializer.release() 405 } 406 backgroundImagePositionAttribute(value: Position | Alignment): void { 407 const thisSerializer: Serializer = Serializer.hold() 408 let value_type: int32 = RuntimeType.UNDEFINED 409 value_type = runtimeType(value) 410 if (RuntimeType.OBJECT == value_type) { 411 thisSerializer.writeInt8(0) 412 const value_0 = unsafeCast<Position>(value) 413 thisSerializer.writePosition(value_0) 414 } 415 else if (RuntimeType.NUMBER == value_type) { 416 thisSerializer.writeInt8(1) 417 const value_1 = unsafeCast<Alignment>(value) 418 thisSerializer.writeInt32(value_1) 419 } 420 ArkUIGeneratedNativeModule._CommonMethod_backgroundImagePosition(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 421 thisSerializer.release() 422 } 423 backgroundEffectAttribute(value: BackgroundEffectOptions): void { 424 const thisSerializer: Serializer = Serializer.hold() 425 thisSerializer.writeBackgroundEffectOptions(value) 426 ArkUIGeneratedNativeModule._CommonMethod_backgroundEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 427 thisSerializer.release() 428 } 429 backgroundImageResizableAttribute(value: ResizableOptions): void { 430 const thisSerializer: Serializer = Serializer.hold() 431 thisSerializer.writeResizableOptions(value) 432 ArkUIGeneratedNativeModule._CommonMethod_backgroundImageResizable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 433 thisSerializer.release() 434 } 435 foregroundEffectAttribute(value: ForegroundEffectOptions): void { 436 const thisSerializer: Serializer = Serializer.hold() 437 thisSerializer.writeForegroundEffectOptions(value) 438 ArkUIGeneratedNativeModule._CommonMethod_foregroundEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 439 thisSerializer.release() 440 } 441 visualEffectAttribute(value: VisualEffect): void { 442 const thisSerializer: Serializer = Serializer.hold() 443 thisSerializer.writeVisualEffect(value) 444 ArkUIGeneratedNativeModule._CommonMethod_visualEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 445 thisSerializer.release() 446 } 447 backgroundFilterAttribute(value: Filter): void { 448 const thisSerializer: Serializer = Serializer.hold() 449 thisSerializer.writeFilter(value) 450 ArkUIGeneratedNativeModule._CommonMethod_backgroundFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 451 thisSerializer.release() 452 } 453 foregroundFilterAttribute(value: Filter): void { 454 const thisSerializer: Serializer = Serializer.hold() 455 thisSerializer.writeFilter(value) 456 ArkUIGeneratedNativeModule._CommonMethod_foregroundFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 457 thisSerializer.release() 458 } 459 compositingFilterAttribute(value: Filter): void { 460 const thisSerializer: Serializer = Serializer.hold() 461 thisSerializer.writeFilter(value) 462 ArkUIGeneratedNativeModule._CommonMethod_compositingFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 463 thisSerializer.release() 464 } 465 opacityAttribute(value: number | Resource): void { 466 const thisSerializer: Serializer = Serializer.hold() 467 let value_type: int32 = RuntimeType.UNDEFINED 468 value_type = runtimeType(value) 469 if (RuntimeType.NUMBER == value_type) { 470 thisSerializer.writeInt8(0) 471 const value_0 = unsafeCast<number>(value) 472 thisSerializer.writeNumber(value_0) 473 } 474 else if (RuntimeType.OBJECT == value_type) { 475 thisSerializer.writeInt8(1) 476 const value_1 = unsafeCast<Resource>(value) 477 thisSerializer.writeResource(value_1) 478 } 479 ArkUIGeneratedNativeModule._CommonMethod_opacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 480 thisSerializer.release() 481 } 482 borderAttribute(value: BorderOptions): void { 483 const thisSerializer: Serializer = Serializer.hold() 484 thisSerializer.writeBorderOptions(value) 485 ArkUIGeneratedNativeModule._CommonMethod_border(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 486 thisSerializer.release() 487 } 488 borderStyleAttribute(value: BorderStyle | EdgeStyles): void { 489 const thisSerializer: Serializer = Serializer.hold() 490 let value_type: int32 = RuntimeType.UNDEFINED 491 value_type = runtimeType(value) 492 if (RuntimeType.NUMBER == value_type) { 493 thisSerializer.writeInt8(0) 494 const value_0 = unsafeCast<BorderStyle>(value) 495 thisSerializer.writeInt32(value_0) 496 } 497 else if (RuntimeType.OBJECT == value_type) { 498 thisSerializer.writeInt8(1) 499 const value_1 = unsafeCast<EdgeStyles>(value) 500 const value_1_top = value_1.top 501 let value_1_top_type: int32 = RuntimeType.UNDEFINED 502 value_1_top_type = runtimeType(value_1_top) 503 thisSerializer.writeInt8(value_1_top_type) 504 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 505 const value_1_top_value = value_1_top! 506 thisSerializer.writeInt32(value_1_top_value) 507 } 508 const value_1_right = value_1.right 509 let value_1_right_type: int32 = RuntimeType.UNDEFINED 510 value_1_right_type = runtimeType(value_1_right) 511 thisSerializer.writeInt8(value_1_right_type) 512 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 513 const value_1_right_value = value_1_right! 514 thisSerializer.writeInt32(value_1_right_value) 515 } 516 const value_1_bottom = value_1.bottom 517 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 518 value_1_bottom_type = runtimeType(value_1_bottom) 519 thisSerializer.writeInt8(value_1_bottom_type) 520 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 521 const value_1_bottom_value = value_1_bottom! 522 thisSerializer.writeInt32(value_1_bottom_value) 523 } 524 const value_1_left = value_1.left 525 let value_1_left_type: int32 = RuntimeType.UNDEFINED 526 value_1_left_type = runtimeType(value_1_left) 527 thisSerializer.writeInt8(value_1_left_type) 528 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 529 const value_1_left_value = value_1_left! 530 thisSerializer.writeInt32(value_1_left_value) 531 } 532 } 533 ArkUIGeneratedNativeModule._CommonMethod_borderStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 534 thisSerializer.release() 535 } 536 borderWidthAttribute(value: Length | EdgeWidths | LocalizedEdgeWidths): void { 537 const thisSerializer: Serializer = Serializer.hold() 538 let value_type: int32 = RuntimeType.UNDEFINED 539 value_type = runtimeType(value) 540 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 541 thisSerializer.writeInt8(0) 542 const value_0 = unsafeCast<Length>(value) 543 thisSerializer.writeLength(value_0) 544 } 545 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { 546 thisSerializer.writeInt8(1) 547 const value_1 = unsafeCast<EdgeWidths>(value) 548 const value_1_top = value_1.top 549 let value_1_top_type: int32 = RuntimeType.UNDEFINED 550 value_1_top_type = runtimeType(value_1_top) 551 thisSerializer.writeInt8(value_1_top_type) 552 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 553 const value_1_top_value = value_1_top! 554 thisSerializer.writeLength(value_1_top_value) 555 } 556 const value_1_right = value_1.right 557 let value_1_right_type: int32 = RuntimeType.UNDEFINED 558 value_1_right_type = runtimeType(value_1_right) 559 thisSerializer.writeInt8(value_1_right_type) 560 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 561 const value_1_right_value = value_1_right! 562 thisSerializer.writeLength(value_1_right_value) 563 } 564 const value_1_bottom = value_1.bottom 565 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 566 value_1_bottom_type = runtimeType(value_1_bottom) 567 thisSerializer.writeInt8(value_1_bottom_type) 568 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 569 const value_1_bottom_value = value_1_bottom! 570 thisSerializer.writeLength(value_1_bottom_value) 571 } 572 const value_1_left = value_1.left 573 let value_1_left_type: int32 = RuntimeType.UNDEFINED 574 value_1_left_type = runtimeType(value_1_left) 575 thisSerializer.writeInt8(value_1_left_type) 576 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 577 const value_1_left_value = value_1_left! 578 thisSerializer.writeLength(value_1_left_value) 579 } 580 } 581 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 582 thisSerializer.writeInt8(2) 583 const value_2 = unsafeCast<LocalizedEdgeWidths>(value) 584 thisSerializer.writeLocalizedEdgeWidths(value_2) 585 } 586 ArkUIGeneratedNativeModule._CommonMethod_borderWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 587 thisSerializer.release() 588 } 589 borderColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { 590 const thisSerializer: Serializer = Serializer.hold() 591 let value_type: int32 = RuntimeType.UNDEFINED 592 value_type = runtimeType(value) 593 if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 594 thisSerializer.writeInt8(0) 595 const value_0 = unsafeCast<ResourceColor>(value) 596 let value_0_type: int32 = RuntimeType.UNDEFINED 597 value_0_type = runtimeType(value_0) 598 if (((RuntimeType.NUMBER) == (value_0_type)) && ((unsafeCast<int32>(value_0)) >= (0)) && ((unsafeCast<int32>(value_0)) <= (11))) { 599 thisSerializer.writeInt8(0) 600 const value_0_0 = unsafeCast<Color>(value_0) 601 thisSerializer.writeInt32(value_0_0) 602 } 603 else if (RuntimeType.NUMBER == value_0_type) { 604 thisSerializer.writeInt8(1) 605 const value_0_1 = unsafeCast<number>(value_0) 606 thisSerializer.writeNumber(value_0_1) 607 } 608 else if (RuntimeType.STRING == value_0_type) { 609 thisSerializer.writeInt8(2) 610 const value_0_2 = unsafeCast<string>(value_0) 611 thisSerializer.writeString(value_0_2) 612 } 613 else if (RuntimeType.OBJECT == value_0_type) { 614 thisSerializer.writeInt8(3) 615 const value_0_3 = unsafeCast<Resource>(value_0) 616 thisSerializer.writeResource(value_0_3) 617 } 618 } 619 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { 620 thisSerializer.writeInt8(1) 621 const value_1 = unsafeCast<EdgeColors>(value) 622 const value_1_top = value_1.top 623 let value_1_top_type: int32 = RuntimeType.UNDEFINED 624 value_1_top_type = runtimeType(value_1_top) 625 thisSerializer.writeInt8(value_1_top_type) 626 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 627 const value_1_top_value = value_1_top! 628 let value_1_top_value_type: int32 = RuntimeType.UNDEFINED 629 value_1_top_value_type = runtimeType(value_1_top_value) 630 if (((RuntimeType.NUMBER) == (value_1_top_value_type)) && ((unsafeCast<int32>(value_1_top_value)) >= (0)) && ((unsafeCast<int32>(value_1_top_value)) <= (11))) { 631 thisSerializer.writeInt8(0) 632 const value_1_top_value_0 = unsafeCast<Color>(value_1_top_value) 633 thisSerializer.writeInt32(value_1_top_value_0) 634 } 635 else if (RuntimeType.NUMBER == value_1_top_value_type) { 636 thisSerializer.writeInt8(1) 637 const value_1_top_value_1 = unsafeCast<number>(value_1_top_value) 638 thisSerializer.writeNumber(value_1_top_value_1) 639 } 640 else if (RuntimeType.STRING == value_1_top_value_type) { 641 thisSerializer.writeInt8(2) 642 const value_1_top_value_2 = unsafeCast<string>(value_1_top_value) 643 thisSerializer.writeString(value_1_top_value_2) 644 } 645 else if (RuntimeType.OBJECT == value_1_top_value_type) { 646 thisSerializer.writeInt8(3) 647 const value_1_top_value_3 = unsafeCast<Resource>(value_1_top_value) 648 thisSerializer.writeResource(value_1_top_value_3) 649 } 650 } 651 const value_1_right = value_1.right 652 let value_1_right_type: int32 = RuntimeType.UNDEFINED 653 value_1_right_type = runtimeType(value_1_right) 654 thisSerializer.writeInt8(value_1_right_type) 655 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 656 const value_1_right_value = value_1_right! 657 let value_1_right_value_type: int32 = RuntimeType.UNDEFINED 658 value_1_right_value_type = runtimeType(value_1_right_value) 659 if (((RuntimeType.NUMBER) == (value_1_right_value_type)) && ((unsafeCast<int32>(value_1_right_value)) >= (0)) && ((unsafeCast<int32>(value_1_right_value)) <= (11))) { 660 thisSerializer.writeInt8(0) 661 const value_1_right_value_0 = unsafeCast<Color>(value_1_right_value) 662 thisSerializer.writeInt32(value_1_right_value_0) 663 } 664 else if (RuntimeType.NUMBER == value_1_right_value_type) { 665 thisSerializer.writeInt8(1) 666 const value_1_right_value_1 = unsafeCast<number>(value_1_right_value) 667 thisSerializer.writeNumber(value_1_right_value_1) 668 } 669 else if (RuntimeType.STRING == value_1_right_value_type) { 670 thisSerializer.writeInt8(2) 671 const value_1_right_value_2 = unsafeCast<string>(value_1_right_value) 672 thisSerializer.writeString(value_1_right_value_2) 673 } 674 else if (RuntimeType.OBJECT == value_1_right_value_type) { 675 thisSerializer.writeInt8(3) 676 const value_1_right_value_3 = unsafeCast<Resource>(value_1_right_value) 677 thisSerializer.writeResource(value_1_right_value_3) 678 } 679 } 680 const value_1_bottom = value_1.bottom 681 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 682 value_1_bottom_type = runtimeType(value_1_bottom) 683 thisSerializer.writeInt8(value_1_bottom_type) 684 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 685 const value_1_bottom_value = value_1_bottom! 686 let value_1_bottom_value_type: int32 = RuntimeType.UNDEFINED 687 value_1_bottom_value_type = runtimeType(value_1_bottom_value) 688 if (((RuntimeType.NUMBER) == (value_1_bottom_value_type)) && ((unsafeCast<int32>(value_1_bottom_value)) >= (0)) && ((unsafeCast<int32>(value_1_bottom_value)) <= (11))) { 689 thisSerializer.writeInt8(0) 690 const value_1_bottom_value_0 = unsafeCast<Color>(value_1_bottom_value) 691 thisSerializer.writeInt32(value_1_bottom_value_0) 692 } 693 else if (RuntimeType.NUMBER == value_1_bottom_value_type) { 694 thisSerializer.writeInt8(1) 695 const value_1_bottom_value_1 = unsafeCast<number>(value_1_bottom_value) 696 thisSerializer.writeNumber(value_1_bottom_value_1) 697 } 698 else if (RuntimeType.STRING == value_1_bottom_value_type) { 699 thisSerializer.writeInt8(2) 700 const value_1_bottom_value_2 = unsafeCast<string>(value_1_bottom_value) 701 thisSerializer.writeString(value_1_bottom_value_2) 702 } 703 else if (RuntimeType.OBJECT == value_1_bottom_value_type) { 704 thisSerializer.writeInt8(3) 705 const value_1_bottom_value_3 = unsafeCast<Resource>(value_1_bottom_value) 706 thisSerializer.writeResource(value_1_bottom_value_3) 707 } 708 } 709 const value_1_left = value_1.left 710 let value_1_left_type: int32 = RuntimeType.UNDEFINED 711 value_1_left_type = runtimeType(value_1_left) 712 thisSerializer.writeInt8(value_1_left_type) 713 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 714 const value_1_left_value = value_1_left! 715 let value_1_left_value_type: int32 = RuntimeType.UNDEFINED 716 value_1_left_value_type = runtimeType(value_1_left_value) 717 if (((RuntimeType.NUMBER) == (value_1_left_value_type)) && ((unsafeCast<int32>(value_1_left_value)) >= (0)) && ((unsafeCast<int32>(value_1_left_value)) <= (11))) { 718 thisSerializer.writeInt8(0) 719 const value_1_left_value_0 = unsafeCast<Color>(value_1_left_value) 720 thisSerializer.writeInt32(value_1_left_value_0) 721 } 722 else if (RuntimeType.NUMBER == value_1_left_value_type) { 723 thisSerializer.writeInt8(1) 724 const value_1_left_value_1 = unsafeCast<number>(value_1_left_value) 725 thisSerializer.writeNumber(value_1_left_value_1) 726 } 727 else if (RuntimeType.STRING == value_1_left_value_type) { 728 thisSerializer.writeInt8(2) 729 const value_1_left_value_2 = unsafeCast<string>(value_1_left_value) 730 thisSerializer.writeString(value_1_left_value_2) 731 } 732 else if (RuntimeType.OBJECT == value_1_left_value_type) { 733 thisSerializer.writeInt8(3) 734 const value_1_left_value_3 = unsafeCast<Resource>(value_1_left_value) 735 thisSerializer.writeResource(value_1_left_value_3) 736 } 737 } 738 } 739 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 740 thisSerializer.writeInt8(2) 741 const value_2 = unsafeCast<LocalizedEdgeColors>(value) 742 thisSerializer.writeLocalizedEdgeColors(value_2) 743 } 744 ArkUIGeneratedNativeModule._CommonMethod_borderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 745 thisSerializer.release() 746 } 747 borderRadiusAttribute(value: Length | BorderRadiuses | LocalizedBorderRadiuses): void { 748 const thisSerializer: Serializer = Serializer.hold() 749 let value_type: int32 = RuntimeType.UNDEFINED 750 value_type = runtimeType(value) 751 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 752 thisSerializer.writeInt8(0) 753 const value_0 = unsafeCast<Length>(value) 754 thisSerializer.writeLength(value_0) 755 } 756 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("topLeft")) || (value!.hasOwnProperty("topRight")) || (value!.hasOwnProperty("bottomLeft")) || (value!.hasOwnProperty("bottomRight"))))) { 757 thisSerializer.writeInt8(1) 758 const value_1 = unsafeCast<BorderRadiuses>(value) 759 const value_1_topLeft = value_1.topLeft 760 let value_1_topLeft_type: int32 = RuntimeType.UNDEFINED 761 value_1_topLeft_type = runtimeType(value_1_topLeft) 762 thisSerializer.writeInt8(value_1_topLeft_type) 763 if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { 764 const value_1_topLeft_value = value_1_topLeft! 765 thisSerializer.writeLength(value_1_topLeft_value) 766 } 767 const value_1_topRight = value_1.topRight 768 let value_1_topRight_type: int32 = RuntimeType.UNDEFINED 769 value_1_topRight_type = runtimeType(value_1_topRight) 770 thisSerializer.writeInt8(value_1_topRight_type) 771 if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { 772 const value_1_topRight_value = value_1_topRight! 773 thisSerializer.writeLength(value_1_topRight_value) 774 } 775 const value_1_bottomLeft = value_1.bottomLeft 776 let value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED 777 value_1_bottomLeft_type = runtimeType(value_1_bottomLeft) 778 thisSerializer.writeInt8(value_1_bottomLeft_type) 779 if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { 780 const value_1_bottomLeft_value = value_1_bottomLeft! 781 thisSerializer.writeLength(value_1_bottomLeft_value) 782 } 783 const value_1_bottomRight = value_1.bottomRight 784 let value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED 785 value_1_bottomRight_type = runtimeType(value_1_bottomRight) 786 thisSerializer.writeInt8(value_1_bottomRight_type) 787 if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { 788 const value_1_bottomRight_value = value_1_bottomRight! 789 thisSerializer.writeLength(value_1_bottomRight_value) 790 } 791 } 792 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("topStart")) || (value!.hasOwnProperty("topEnd")) || (value!.hasOwnProperty("bottomStart")) || (value!.hasOwnProperty("bottomEnd"))))) { 793 thisSerializer.writeInt8(2) 794 const value_2 = unsafeCast<LocalizedBorderRadiuses>(value) 795 thisSerializer.writeLocalizedBorderRadiuses(value_2) 796 } 797 ArkUIGeneratedNativeModule._CommonMethod_borderRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 798 thisSerializer.release() 799 } 800 borderImageAttribute(value: BorderImageOption): void { 801 const thisSerializer: Serializer = Serializer.hold() 802 thisSerializer.writeBorderImageOption(value) 803 ArkUIGeneratedNativeModule._CommonMethod_borderImage(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 804 thisSerializer.release() 805 } 806 outlineAttribute(value: OutlineOptions): void { 807 const thisSerializer: Serializer = Serializer.hold() 808 thisSerializer.writeOutlineOptions(value) 809 ArkUIGeneratedNativeModule._CommonMethod_outline(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 810 thisSerializer.release() 811 } 812 outlineStyleAttribute(value: OutlineStyle | EdgeOutlineStyles): void { 813 const thisSerializer: Serializer = Serializer.hold() 814 let value_type: int32 = RuntimeType.UNDEFINED 815 value_type = runtimeType(value) 816 if (RuntimeType.NUMBER == value_type) { 817 thisSerializer.writeInt8(0) 818 const value_0 = unsafeCast<OutlineStyle>(value) 819 thisSerializer.writeInt32(value_0) 820 } 821 else if (RuntimeType.OBJECT == value_type) { 822 thisSerializer.writeInt8(1) 823 const value_1 = unsafeCast<EdgeOutlineStyles>(value) 824 const value_1_top = value_1.top 825 let value_1_top_type: int32 = RuntimeType.UNDEFINED 826 value_1_top_type = runtimeType(value_1_top) 827 thisSerializer.writeInt8(value_1_top_type) 828 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 829 const value_1_top_value = value_1_top! 830 thisSerializer.writeInt32(value_1_top_value) 831 } 832 const value_1_right = value_1.right 833 let value_1_right_type: int32 = RuntimeType.UNDEFINED 834 value_1_right_type = runtimeType(value_1_right) 835 thisSerializer.writeInt8(value_1_right_type) 836 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 837 const value_1_right_value = value_1_right! 838 thisSerializer.writeInt32(value_1_right_value) 839 } 840 const value_1_bottom = value_1.bottom 841 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 842 value_1_bottom_type = runtimeType(value_1_bottom) 843 thisSerializer.writeInt8(value_1_bottom_type) 844 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 845 const value_1_bottom_value = value_1_bottom! 846 thisSerializer.writeInt32(value_1_bottom_value) 847 } 848 const value_1_left = value_1.left 849 let value_1_left_type: int32 = RuntimeType.UNDEFINED 850 value_1_left_type = runtimeType(value_1_left) 851 thisSerializer.writeInt8(value_1_left_type) 852 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 853 const value_1_left_value = value_1_left! 854 thisSerializer.writeInt32(value_1_left_value) 855 } 856 } 857 ArkUIGeneratedNativeModule._CommonMethod_outlineStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 858 thisSerializer.release() 859 } 860 outlineWidthAttribute(value: Dimension | EdgeOutlineWidths): void { 861 const thisSerializer: Serializer = Serializer.hold() 862 let value_type: int32 = RuntimeType.UNDEFINED 863 value_type = runtimeType(value) 864 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 865 thisSerializer.writeInt8(0) 866 const value_0 = unsafeCast<Dimension>(value) 867 thisSerializer.writeLength(value_0) 868 } 869 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("top")) || (value!.hasOwnProperty("right")) || (value!.hasOwnProperty("bottom")) || (value!.hasOwnProperty("left"))))) { 870 thisSerializer.writeInt8(1) 871 const value_1 = unsafeCast<EdgeOutlineWidths>(value) 872 const value_1_top = value_1.top 873 let value_1_top_type: int32 = RuntimeType.UNDEFINED 874 value_1_top_type = runtimeType(value_1_top) 875 thisSerializer.writeInt8(value_1_top_type) 876 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 877 const value_1_top_value = value_1_top! 878 thisSerializer.writeLength(value_1_top_value) 879 } 880 const value_1_right = value_1.right 881 let value_1_right_type: int32 = RuntimeType.UNDEFINED 882 value_1_right_type = runtimeType(value_1_right) 883 thisSerializer.writeInt8(value_1_right_type) 884 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 885 const value_1_right_value = value_1_right! 886 thisSerializer.writeLength(value_1_right_value) 887 } 888 const value_1_bottom = value_1.bottom 889 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 890 value_1_bottom_type = runtimeType(value_1_bottom) 891 thisSerializer.writeInt8(value_1_bottom_type) 892 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 893 const value_1_bottom_value = value_1_bottom! 894 thisSerializer.writeLength(value_1_bottom_value) 895 } 896 const value_1_left = value_1.left 897 let value_1_left_type: int32 = RuntimeType.UNDEFINED 898 value_1_left_type = runtimeType(value_1_left) 899 thisSerializer.writeInt8(value_1_left_type) 900 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 901 const value_1_left_value = value_1_left! 902 thisSerializer.writeLength(value_1_left_value) 903 } 904 } 905 ArkUIGeneratedNativeModule._CommonMethod_outlineWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 906 thisSerializer.release() 907 } 908 outlineColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { 909 const thisSerializer: Serializer = Serializer.hold() 910 let value_type: int32 = RuntimeType.UNDEFINED 911 value_type = runtimeType(value) 912 if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 913 thisSerializer.writeInt8(0) 914 const value_0 = unsafeCast<ResourceColor>(value) 915 let value_0_type: int32 = RuntimeType.UNDEFINED 916 value_0_type = runtimeType(value_0) 917 if (((RuntimeType.NUMBER) == (value_0_type)) && ((unsafeCast<int32>(value_0)) >= (0)) && ((unsafeCast<int32>(value_0)) <= (11))) { 918 thisSerializer.writeInt8(0) 919 const value_0_0 = unsafeCast<Color>(value_0) 920 thisSerializer.writeInt32(value_0_0) 921 } 922 else if (RuntimeType.NUMBER == value_0_type) { 923 thisSerializer.writeInt8(1) 924 const value_0_1 = unsafeCast<number>(value_0) 925 thisSerializer.writeNumber(value_0_1) 926 } 927 else if (RuntimeType.STRING == value_0_type) { 928 thisSerializer.writeInt8(2) 929 const value_0_2 = unsafeCast<string>(value_0) 930 thisSerializer.writeString(value_0_2) 931 } 932 else if (RuntimeType.OBJECT == value_0_type) { 933 thisSerializer.writeInt8(3) 934 const value_0_3 = unsafeCast<Resource>(value_0) 935 thisSerializer.writeResource(value_0_3) 936 } 937 } 938 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("right")) || (value!.hasOwnProperty("left"))))) { 939 thisSerializer.writeInt8(1) 940 const value_1 = unsafeCast<EdgeColors>(value) 941 const value_1_top = value_1.top 942 let value_1_top_type: int32 = RuntimeType.UNDEFINED 943 value_1_top_type = runtimeType(value_1_top) 944 thisSerializer.writeInt8(value_1_top_type) 945 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 946 const value_1_top_value = value_1_top! 947 let value_1_top_value_type: int32 = RuntimeType.UNDEFINED 948 value_1_top_value_type = runtimeType(value_1_top_value) 949 if (((RuntimeType.NUMBER) == (value_1_top_value_type)) && ((unsafeCast<int32>(value_1_top_value)) >= (0)) && ((unsafeCast<int32>(value_1_top_value)) <= (11))) { 950 thisSerializer.writeInt8(0) 951 const value_1_top_value_0 = unsafeCast<Color>(value_1_top_value) 952 thisSerializer.writeInt32(value_1_top_value_0) 953 } 954 else if (RuntimeType.NUMBER == value_1_top_value_type) { 955 thisSerializer.writeInt8(1) 956 const value_1_top_value_1 = unsafeCast<number>(value_1_top_value) 957 thisSerializer.writeNumber(value_1_top_value_1) 958 } 959 else if (RuntimeType.STRING == value_1_top_value_type) { 960 thisSerializer.writeInt8(2) 961 const value_1_top_value_2 = unsafeCast<string>(value_1_top_value) 962 thisSerializer.writeString(value_1_top_value_2) 963 } 964 else if (RuntimeType.OBJECT == value_1_top_value_type) { 965 thisSerializer.writeInt8(3) 966 const value_1_top_value_3 = unsafeCast<Resource>(value_1_top_value) 967 thisSerializer.writeResource(value_1_top_value_3) 968 } 969 } 970 const value_1_right = value_1.right 971 let value_1_right_type: int32 = RuntimeType.UNDEFINED 972 value_1_right_type = runtimeType(value_1_right) 973 thisSerializer.writeInt8(value_1_right_type) 974 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 975 const value_1_right_value = value_1_right! 976 let value_1_right_value_type: int32 = RuntimeType.UNDEFINED 977 value_1_right_value_type = runtimeType(value_1_right_value) 978 if (((RuntimeType.NUMBER) == (value_1_right_value_type)) && ((unsafeCast<int32>(value_1_right_value)) >= (0)) && ((unsafeCast<int32>(value_1_right_value)) <= (11))) { 979 thisSerializer.writeInt8(0) 980 const value_1_right_value_0 = unsafeCast<Color>(value_1_right_value) 981 thisSerializer.writeInt32(value_1_right_value_0) 982 } 983 else if (RuntimeType.NUMBER == value_1_right_value_type) { 984 thisSerializer.writeInt8(1) 985 const value_1_right_value_1 = unsafeCast<number>(value_1_right_value) 986 thisSerializer.writeNumber(value_1_right_value_1) 987 } 988 else if (RuntimeType.STRING == value_1_right_value_type) { 989 thisSerializer.writeInt8(2) 990 const value_1_right_value_2 = unsafeCast<string>(value_1_right_value) 991 thisSerializer.writeString(value_1_right_value_2) 992 } 993 else if (RuntimeType.OBJECT == value_1_right_value_type) { 994 thisSerializer.writeInt8(3) 995 const value_1_right_value_3 = unsafeCast<Resource>(value_1_right_value) 996 thisSerializer.writeResource(value_1_right_value_3) 997 } 998 } 999 const value_1_bottom = value_1.bottom 1000 let value_1_bottom_type: int32 = RuntimeType.UNDEFINED 1001 value_1_bottom_type = runtimeType(value_1_bottom) 1002 thisSerializer.writeInt8(value_1_bottom_type) 1003 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 1004 const value_1_bottom_value = value_1_bottom! 1005 let value_1_bottom_value_type: int32 = RuntimeType.UNDEFINED 1006 value_1_bottom_value_type = runtimeType(value_1_bottom_value) 1007 if (((RuntimeType.NUMBER) == (value_1_bottom_value_type)) && ((unsafeCast<int32>(value_1_bottom_value)) >= (0)) && ((unsafeCast<int32>(value_1_bottom_value)) <= (11))) { 1008 thisSerializer.writeInt8(0) 1009 const value_1_bottom_value_0 = unsafeCast<Color>(value_1_bottom_value) 1010 thisSerializer.writeInt32(value_1_bottom_value_0) 1011 } 1012 else if (RuntimeType.NUMBER == value_1_bottom_value_type) { 1013 thisSerializer.writeInt8(1) 1014 const value_1_bottom_value_1 = unsafeCast<number>(value_1_bottom_value) 1015 thisSerializer.writeNumber(value_1_bottom_value_1) 1016 } 1017 else if (RuntimeType.STRING == value_1_bottom_value_type) { 1018 thisSerializer.writeInt8(2) 1019 const value_1_bottom_value_2 = unsafeCast<string>(value_1_bottom_value) 1020 thisSerializer.writeString(value_1_bottom_value_2) 1021 } 1022 else if (RuntimeType.OBJECT == value_1_bottom_value_type) { 1023 thisSerializer.writeInt8(3) 1024 const value_1_bottom_value_3 = unsafeCast<Resource>(value_1_bottom_value) 1025 thisSerializer.writeResource(value_1_bottom_value_3) 1026 } 1027 } 1028 const value_1_left = value_1.left 1029 let value_1_left_type: int32 = RuntimeType.UNDEFINED 1030 value_1_left_type = runtimeType(value_1_left) 1031 thisSerializer.writeInt8(value_1_left_type) 1032 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 1033 const value_1_left_value = value_1_left! 1034 let value_1_left_value_type: int32 = RuntimeType.UNDEFINED 1035 value_1_left_value_type = runtimeType(value_1_left_value) 1036 if (((RuntimeType.NUMBER) == (value_1_left_value_type)) && ((unsafeCast<int32>(value_1_left_value)) >= (0)) && ((unsafeCast<int32>(value_1_left_value)) <= (11))) { 1037 thisSerializer.writeInt8(0) 1038 const value_1_left_value_0 = unsafeCast<Color>(value_1_left_value) 1039 thisSerializer.writeInt32(value_1_left_value_0) 1040 } 1041 else if (RuntimeType.NUMBER == value_1_left_value_type) { 1042 thisSerializer.writeInt8(1) 1043 const value_1_left_value_1 = unsafeCast<number>(value_1_left_value) 1044 thisSerializer.writeNumber(value_1_left_value_1) 1045 } 1046 else if (RuntimeType.STRING == value_1_left_value_type) { 1047 thisSerializer.writeInt8(2) 1048 const value_1_left_value_2 = unsafeCast<string>(value_1_left_value) 1049 thisSerializer.writeString(value_1_left_value_2) 1050 } 1051 else if (RuntimeType.OBJECT == value_1_left_value_type) { 1052 thisSerializer.writeInt8(3) 1053 const value_1_left_value_3 = unsafeCast<Resource>(value_1_left_value) 1054 thisSerializer.writeResource(value_1_left_value_3) 1055 } 1056 } 1057 } 1058 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("end")) || (value!.hasOwnProperty("start"))))) { 1059 thisSerializer.writeInt8(2) 1060 const value_2 = unsafeCast<LocalizedEdgeColors>(value) 1061 thisSerializer.writeLocalizedEdgeColors(value_2) 1062 } 1063 ArkUIGeneratedNativeModule._CommonMethod_outlineColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1064 thisSerializer.release() 1065 } 1066 outlineRadiusAttribute(value: Dimension | OutlineRadiuses): void { 1067 const thisSerializer: Serializer = Serializer.hold() 1068 let value_type: int32 = RuntimeType.UNDEFINED 1069 value_type = runtimeType(value) 1070 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { 1071 thisSerializer.writeInt8(0) 1072 const value_0 = unsafeCast<Dimension>(value) 1073 thisSerializer.writeLength(value_0) 1074 } 1075 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("topLeft")) || (value!.hasOwnProperty("topRight")) || (value!.hasOwnProperty("bottomLeft")) || (value!.hasOwnProperty("bottomRight"))))) { 1076 thisSerializer.writeInt8(1) 1077 const value_1 = unsafeCast<OutlineRadiuses>(value) 1078 const value_1_topLeft = value_1.topLeft 1079 let value_1_topLeft_type: int32 = RuntimeType.UNDEFINED 1080 value_1_topLeft_type = runtimeType(value_1_topLeft) 1081 thisSerializer.writeInt8(value_1_topLeft_type) 1082 if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { 1083 const value_1_topLeft_value = value_1_topLeft! 1084 thisSerializer.writeLength(value_1_topLeft_value) 1085 } 1086 const value_1_topRight = value_1.topRight 1087 let value_1_topRight_type: int32 = RuntimeType.UNDEFINED 1088 value_1_topRight_type = runtimeType(value_1_topRight) 1089 thisSerializer.writeInt8(value_1_topRight_type) 1090 if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { 1091 const value_1_topRight_value = value_1_topRight! 1092 thisSerializer.writeLength(value_1_topRight_value) 1093 } 1094 const value_1_bottomLeft = value_1.bottomLeft 1095 let value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED 1096 value_1_bottomLeft_type = runtimeType(value_1_bottomLeft) 1097 thisSerializer.writeInt8(value_1_bottomLeft_type) 1098 if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { 1099 const value_1_bottomLeft_value = value_1_bottomLeft! 1100 thisSerializer.writeLength(value_1_bottomLeft_value) 1101 } 1102 const value_1_bottomRight = value_1.bottomRight 1103 let value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED 1104 value_1_bottomRight_type = runtimeType(value_1_bottomRight) 1105 thisSerializer.writeInt8(value_1_bottomRight_type) 1106 if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { 1107 const value_1_bottomRight_value = value_1_bottomRight! 1108 thisSerializer.writeLength(value_1_bottomRight_value) 1109 } 1110 } 1111 ArkUIGeneratedNativeModule._CommonMethod_outlineRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1112 thisSerializer.release() 1113 } 1114 foregroundColorAttribute(value: ResourceColor | ColoringStrategy): void { 1115 const thisSerializer: Serializer = Serializer.hold() 1116 let value_type: int32 = RuntimeType.UNDEFINED 1117 value_type = runtimeType(value) 1118 if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 1119 thisSerializer.writeInt8(0) 1120 const value_0 = unsafeCast<ResourceColor>(value) 1121 let value_0_type: int32 = RuntimeType.UNDEFINED 1122 value_0_type = runtimeType(value_0) 1123 if (((RuntimeType.NUMBER) == (value_0_type)) && ((unsafeCast<int32>(value_0)) >= (0)) && ((unsafeCast<int32>(value_0)) <= (11))) { 1124 thisSerializer.writeInt8(0) 1125 const value_0_0 = unsafeCast<Color>(value_0) 1126 thisSerializer.writeInt32(value_0_0) 1127 } 1128 else if (RuntimeType.NUMBER == value_0_type) { 1129 thisSerializer.writeInt8(1) 1130 const value_0_1 = unsafeCast<number>(value_0) 1131 thisSerializer.writeNumber(value_0_1) 1132 } 1133 else if (RuntimeType.STRING == value_0_type) { 1134 thisSerializer.writeInt8(2) 1135 const value_0_2 = unsafeCast<string>(value_0) 1136 thisSerializer.writeString(value_0_2) 1137 } 1138 else if (RuntimeType.OBJECT == value_0_type) { 1139 thisSerializer.writeInt8(3) 1140 const value_0_3 = unsafeCast<Resource>(value_0) 1141 thisSerializer.writeResource(value_0_3) 1142 } 1143 } 1144 else if (((RuntimeType.STRING) == (value_type)) && ((Object.values(ColoringStrategy).indexOf((value as ColoringStrategy))) >= (0)) && ((Object.values(ColoringStrategy).indexOf((value as ColoringStrategy))) <= (2))) { 1145 thisSerializer.writeInt8(1) 1146 const value_1 = unsafeCast<ColoringStrategy>(value) 1147 thisSerializer.writeInt32(Object.values(ColoringStrategy).indexOf(value_1)) 1148 } 1149 ArkUIGeneratedNativeModule._CommonMethod_foregroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1150 thisSerializer.release() 1151 } 1152 onClick0Attribute(value: ((event: ClickEvent) => void)): void { 1153 const thisSerializer: Serializer = Serializer.hold() 1154 thisSerializer.holdAndWriteCallback(value) 1155 ArkUIGeneratedNativeModule._CommonMethod_onClick0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1156 thisSerializer.release() 1157 } 1158 onClick1Attribute(event: ((event: ClickEvent) => void), distanceThreshold: number): void { 1159 const thisSerializer: Serializer = Serializer.hold() 1160 thisSerializer.holdAndWriteCallback(event) 1161 ArkUIGeneratedNativeModule._CommonMethod_onClick1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), distanceThreshold) 1162 thisSerializer.release() 1163 } 1164 onHoverAttribute(value: ((isHover: boolean, event: HoverEvent) => void)): void { 1165 const thisSerializer: Serializer = Serializer.hold() 1166 thisSerializer.holdAndWriteCallback(value) 1167 ArkUIGeneratedNativeModule._CommonMethod_onHover(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1168 thisSerializer.release() 1169 } 1170 onAccessibilityHoverAttribute(value: AccessibilityCallback): void { 1171 const thisSerializer: Serializer = Serializer.hold() 1172 thisSerializer.holdAndWriteCallback(value) 1173 ArkUIGeneratedNativeModule._CommonMethod_onAccessibilityHover(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1174 thisSerializer.release() 1175 } 1176 hoverEffectAttribute(value: HoverEffect): void { 1177 ArkUIGeneratedNativeModule._CommonMethod_hoverEffect(this.peer.ptr, value) 1178 } 1179 onMouseAttribute(value: ((event: MouseEvent) => void)): void { 1180 const thisSerializer: Serializer = Serializer.hold() 1181 thisSerializer.holdAndWriteCallback(value) 1182 ArkUIGeneratedNativeModule._CommonMethod_onMouse(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1183 thisSerializer.release() 1184 } 1185 onTouchAttribute(value: ((event: TouchEvent) => void)): void { 1186 const thisSerializer: Serializer = Serializer.hold() 1187 thisSerializer.holdAndWriteCallback(value) 1188 ArkUIGeneratedNativeModule._CommonMethod_onTouch(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1189 thisSerializer.release() 1190 } 1191 onKeyEventAttribute(value: ((event: KeyEvent) => void)): void { 1192 const thisSerializer: Serializer = Serializer.hold() 1193 thisSerializer.holdAndWriteCallback(value) 1194 ArkUIGeneratedNativeModule._CommonMethod_onKeyEvent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1195 thisSerializer.release() 1196 } 1197 onKeyPreImeAttribute(value: ((parameter: KeyEvent) => boolean)): void { 1198 const thisSerializer: Serializer = Serializer.hold() 1199 thisSerializer.holdAndWriteCallback(value) 1200 ArkUIGeneratedNativeModule._CommonMethod_onKeyPreIme(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1201 thisSerializer.release() 1202 } 1203 focusableAttribute(value: boolean): void { 1204 ArkUIGeneratedNativeModule._CommonMethod_focusable(this.peer.ptr, +value) 1205 } 1206 onFocusAttribute(value: (() => void)): void { 1207 const thisSerializer: Serializer = Serializer.hold() 1208 thisSerializer.holdAndWriteCallback(value) 1209 ArkUIGeneratedNativeModule._CommonMethod_onFocus(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1210 thisSerializer.release() 1211 } 1212 onBlurAttribute(value: (() => void)): void { 1213 const thisSerializer: Serializer = Serializer.hold() 1214 thisSerializer.holdAndWriteCallback(value) 1215 ArkUIGeneratedNativeModule._CommonMethod_onBlur(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1216 thisSerializer.release() 1217 } 1218 tabIndexAttribute(value: number): void { 1219 ArkUIGeneratedNativeModule._CommonMethod_tabIndex(this.peer.ptr, value) 1220 } 1221 defaultFocusAttribute(value: boolean): void { 1222 ArkUIGeneratedNativeModule._CommonMethod_defaultFocus(this.peer.ptr, +value) 1223 } 1224 groupDefaultFocusAttribute(value: boolean): void { 1225 ArkUIGeneratedNativeModule._CommonMethod_groupDefaultFocus(this.peer.ptr, +value) 1226 } 1227 focusOnTouchAttribute(value: boolean): void { 1228 ArkUIGeneratedNativeModule._CommonMethod_focusOnTouch(this.peer.ptr, +value) 1229 } 1230 focusBoxAttribute(value: FocusBoxStyle): void { 1231 const thisSerializer: Serializer = Serializer.hold() 1232 thisSerializer.writeFocusBoxStyle(value) 1233 ArkUIGeneratedNativeModule._CommonMethod_focusBox(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1234 thisSerializer.release() 1235 } 1236 animationAttribute(value: AnimateParam): void { 1237 const thisSerializer: Serializer = Serializer.hold() 1238 thisSerializer.writeAnimateParam(value) 1239 ArkUIGeneratedNativeModule._CommonMethod_animation(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1240 thisSerializer.release() 1241 } 1242 transition0Attribute(value: TransitionOptions | TransitionEffect): void { 1243 const thisSerializer: Serializer = Serializer.hold() 1244 let value_type: int32 = RuntimeType.UNDEFINED 1245 value_type = runtimeType(value) 1246 if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("type")) || (value!.hasOwnProperty("opacity")) || (value!.hasOwnProperty("translate")) || (value!.hasOwnProperty("scale")) || (value!.hasOwnProperty("rotate"))))) { 1247 thisSerializer.writeInt8(0) 1248 const value_0 = unsafeCast<TransitionOptions>(value) 1249 thisSerializer.writeTransitionOptions(value_0) 1250 } 1251 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof TransitionEffect)) { 1252 thisSerializer.writeInt8(1) 1253 const value_1 = unsafeCast<TransitionEffect>(value) 1254 thisSerializer.writeTransitionEffect(value_1) 1255 } 1256 ArkUIGeneratedNativeModule._CommonMethod_transition0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1257 thisSerializer.release() 1258 } 1259 transition1Attribute(effect: TransitionEffect, onFinish?: TransitionFinishCallback): void { 1260 const thisSerializer: Serializer = Serializer.hold() 1261 let onFinish_type: int32 = RuntimeType.UNDEFINED 1262 onFinish_type = runtimeType(onFinish) 1263 thisSerializer.writeInt8(onFinish_type) 1264 if ((RuntimeType.UNDEFINED) != (onFinish_type)) { 1265 const onFinish_value = onFinish! 1266 thisSerializer.holdAndWriteCallback(onFinish_value) 1267 } 1268 ArkUIGeneratedNativeModule._CommonMethod_transition1(this.peer.ptr, toPeerPtr(effect), thisSerializer.asArray(), thisSerializer.length()) 1269 thisSerializer.release() 1270 } 1271 motionBlurAttribute(value: MotionBlurOptions): void { 1272 const thisSerializer: Serializer = Serializer.hold() 1273 thisSerializer.writeMotionBlurOptions(value) 1274 ArkUIGeneratedNativeModule._CommonMethod_motionBlur(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1275 thisSerializer.release() 1276 } 1277 brightnessAttribute(value: number): void { 1278 ArkUIGeneratedNativeModule._CommonMethod_brightness(this.peer.ptr, value) 1279 } 1280 contrastAttribute(value: number): void { 1281 ArkUIGeneratedNativeModule._CommonMethod_contrast(this.peer.ptr, value) 1282 } 1283 grayscaleAttribute(value: number): void { 1284 ArkUIGeneratedNativeModule._CommonMethod_grayscale(this.peer.ptr, value) 1285 } 1286 colorBlendAttribute(value: Color | string | Resource): void { 1287 const thisSerializer: Serializer = Serializer.hold() 1288 let value_type: int32 = RuntimeType.UNDEFINED 1289 value_type = runtimeType(value) 1290 if (RuntimeType.NUMBER == value_type) { 1291 thisSerializer.writeInt8(0) 1292 const value_0 = unsafeCast<Color>(value) 1293 thisSerializer.writeInt32(value_0) 1294 } 1295 else if (RuntimeType.STRING == value_type) { 1296 thisSerializer.writeInt8(1) 1297 const value_1 = unsafeCast<string>(value) 1298 thisSerializer.writeString(value_1) 1299 } 1300 else if (RuntimeType.OBJECT == value_type) { 1301 thisSerializer.writeInt8(2) 1302 const value_2 = unsafeCast<Resource>(value) 1303 thisSerializer.writeResource(value_2) 1304 } 1305 ArkUIGeneratedNativeModule._CommonMethod_colorBlend(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1306 thisSerializer.release() 1307 } 1308 saturateAttribute(value: number): void { 1309 ArkUIGeneratedNativeModule._CommonMethod_saturate(this.peer.ptr, value) 1310 } 1311 sepiaAttribute(value: number): void { 1312 ArkUIGeneratedNativeModule._CommonMethod_sepia(this.peer.ptr, value) 1313 } 1314 invertAttribute(value: number | InvertOptions): void { 1315 const thisSerializer: Serializer = Serializer.hold() 1316 let value_type: int32 = RuntimeType.UNDEFINED 1317 value_type = runtimeType(value) 1318 if (RuntimeType.NUMBER == value_type) { 1319 thisSerializer.writeInt8(0) 1320 const value_0 = unsafeCast<number>(value) 1321 thisSerializer.writeNumber(value_0) 1322 } 1323 else if (RuntimeType.OBJECT == value_type) { 1324 thisSerializer.writeInt8(1) 1325 const value_1 = unsafeCast<InvertOptions>(value) 1326 thisSerializer.writeInvertOptions(value_1) 1327 } 1328 ArkUIGeneratedNativeModule._CommonMethod_invert(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1329 thisSerializer.release() 1330 } 1331 hueRotateAttribute(value: number | string): void { 1332 const thisSerializer: Serializer = Serializer.hold() 1333 let value_type: int32 = RuntimeType.UNDEFINED 1334 value_type = runtimeType(value) 1335 if (RuntimeType.NUMBER == value_type) { 1336 thisSerializer.writeInt8(0) 1337 const value_0 = unsafeCast<number>(value) 1338 thisSerializer.writeNumber(value_0) 1339 } 1340 else if (RuntimeType.STRING == value_type) { 1341 thisSerializer.writeInt8(1) 1342 const value_1 = unsafeCast<string>(value) 1343 thisSerializer.writeString(value_1) 1344 } 1345 ArkUIGeneratedNativeModule._CommonMethod_hueRotate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1346 thisSerializer.release() 1347 } 1348 useShadowBatchingAttribute(value: boolean): void { 1349 ArkUIGeneratedNativeModule._CommonMethod_useShadowBatching(this.peer.ptr, +value) 1350 } 1351 useEffect0Attribute(value: boolean): void { 1352 ArkUIGeneratedNativeModule._CommonMethod_useEffect0(this.peer.ptr, +value) 1353 } 1354 useEffect1Attribute(useEffect: boolean, effectType: EffectType): void { 1355 ArkUIGeneratedNativeModule._CommonMethod_useEffect1(this.peer.ptr, +useEffect, effectType) 1356 } 1357 renderGroupAttribute(value: boolean): void { 1358 ArkUIGeneratedNativeModule._CommonMethod_renderGroup(this.peer.ptr, +value) 1359 } 1360 freezeAttribute(value: boolean): void { 1361 ArkUIGeneratedNativeModule._CommonMethod_freeze(this.peer.ptr, +value) 1362 } 1363 translateAttribute(value: TranslateOptions): void { 1364 const thisSerializer: Serializer = Serializer.hold() 1365 thisSerializer.writeTranslateOptions(value) 1366 ArkUIGeneratedNativeModule._CommonMethod_translate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1367 thisSerializer.release() 1368 } 1369 scaleAttribute(value: ScaleOptions): void { 1370 const thisSerializer: Serializer = Serializer.hold() 1371 thisSerializer.writeScaleOptions(value) 1372 ArkUIGeneratedNativeModule._CommonMethod_scale(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1373 thisSerializer.release() 1374 } 1375 gridSpanAttribute(value: number): void { 1376 ArkUIGeneratedNativeModule._CommonMethod_gridSpan(this.peer.ptr, value) 1377 } 1378 gridOffsetAttribute(value: number): void { 1379 ArkUIGeneratedNativeModule._CommonMethod_gridOffset(this.peer.ptr, value) 1380 } 1381 rotateAttribute(value: RotateOptions): void { 1382 const thisSerializer: Serializer = Serializer.hold() 1383 thisSerializer.writeRotateOptions(value) 1384 ArkUIGeneratedNativeModule._CommonMethod_rotate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1385 thisSerializer.release() 1386 } 1387 transformAttribute(value: Object): void { 1388 const thisSerializer: Serializer = Serializer.hold() 1389 thisSerializer.writeCustomObject("Object", value) 1390 ArkUIGeneratedNativeModule._CommonMethod_transform(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1391 thisSerializer.release() 1392 } 1393 onAppearAttribute(value: (() => void)): void { 1394 const thisSerializer: Serializer = Serializer.hold() 1395 thisSerializer.holdAndWriteCallback(value) 1396 ArkUIGeneratedNativeModule._CommonMethod_onAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1397 thisSerializer.release() 1398 } 1399 onDisAppearAttribute(value: (() => void)): void { 1400 const thisSerializer: Serializer = Serializer.hold() 1401 thisSerializer.holdAndWriteCallback(value) 1402 ArkUIGeneratedNativeModule._CommonMethod_onDisAppear(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1403 thisSerializer.release() 1404 } 1405 onAttachAttribute(value: (() => void)): void { 1406 const thisSerializer: Serializer = Serializer.hold() 1407 thisSerializer.holdAndWriteCallback(value) 1408 ArkUIGeneratedNativeModule._CommonMethod_onAttach(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1409 thisSerializer.release() 1410 } 1411 onDetachAttribute(value: (() => void)): void { 1412 const thisSerializer: Serializer = Serializer.hold() 1413 thisSerializer.holdAndWriteCallback(value) 1414 ArkUIGeneratedNativeModule._CommonMethod_onDetach(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1415 thisSerializer.release() 1416 } 1417 onAreaChangeAttribute(value: ((oldValue: Area, newValue: Area) => void)): void { 1418 const thisSerializer: Serializer = Serializer.hold() 1419 thisSerializer.holdAndWriteCallback(value) 1420 ArkUIGeneratedNativeModule._CommonMethod_onAreaChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1421 thisSerializer.release() 1422 } 1423 visibilityAttribute(value: Visibility): void { 1424 ArkUIGeneratedNativeModule._CommonMethod_visibility(this.peer.ptr, value) 1425 } 1426 flexGrowAttribute(value: number): void { 1427 ArkUIGeneratedNativeModule._CommonMethod_flexGrow(this.peer.ptr, value) 1428 } 1429 flexShrinkAttribute(value: number): void { 1430 ArkUIGeneratedNativeModule._CommonMethod_flexShrink(this.peer.ptr, value) 1431 } 1432 flexBasisAttribute(value: number | string): void { 1433 const thisSerializer: Serializer = Serializer.hold() 1434 let value_type: int32 = RuntimeType.UNDEFINED 1435 value_type = runtimeType(value) 1436 if (RuntimeType.NUMBER == value_type) { 1437 thisSerializer.writeInt8(0) 1438 const value_0 = unsafeCast<number>(value) 1439 thisSerializer.writeNumber(value_0) 1440 } 1441 else if (RuntimeType.STRING == value_type) { 1442 thisSerializer.writeInt8(1) 1443 const value_1 = unsafeCast<string>(value) 1444 thisSerializer.writeString(value_1) 1445 } 1446 ArkUIGeneratedNativeModule._CommonMethod_flexBasis(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1447 thisSerializer.release() 1448 } 1449 alignSelfAttribute(value: ItemAlign): void { 1450 ArkUIGeneratedNativeModule._CommonMethod_alignSelf(this.peer.ptr, value) 1451 } 1452 displayPriorityAttribute(value: number): void { 1453 ArkUIGeneratedNativeModule._CommonMethod_displayPriority(this.peer.ptr, value) 1454 } 1455 zIndexAttribute(value: number): void { 1456 ArkUIGeneratedNativeModule._CommonMethod_zIndex(this.peer.ptr, value) 1457 } 1458 directionAttribute(value: Direction): void { 1459 ArkUIGeneratedNativeModule._CommonMethod_direction(this.peer.ptr, value) 1460 } 1461 alignAttribute(value: Alignment): void { 1462 ArkUIGeneratedNativeModule._CommonMethod_align(this.peer.ptr, value) 1463 } 1464 positionAttribute(value: Position | Edges | LocalizedEdges): void { 1465 const thisSerializer: Serializer = Serializer.hold() 1466 let value_type: int32 = RuntimeType.UNDEFINED 1467 value_type = runtimeType(value) 1468 if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("x")) || (value!.hasOwnProperty("y"))))) { 1469 thisSerializer.writeInt8(0) 1470 const value_0 = unsafeCast<Position>(value) 1471 thisSerializer.writePosition(value_0) 1472 } 1473 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right"))))) { 1474 thisSerializer.writeInt8(1) 1475 const value_1 = unsafeCast<Edges>(value) 1476 thisSerializer.writeEdges(value_1) 1477 } 1478 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end"))))) { 1479 thisSerializer.writeInt8(2) 1480 const value_2 = unsafeCast<LocalizedEdges>(value) 1481 thisSerializer.writeLocalizedEdges(value_2) 1482 } 1483 ArkUIGeneratedNativeModule._CommonMethod_position(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1484 thisSerializer.release() 1485 } 1486 markAnchorAttribute(value: Position | LocalizedPosition): void { 1487 const thisSerializer: Serializer = Serializer.hold() 1488 let value_type: int32 = RuntimeType.UNDEFINED 1489 value_type = runtimeType(value) 1490 if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("x")) || (value!.hasOwnProperty("y"))))) { 1491 thisSerializer.writeInt8(0) 1492 const value_0 = unsafeCast<Position>(value) 1493 thisSerializer.writePosition(value_0) 1494 } 1495 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("top"))))) { 1496 thisSerializer.writeInt8(1) 1497 const value_1 = unsafeCast<LocalizedPosition>(value) 1498 thisSerializer.writeLocalizedPosition(value_1) 1499 } 1500 ArkUIGeneratedNativeModule._CommonMethod_markAnchor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1501 thisSerializer.release() 1502 } 1503 offsetAttribute(value: Position | Edges | LocalizedEdges): void { 1504 const thisSerializer: Serializer = Serializer.hold() 1505 let value_type: int32 = RuntimeType.UNDEFINED 1506 value_type = runtimeType(value) 1507 if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("x")) || (value!.hasOwnProperty("y"))))) { 1508 thisSerializer.writeInt8(0) 1509 const value_0 = unsafeCast<Position>(value) 1510 thisSerializer.writePosition(value_0) 1511 } 1512 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right"))))) { 1513 thisSerializer.writeInt8(1) 1514 const value_1 = unsafeCast<Edges>(value) 1515 thisSerializer.writeEdges(value_1) 1516 } 1517 else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end"))))) { 1518 thisSerializer.writeInt8(2) 1519 const value_2 = unsafeCast<LocalizedEdges>(value) 1520 thisSerializer.writeLocalizedEdges(value_2) 1521 } 1522 ArkUIGeneratedNativeModule._CommonMethod_offset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1523 thisSerializer.release() 1524 } 1525 enabledAttribute(value: boolean): void { 1526 ArkUIGeneratedNativeModule._CommonMethod_enabled(this.peer.ptr, +value) 1527 } 1528 useSizeTypeAttribute(value: { xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } }): void { 1529 const thisSerializer: Serializer = Serializer.hold() 1530 const value_xs = value.xs 1531 let value_xs_type: int32 = RuntimeType.UNDEFINED 1532 value_xs_type = runtimeType(value_xs) 1533 thisSerializer.writeInt8(value_xs_type) 1534 if ((RuntimeType.UNDEFINED) != (value_xs_type)) { 1535 const value_xs_value = value_xs! 1536 let value_xs_value_type: int32 = RuntimeType.UNDEFINED 1537 value_xs_value_type = runtimeType(value_xs_value) 1538 if (RuntimeType.NUMBER == value_xs_value_type) { 1539 thisSerializer.writeInt8(0) 1540 const value_xs_value_0 = unsafeCast<number>(value_xs_value) 1541 thisSerializer.writeNumber(value_xs_value_0) 1542 } 1543 else if (RuntimeType.OBJECT == value_xs_value_type) { 1544 thisSerializer.writeInt8(1) 1545 const value_xs_value_1 = unsafeCast<{ span: number, offset: number }>(value_xs_value) 1546 const value_xs_value_1_span = value_xs_value_1.span 1547 thisSerializer.writeNumber(value_xs_value_1_span) 1548 const value_xs_value_1_offset = value_xs_value_1.offset 1549 thisSerializer.writeNumber(value_xs_value_1_offset) 1550 } 1551 } 1552 const value_sm = value.sm 1553 let value_sm_type: int32 = RuntimeType.UNDEFINED 1554 value_sm_type = runtimeType(value_sm) 1555 thisSerializer.writeInt8(value_sm_type) 1556 if ((RuntimeType.UNDEFINED) != (value_sm_type)) { 1557 const value_sm_value = value_sm! 1558 let value_sm_value_type: int32 = RuntimeType.UNDEFINED 1559 value_sm_value_type = runtimeType(value_sm_value) 1560 if (RuntimeType.NUMBER == value_sm_value_type) { 1561 thisSerializer.writeInt8(0) 1562 const value_sm_value_0 = unsafeCast<number>(value_sm_value) 1563 thisSerializer.writeNumber(value_sm_value_0) 1564 } 1565 else if (RuntimeType.OBJECT == value_sm_value_type) { 1566 thisSerializer.writeInt8(1) 1567 const value_sm_value_1 = unsafeCast<{ span: number, offset: number }>(value_sm_value) 1568 const value_sm_value_1_span = value_sm_value_1.span 1569 thisSerializer.writeNumber(value_sm_value_1_span) 1570 const value_sm_value_1_offset = value_sm_value_1.offset 1571 thisSerializer.writeNumber(value_sm_value_1_offset) 1572 } 1573 } 1574 const value_md = value.md 1575 let value_md_type: int32 = RuntimeType.UNDEFINED 1576 value_md_type = runtimeType(value_md) 1577 thisSerializer.writeInt8(value_md_type) 1578 if ((RuntimeType.UNDEFINED) != (value_md_type)) { 1579 const value_md_value = value_md! 1580 let value_md_value_type: int32 = RuntimeType.UNDEFINED 1581 value_md_value_type = runtimeType(value_md_value) 1582 if (RuntimeType.NUMBER == value_md_value_type) { 1583 thisSerializer.writeInt8(0) 1584 const value_md_value_0 = unsafeCast<number>(value_md_value) 1585 thisSerializer.writeNumber(value_md_value_0) 1586 } 1587 else if (RuntimeType.OBJECT == value_md_value_type) { 1588 thisSerializer.writeInt8(1) 1589 const value_md_value_1 = unsafeCast<{ span: number, offset: number }>(value_md_value) 1590 const value_md_value_1_span = value_md_value_1.span 1591 thisSerializer.writeNumber(value_md_value_1_span) 1592 const value_md_value_1_offset = value_md_value_1.offset 1593 thisSerializer.writeNumber(value_md_value_1_offset) 1594 } 1595 } 1596 const value_lg = value.lg 1597 let value_lg_type: int32 = RuntimeType.UNDEFINED 1598 value_lg_type = runtimeType(value_lg) 1599 thisSerializer.writeInt8(value_lg_type) 1600 if ((RuntimeType.UNDEFINED) != (value_lg_type)) { 1601 const value_lg_value = value_lg! 1602 let value_lg_value_type: int32 = RuntimeType.UNDEFINED 1603 value_lg_value_type = runtimeType(value_lg_value) 1604 if (RuntimeType.NUMBER == value_lg_value_type) { 1605 thisSerializer.writeInt8(0) 1606 const value_lg_value_0 = unsafeCast<number>(value_lg_value) 1607 thisSerializer.writeNumber(value_lg_value_0) 1608 } 1609 else if (RuntimeType.OBJECT == value_lg_value_type) { 1610 thisSerializer.writeInt8(1) 1611 const value_lg_value_1 = unsafeCast<{ span: number, offset: number }>(value_lg_value) 1612 const value_lg_value_1_span = value_lg_value_1.span 1613 thisSerializer.writeNumber(value_lg_value_1_span) 1614 const value_lg_value_1_offset = value_lg_value_1.offset 1615 thisSerializer.writeNumber(value_lg_value_1_offset) 1616 } 1617 } 1618 ArkUIGeneratedNativeModule._CommonMethod_useSizeType(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1619 thisSerializer.release() 1620 } 1621 alignRules0Attribute(value: AlignRuleOption): void { 1622 const thisSerializer: Serializer = Serializer.hold() 1623 thisSerializer.writeAlignRuleOption(value) 1624 ArkUIGeneratedNativeModule._CommonMethod_alignRules0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1625 thisSerializer.release() 1626 } 1627 alignRules1Attribute(value: LocalizedAlignRuleOptions): void { 1628 const thisSerializer: Serializer = Serializer.hold() 1629 thisSerializer.writeLocalizedAlignRuleOptions(value) 1630 ArkUIGeneratedNativeModule._CommonMethod_alignRules1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1631 thisSerializer.release() 1632 } 1633 aspectRatioAttribute(value: number): void { 1634 ArkUIGeneratedNativeModule._CommonMethod_aspectRatio(this.peer.ptr, value) 1635 } 1636 clickEffectAttribute(value?: ClickEffect): void { 1637 const thisSerializer: Serializer = Serializer.hold() 1638 let value_type: int32 = RuntimeType.UNDEFINED 1639 value_type = runtimeType(value) 1640 thisSerializer.writeInt8(value_type) 1641 if ((RuntimeType.UNDEFINED) != (value_type)) { 1642 const value_value = value! 1643 thisSerializer.writeClickEffect(value_value) 1644 } 1645 ArkUIGeneratedNativeModule._CommonMethod_clickEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1646 thisSerializer.release() 1647 } 1648 onDragStartAttribute(value: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo)): void { 1649 const thisSerializer: Serializer = Serializer.hold() 1650 thisSerializer.holdAndWriteCallback(value) 1651 ArkUIGeneratedNativeModule._CommonMethod_onDragStart(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1652 thisSerializer.release() 1653 } 1654 onDragEnterAttribute(value: ((event: DragEvent, extraParams?: string) => void)): void { 1655 const thisSerializer: Serializer = Serializer.hold() 1656 thisSerializer.holdAndWriteCallback(value) 1657 ArkUIGeneratedNativeModule._CommonMethod_onDragEnter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1658 thisSerializer.release() 1659 } 1660 onDragMoveAttribute(value: ((event: DragEvent, extraParams?: string) => void)): void { 1661 const thisSerializer: Serializer = Serializer.hold() 1662 thisSerializer.holdAndWriteCallback(value) 1663 ArkUIGeneratedNativeModule._CommonMethod_onDragMove(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1664 thisSerializer.release() 1665 } 1666 onDragLeaveAttribute(value: ((event: DragEvent, extraParams?: string) => void)): void { 1667 const thisSerializer: Serializer = Serializer.hold() 1668 thisSerializer.holdAndWriteCallback(value) 1669 ArkUIGeneratedNativeModule._CommonMethod_onDragLeave(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1670 thisSerializer.release() 1671 } 1672 onDropAttribute(value: ((event: DragEvent, extraParams?: string) => void)): void { 1673 const thisSerializer: Serializer = Serializer.hold() 1674 thisSerializer.holdAndWriteCallback(value) 1675 ArkUIGeneratedNativeModule._CommonMethod_onDrop(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1676 thisSerializer.release() 1677 } 1678 onDragEndAttribute(value: ((event: DragEvent, extraParams?: string) => void)): void { 1679 const thisSerializer: Serializer = Serializer.hold() 1680 thisSerializer.holdAndWriteCallback(value) 1681 ArkUIGeneratedNativeModule._CommonMethod_onDragEnd(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1682 thisSerializer.release() 1683 } 1684 allowDropAttribute(value?: Array<UniformDataType>): void { 1685 const thisSerializer: Serializer = Serializer.hold() 1686 let value_type: int32 = RuntimeType.UNDEFINED 1687 value_type = runtimeType(value) 1688 thisSerializer.writeInt8(value_type) 1689 if ((RuntimeType.UNDEFINED) != (value_type)) { 1690 const value_value = value! 1691 thisSerializer.writeInt32(value_value.length) 1692 for (let i = 0; i < value_value.length; i++) { 1693 const value_value_element: UniformDataType = value_value[i] 1694 thisSerializer.writeUniformDataType(value_value_element) 1695 } 1696 } 1697 ArkUIGeneratedNativeModule._CommonMethod_allowDrop(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1698 thisSerializer.release() 1699 } 1700 draggableAttribute(value: boolean): void { 1701 ArkUIGeneratedNativeModule._CommonMethod_draggable(this.peer.ptr, +value) 1702 } 1703 dragPreviewAttribute(value: CustomBuilder | DragItemInfo | string): void { 1704 const thisSerializer: Serializer = Serializer.hold() 1705 let value_type: int32 = RuntimeType.UNDEFINED 1706 value_type = runtimeType(value) 1707 if (RuntimeType.FUNCTION == value_type) { 1708 thisSerializer.writeInt8(0) 1709 const value_0 = unsafeCast<CustomBuilder>(value) 1710 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) 1711 } 1712 else if (RuntimeType.OBJECT == value_type) { 1713 thisSerializer.writeInt8(1) 1714 const value_1 = unsafeCast<DragItemInfo>(value) 1715 thisSerializer.writeDragItemInfo(value_1) 1716 } 1717 else if (RuntimeType.STRING == value_type) { 1718 thisSerializer.writeInt8(2) 1719 const value_2 = unsafeCast<string>(value) 1720 thisSerializer.writeString(value_2) 1721 } 1722 ArkUIGeneratedNativeModule._CommonMethod_dragPreview(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1723 thisSerializer.release() 1724 } 1725 onPreDragAttribute(value: ((parameter: PreDragStatus) => void)): void { 1726 const thisSerializer: Serializer = Serializer.hold() 1727 thisSerializer.holdAndWriteCallback(value) 1728 ArkUIGeneratedNativeModule._CommonMethod_onPreDrag(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1729 thisSerializer.release() 1730 } 1731 linearGradientAttribute(value: { angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): void { 1732 const thisSerializer: Serializer = Serializer.hold() 1733 const value_angle = value.angle 1734 let value_angle_type: int32 = RuntimeType.UNDEFINED 1735 value_angle_type = runtimeType(value_angle) 1736 thisSerializer.writeInt8(value_angle_type) 1737 if ((RuntimeType.UNDEFINED) != (value_angle_type)) { 1738 const value_angle_value = value_angle! 1739 let value_angle_value_type: int32 = RuntimeType.UNDEFINED 1740 value_angle_value_type = runtimeType(value_angle_value) 1741 if (RuntimeType.NUMBER == value_angle_value_type) { 1742 thisSerializer.writeInt8(0) 1743 const value_angle_value_0 = unsafeCast<number>(value_angle_value) 1744 thisSerializer.writeNumber(value_angle_value_0) 1745 } 1746 else if (RuntimeType.STRING == value_angle_value_type) { 1747 thisSerializer.writeInt8(1) 1748 const value_angle_value_1 = unsafeCast<string>(value_angle_value) 1749 thisSerializer.writeString(value_angle_value_1) 1750 } 1751 } 1752 const value_direction = value.direction 1753 let value_direction_type: int32 = RuntimeType.UNDEFINED 1754 value_direction_type = runtimeType(value_direction) 1755 thisSerializer.writeInt8(value_direction_type) 1756 if ((RuntimeType.UNDEFINED) != (value_direction_type)) { 1757 const value_direction_value = value_direction! 1758 thisSerializer.writeInt32(value_direction_value) 1759 } 1760 const value_colors = value.colors 1761 thisSerializer.writeInt32(value_colors.length) 1762 for (let i = 0; i < value_colors.length; i++) { 1763 const value_colors_element: [ ResourceColor, number ] = value_colors[i] 1764 const value_colors_element_0 = value_colors_element[0] 1765 let value_colors_element_0_type: int32 = RuntimeType.UNDEFINED 1766 value_colors_element_0_type = runtimeType(value_colors_element_0) 1767 if (((RuntimeType.NUMBER) == (value_colors_element_0_type)) && ((unsafeCast<int32>(value_colors_element_0)) >= (0)) && ((unsafeCast<int32>(value_colors_element_0)) <= (11))) { 1768 thisSerializer.writeInt8(0) 1769 const value_colors_element_0_0 = unsafeCast<Color>(value_colors_element_0) 1770 thisSerializer.writeInt32(value_colors_element_0_0) 1771 } 1772 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1773 thisSerializer.writeInt8(1) 1774 const value_colors_element_0_1 = unsafeCast<number>(value_colors_element_0) 1775 thisSerializer.writeNumber(value_colors_element_0_1) 1776 } 1777 else if (RuntimeType.STRING == value_colors_element_0_type) { 1778 thisSerializer.writeInt8(2) 1779 const value_colors_element_0_2 = unsafeCast<string>(value_colors_element_0) 1780 thisSerializer.writeString(value_colors_element_0_2) 1781 } 1782 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1783 thisSerializer.writeInt8(3) 1784 const value_colors_element_0_3 = unsafeCast<Resource>(value_colors_element_0) 1785 thisSerializer.writeResource(value_colors_element_0_3) 1786 } 1787 const value_colors_element_1 = value_colors_element[1] 1788 thisSerializer.writeNumber(value_colors_element_1) 1789 } 1790 const value_repeating = value.repeating 1791 let value_repeating_type: int32 = RuntimeType.UNDEFINED 1792 value_repeating_type = runtimeType(value_repeating) 1793 thisSerializer.writeInt8(value_repeating_type) 1794 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1795 const value_repeating_value = value_repeating! 1796 thisSerializer.writeBoolean(value_repeating_value) 1797 } 1798 ArkUIGeneratedNativeModule._CommonMethod_linearGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1799 thisSerializer.release() 1800 } 1801 sweepGradientAttribute(value: { center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): void { 1802 const thisSerializer: Serializer = Serializer.hold() 1803 const value_center = value.center 1804 const value_center_0 = value_center[0] 1805 thisSerializer.writeLength(value_center_0) 1806 const value_center_1 = value_center[1] 1807 thisSerializer.writeLength(value_center_1) 1808 const value_start = value.start 1809 let value_start_type: int32 = RuntimeType.UNDEFINED 1810 value_start_type = runtimeType(value_start) 1811 thisSerializer.writeInt8(value_start_type) 1812 if ((RuntimeType.UNDEFINED) != (value_start_type)) { 1813 const value_start_value = value_start! 1814 let value_start_value_type: int32 = RuntimeType.UNDEFINED 1815 value_start_value_type = runtimeType(value_start_value) 1816 if (RuntimeType.NUMBER == value_start_value_type) { 1817 thisSerializer.writeInt8(0) 1818 const value_start_value_0 = unsafeCast<number>(value_start_value) 1819 thisSerializer.writeNumber(value_start_value_0) 1820 } 1821 else if (RuntimeType.STRING == value_start_value_type) { 1822 thisSerializer.writeInt8(1) 1823 const value_start_value_1 = unsafeCast<string>(value_start_value) 1824 thisSerializer.writeString(value_start_value_1) 1825 } 1826 } 1827 const value_end = value.end 1828 let value_end_type: int32 = RuntimeType.UNDEFINED 1829 value_end_type = runtimeType(value_end) 1830 thisSerializer.writeInt8(value_end_type) 1831 if ((RuntimeType.UNDEFINED) != (value_end_type)) { 1832 const value_end_value = value_end! 1833 let value_end_value_type: int32 = RuntimeType.UNDEFINED 1834 value_end_value_type = runtimeType(value_end_value) 1835 if (RuntimeType.NUMBER == value_end_value_type) { 1836 thisSerializer.writeInt8(0) 1837 const value_end_value_0 = unsafeCast<number>(value_end_value) 1838 thisSerializer.writeNumber(value_end_value_0) 1839 } 1840 else if (RuntimeType.STRING == value_end_value_type) { 1841 thisSerializer.writeInt8(1) 1842 const value_end_value_1 = unsafeCast<string>(value_end_value) 1843 thisSerializer.writeString(value_end_value_1) 1844 } 1845 } 1846 const value_rotation = value.rotation 1847 let value_rotation_type: int32 = RuntimeType.UNDEFINED 1848 value_rotation_type = runtimeType(value_rotation) 1849 thisSerializer.writeInt8(value_rotation_type) 1850 if ((RuntimeType.UNDEFINED) != (value_rotation_type)) { 1851 const value_rotation_value = value_rotation! 1852 let value_rotation_value_type: int32 = RuntimeType.UNDEFINED 1853 value_rotation_value_type = runtimeType(value_rotation_value) 1854 if (RuntimeType.NUMBER == value_rotation_value_type) { 1855 thisSerializer.writeInt8(0) 1856 const value_rotation_value_0 = unsafeCast<number>(value_rotation_value) 1857 thisSerializer.writeNumber(value_rotation_value_0) 1858 } 1859 else if (RuntimeType.STRING == value_rotation_value_type) { 1860 thisSerializer.writeInt8(1) 1861 const value_rotation_value_1 = unsafeCast<string>(value_rotation_value) 1862 thisSerializer.writeString(value_rotation_value_1) 1863 } 1864 } 1865 const value_colors = value.colors 1866 thisSerializer.writeInt32(value_colors.length) 1867 for (let i = 0; i < value_colors.length; i++) { 1868 const value_colors_element: [ ResourceColor, number ] = value_colors[i] 1869 const value_colors_element_0 = value_colors_element[0] 1870 let value_colors_element_0_type: int32 = RuntimeType.UNDEFINED 1871 value_colors_element_0_type = runtimeType(value_colors_element_0) 1872 if (((RuntimeType.NUMBER) == (value_colors_element_0_type)) && ((unsafeCast<int32>(value_colors_element_0)) >= (0)) && ((unsafeCast<int32>(value_colors_element_0)) <= (11))) { 1873 thisSerializer.writeInt8(0) 1874 const value_colors_element_0_0 = unsafeCast<Color>(value_colors_element_0) 1875 thisSerializer.writeInt32(value_colors_element_0_0) 1876 } 1877 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1878 thisSerializer.writeInt8(1) 1879 const value_colors_element_0_1 = unsafeCast<number>(value_colors_element_0) 1880 thisSerializer.writeNumber(value_colors_element_0_1) 1881 } 1882 else if (RuntimeType.STRING == value_colors_element_0_type) { 1883 thisSerializer.writeInt8(2) 1884 const value_colors_element_0_2 = unsafeCast<string>(value_colors_element_0) 1885 thisSerializer.writeString(value_colors_element_0_2) 1886 } 1887 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1888 thisSerializer.writeInt8(3) 1889 const value_colors_element_0_3 = unsafeCast<Resource>(value_colors_element_0) 1890 thisSerializer.writeResource(value_colors_element_0_3) 1891 } 1892 const value_colors_element_1 = value_colors_element[1] 1893 thisSerializer.writeNumber(value_colors_element_1) 1894 } 1895 const value_repeating = value.repeating 1896 let value_repeating_type: int32 = RuntimeType.UNDEFINED 1897 value_repeating_type = runtimeType(value_repeating) 1898 thisSerializer.writeInt8(value_repeating_type) 1899 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1900 const value_repeating_value = value_repeating! 1901 thisSerializer.writeBoolean(value_repeating_value) 1902 } 1903 ArkUIGeneratedNativeModule._CommonMethod_sweepGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1904 thisSerializer.release() 1905 } 1906 radialGradientAttribute(value: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }): void { 1907 const thisSerializer: Serializer = Serializer.hold() 1908 const value_center = value.center 1909 const value_center_0 = value_center[0] 1910 thisSerializer.writeLength(value_center_0) 1911 const value_center_1 = value_center[1] 1912 thisSerializer.writeLength(value_center_1) 1913 const value_radius = value.radius 1914 let value_radius_type: int32 = RuntimeType.UNDEFINED 1915 value_radius_type = runtimeType(value_radius) 1916 if (RuntimeType.NUMBER == value_radius_type) { 1917 thisSerializer.writeInt8(0) 1918 const value_radius_0 = unsafeCast<number>(value_radius) 1919 thisSerializer.writeNumber(value_radius_0) 1920 } 1921 else if (RuntimeType.STRING == value_radius_type) { 1922 thisSerializer.writeInt8(1) 1923 const value_radius_1 = unsafeCast<string>(value_radius) 1924 thisSerializer.writeString(value_radius_1) 1925 } 1926 const value_colors = value.colors 1927 thisSerializer.writeInt32(value_colors.length) 1928 for (let i = 0; i < value_colors.length; i++) { 1929 const value_colors_element: [ ResourceColor, number ] = value_colors[i] 1930 const value_colors_element_0 = value_colors_element[0] 1931 let value_colors_element_0_type: int32 = RuntimeType.UNDEFINED 1932 value_colors_element_0_type = runtimeType(value_colors_element_0) 1933 if (((RuntimeType.NUMBER) == (value_colors_element_0_type)) && ((unsafeCast<int32>(value_colors_element_0)) >= (0)) && ((unsafeCast<int32>(value_colors_element_0)) <= (11))) { 1934 thisSerializer.writeInt8(0) 1935 const value_colors_element_0_0 = unsafeCast<Color>(value_colors_element_0) 1936 thisSerializer.writeInt32(value_colors_element_0_0) 1937 } 1938 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1939 thisSerializer.writeInt8(1) 1940 const value_colors_element_0_1 = unsafeCast<number>(value_colors_element_0) 1941 thisSerializer.writeNumber(value_colors_element_0_1) 1942 } 1943 else if (RuntimeType.STRING == value_colors_element_0_type) { 1944 thisSerializer.writeInt8(2) 1945 const value_colors_element_0_2 = unsafeCast<string>(value_colors_element_0) 1946 thisSerializer.writeString(value_colors_element_0_2) 1947 } 1948 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1949 thisSerializer.writeInt8(3) 1950 const value_colors_element_0_3 = unsafeCast<Resource>(value_colors_element_0) 1951 thisSerializer.writeResource(value_colors_element_0_3) 1952 } 1953 const value_colors_element_1 = value_colors_element[1] 1954 thisSerializer.writeNumber(value_colors_element_1) 1955 } 1956 const value_repeating = value.repeating 1957 let value_repeating_type: int32 = RuntimeType.UNDEFINED 1958 value_repeating_type = runtimeType(value_repeating) 1959 thisSerializer.writeInt8(value_repeating_type) 1960 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1961 const value_repeating_value = value_repeating! 1962 thisSerializer.writeBoolean(value_repeating_value) 1963 } 1964 ArkUIGeneratedNativeModule._CommonMethod_radialGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1965 thisSerializer.release() 1966 } 1967 motionPathAttribute(value: MotionPathOptions): void { 1968 const thisSerializer: Serializer = Serializer.hold() 1969 thisSerializer.writeMotionPathOptions(value) 1970 ArkUIGeneratedNativeModule._CommonMethod_motionPath(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1971 thisSerializer.release() 1972 } 1973 shadowAttribute(value: ShadowOptions | ShadowStyle): void { 1974 const thisSerializer: Serializer = Serializer.hold() 1975 let value_type: int32 = RuntimeType.UNDEFINED 1976 value_type = runtimeType(value) 1977 if (RuntimeType.OBJECT == value_type) { 1978 thisSerializer.writeInt8(0) 1979 const value_0 = unsafeCast<ShadowOptions>(value) 1980 thisSerializer.writeShadowOptions(value_0) 1981 } 1982 else if (RuntimeType.NUMBER == value_type) { 1983 thisSerializer.writeInt8(1) 1984 const value_1 = unsafeCast<ShadowStyle>(value) 1985 thisSerializer.writeInt32(value_1) 1986 } 1987 ArkUIGeneratedNativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 1988 thisSerializer.release() 1989 } 1990 clip0Attribute(value?: boolean): void { 1991 const thisSerializer: Serializer = Serializer.hold() 1992 let value_type: int32 = RuntimeType.UNDEFINED 1993 value_type = runtimeType(value) 1994 thisSerializer.writeInt8(value_type) 1995 if ((RuntimeType.UNDEFINED) != (value_type)) { 1996 const value_value = value! 1997 thisSerializer.writeBoolean(value_value) 1998 } 1999 ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2000 thisSerializer.release() 2001 } 2002 clip1Attribute(value?: boolean): void { 2003 const thisSerializer: Serializer = Serializer.hold() 2004 let value_type: int32 = RuntimeType.UNDEFINED 2005 value_type = runtimeType(value) 2006 thisSerializer.writeInt8(value_type) 2007 if ((RuntimeType.UNDEFINED) != (value_type)) { 2008 const value_value = value! 2009 thisSerializer.writeBoolean(value_value) 2010 } 2011 ArkUIGeneratedNativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2012 thisSerializer.release() 2013 } 2014 clipShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { 2015 const thisSerializer: Serializer = Serializer.hold() 2016 let value_type: int32 = RuntimeType.UNDEFINED 2017 value_type = runtimeType(value) 2018 if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleShape)) { 2019 thisSerializer.writeInt8(0) 2020 const value_0 = unsafeCast<CircleShape>(value) 2021 thisSerializer.writeCircleShape(value_0) 2022 } 2023 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseShape)) { 2024 thisSerializer.writeInt8(1) 2025 const value_1 = unsafeCast<EllipseShape>(value) 2026 thisSerializer.writeEllipseShape(value_1) 2027 } 2028 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathShape)) { 2029 thisSerializer.writeInt8(2) 2030 const value_2 = unsafeCast<PathShape>(value) 2031 thisSerializer.writePathShape(value_2) 2032 } 2033 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectShape)) { 2034 thisSerializer.writeInt8(3) 2035 const value_3 = unsafeCast<RectShape>(value) 2036 thisSerializer.writeRectShape(value_3) 2037 } 2038 ArkUIGeneratedNativeModule._CommonMethod_clipShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2039 thisSerializer.release() 2040 } 2041 mask0Attribute(value?: ProgressMask): void { 2042 const thisSerializer: Serializer = Serializer.hold() 2043 let value_type: int32 = RuntimeType.UNDEFINED 2044 value_type = runtimeType(value) 2045 thisSerializer.writeInt8(value_type) 2046 if ((RuntimeType.UNDEFINED) != (value_type)) { 2047 const value_value = value! 2048 thisSerializer.writeProgressMask(value_value) 2049 } 2050 ArkUIGeneratedNativeModule._CommonMethod_mask0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2051 thisSerializer.release() 2052 } 2053 mask1Attribute(value?: ProgressMask): void { 2054 const thisSerializer: Serializer = Serializer.hold() 2055 let value_type: int32 = RuntimeType.UNDEFINED 2056 value_type = runtimeType(value) 2057 thisSerializer.writeInt8(value_type) 2058 if ((RuntimeType.UNDEFINED) != (value_type)) { 2059 const value_value = value! 2060 thisSerializer.writeProgressMask(value_value) 2061 } 2062 ArkUIGeneratedNativeModule._CommonMethod_mask1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2063 thisSerializer.release() 2064 } 2065 maskShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { 2066 const thisSerializer: Serializer = Serializer.hold() 2067 let value_type: int32 = RuntimeType.UNDEFINED 2068 value_type = runtimeType(value) 2069 if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleShape)) { 2070 thisSerializer.writeInt8(0) 2071 const value_0 = unsafeCast<CircleShape>(value) 2072 thisSerializer.writeCircleShape(value_0) 2073 } 2074 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseShape)) { 2075 thisSerializer.writeInt8(1) 2076 const value_1 = unsafeCast<EllipseShape>(value) 2077 thisSerializer.writeEllipseShape(value_1) 2078 } 2079 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathShape)) { 2080 thisSerializer.writeInt8(2) 2081 const value_2 = unsafeCast<PathShape>(value) 2082 thisSerializer.writePathShape(value_2) 2083 } 2084 else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectShape)) { 2085 thisSerializer.writeInt8(3) 2086 const value_3 = unsafeCast<RectShape>(value) 2087 thisSerializer.writeRectShape(value_3) 2088 } 2089 ArkUIGeneratedNativeModule._CommonMethod_maskShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2090 thisSerializer.release() 2091 } 2092 keyAttribute(value: string): void { 2093 ArkUIGeneratedNativeModule._CommonMethod_key(this.peer.ptr, value) 2094 } 2095 idAttribute(value: string): void { 2096 ArkUIGeneratedNativeModule._CommonMethod_id(this.peer.ptr, value) 2097 } 2098 geometryTransition0Attribute(value: string): void { 2099 ArkUIGeneratedNativeModule._CommonMethod_geometryTransition0(this.peer.ptr, value) 2100 } 2101 geometryTransition1Attribute(id: string, options?: GeometryTransitionOptions): void { 2102 const thisSerializer: Serializer = Serializer.hold() 2103 let options_type: int32 = RuntimeType.UNDEFINED 2104 options_type = runtimeType(options) 2105 thisSerializer.writeInt8(options_type) 2106 if ((RuntimeType.UNDEFINED) != (options_type)) { 2107 const options_value = options! 2108 thisSerializer.writeGeometryTransitionOptions(options_value) 2109 } 2110 ArkUIGeneratedNativeModule._CommonMethod_geometryTransition1(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()) 2111 thisSerializer.release() 2112 } 2113 stateStylesAttribute(value: StateStyles): void { 2114 const thisSerializer: Serializer = Serializer.hold() 2115 thisSerializer.writeStateStyles(value) 2116 ArkUIGeneratedNativeModule._CommonMethod_stateStyles(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2117 thisSerializer.release() 2118 } 2119 restoreIdAttribute(value: number): void { 2120 ArkUIGeneratedNativeModule._CommonMethod_restoreId(this.peer.ptr, value) 2121 } 2122 sphericalEffectAttribute(value: number): void { 2123 ArkUIGeneratedNativeModule._CommonMethod_sphericalEffect(this.peer.ptr, value) 2124 } 2125 lightUpEffectAttribute(value: number): void { 2126 ArkUIGeneratedNativeModule._CommonMethod_lightUpEffect(this.peer.ptr, value) 2127 } 2128 pixelStretchEffectAttribute(value: PixelStretchEffectOptions): void { 2129 const thisSerializer: Serializer = Serializer.hold() 2130 thisSerializer.writePixelStretchEffectOptions(value) 2131 ArkUIGeneratedNativeModule._CommonMethod_pixelStretchEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2132 thisSerializer.release() 2133 } 2134 accessibilityGroup0Attribute(value: boolean): void { 2135 ArkUIGeneratedNativeModule._CommonMethod_accessibilityGroup0(this.peer.ptr, +value) 2136 } 2137 accessibilityGroup1Attribute(isGroup: boolean, accessibilityOptions: AccessibilityOptions): void { 2138 const thisSerializer: Serializer = Serializer.hold() 2139 thisSerializer.writeAccessibilityOptions(accessibilityOptions) 2140 ArkUIGeneratedNativeModule._CommonMethod_accessibilityGroup1(this.peer.ptr, +isGroup, thisSerializer.asArray(), thisSerializer.length()) 2141 thisSerializer.release() 2142 } 2143 accessibilityText0Attribute(value: string): void { 2144 ArkUIGeneratedNativeModule._CommonMethod_accessibilityText0(this.peer.ptr, value) 2145 } 2146 accessibilityText1Attribute(value: Resource): void { 2147 const thisSerializer: Serializer = Serializer.hold() 2148 thisSerializer.writeResource(value) 2149 ArkUIGeneratedNativeModule._CommonMethod_accessibilityText1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2150 thisSerializer.release() 2151 } 2152 accessibilityTextHintAttribute(value: string): void { 2153 ArkUIGeneratedNativeModule._CommonMethod_accessibilityTextHint(this.peer.ptr, value) 2154 } 2155 accessibilityDescription0Attribute(value: string): void { 2156 ArkUIGeneratedNativeModule._CommonMethod_accessibilityDescription0(this.peer.ptr, value) 2157 } 2158 accessibilityDescription1Attribute(value: Resource): void { 2159 const thisSerializer: Serializer = Serializer.hold() 2160 thisSerializer.writeResource(value) 2161 ArkUIGeneratedNativeModule._CommonMethod_accessibilityDescription1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2162 thisSerializer.release() 2163 } 2164 accessibilityLevelAttribute(value: string): void { 2165 ArkUIGeneratedNativeModule._CommonMethod_accessibilityLevel(this.peer.ptr, value) 2166 } 2167 accessibilityVirtualNodeAttribute(value: CustomBuilder): void { 2168 const thisSerializer: Serializer = Serializer.hold() 2169 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)) 2170 ArkUIGeneratedNativeModule._CommonMethod_accessibilityVirtualNode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2171 thisSerializer.release() 2172 } 2173 accessibilityCheckedAttribute(value: boolean): void { 2174 ArkUIGeneratedNativeModule._CommonMethod_accessibilityChecked(this.peer.ptr, +value) 2175 } 2176 accessibilitySelectedAttribute(value: boolean): void { 2177 ArkUIGeneratedNativeModule._CommonMethod_accessibilitySelected(this.peer.ptr, +value) 2178 } 2179 obscuredAttribute(value: Array<ObscuredReasons>): void { 2180 const thisSerializer: Serializer = Serializer.hold() 2181 thisSerializer.writeInt32(value.length) 2182 for (let i = 0; i < value.length; i++) { 2183 const value_element: ObscuredReasons = value[i] 2184 thisSerializer.writeInt32(value_element) 2185 } 2186 ArkUIGeneratedNativeModule._CommonMethod_obscured(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2187 thisSerializer.release() 2188 } 2189 reuseIdAttribute(value: string): void { 2190 ArkUIGeneratedNativeModule._CommonMethod_reuseId(this.peer.ptr, value) 2191 } 2192 renderFitAttribute(value: RenderFit): void { 2193 ArkUIGeneratedNativeModule._CommonMethod_renderFit(this.peer.ptr, value) 2194 } 2195 gestureModifierAttribute(value: GestureModifier): void { 2196 ArkUIGeneratedNativeModule._CommonMethod_gestureModifier(this.peer.ptr, toPeerPtr(value)) 2197 } 2198 backgroundBrightnessAttribute(value: BackgroundBrightnessOptions): void { 2199 const thisSerializer: Serializer = Serializer.hold() 2200 thisSerializer.writeBackgroundBrightnessOptions(value) 2201 ArkUIGeneratedNativeModule._CommonMethod_backgroundBrightness(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2202 thisSerializer.release() 2203 } 2204 onGestureJudgeBeginAttribute(value: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): void { 2205 const thisSerializer: Serializer = Serializer.hold() 2206 thisSerializer.holdAndWriteCallback(value) 2207 ArkUIGeneratedNativeModule._CommonMethod_onGestureJudgeBegin(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2208 thisSerializer.release() 2209 } 2210 onGestureRecognizerJudgeBegin0Attribute(value: GestureRecognizerJudgeBeginCallback): void { 2211 const thisSerializer: Serializer = Serializer.hold() 2212 thisSerializer.holdAndWriteCallback(value) 2213 ArkUIGeneratedNativeModule._CommonMethod_onGestureRecognizerJudgeBegin0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2214 thisSerializer.release() 2215 } 2216 onGestureRecognizerJudgeBegin1Attribute(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture: boolean): void { 2217 const thisSerializer: Serializer = Serializer.hold() 2218 thisSerializer.holdAndWriteCallback(callback_) 2219 ArkUIGeneratedNativeModule._CommonMethod_onGestureRecognizerJudgeBegin1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), +exposeInnerGesture) 2220 thisSerializer.release() 2221 } 2222 shouldBuiltInRecognizerParallelWithAttribute(value: ShouldBuiltInRecognizerParallelWithCallback): void { 2223 const thisSerializer: Serializer = Serializer.hold() 2224 thisSerializer.holdAndWriteCallback(value) 2225 ArkUIGeneratedNativeModule._CommonMethod_shouldBuiltInRecognizerParallelWith(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2226 thisSerializer.release() 2227 } 2228 monopolizeEventsAttribute(value: boolean): void { 2229 ArkUIGeneratedNativeModule._CommonMethod_monopolizeEvents(this.peer.ptr, +value) 2230 } 2231 onTouchInterceptAttribute(value: ((parameter: TouchEvent) => HitTestMode)): void { 2232 const thisSerializer: Serializer = Serializer.hold() 2233 thisSerializer.holdAndWriteCallback(value) 2234 ArkUIGeneratedNativeModule._CommonMethod_onTouchIntercept(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2235 thisSerializer.release() 2236 } 2237 onSizeChangeAttribute(value: SizeChangeCallback): void { 2238 const thisSerializer: Serializer = Serializer.hold() 2239 thisSerializer.holdAndWriteCallback(value) 2240 ArkUIGeneratedNativeModule._CommonMethod_onSizeChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2241 thisSerializer.release() 2242 } 2243 customPropertyAttribute(name: string, value?: Object): void { 2244 const thisSerializer: Serializer = Serializer.hold() 2245 let value_type: int32 = RuntimeType.UNDEFINED 2246 value_type = runtimeType(value) 2247 thisSerializer.writeInt8(value_type) 2248 if ((RuntimeType.UNDEFINED) != (value_type)) { 2249 const value_value = value! 2250 thisSerializer.writeCustomObject("Object", value_value) 2251 } 2252 ArkUIGeneratedNativeModule._CommonMethod_customProperty(this.peer.ptr, name, thisSerializer.asArray(), thisSerializer.length()) 2253 thisSerializer.release() 2254 } 2255 expandSafeAreaAttribute(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): void { 2256 const thisSerializer: Serializer = Serializer.hold() 2257 let types_type: int32 = RuntimeType.UNDEFINED 2258 types_type = runtimeType(types) 2259 thisSerializer.writeInt8(types_type) 2260 if ((RuntimeType.UNDEFINED) != (types_type)) { 2261 const types_value = types! 2262 thisSerializer.writeInt32(types_value.length) 2263 for (let i = 0; i < types_value.length; i++) { 2264 const types_value_element: SafeAreaType = types_value[i] 2265 thisSerializer.writeInt32(types_value_element) 2266 } 2267 } 2268 let edges_type: int32 = RuntimeType.UNDEFINED 2269 edges_type = runtimeType(edges) 2270 thisSerializer.writeInt8(edges_type) 2271 if ((RuntimeType.UNDEFINED) != (edges_type)) { 2272 const edges_value = edges! 2273 thisSerializer.writeInt32(edges_value.length) 2274 for (let i = 0; i < edges_value.length; i++) { 2275 const edges_value_element: SafeAreaEdge = edges_value[i] 2276 thisSerializer.writeInt32(edges_value_element) 2277 } 2278 } 2279 ArkUIGeneratedNativeModule._CommonMethod_expandSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2280 thisSerializer.release() 2281 } 2282 backgroundAttribute(builder: CustomBuilder, options?: { align?: Alignment }): void { 2283 const thisSerializer: Serializer = Serializer.hold() 2284 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2285 let options_type: int32 = RuntimeType.UNDEFINED 2286 options_type = runtimeType(options) 2287 thisSerializer.writeInt8(options_type) 2288 if ((RuntimeType.UNDEFINED) != (options_type)) { 2289 const options_value = options! 2290 const options_value_align = options_value.align 2291 let options_value_align_type: int32 = RuntimeType.UNDEFINED 2292 options_value_align_type = runtimeType(options_value_align) 2293 thisSerializer.writeInt8(options_value_align_type) 2294 if ((RuntimeType.UNDEFINED) != (options_value_align_type)) { 2295 const options_value_align_value = options_value_align! 2296 thisSerializer.writeInt32(options_value_align_value) 2297 } 2298 } 2299 ArkUIGeneratedNativeModule._CommonMethod_background(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2300 thisSerializer.release() 2301 } 2302 backgroundImageAttribute(src: ResourceStr | PixelMap, repeat?: ImageRepeat): void { 2303 const thisSerializer: Serializer = Serializer.hold() 2304 let src_type: int32 = RuntimeType.UNDEFINED 2305 src_type = runtimeType(src) 2306 if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { 2307 thisSerializer.writeInt8(0) 2308 const src_0 = unsafeCast<ResourceStr>(src) 2309 let src_0_type: int32 = RuntimeType.UNDEFINED 2310 src_0_type = runtimeType(src_0) 2311 if (RuntimeType.STRING == src_0_type) { 2312 thisSerializer.writeInt8(0) 2313 const src_0_0 = unsafeCast<string>(src_0) 2314 thisSerializer.writeString(src_0_0) 2315 } 2316 else if (RuntimeType.OBJECT == src_0_type) { 2317 thisSerializer.writeInt8(1) 2318 const src_0_1 = unsafeCast<Resource>(src_0) 2319 thisSerializer.writeResource(src_0_1) 2320 } 2321 } 2322 else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { 2323 thisSerializer.writeInt8(1) 2324 const src_1 = unsafeCast<PixelMap>(src) 2325 thisSerializer.writePixelMap(src_1) 2326 } 2327 let repeat_type: int32 = RuntimeType.UNDEFINED 2328 repeat_type = runtimeType(repeat) 2329 thisSerializer.writeInt8(repeat_type) 2330 if ((RuntimeType.UNDEFINED) != (repeat_type)) { 2331 const repeat_value = repeat! 2332 thisSerializer.writeInt32(repeat_value) 2333 } 2334 ArkUIGeneratedNativeModule._CommonMethod_backgroundImage(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2335 thisSerializer.release() 2336 } 2337 backgroundBlurStyleAttribute(value: BlurStyle, options?: BackgroundBlurStyleOptions): void { 2338 const thisSerializer: Serializer = Serializer.hold() 2339 let options_type: int32 = RuntimeType.UNDEFINED 2340 options_type = runtimeType(options) 2341 thisSerializer.writeInt8(options_type) 2342 if ((RuntimeType.UNDEFINED) != (options_type)) { 2343 const options_value = options! 2344 thisSerializer.writeBackgroundBlurStyleOptions(options_value) 2345 } 2346 ArkUIGeneratedNativeModule._CommonMethod_backgroundBlurStyle(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2347 thisSerializer.release() 2348 } 2349 foregroundBlurStyleAttribute(value: BlurStyle, options?: ForegroundBlurStyleOptions): void { 2350 const thisSerializer: Serializer = Serializer.hold() 2351 let options_type: int32 = RuntimeType.UNDEFINED 2352 options_type = runtimeType(options) 2353 thisSerializer.writeInt8(options_type) 2354 if ((RuntimeType.UNDEFINED) != (options_type)) { 2355 const options_value = options! 2356 thisSerializer.writeForegroundBlurStyleOptions(options_value) 2357 } 2358 ArkUIGeneratedNativeModule._CommonMethod_foregroundBlurStyle(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2359 thisSerializer.release() 2360 } 2361 focusScopeId0Attribute(id: string, isGroup?: boolean): void { 2362 const thisSerializer: Serializer = Serializer.hold() 2363 let isGroup_type: int32 = RuntimeType.UNDEFINED 2364 isGroup_type = runtimeType(isGroup) 2365 thisSerializer.writeInt8(isGroup_type) 2366 if ((RuntimeType.UNDEFINED) != (isGroup_type)) { 2367 const isGroup_value = isGroup! 2368 thisSerializer.writeBoolean(isGroup_value) 2369 } 2370 ArkUIGeneratedNativeModule._CommonMethod_focusScopeId0(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()) 2371 thisSerializer.release() 2372 } 2373 focusScopeId1Attribute(id: string, isGroup?: boolean, arrowStepOut?: boolean): void { 2374 const thisSerializer: Serializer = Serializer.hold() 2375 let isGroup_type: int32 = RuntimeType.UNDEFINED 2376 isGroup_type = runtimeType(isGroup) 2377 thisSerializer.writeInt8(isGroup_type) 2378 if ((RuntimeType.UNDEFINED) != (isGroup_type)) { 2379 const isGroup_value = isGroup! 2380 thisSerializer.writeBoolean(isGroup_value) 2381 } 2382 let arrowStepOut_type: int32 = RuntimeType.UNDEFINED 2383 arrowStepOut_type = runtimeType(arrowStepOut) 2384 thisSerializer.writeInt8(arrowStepOut_type) 2385 if ((RuntimeType.UNDEFINED) != (arrowStepOut_type)) { 2386 const arrowStepOut_value = arrowStepOut! 2387 thisSerializer.writeBoolean(arrowStepOut_value) 2388 } 2389 ArkUIGeneratedNativeModule._CommonMethod_focusScopeId1(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()) 2390 thisSerializer.release() 2391 } 2392 focusScopePriorityAttribute(scopeId: string, priority?: FocusPriority): void { 2393 const thisSerializer: Serializer = Serializer.hold() 2394 let priority_type: int32 = RuntimeType.UNDEFINED 2395 priority_type = runtimeType(priority) 2396 thisSerializer.writeInt8(priority_type) 2397 if ((RuntimeType.UNDEFINED) != (priority_type)) { 2398 const priority_value = priority! 2399 thisSerializer.writeInt32(priority_value) 2400 } 2401 ArkUIGeneratedNativeModule._CommonMethod_focusScopePriority(this.peer.ptr, scopeId, thisSerializer.asArray(), thisSerializer.length()) 2402 thisSerializer.release() 2403 } 2404 gestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2405 const thisSerializer: Serializer = Serializer.hold() 2406 let gesture_type: int32 = RuntimeType.UNDEFINED 2407 gesture_type = runtimeType(gesture) 2408 if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Tap)) { 2409 thisSerializer.writeInt8(0) 2410 const gesture_0 = unsafeCast<TapGestureInterface>(gesture) 2411 thisSerializer.writeTapGestureInterface(gesture_0) 2412 } 2413 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.LongPress)) { 2414 thisSerializer.writeInt8(1) 2415 const gesture_1 = unsafeCast<LongPressGestureInterface>(gesture) 2416 thisSerializer.writeLongPressGestureInterface(gesture_1) 2417 } 2418 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pan)) { 2419 thisSerializer.writeInt8(2) 2420 const gesture_2 = unsafeCast<PanGestureInterface>(gesture) 2421 thisSerializer.writePanGestureInterface(gesture_2) 2422 } 2423 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pinch)) { 2424 thisSerializer.writeInt8(3) 2425 const gesture_3 = unsafeCast<PinchGestureInterface>(gesture) 2426 thisSerializer.writePinchGestureInterface(gesture_3) 2427 } 2428 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Swipe)) { 2429 thisSerializer.writeInt8(4) 2430 const gesture_4 = unsafeCast<SwipeGestureInterface>(gesture) 2431 thisSerializer.writeSwipeGestureInterface(gesture_4) 2432 } 2433 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Rotation)) { 2434 thisSerializer.writeInt8(5) 2435 const gesture_5 = unsafeCast<RotationGestureInterface>(gesture) 2436 thisSerializer.writeRotationGestureInterface(gesture_5) 2437 } 2438 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Group)) { 2439 thisSerializer.writeInt8(6) 2440 const gesture_6 = unsafeCast<GestureGroupInterface>(gesture) 2441 thisSerializer.writeGestureGroupInterface(gesture_6) 2442 } 2443 let mask_type: int32 = RuntimeType.UNDEFINED 2444 mask_type = runtimeType(mask) 2445 thisSerializer.writeInt8(mask_type) 2446 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2447 const mask_value = mask! 2448 thisSerializer.writeInt32(mask_value) 2449 } 2450 ArkUIGeneratedNativeModule._CommonMethod_gesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2451 thisSerializer.release() 2452 } 2453 priorityGestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2454 const thisSerializer: Serializer = Serializer.hold() 2455 let gesture_type: int32 = RuntimeType.UNDEFINED 2456 gesture_type = runtimeType(gesture) 2457 if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Tap)) { 2458 thisSerializer.writeInt8(0) 2459 const gesture_0 = unsafeCast<TapGestureInterface>(gesture) 2460 thisSerializer.writeTapGestureInterface(gesture_0) 2461 } 2462 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.LongPress)) { 2463 thisSerializer.writeInt8(1) 2464 const gesture_1 = unsafeCast<LongPressGestureInterface>(gesture) 2465 thisSerializer.writeLongPressGestureInterface(gesture_1) 2466 } 2467 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pan)) { 2468 thisSerializer.writeInt8(2) 2469 const gesture_2 = unsafeCast<PanGestureInterface>(gesture) 2470 thisSerializer.writePanGestureInterface(gesture_2) 2471 } 2472 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pinch)) { 2473 thisSerializer.writeInt8(3) 2474 const gesture_3 = unsafeCast<PinchGestureInterface>(gesture) 2475 thisSerializer.writePinchGestureInterface(gesture_3) 2476 } 2477 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Swipe)) { 2478 thisSerializer.writeInt8(4) 2479 const gesture_4 = unsafeCast<SwipeGestureInterface>(gesture) 2480 thisSerializer.writeSwipeGestureInterface(gesture_4) 2481 } 2482 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Rotation)) { 2483 thisSerializer.writeInt8(5) 2484 const gesture_5 = unsafeCast<RotationGestureInterface>(gesture) 2485 thisSerializer.writeRotationGestureInterface(gesture_5) 2486 } 2487 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Group)) { 2488 thisSerializer.writeInt8(6) 2489 const gesture_6 = unsafeCast<GestureGroupInterface>(gesture) 2490 thisSerializer.writeGestureGroupInterface(gesture_6) 2491 } 2492 let mask_type: int32 = RuntimeType.UNDEFINED 2493 mask_type = runtimeType(mask) 2494 thisSerializer.writeInt8(mask_type) 2495 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2496 const mask_value = mask! 2497 thisSerializer.writeInt32(mask_value) 2498 } 2499 ArkUIGeneratedNativeModule._CommonMethod_priorityGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2500 thisSerializer.release() 2501 } 2502 parallelGestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2503 const thisSerializer: Serializer = Serializer.hold() 2504 let gesture_type: int32 = RuntimeType.UNDEFINED 2505 gesture_type = runtimeType(gesture) 2506 if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Tap)) { 2507 thisSerializer.writeInt8(0) 2508 const gesture_0 = unsafeCast<TapGestureInterface>(gesture) 2509 thisSerializer.writeTapGestureInterface(gesture_0) 2510 } 2511 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.LongPress)) { 2512 thisSerializer.writeInt8(1) 2513 const gesture_1 = unsafeCast<LongPressGestureInterface>(gesture) 2514 thisSerializer.writeLongPressGestureInterface(gesture_1) 2515 } 2516 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pan)) { 2517 thisSerializer.writeInt8(2) 2518 const gesture_2 = unsafeCast<PanGestureInterface>(gesture) 2519 thisSerializer.writePanGestureInterface(gesture_2) 2520 } 2521 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Pinch)) { 2522 thisSerializer.writeInt8(3) 2523 const gesture_3 = unsafeCast<PinchGestureInterface>(gesture) 2524 thisSerializer.writePinchGestureInterface(gesture_3) 2525 } 2526 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Swipe)) { 2527 thisSerializer.writeInt8(4) 2528 const gesture_4 = unsafeCast<SwipeGestureInterface>(gesture) 2529 thisSerializer.writeSwipeGestureInterface(gesture_4) 2530 } 2531 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Rotation)) { 2532 thisSerializer.writeInt8(5) 2533 const gesture_5 = unsafeCast<RotationGestureInterface>(gesture) 2534 thisSerializer.writeRotationGestureInterface(gesture_5) 2535 } 2536 else if ((unsafeCast<GestureComponent<Object>>(gesture).type) === (GestureName.Group)) { 2537 thisSerializer.writeInt8(6) 2538 const gesture_6 = unsafeCast<GestureGroupInterface>(gesture) 2539 thisSerializer.writeGestureGroupInterface(gesture_6) 2540 } 2541 let mask_type: int32 = RuntimeType.UNDEFINED 2542 mask_type = runtimeType(mask) 2543 thisSerializer.writeInt8(mask_type) 2544 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2545 const mask_value = mask! 2546 thisSerializer.writeInt32(mask_value) 2547 } 2548 ArkUIGeneratedNativeModule._CommonMethod_parallelGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2549 thisSerializer.release() 2550 } 2551 blurAttribute(value: number, options?: BlurOptions): void { 2552 const thisSerializer: Serializer = Serializer.hold() 2553 let options_type: int32 = RuntimeType.UNDEFINED 2554 options_type = runtimeType(options) 2555 thisSerializer.writeInt8(options_type) 2556 if ((RuntimeType.UNDEFINED) != (options_type)) { 2557 const options_value = options! 2558 thisSerializer.writeBlurOptions(options_value) 2559 } 2560 ArkUIGeneratedNativeModule._CommonMethod_blur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2561 thisSerializer.release() 2562 } 2563 linearGradientBlurAttribute(value: number, options: LinearGradientBlurOptions): void { 2564 const thisSerializer: Serializer = Serializer.hold() 2565 thisSerializer.writeLinearGradientBlurOptions(options) 2566 ArkUIGeneratedNativeModule._CommonMethod_linearGradientBlur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2567 thisSerializer.release() 2568 } 2569 systemBarEffectAttribute(): void { 2570 ArkUIGeneratedNativeModule._CommonMethod_systemBarEffect(this.peer.ptr) 2571 } 2572 backdropBlurAttribute(value: number, options?: BlurOptions): void { 2573 const thisSerializer: Serializer = Serializer.hold() 2574 let options_type: int32 = RuntimeType.UNDEFINED 2575 options_type = runtimeType(options) 2576 thisSerializer.writeInt8(options_type) 2577 if ((RuntimeType.UNDEFINED) != (options_type)) { 2578 const options_value = options! 2579 thisSerializer.writeBlurOptions(options_value) 2580 } 2581 ArkUIGeneratedNativeModule._CommonMethod_backdropBlur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2582 thisSerializer.release() 2583 } 2584 sharedTransitionAttribute(id: string, options?: sharedTransitionOptions): void { 2585 const thisSerializer: Serializer = Serializer.hold() 2586 let options_type: int32 = RuntimeType.UNDEFINED 2587 options_type = runtimeType(options) 2588 thisSerializer.writeInt8(options_type) 2589 if ((RuntimeType.UNDEFINED) != (options_type)) { 2590 const options_value = options! 2591 thisSerializer.writesharedTransitionOptions(options_value) 2592 } 2593 ArkUIGeneratedNativeModule._CommonMethod_sharedTransition(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()) 2594 thisSerializer.release() 2595 } 2596 chainModeAttribute(direction: Axis, style: ChainStyle): void { 2597 ArkUIGeneratedNativeModule._CommonMethod_chainMode(this.peer.ptr, direction, style) 2598 } 2599 dragPreviewOptionsAttribute(value: DragPreviewOptions, options?: DragInteractionOptions): void { 2600 const thisSerializer: Serializer = Serializer.hold() 2601 thisSerializer.writeDragPreviewOptions(value) 2602 let options_type: int32 = RuntimeType.UNDEFINED 2603 options_type = runtimeType(options) 2604 thisSerializer.writeInt8(options_type) 2605 if ((RuntimeType.UNDEFINED) != (options_type)) { 2606 const options_value = options! 2607 thisSerializer.writeDragInteractionOptions(options_value) 2608 } 2609 ArkUIGeneratedNativeModule._CommonMethod_dragPreviewOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2610 thisSerializer.release() 2611 } 2612 overlayAttribute(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): void { 2613 const thisSerializer: Serializer = Serializer.hold() 2614 let value_type: int32 = RuntimeType.UNDEFINED 2615 value_type = runtimeType(value) 2616 if (RuntimeType.STRING == value_type) { 2617 thisSerializer.writeInt8(0) 2618 const value_0 = unsafeCast<string>(value) 2619 thisSerializer.writeString(value_0) 2620 } 2621 else if (RuntimeType.FUNCTION == value_type) { 2622 thisSerializer.writeInt8(1) 2623 const value_1 = unsafeCast<CustomBuilder>(value) 2624 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) 2625 } 2626 else if (RuntimeType.OBJECT == value_type) { 2627 thisSerializer.writeInt8(2) 2628 const value_2 = unsafeCast<ComponentContent>(value) 2629 thisSerializer.writeComponentContent(value_2) 2630 } 2631 let options_type: int32 = RuntimeType.UNDEFINED 2632 options_type = runtimeType(options) 2633 thisSerializer.writeInt8(options_type) 2634 if ((RuntimeType.UNDEFINED) != (options_type)) { 2635 const options_value = options! 2636 thisSerializer.writeOverlayOptions(options_value) 2637 } 2638 ArkUIGeneratedNativeModule._CommonMethod_overlay(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2639 thisSerializer.release() 2640 } 2641 blendModeAttribute(value: BlendMode, type?: BlendApplyType): void { 2642 const thisSerializer: Serializer = Serializer.hold() 2643 let type_type: int32 = RuntimeType.UNDEFINED 2644 type_type = runtimeType(type) 2645 thisSerializer.writeInt8(type_type) 2646 if ((RuntimeType.UNDEFINED) != (type_type)) { 2647 const type_value = type! 2648 thisSerializer.writeInt32(type_value) 2649 } 2650 ArkUIGeneratedNativeModule._CommonMethod_blendMode(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()) 2651 thisSerializer.release() 2652 } 2653 advancedBlendModeAttribute(effect: BlendMode | Blender, type?: BlendApplyType): void { 2654 const thisSerializer: Serializer = Serializer.hold() 2655 let effect_type: int32 = RuntimeType.UNDEFINED 2656 effect_type = runtimeType(effect) 2657 if (RuntimeType.NUMBER == effect_type) { 2658 thisSerializer.writeInt8(0) 2659 const effect_0 = unsafeCast<BlendMode>(effect) 2660 thisSerializer.writeInt32(effect_0) 2661 } 2662 else if (RuntimeType.OBJECT == effect_type) { 2663 thisSerializer.writeInt8(1) 2664 const effect_1 = unsafeCast<Blender>(effect) 2665 thisSerializer.writeBlender(effect_1) 2666 } 2667 let type_type: int32 = RuntimeType.UNDEFINED 2668 type_type = runtimeType(type) 2669 thisSerializer.writeInt8(type_type) 2670 if ((RuntimeType.UNDEFINED) != (type_type)) { 2671 const type_value = type! 2672 thisSerializer.writeInt32(type_value) 2673 } 2674 ArkUIGeneratedNativeModule._CommonMethod_advancedBlendMode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2675 thisSerializer.release() 2676 } 2677 bindPopupAttribute(show: boolean, popup: PopupOptions | CustomPopupOptions): void { 2678 const thisSerializer: Serializer = Serializer.hold() 2679 let popup_type: int32 = RuntimeType.UNDEFINED 2680 popup_type = runtimeType(popup) 2681 if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("message")))) { 2682 thisSerializer.writeInt8(0) 2683 const popup_0 = unsafeCast<PopupOptions>(popup) 2684 thisSerializer.writePopupOptions(popup_0) 2685 } 2686 else if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("builder")))) { 2687 thisSerializer.writeInt8(1) 2688 const popup_1 = unsafeCast<CustomPopupOptions>(popup) 2689 thisSerializer.writeCustomPopupOptions(popup_1) 2690 } 2691 ArkUIGeneratedNativeModule._CommonMethod_bindPopup(this.peer.ptr, +show, thisSerializer.asArray(), thisSerializer.length()) 2692 thisSerializer.release() 2693 } 2694 bindMenu0Attribute(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): void { 2695 const thisSerializer: Serializer = Serializer.hold() 2696 let content_type: int32 = RuntimeType.UNDEFINED 2697 content_type = runtimeType(content) 2698 if (RuntimeType.OBJECT == content_type) { 2699 thisSerializer.writeInt8(0) 2700 const content_0 = unsafeCast<Array<MenuElement>>(content) 2701 thisSerializer.writeInt32(content_0.length) 2702 for (let i = 0; i < content_0.length; i++) { 2703 const content_0_element: MenuElement = content_0[i] 2704 thisSerializer.writeMenuElement(content_0_element) 2705 } 2706 } 2707 else if (RuntimeType.FUNCTION == content_type) { 2708 thisSerializer.writeInt8(1) 2709 const content_1 = unsafeCast<CustomBuilder>(content) 2710 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) 2711 } 2712 let options_type: int32 = RuntimeType.UNDEFINED 2713 options_type = runtimeType(options) 2714 thisSerializer.writeInt8(options_type) 2715 if ((RuntimeType.UNDEFINED) != (options_type)) { 2716 const options_value = options! 2717 thisSerializer.writeMenuOptions(options_value) 2718 } 2719 ArkUIGeneratedNativeModule._CommonMethod_bindMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2720 thisSerializer.release() 2721 } 2722 bindMenu1Attribute(isShow: boolean, content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): void { 2723 const thisSerializer: Serializer = Serializer.hold() 2724 let content_type: int32 = RuntimeType.UNDEFINED 2725 content_type = runtimeType(content) 2726 if (RuntimeType.OBJECT == content_type) { 2727 thisSerializer.writeInt8(0) 2728 const content_0 = unsafeCast<Array<MenuElement>>(content) 2729 thisSerializer.writeInt32(content_0.length) 2730 for (let i = 0; i < content_0.length; i++) { 2731 const content_0_element: MenuElement = content_0[i] 2732 thisSerializer.writeMenuElement(content_0_element) 2733 } 2734 } 2735 else if (RuntimeType.FUNCTION == content_type) { 2736 thisSerializer.writeInt8(1) 2737 const content_1 = unsafeCast<CustomBuilder>(content) 2738 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) 2739 } 2740 let options_type: int32 = RuntimeType.UNDEFINED 2741 options_type = runtimeType(options) 2742 thisSerializer.writeInt8(options_type) 2743 if ((RuntimeType.UNDEFINED) != (options_type)) { 2744 const options_value = options! 2745 thisSerializer.writeMenuOptions(options_value) 2746 } 2747 ArkUIGeneratedNativeModule._CommonMethod_bindMenu1(this.peer.ptr, +isShow, thisSerializer.asArray(), thisSerializer.length()) 2748 thisSerializer.release() 2749 } 2750 bindContextMenu0Attribute(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): void { 2751 const thisSerializer: Serializer = Serializer.hold() 2752 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content)) 2753 let options_type: int32 = RuntimeType.UNDEFINED 2754 options_type = runtimeType(options) 2755 thisSerializer.writeInt8(options_type) 2756 if ((RuntimeType.UNDEFINED) != (options_type)) { 2757 const options_value = options! 2758 thisSerializer.writeContextMenuOptions(options_value) 2759 } 2760 ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), responseType) 2761 thisSerializer.release() 2762 } 2763 bindContextMenu1Attribute(isShown: boolean, content: CustomBuilder, options?: ContextMenuOptions): void { 2764 const thisSerializer: Serializer = Serializer.hold() 2765 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content)) 2766 let options_type: int32 = RuntimeType.UNDEFINED 2767 options_type = runtimeType(options) 2768 thisSerializer.writeInt8(options_type) 2769 if ((RuntimeType.UNDEFINED) != (options_type)) { 2770 const options_value = options! 2771 thisSerializer.writeContextMenuOptions(options_value) 2772 } 2773 ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu1(this.peer.ptr, +isShown, thisSerializer.asArray(), thisSerializer.length()) 2774 thisSerializer.release() 2775 } 2776 bindContentCover0Attribute(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition): void { 2777 const thisSerializer: Serializer = Serializer.hold() 2778 let isShow_type: int32 = RuntimeType.UNDEFINED 2779 isShow_type = runtimeType(isShow) 2780 thisSerializer.writeInt8(isShow_type) 2781 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2782 const isShow_value = isShow! 2783 thisSerializer.writeBoolean(isShow_value) 2784 } 2785 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2786 let type_type: int32 = RuntimeType.UNDEFINED 2787 type_type = runtimeType(type) 2788 thisSerializer.writeInt8(type_type) 2789 if ((RuntimeType.UNDEFINED) != (type_type)) { 2790 const type_value = type! 2791 thisSerializer.writeInt32(type_value) 2792 } 2793 ArkUIGeneratedNativeModule._CommonMethod_bindContentCover0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2794 thisSerializer.release() 2795 } 2796 bindContentCover1Attribute(isShow: boolean | undefined, builder: CustomBuilder, options?: ContentCoverOptions): void { 2797 const thisSerializer: Serializer = Serializer.hold() 2798 let isShow_type: int32 = RuntimeType.UNDEFINED 2799 isShow_type = runtimeType(isShow) 2800 thisSerializer.writeInt8(isShow_type) 2801 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2802 const isShow_value = isShow! 2803 thisSerializer.writeBoolean(isShow_value) 2804 } 2805 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2806 let options_type: int32 = RuntimeType.UNDEFINED 2807 options_type = runtimeType(options) 2808 thisSerializer.writeInt8(options_type) 2809 if ((RuntimeType.UNDEFINED) != (options_type)) { 2810 const options_value = options! 2811 thisSerializer.writeContentCoverOptions(options_value) 2812 } 2813 ArkUIGeneratedNativeModule._CommonMethod_bindContentCover1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2814 thisSerializer.release() 2815 } 2816 bindSheetAttribute(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): void { 2817 const thisSerializer: Serializer = Serializer.hold() 2818 let isShow_type: int32 = RuntimeType.UNDEFINED 2819 isShow_type = runtimeType(isShow) 2820 thisSerializer.writeInt8(isShow_type) 2821 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2822 const isShow_value = isShow! 2823 thisSerializer.writeBoolean(isShow_value) 2824 } 2825 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2826 let options_type: int32 = RuntimeType.UNDEFINED 2827 options_type = runtimeType(options) 2828 thisSerializer.writeInt8(options_type) 2829 if ((RuntimeType.UNDEFINED) != (options_type)) { 2830 const options_value = options! 2831 thisSerializer.writeSheetOptions(options_value) 2832 } 2833 ArkUIGeneratedNativeModule._CommonMethod_bindSheet(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2834 thisSerializer.release() 2835 } 2836 onVisibleAreaChangeAttribute(ratios: Array<number>, event: VisibleAreaChangeCallback): void { 2837 const thisSerializer: Serializer = Serializer.hold() 2838 thisSerializer.writeInt32(ratios.length) 2839 for (let i = 0; i < ratios.length; i++) { 2840 const ratios_element: number = ratios[i] 2841 thisSerializer.writeNumber(ratios_element) 2842 } 2843 thisSerializer.holdAndWriteCallback(event) 2844 ArkUIGeneratedNativeModule._CommonMethod_onVisibleAreaChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2845 thisSerializer.release() 2846 } 2847 keyboardShortcutAttribute(value: string | FunctionKey, keys: Array<ModifierKey>, action?: (() => void)): void { 2848 const thisSerializer: Serializer = Serializer.hold() 2849 let value_type: int32 = RuntimeType.UNDEFINED 2850 value_type = runtimeType(value) 2851 if (RuntimeType.STRING == value_type) { 2852 thisSerializer.writeInt8(0) 2853 const value_0 = unsafeCast<string>(value) 2854 thisSerializer.writeString(value_0) 2855 } 2856 else if (RuntimeType.NUMBER == value_type) { 2857 thisSerializer.writeInt8(1) 2858 const value_1 = unsafeCast<FunctionKey>(value) 2859 thisSerializer.writeInt32(value_1) 2860 } 2861 thisSerializer.writeInt32(keys.length) 2862 for (let i = 0; i < keys.length; i++) { 2863 const keys_element: ModifierKey = keys[i] 2864 thisSerializer.writeInt32(keys_element) 2865 } 2866 let action_type: int32 = RuntimeType.UNDEFINED 2867 action_type = runtimeType(action) 2868 thisSerializer.writeInt8(action_type) 2869 if ((RuntimeType.UNDEFINED) != (action_type)) { 2870 const action_value = action! 2871 thisSerializer.holdAndWriteCallback(action_value) 2872 } 2873 ArkUIGeneratedNativeModule._CommonMethod_keyboardShortcut(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 2874 thisSerializer.release() 2875 } 2876} 2877export interface ArkCommonMethodAttributes { 2878 width?: Length 2879 height?: Length 2880 drawModifier?: DrawModifier | undefined 2881 responseRegion?: Array<Rectangle> | Rectangle 2882 mouseResponseRegion?: Array<Rectangle> | Rectangle 2883 size?: SizeOptions 2884 constraintSize?: ConstraintSizeOptions 2885 touchable?: boolean 2886 hitTestBehavior?: HitTestMode 2887 onChildTouchTest?: ((value: Array<TouchTestInfo>) => TouchResult) 2888 layoutWeight?: number | string 2889 chainWeight?: ChainWeightOptions 2890 padding?: Padding | Length | LocalizedPadding 2891 safeAreaPadding?: Padding | LengthMetrics | LocalizedPadding 2892 margin?: Margin | Length | LocalizedMargin 2893 backgroundColor?: ResourceColor 2894 pixelRound?: PixelRoundPolicy 2895 backgroundImageSize?: SizeOptions | ImageSize 2896 backgroundImagePosition?: Position | Alignment 2897 backgroundEffect?: BackgroundEffectOptions 2898 backgroundImageResizable?: ResizableOptions 2899 foregroundEffect?: ForegroundEffectOptions 2900 visualEffect?: VisualEffect 2901 backgroundFilter?: Filter 2902 foregroundFilter?: Filter 2903 compositingFilter?: Filter 2904 opacity?: number | Resource 2905 border?: BorderOptions 2906 borderStyle?: BorderStyle | EdgeStyles 2907 borderWidth?: Length | EdgeWidths | LocalizedEdgeWidths 2908 borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors 2909 borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses 2910 borderImage?: BorderImageOption 2911 outline?: OutlineOptions 2912 outlineStyle?: OutlineStyle | EdgeOutlineStyles 2913 outlineWidth?: Dimension | EdgeOutlineWidths 2914 outlineColor?: ResourceColor | EdgeColors | LocalizedEdgeColors 2915 outlineRadius?: Dimension | OutlineRadiuses 2916 foregroundColor?: ResourceColor | ColoringStrategy 2917 onClick?: ((event: ClickEvent) => void) 2918 onHover?: ((isHover: boolean, event: HoverEvent) => void) 2919 onAccessibilityHover?: AccessibilityCallback 2920 hoverEffect?: HoverEffect 2921 onMouse?: ((event: MouseEvent) => void) 2922 onTouch?: ((event: TouchEvent) => void) 2923 onKeyEvent?: ((event: KeyEvent) => void) 2924 onKeyPreIme?: ((parameter: KeyEvent) => boolean) 2925 focusable?: boolean 2926 onFocus?: (() => void) 2927 onBlur?: (() => void) 2928 tabIndex?: number 2929 defaultFocus?: boolean 2930 groupDefaultFocus?: boolean 2931 focusOnTouch?: boolean 2932 focusBox?: FocusBoxStyle 2933 animation?: AnimateParam 2934 transition?: TransitionOptions | TransitionEffect 2935 motionBlur?: MotionBlurOptions 2936 brightness?: number 2937 contrast?: number 2938 grayscale?: number 2939 colorBlend?: Color | string | Resource 2940 saturate?: number 2941 sepia?: number 2942 invert?: number | InvertOptions 2943 hueRotate?: number | string 2944 useShadowBatching?: boolean 2945 useEffect?: boolean 2946 renderGroup?: boolean 2947 freeze?: boolean 2948 translate?: TranslateOptions 2949 scale?: ScaleOptions 2950 gridSpan?: number 2951 gridOffset?: number 2952 rotate?: RotateOptions 2953 transform?: Object 2954 onAppear?: (() => void) 2955 onDisAppear?: (() => void) 2956 onAttach?: (() => void) 2957 onDetach?: (() => void) 2958 onAreaChange?: ((oldValue: Area, newValue: Area) => void) 2959 visibility?: Visibility 2960 flexGrow?: number 2961 flexShrink?: number 2962 flexBasis?: number | string 2963 alignSelf?: ItemAlign 2964 displayPriority?: number 2965 zIndex?: number 2966 direction?: Direction 2967 align?: Alignment 2968 position?: Position | Edges | LocalizedEdges 2969 markAnchor?: Position | LocalizedPosition 2970 offset?: Position | Edges | LocalizedEdges 2971 enabled?: boolean 2972 useSizeType?: { xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } } 2973 alignRules?: AlignRuleOption 2974 aspectRatio?: number 2975 clickEffect?: ClickEffect | undefined 2976 onDragStart?: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo) 2977 onDragEnter?: ((event: DragEvent, extraParams?: string) => void) 2978 onDragMove?: ((event: DragEvent, extraParams?: string) => void) 2979 onDragLeave?: ((event: DragEvent, extraParams?: string) => void) 2980 onDrop?: ((event: DragEvent, extraParams?: string) => void) 2981 onDragEnd?: ((event: DragEvent, extraParams?: string) => void) 2982 allowDrop?: Array<UniformDataType> | undefined 2983 draggable?: boolean 2984 dragPreview?: CustomBuilder | DragItemInfo | string 2985 onPreDrag?: ((parameter: PreDragStatus) => void) 2986 linearGradient?: { angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean } 2987 sweepGradient?: { center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean } 2988 radialGradient?: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean } 2989 motionPath?: MotionPathOptions 2990 shadow?: ShadowOptions | ShadowStyle 2991 clip?: boolean | undefined 2992 clipShape?: CircleShape | EllipseShape | PathShape | RectShape 2993 mask?: ProgressMask | undefined 2994 maskShape?: CircleShape | EllipseShape | PathShape | RectShape 2995 key?: string 2996 id?: string 2997 geometryTransition?: string 2998 stateStyles?: StateStyles 2999 restoreId?: number 3000 sphericalEffect?: number 3001 lightUpEffect?: number 3002 pixelStretchEffect?: PixelStretchEffectOptions 3003 accessibilityGroup?: boolean 3004 accessibilityText?: string 3005 accessibilityTextHint?: string 3006 accessibilityDescription?: string 3007 accessibilityLevel?: string 3008 accessibilityVirtualNode?: CustomBuilder 3009 accessibilityChecked?: boolean 3010 accessibilitySelected?: boolean 3011 obscured?: Array<ObscuredReasons> 3012 reuseId?: string 3013 renderFit?: RenderFit 3014 attributeModifier?: AttributeModifier<object> 3015 gestureModifier?: GestureModifier 3016 backgroundBrightness?: BackgroundBrightnessOptions 3017 onGestureJudgeBegin?: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) 3018 onGestureRecognizerJudgeBegin?: GestureRecognizerJudgeBeginCallback 3019 shouldBuiltInRecognizerParallelWith?: ShouldBuiltInRecognizerParallelWithCallback 3020 monopolizeEvents?: boolean 3021 onTouchIntercept?: ((parameter: TouchEvent) => HitTestMode) 3022 onSizeChange?: SizeChangeCallback 3023} 3024export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { 3025 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3026 super(peerPtr, id, name, flags) 3027 } 3028 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { 3029 const peerId = PeerNode.nextId() 3030 const _peerPtr = ArkUIGeneratedNativeModule._CommonShapeMethod_construct(peerId, flags) 3031 const _peer = new ArkCommonShapeMethodPeer(_peerPtr, peerId, "CommonShapeMethod", flags) 3032 component?.setPeer(_peer) 3033 return _peer 3034 } 3035 strokeAttribute(value: ResourceColor): void { 3036 const thisSerializer: Serializer = Serializer.hold() 3037 let value_type: int32 = RuntimeType.UNDEFINED 3038 value_type = runtimeType(value) 3039 if (((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) { 3040 thisSerializer.writeInt8(0) 3041 const value_0 = unsafeCast<Color>(value) 3042 thisSerializer.writeInt32(value_0) 3043 } 3044 else if (RuntimeType.NUMBER == value_type) { 3045 thisSerializer.writeInt8(1) 3046 const value_1 = unsafeCast<number>(value) 3047 thisSerializer.writeNumber(value_1) 3048 } 3049 else if (RuntimeType.STRING == value_type) { 3050 thisSerializer.writeInt8(2) 3051 const value_2 = unsafeCast<string>(value) 3052 thisSerializer.writeString(value_2) 3053 } 3054 else if (RuntimeType.OBJECT == value_type) { 3055 thisSerializer.writeInt8(3) 3056 const value_3 = unsafeCast<Resource>(value) 3057 thisSerializer.writeResource(value_3) 3058 } 3059 ArkUIGeneratedNativeModule._CommonShapeMethod_stroke(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3060 thisSerializer.release() 3061 } 3062 fillAttribute(value: ResourceColor): void { 3063 const thisSerializer: Serializer = Serializer.hold() 3064 let value_type: int32 = RuntimeType.UNDEFINED 3065 value_type = runtimeType(value) 3066 if (((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) { 3067 thisSerializer.writeInt8(0) 3068 const value_0 = unsafeCast<Color>(value) 3069 thisSerializer.writeInt32(value_0) 3070 } 3071 else if (RuntimeType.NUMBER == value_type) { 3072 thisSerializer.writeInt8(1) 3073 const value_1 = unsafeCast<number>(value) 3074 thisSerializer.writeNumber(value_1) 3075 } 3076 else if (RuntimeType.STRING == value_type) { 3077 thisSerializer.writeInt8(2) 3078 const value_2 = unsafeCast<string>(value) 3079 thisSerializer.writeString(value_2) 3080 } 3081 else if (RuntimeType.OBJECT == value_type) { 3082 thisSerializer.writeInt8(3) 3083 const value_3 = unsafeCast<Resource>(value) 3084 thisSerializer.writeResource(value_3) 3085 } 3086 ArkUIGeneratedNativeModule._CommonShapeMethod_fill(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3087 thisSerializer.release() 3088 } 3089 strokeDashOffsetAttribute(value: number | string): void { 3090 const thisSerializer: Serializer = Serializer.hold() 3091 let value_type: int32 = RuntimeType.UNDEFINED 3092 value_type = runtimeType(value) 3093 if (RuntimeType.NUMBER == value_type) { 3094 thisSerializer.writeInt8(0) 3095 const value_0 = unsafeCast<number>(value) 3096 thisSerializer.writeNumber(value_0) 3097 } 3098 else if (RuntimeType.STRING == value_type) { 3099 thisSerializer.writeInt8(1) 3100 const value_1 = unsafeCast<string>(value) 3101 thisSerializer.writeString(value_1) 3102 } 3103 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeDashOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3104 thisSerializer.release() 3105 } 3106 strokeLineCapAttribute(value: LineCapStyle): void { 3107 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineCap(this.peer.ptr, value) 3108 } 3109 strokeLineJoinAttribute(value: LineJoinStyle): void { 3110 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineJoin(this.peer.ptr, value) 3111 } 3112 strokeMiterLimitAttribute(value: number | string): void { 3113 const thisSerializer: Serializer = Serializer.hold() 3114 let value_type: int32 = RuntimeType.UNDEFINED 3115 value_type = runtimeType(value) 3116 if (RuntimeType.NUMBER == value_type) { 3117 thisSerializer.writeInt8(0) 3118 const value_0 = unsafeCast<number>(value) 3119 thisSerializer.writeNumber(value_0) 3120 } 3121 else if (RuntimeType.STRING == value_type) { 3122 thisSerializer.writeInt8(1) 3123 const value_1 = unsafeCast<string>(value) 3124 thisSerializer.writeString(value_1) 3125 } 3126 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeMiterLimit(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3127 thisSerializer.release() 3128 } 3129 strokeOpacityAttribute(value: number | string | Resource): void { 3130 const thisSerializer: Serializer = Serializer.hold() 3131 let value_type: int32 = RuntimeType.UNDEFINED 3132 value_type = runtimeType(value) 3133 if (RuntimeType.NUMBER == value_type) { 3134 thisSerializer.writeInt8(0) 3135 const value_0 = unsafeCast<number>(value) 3136 thisSerializer.writeNumber(value_0) 3137 } 3138 else if (RuntimeType.STRING == value_type) { 3139 thisSerializer.writeInt8(1) 3140 const value_1 = unsafeCast<string>(value) 3141 thisSerializer.writeString(value_1) 3142 } 3143 else if (RuntimeType.OBJECT == value_type) { 3144 thisSerializer.writeInt8(2) 3145 const value_2 = unsafeCast<Resource>(value) 3146 thisSerializer.writeResource(value_2) 3147 } 3148 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3149 thisSerializer.release() 3150 } 3151 fillOpacityAttribute(value: number | string | Resource): void { 3152 const thisSerializer: Serializer = Serializer.hold() 3153 let value_type: int32 = RuntimeType.UNDEFINED 3154 value_type = runtimeType(value) 3155 if (RuntimeType.NUMBER == value_type) { 3156 thisSerializer.writeInt8(0) 3157 const value_0 = unsafeCast<number>(value) 3158 thisSerializer.writeNumber(value_0) 3159 } 3160 else if (RuntimeType.STRING == value_type) { 3161 thisSerializer.writeInt8(1) 3162 const value_1 = unsafeCast<string>(value) 3163 thisSerializer.writeString(value_1) 3164 } 3165 else if (RuntimeType.OBJECT == value_type) { 3166 thisSerializer.writeInt8(2) 3167 const value_2 = unsafeCast<Resource>(value) 3168 thisSerializer.writeResource(value_2) 3169 } 3170 ArkUIGeneratedNativeModule._CommonShapeMethod_fillOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3171 thisSerializer.release() 3172 } 3173 strokeWidthAttribute(value: Length): void { 3174 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeWidth(this.peer.ptr, value) 3175 } 3176 antiAliasAttribute(value: boolean): void { 3177 ArkUIGeneratedNativeModule._CommonShapeMethod_antiAlias(this.peer.ptr, +value) 3178 } 3179 strokeDashArrayAttribute(value: Array<Length>): void { 3180 const thisSerializer: Serializer = Serializer.hold() 3181 thisSerializer.writeInt32(value.length) 3182 for (let i = 0; i < value.length; i++) { 3183 const value_element: Length = value[i] 3184 thisSerializer.writeLength(value_element) 3185 } 3186 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeDashArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3187 thisSerializer.release() 3188 } 3189} 3190export interface ArkCommonShapeMethodAttributes extends ArkCommonMethodAttributes { 3191 stroke?: ResourceColor 3192 fill?: ResourceColor 3193 strokeDashOffset?: number | string 3194 strokeLineCap?: LineCapStyle 3195 strokeLineJoin?: LineJoinStyle 3196 strokeMiterLimit?: number | string 3197 strokeOpacity?: number | string | Resource 3198 fillOpacity?: number | string | Resource 3199 strokeWidth?: Length 3200 antiAlias?: boolean 3201 strokeDashArray?: Array<Length> 3202} 3203export class ArkCommonPeer extends ArkCommonMethodPeer { 3204 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3205 super(peerPtr, id, name, flags) 3206 } 3207 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonPeer { 3208 const peerId = PeerNode.nextId() 3209 const _peerPtr = ArkUIGeneratedNativeModule._Common_construct(peerId, flags) 3210 const _peer = new ArkCommonPeer(_peerPtr, peerId, "Common", flags) 3211 component?.setPeer(_peer) 3212 return _peer 3213 } 3214 setCommonOptionsAttribute(): void { 3215 ArkUIGeneratedNativeModule._CommonInterface_setCommonOptions(this.peer.ptr) 3216 } 3217} 3218export interface ArkCommonAttributes extends ArkCommonMethodAttributes { 3219} 3220export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { 3221 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3222 super(peerPtr, id, name, flags) 3223 } 3224 public static create(component?: ComponentBase, flags: int32 = 0): ArkScrollableCommonMethodPeer { 3225 const peerId = PeerNode.nextId() 3226 const _peerPtr = ArkUIGeneratedNativeModule._ScrollableCommonMethod_construct(peerId, flags) 3227 const _peer = new ArkScrollableCommonMethodPeer(_peerPtr, peerId, "ScrollableCommonMethod", flags) 3228 component?.setPeer(_peer) 3229 return _peer 3230 } 3231 scrollBarAttribute(value: BarState): void { 3232 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBar(this.peer.ptr, value) 3233 } 3234 scrollBarColorAttribute(value: Color | number | string): void { 3235 const thisSerializer: Serializer = Serializer.hold() 3236 let value_type: int32 = RuntimeType.UNDEFINED 3237 value_type = runtimeType(value) 3238 if (((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast<int32>(value)) >= (0)) && ((unsafeCast<int32>(value)) <= (11))) { 3239 thisSerializer.writeInt8(0) 3240 const value_0 = unsafeCast<Color>(value) 3241 thisSerializer.writeInt32(value_0) 3242 } 3243 else if (RuntimeType.NUMBER == value_type) { 3244 thisSerializer.writeInt8(1) 3245 const value_1 = unsafeCast<number>(value) 3246 thisSerializer.writeNumber(value_1) 3247 } 3248 else if (RuntimeType.STRING == value_type) { 3249 thisSerializer.writeInt8(2) 3250 const value_2 = unsafeCast<string>(value) 3251 thisSerializer.writeString(value_2) 3252 } 3253 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBarColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3254 thisSerializer.release() 3255 } 3256 scrollBarWidthAttribute(value: number | string): void { 3257 const thisSerializer: Serializer = Serializer.hold() 3258 let value_type: int32 = RuntimeType.UNDEFINED 3259 value_type = runtimeType(value) 3260 if (RuntimeType.NUMBER == value_type) { 3261 thisSerializer.writeInt8(0) 3262 const value_0 = unsafeCast<number>(value) 3263 thisSerializer.writeNumber(value_0) 3264 } 3265 else if (RuntimeType.STRING == value_type) { 3266 thisSerializer.writeInt8(1) 3267 const value_1 = unsafeCast<string>(value) 3268 thisSerializer.writeString(value_1) 3269 } 3270 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBarWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3271 thisSerializer.release() 3272 } 3273 nestedScrollAttribute(value: NestedScrollOptions): void { 3274 const thisSerializer: Serializer = Serializer.hold() 3275 thisSerializer.writeNestedScrollOptions(value) 3276 ArkUIGeneratedNativeModule._ScrollableCommonMethod_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3277 thisSerializer.release() 3278 } 3279 enableScrollInteractionAttribute(value: boolean): void { 3280 ArkUIGeneratedNativeModule._ScrollableCommonMethod_enableScrollInteraction(this.peer.ptr, +value) 3281 } 3282 frictionAttribute(value: number | Resource): void { 3283 const thisSerializer: Serializer = Serializer.hold() 3284 let value_type: int32 = RuntimeType.UNDEFINED 3285 value_type = runtimeType(value) 3286 if (RuntimeType.NUMBER == value_type) { 3287 thisSerializer.writeInt8(0) 3288 const value_0 = unsafeCast<number>(value) 3289 thisSerializer.writeNumber(value_0) 3290 } 3291 else if (RuntimeType.OBJECT == value_type) { 3292 thisSerializer.writeInt8(1) 3293 const value_1 = unsafeCast<Resource>(value) 3294 thisSerializer.writeResource(value_1) 3295 } 3296 ArkUIGeneratedNativeModule._ScrollableCommonMethod_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3297 thisSerializer.release() 3298 } 3299 onScrollAttribute(value: ((first: number, last: number) => void)): void { 3300 const thisSerializer: Serializer = Serializer.hold() 3301 thisSerializer.holdAndWriteCallback(value) 3302 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3303 thisSerializer.release() 3304 } 3305 onWillScrollAttribute(value?: ScrollOnWillScrollCallback): void { 3306 const thisSerializer: Serializer = Serializer.hold() 3307 let value_type: int32 = RuntimeType.UNDEFINED 3308 value_type = runtimeType(value) 3309 thisSerializer.writeInt8(value_type) 3310 if ((RuntimeType.UNDEFINED) != (value_type)) { 3311 const value_value = value! 3312 thisSerializer.holdAndWriteCallback(value_value) 3313 } 3314 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onWillScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3315 thisSerializer.release() 3316 } 3317 onDidScrollAttribute(value: ScrollOnScrollCallback): void { 3318 const thisSerializer: Serializer = Serializer.hold() 3319 thisSerializer.holdAndWriteCallback(value) 3320 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onDidScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3321 thisSerializer.release() 3322 } 3323 onReachStartAttribute(value: (() => void)): void { 3324 const thisSerializer: Serializer = Serializer.hold() 3325 thisSerializer.holdAndWriteCallback(value) 3326 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onReachStart(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3327 thisSerializer.release() 3328 } 3329 onReachEndAttribute(value: (() => void)): void { 3330 const thisSerializer: Serializer = Serializer.hold() 3331 thisSerializer.holdAndWriteCallback(value) 3332 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onReachEnd(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3333 thisSerializer.release() 3334 } 3335 onScrollStartAttribute(value: (() => void)): void { 3336 const thisSerializer: Serializer = Serializer.hold() 3337 thisSerializer.holdAndWriteCallback(value) 3338 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScrollStart(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3339 thisSerializer.release() 3340 } 3341 onScrollStopAttribute(value: (() => void)): void { 3342 const thisSerializer: Serializer = Serializer.hold() 3343 thisSerializer.holdAndWriteCallback(value) 3344 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScrollStop(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3345 thisSerializer.release() 3346 } 3347 flingSpeedLimitAttribute(value: number): void { 3348 ArkUIGeneratedNativeModule._ScrollableCommonMethod_flingSpeedLimit(this.peer.ptr, value) 3349 } 3350 clipContentAttribute(value: ContentClipMode | RectShape): void { 3351 const thisSerializer: Serializer = Serializer.hold() 3352 let value_type: int32 = RuntimeType.UNDEFINED 3353 value_type = runtimeType(value) 3354 if (RuntimeType.NUMBER == value_type) { 3355 thisSerializer.writeInt8(0) 3356 const value_0 = unsafeCast<ContentClipMode>(value) 3357 thisSerializer.writeInt32(value_0) 3358 } 3359 else if (RuntimeType.OBJECT == value_type) { 3360 thisSerializer.writeInt8(1) 3361 const value_1 = unsafeCast<RectShape>(value) 3362 thisSerializer.writeRectShape(value_1) 3363 } 3364 ArkUIGeneratedNativeModule._ScrollableCommonMethod_clipContent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3365 thisSerializer.release() 3366 } 3367 edgeEffectAttribute(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): void { 3368 const thisSerializer: Serializer = Serializer.hold() 3369 let options_type: int32 = RuntimeType.UNDEFINED 3370 options_type = runtimeType(options) 3371 thisSerializer.writeInt8(options_type) 3372 if ((RuntimeType.UNDEFINED) != (options_type)) { 3373 const options_value = options! 3374 thisSerializer.writeEdgeEffectOptions(options_value) 3375 } 3376 ArkUIGeneratedNativeModule._ScrollableCommonMethod_edgeEffect(this.peer.ptr, edgeEffect, thisSerializer.asArray(), thisSerializer.length()) 3377 thisSerializer.release() 3378 } 3379 fadingEdgeAttribute(enabled?: boolean, options?: FadingEdgeOptions): void { 3380 const thisSerializer: Serializer = Serializer.hold() 3381 let enabled_type: int32 = RuntimeType.UNDEFINED 3382 enabled_type = runtimeType(enabled) 3383 thisSerializer.writeInt8(enabled_type) 3384 if ((RuntimeType.UNDEFINED) != (enabled_type)) { 3385 const enabled_value = enabled! 3386 thisSerializer.writeBoolean(enabled_value) 3387 } 3388 let options_type: int32 = RuntimeType.UNDEFINED 3389 options_type = runtimeType(options) 3390 thisSerializer.writeInt8(options_type) 3391 if ((RuntimeType.UNDEFINED) != (options_type)) { 3392 const options_value = options! 3393 thisSerializer.writeFadingEdgeOptions(options_value) 3394 } 3395 ArkUIGeneratedNativeModule._ScrollableCommonMethod_fadingEdge(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) 3396 thisSerializer.release() 3397 } 3398} 3399export interface ArkScrollableCommonMethodAttributes extends ArkCommonMethodAttributes { 3400} 3401