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 16import { runtimeType, Tags, RuntimeType, SerializerBase, DeserializerBase, CallbackResource } from "@koalaui/interop" 17import { KPointer, InteropNativeModule } from "@koalaui/interop" 18import { MaterializedBase } from "@koalaui/interop" 19import { int32, float32, unsafeCast } from "@koalaui/common" 20import { CallbackKind } from "./CallbackKind" 21import { Serializer } from "./Serializer" 22 23import { Finalizable } from "@koalaui/interop" 24import { CallbackTransformer } from "./CallbackTransformer" 25import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, DrawContext, EventTarget, SourceType, SourceTool, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, Context, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle, OnWillScrollCallback, ScrollResult } from "./../ArkCommonInterfaces" 26import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" 27import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" 28import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" 29import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" 30import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" 31import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" 32import { ErrorCallback, LengthUnit, WebHeader, TextModifier, Want, ShapeSize, PathShapeOptions, RectShapeOptions, RoundRectShapeOptions, RectWidthStyle, RectHeightStyle, SymbolEffect, FontOptions, SnapshotOptions, EffectScope, EffectDirection, NodeController } from "./../ArkArkuiExternalInterfaces" 33import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" 34import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" 35import { ImageErrorCallback, ResizableOptions, DrawingLattice, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" 36import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationTitleMode } from "./../ArkNavigationInterfaces" 37import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute } from "./../ArkIsolatedComponentInterfaces" 38import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorDeleteDirection, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" 39import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" 40import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, RenderMode } from "./../ArkWebInterfaces" 41import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" 42import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" 43import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" 44import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" 45import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" 46import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" 47import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" 48import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" 49import { OnScrollVisibleContentChangeCallback, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, ListItemGroupArea, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" 50import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" 51import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" 52import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" 53import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" 54import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" 55import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" 56import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Length, Margin, Padding, SizeOptions, Position, Area, ResourceStr, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, LocalizedBorderRadiuses, LengthMetricsUnit, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" 57import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" 58import { Resource } from "./../ArkResourceInterfaces" 59import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" 60import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" 61import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" 62import { TextBackgroundStyle } from "./../ArkSpanInterfaces" 63import { Color, ColoringStrategy, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, FontStyle, FontWeight, Curve, PlayMode, TextHeightAdaptivePolicy, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" 64import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyleOptions, StyledStringKey, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" 65import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" 66import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" 67import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" 68import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" 69import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" 70import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" 71import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" 72import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" 73import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" 74import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" 75import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" 76import { FingerInfo, GestureMode, GestureType, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" 77import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" 78import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" 79import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" 80import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" 81import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" 82import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" 83import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" 84import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" 85import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" 86import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" 87import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" 88import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" 89import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" 90import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" 91import { ColorMetrics, ColorMetricsInternal } from "./../ArkColorMetricsMaterialized" 92import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" 93import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" 94import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" 95import { WebviewController, WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" 96import { WebController, WebControllerInternal } from "./../ArkWebControllerMaterialized" 97import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" 98import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerOptions, TimePickerFormat } from "./../ArkTimePickerInterfaces" 99import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" 100import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" 101import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" 102import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" 103import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" 104import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" 105import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 106import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" 107import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" 108import { ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" 109import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" 110import { Scene, Component3DAttribute, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" 111import { GestureGroupInterface, GestureGroupInterfaceInternal } from "./../ArkGestureGroupInterfaceMaterialized" 112import { TapGestureInterface, TapGestureInterfaceInternal } from "./../ArkTapGestureInterfaceMaterialized" 113import { LongPressGestureInterface, LongPressGestureInterfaceInternal } from "./../ArkLongPressGestureInterfaceMaterialized" 114import { PanGestureInterface, PanGestureInterfaceInternal } from "./../ArkPanGestureInterfaceMaterialized" 115import { PinchGestureInterface, PinchGestureInterfaceInternal } from "./../ArkPinchGestureInterfaceMaterialized" 116import { SwipeGestureInterface, SwipeGestureInterfaceInternal } from "./../ArkSwipeGestureInterfaceMaterialized" 117import { RotationGestureInterface, RotationGestureInterfaceInternal } from "./../ArkRotationGestureInterfaceMaterialized" 118import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" 119import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" 120import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" 121import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" 122import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" 123import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" 124import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" 125import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" 126import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" 127import { CircleShape, CircleShapeInternal } from "./../ArkCircleShapeMaterialized" 128import { EllipseShape, EllipseShapeInternal } from "./../ArkEllipseShapeMaterialized" 129import { PathShape, PathShapeInternal } from "./../ArkPathShapeMaterialized" 130import { RectShape, RectShapeInternal } from "./../ArkRectShapeMaterialized" 131import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" 132import { AttributeModifier } from "./../../handwritten" 133import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" 134import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" 135import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" 136import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" 137import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" 138import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" 139import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" 140import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" 141import { GestureControl } from "./../ArkGestureControlNamespace" 142import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" 143import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" 144import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" 145import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" 146import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" 147import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" 148import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" 149import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" 150import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" 151import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" 152import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" 153import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" 154import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" 155import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" 156import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" 157import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" 158import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" 159import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" 160import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" 161import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" 162import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" 163import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" 164import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" 165import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" 166import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" 167import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" 168import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" 169import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" 170import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" 171import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" 172import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" 173import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" 174import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" 175import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" 176import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" 177import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" 178import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" 179import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" 180import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" 181import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" 182import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" 183import { Indicator } from "./../ArkIndicatorBuilder" 184import { DotIndicator } from "./../ArkDotIndicatorBuilder" 185import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" 186import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" 187import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" 188import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" 189import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" 190import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" 191import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" 192import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" 193import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" 194import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" 195import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" 196import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" 197import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" 198import { ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, ProgressStatus, LinearStyleOptions, ProgressOptions, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" 199import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" 200import { PanelMode } from "./../ArkPanelInterfaces" 201import { MenuItemOptions } from "./../ArkMenuItemInterfaces" 202import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" 203import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" 204import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" 205import { GridAttribute, GridDirection, GridItemAlignment, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" 206import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" 207import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" 208import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" 209import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" 210import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" 211import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" 212import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" 213import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" 214import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" 215import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" 216import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" 217import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" 218import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" 219import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" 220import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" 221import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" 222import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" 223import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" 224import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" 225import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" 226import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" 227import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" 228import { TextTimerOptions } from "./../ArkTextTimerInterfaces" 229import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" 230import { TextClockOptions } from "./../ArkTextClockInterfaces" 231import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" 232import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" 233import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" 234import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" 235import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" 236import { StackOptions } from "./../ArkStackInterfaces" 237import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" 238import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" 239import { RowOptions } from "./../ArkRowInterfaces" 240import { RootSceneSession } from "./../ArkRootSceneInterfaces" 241import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" 242import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" 243import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" 244import { PolylineOptions } from "./../ArkPolylineInterfaces" 245import { Point } from "./../ArkPointInterfaces" 246import { PolygonOptions } from "./../ArkPolygonInterfaces" 247import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" 248import { PathOptions } from "./../ArkPathInterfaces" 249import { PasteButtonOnClickResult, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" 250import { RouteInfo } from "./../ArkNavRouterInterfaces" 251import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" 252import { MarqueeOptions } from "./../ArkMarqueeInterfaces" 253import { LocationButtonOnClickResult, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" 254import { ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" 255import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" 256import { LineOptions } from "./../ArkLineInterfaces" 257import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" 258import { GridContainerOptions, SizeType } from "./../ArkGridContainerInterfaces" 259import { GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" 260import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" 261import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" 262import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" 263import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" 264import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" 265import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" 266import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" 267import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" 268import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" 269import { FormLinkOptions } from "./../ArkFormLinkInterfaces" 270import { FormCallbackInfo, FormInfo, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" 271import { BusinessError } from "./../ArkBaseInterfaces" 272import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" 273import { EllipseOptions } from "./../ArkEllipseInterfaces" 274import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" 275import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" 276import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" 277import { View, ViewInternal } from "./../ArkViewMaterialized" 278import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" 279import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" 280import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" 281import { ColumnOptions } from "./../ArkColumnInterfaces" 282import { CircleOptions } from "./../ArkCircleInterfaces" 283import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" 284import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" 285import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" 286import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" 287import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" 288import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" 289import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" 290 291export class Deserializer extends DeserializerBase { 292 readResource(): Resource { 293 let valueDeserializer: Deserializer = this 294 const bundleName_result: string = (valueDeserializer.readString() as string) 295 const moduleName_result: string = (valueDeserializer.readString() as string) 296 const id_result: number = (valueDeserializer.readNumber() as number) 297 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 298 let params_buf: Array<string> | undefined|undefined 299 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 300 { 301 const params_buf__length: int32 = valueDeserializer.readInt32() 302 let params_buf_: Array<string> = new Array<string>(params_buf__length) 303 for (let params_buf__i = 0; params_buf__i < params_buf__length; params_buf__i++) { 304 params_buf_[params_buf__i] = (valueDeserializer.readString() as string) 305 } 306 params_buf = params_buf_ 307 } 308 const params_result: Array<string> | undefined|undefined = params_buf 309 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 310 let type_buf: number | undefined|undefined 311 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 312 { 313 type_buf = (valueDeserializer.readNumber() as number) 314 } 315 const type_result: number | undefined|undefined = type_buf 316 let value: Resource = ({bundleName: bundleName_result, moduleName: moduleName_result, id: id_result, params: params_result, type: type_result} as Resource) 317 return value 318 } 319 readPixelMap(): PixelMap { 320 let valueDeserializer: Deserializer = this 321 let ptr: KPointer = valueDeserializer.readPointer() 322 return PixelMapInternal.fromPtr(ptr) 323 } 324 readLengthMetrics(): LengthMetrics { 325 let valueDeserializer: Deserializer = this 326 let ptr: KPointer = valueDeserializer.readPointer() 327 return LengthMetricsInternal.fromPtr(ptr) 328 } 329 readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { 330 let valueDeserializer: Deserializer = this 331 const pixelMap_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 332 const size_buf_value0: Dimension = (valueDeserializer.readLength() as Dimension) 333 const size_buf_value1: Dimension = (valueDeserializer.readLength() as Dimension) 334 const size_result: [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) 335 let value: LeadingMarginPlaceholder = ({pixelMap: pixelMap_result, size: size_result} as LeadingMarginPlaceholder) 336 return value 337 } 338 readICurve(): ICurve { 339 let valueDeserializer: Deserializer = this 340 let ptr: KPointer = valueDeserializer.readPointer() 341 return ICurveInternal.fromPtr(ptr) 342 } 343 readTextBackgroundStyle(): TextBackgroundStyle { 344 let valueDeserializer: Deserializer = this 345 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 346 let color_buf: ResourceColor | undefined|undefined 347 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 348 { 349 const color_buf__selector: number = valueDeserializer.readInt8() 350 let color_buf_: Color | number | string | Resource | undefined|undefined 351 if (color_buf__selector == 0) { 352 color_buf_ = (valueDeserializer.readInt32() as Color) 353 } 354 else if (color_buf__selector == 1) { 355 color_buf_ = (valueDeserializer.readNumber() as number) 356 } 357 else if (color_buf__selector == 2) { 358 color_buf_ = (valueDeserializer.readString() as string) 359 } 360 else if (color_buf__selector == 3) { 361 color_buf_ = valueDeserializer.readResource() 362 } 363 else { 364 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 365 } 366 color_buf = (color_buf_ as Color | number | string | Resource) 367 } 368 const color_result: ResourceColor | undefined|undefined = color_buf 369 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 370 let radius_buf: Dimension | BorderRadiuses | undefined|undefined 371 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 372 { 373 const radius_buf__selector: number = valueDeserializer.readInt8() 374 let radius_buf_: Dimension | BorderRadiuses | undefined|undefined 375 if (radius_buf__selector == 0) { 376 radius_buf_ = (valueDeserializer.readLength() as Dimension) 377 } 378 else if (radius_buf__selector == 1) { 379 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 380 let radius_buf__u_topLeft_buf: Length | undefined|undefined 381 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 382 { 383 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 384 } 385 const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf 386 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 387 let radius_buf__u_topRight_buf: Length | undefined|undefined 388 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 389 { 390 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 391 } 392 const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf 393 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 394 let radius_buf__u_bottomLeft_buf: Length | undefined|undefined 395 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 396 { 397 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 398 } 399 const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf 400 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 401 let radius_buf__u_bottomRight_buf: Length | undefined|undefined 402 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 403 { 404 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 405 } 406 const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf 407 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) 408 } 409 else { 410 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 411 } 412 radius_buf = (radius_buf_ as Dimension | BorderRadiuses) 413 } 414 const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf 415 let value: TextBackgroundStyle = ({color: color_result, radius: radius_result} as TextBackgroundStyle) 416 return value 417 } 418 readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { 419 let valueDeserializer: Deserializer = this 420 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 421 let margin_buf: LengthMetrics | Margin | undefined|undefined 422 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 423 { 424 const margin_buf__selector: number = valueDeserializer.readInt8() 425 let margin_buf_: LengthMetrics | Margin | undefined|undefined 426 if (margin_buf__selector == 0) { 427 margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 428 } 429 else if (margin_buf__selector == 1) { 430 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 431 let margin_buf__u_top_buf: Length | undefined|undefined 432 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 433 { 434 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 435 } 436 const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf 437 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 438 let margin_buf__u_right_buf: Length | undefined|undefined 439 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 440 { 441 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 442 } 443 const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf 444 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 445 let margin_buf__u_bottom_buf: Length | undefined|undefined 446 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 447 { 448 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 449 } 450 const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf 451 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 452 let margin_buf__u_left_buf: Length | undefined|undefined 453 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 454 { 455 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 456 } 457 const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf 458 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 459 } 460 else { 461 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 462 } 463 margin_buf = (margin_buf_ as LengthMetrics | Margin) 464 } 465 const margin_result: LengthMetrics | Margin | undefined|undefined = margin_buf 466 const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) 467 let padding_buf: LengthMetrics | Padding | undefined|undefined 468 if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) 469 { 470 const padding_buf__selector: number = valueDeserializer.readInt8() 471 let padding_buf_: LengthMetrics | Padding | undefined|undefined 472 if (padding_buf__selector == 0) { 473 padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 474 } 475 else if (padding_buf__selector == 1) { 476 const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 477 let padding_buf__u_top_buf: Length | undefined|undefined 478 if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) 479 { 480 padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) 481 } 482 const padding_buf__u_top: undefined | Length = padding_buf__u_top_buf 483 const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 484 let padding_buf__u_right_buf: Length | undefined|undefined 485 if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) 486 { 487 padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) 488 } 489 const padding_buf__u_right: undefined | Length = padding_buf__u_right_buf 490 const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 491 let padding_buf__u_bottom_buf: Length | undefined|undefined 492 if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) 493 { 494 padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 495 } 496 const padding_buf__u_bottom: undefined | Length = padding_buf__u_bottom_buf 497 const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 498 let padding_buf__u_left_buf: Length | undefined|undefined 499 if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) 500 { 501 padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) 502 } 503 const padding_buf__u_left: undefined | Length = padding_buf__u_left_buf 504 padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) 505 } 506 else { 507 throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") 508 } 509 padding_buf = (padding_buf_ as LengthMetrics | Padding) 510 } 511 const padding_result: LengthMetrics | Padding | undefined|undefined = padding_buf 512 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 513 let borderRadius_buf: LengthMetrics | BorderRadiuses | undefined|undefined 514 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 515 { 516 const borderRadius_buf__selector: number = valueDeserializer.readInt8() 517 let borderRadius_buf_: LengthMetrics | BorderRadiuses | undefined|undefined 518 if (borderRadius_buf__selector == 0) { 519 borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 520 } 521 else if (borderRadius_buf__selector == 1) { 522 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 523 let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined 524 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 525 { 526 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 527 } 528 const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf 529 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 530 let borderRadius_buf__u_topRight_buf: Length | undefined|undefined 531 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 532 { 533 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 534 } 535 const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf 536 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 537 let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 538 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 539 { 540 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 541 } 542 const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf 543 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 544 let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined 545 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 546 { 547 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 548 } 549 const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf 550 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 551 } 552 else { 553 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 554 } 555 borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) 556 } 557 const borderRadius_result: LengthMetrics | BorderRadiuses | undefined|undefined = borderRadius_buf 558 let value: ImageAttachmentLayoutStyle = ({margin: margin_result, padding: padding_result, borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) 559 return value 560 } 561 readSizeOptions(): SizeOptions { 562 let valueDeserializer: Deserializer = this 563 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 564 let width_buf: Length | undefined|undefined 565 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 566 { 567 width_buf = (valueDeserializer.readLength() as Length) 568 } 569 const width_result: Length | undefined|undefined = width_buf 570 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 571 let height_buf: Length | undefined|undefined 572 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 573 { 574 height_buf = (valueDeserializer.readLength() as Length) 575 } 576 const height_result: Length | undefined|undefined = height_buf 577 let value: SizeOptions = ({width: width_result, height: height_result} as SizeOptions) 578 return value 579 } 580 readPosition(): Position { 581 let valueDeserializer: Deserializer = this 582 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 583 let x_buf: Length | undefined|undefined 584 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 585 { 586 x_buf = (valueDeserializer.readLength() as Length) 587 } 588 const x_result: Length | undefined|undefined = x_buf 589 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 590 let y_buf: Length | undefined|undefined 591 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 592 { 593 y_buf = (valueDeserializer.readLength() as Length) 594 } 595 const y_result: Length | undefined|undefined = y_buf 596 let value: Position = ({x: x_result, y: y_result} as Position) 597 return value 598 } 599 readSymbolGlyphModifier(): SymbolGlyphModifier { 600 let valueDeserializer: Deserializer = this 601 const _SymbolGlyphModifierStub_result: string = (valueDeserializer.readString() as string) 602 let value: SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) 603 return value 604 } 605 readShadowOptions(): ShadowOptions { 606 let valueDeserializer: Deserializer = this 607 const radius_buf_selector: number = valueDeserializer.readInt8() 608 let radius_buf: number | Resource | undefined|undefined 609 if (radius_buf_selector == 0) { 610 radius_buf = (valueDeserializer.readNumber() as number) 611 } 612 else if (radius_buf_selector == 1) { 613 radius_buf = valueDeserializer.readResource() 614 } 615 else { 616 throw new Error("One of the branches for radius_buf has to be chosen through deserialisation.") 617 } 618 const radius_result: number | Resource = (radius_buf as number | Resource) 619 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 620 let type_buf: ShadowType | undefined|undefined 621 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 622 { 623 type_buf = (valueDeserializer.readInt32() as ShadowType) 624 } 625 const type_result: ShadowType | undefined|undefined = type_buf 626 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 627 let color_buf: Color | string | Resource | ColoringStrategy | undefined|undefined 628 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 629 { 630 const color_buf__selector: number = valueDeserializer.readInt8() 631 let color_buf_: Color | string | Resource | ColoringStrategy | undefined|undefined 632 if (color_buf__selector == 0) { 633 color_buf_ = (valueDeserializer.readInt32() as Color) 634 } 635 else if (color_buf__selector == 1) { 636 color_buf_ = (valueDeserializer.readString() as string) 637 } 638 else if (color_buf__selector == 2) { 639 color_buf_ = valueDeserializer.readResource() 640 } 641 else if (color_buf__selector == 3) { 642 color_buf_ = Object.values(ColoringStrategy)[valueDeserializer.readInt32()] 643 } 644 else { 645 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 646 } 647 color_buf = (color_buf_ as Color | string | Resource | ColoringStrategy) 648 } 649 const color_result: Color | string | Resource | ColoringStrategy | undefined|undefined = color_buf 650 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 651 let offsetX_buf: number | Resource | undefined|undefined 652 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 653 { 654 const offsetX_buf__selector: number = valueDeserializer.readInt8() 655 let offsetX_buf_: number | Resource | undefined|undefined 656 if (offsetX_buf__selector == 0) { 657 offsetX_buf_ = (valueDeserializer.readNumber() as number) 658 } 659 else if (offsetX_buf__selector == 1) { 660 offsetX_buf_ = valueDeserializer.readResource() 661 } 662 else { 663 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 664 } 665 offsetX_buf = (offsetX_buf_ as number | Resource) 666 } 667 const offsetX_result: number | Resource | undefined|undefined = offsetX_buf 668 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 669 let offsetY_buf: number | Resource | undefined|undefined 670 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 671 { 672 const offsetY_buf__selector: number = valueDeserializer.readInt8() 673 let offsetY_buf_: number | Resource | undefined|undefined 674 if (offsetY_buf__selector == 0) { 675 offsetY_buf_ = (valueDeserializer.readNumber() as number) 676 } 677 else if (offsetY_buf__selector == 1) { 678 offsetY_buf_ = valueDeserializer.readResource() 679 } 680 else { 681 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 682 } 683 offsetY_buf = (offsetY_buf_ as number | Resource) 684 } 685 const offsetY_result: number | Resource | undefined|undefined = offsetY_buf 686 const fill_buf_runtimeType = (valueDeserializer.readInt8() as int32) 687 let fill_buf: boolean | undefined|undefined 688 if ((RuntimeType.UNDEFINED) != (fill_buf_runtimeType)) 689 { 690 fill_buf = valueDeserializer.readBoolean() 691 } 692 const fill_result: boolean | undefined|undefined = fill_buf 693 let value: ShadowOptions = ({radius: radius_result, type: type_result, color: color_result, offsetX: offsetX_result, offsetY: offsetY_result, fill: fill_result} as ShadowOptions) 694 return value 695 } 696 readGridRowSizeOption(): GridRowSizeOption { 697 let valueDeserializer: Deserializer = this 698 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 699 let xs_buf: Length | undefined|undefined 700 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 701 { 702 xs_buf = (valueDeserializer.readLength() as Length) 703 } 704 const xs_result: Length | undefined|undefined = xs_buf 705 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 706 let sm_buf: Length | undefined|undefined 707 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 708 { 709 sm_buf = (valueDeserializer.readLength() as Length) 710 } 711 const sm_result: Length | undefined|undefined = sm_buf 712 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 713 let md_buf: Length | undefined|undefined 714 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 715 { 716 md_buf = (valueDeserializer.readLength() as Length) 717 } 718 const md_result: Length | undefined|undefined = md_buf 719 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 720 let lg_buf: Length | undefined|undefined 721 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 722 { 723 lg_buf = (valueDeserializer.readLength() as Length) 724 } 725 const lg_result: Length | undefined|undefined = lg_buf 726 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 727 let xl_buf: Length | undefined|undefined 728 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 729 { 730 xl_buf = (valueDeserializer.readLength() as Length) 731 } 732 const xl_result: Length | undefined|undefined = xl_buf 733 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 734 let xxl_buf: Length | undefined|undefined 735 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 736 { 737 xxl_buf = (valueDeserializer.readLength() as Length) 738 } 739 const xxl_result: Length | undefined|undefined = xxl_buf 740 let value: GridRowSizeOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridRowSizeOption) 741 return value 742 } 743 readBackgroundColorStyle(): BackgroundColorStyle { 744 let valueDeserializer: Deserializer = this 745 let ptr: KPointer = valueDeserializer.readPointer() 746 return BackgroundColorStyleInternal.fromPtr(ptr) 747 } 748 readUserDataSpan(): UserDataSpan { 749 let value: UserDataSpan = ({} as UserDataSpan) 750 return value 751 } 752 readCustomSpan(): CustomSpan { 753 let valueDeserializer: Deserializer = this 754 let ptr: KPointer = valueDeserializer.readPointer() 755 return CustomSpanInternal.fromPtr(ptr) 756 } 757 readUrlStyle(): UrlStyle { 758 let valueDeserializer: Deserializer = this 759 let ptr: KPointer = valueDeserializer.readPointer() 760 return UrlStyleInternal.fromPtr(ptr) 761 } 762 readLineHeightStyle(): LineHeightStyle { 763 let valueDeserializer: Deserializer = this 764 let ptr: KPointer = valueDeserializer.readPointer() 765 return LineHeightStyleInternal.fromPtr(ptr) 766 } 767 readParagraphStyle(): ParagraphStyle { 768 let valueDeserializer: Deserializer = this 769 let ptr: KPointer = valueDeserializer.readPointer() 770 return ParagraphStyleInternal.fromPtr(ptr) 771 } 772 readImageAttachment(): ImageAttachment { 773 let valueDeserializer: Deserializer = this 774 let ptr: KPointer = valueDeserializer.readPointer() 775 return ImageAttachmentInternal.fromPtr(ptr) 776 } 777 readGestureStyle(): GestureStyle { 778 let valueDeserializer: Deserializer = this 779 let ptr: KPointer = valueDeserializer.readPointer() 780 return GestureStyleInternal.fromPtr(ptr) 781 } 782 readTextShadowStyle(): TextShadowStyle { 783 let valueDeserializer: Deserializer = this 784 let ptr: KPointer = valueDeserializer.readPointer() 785 return TextShadowStyleInternal.fromPtr(ptr) 786 } 787 readLetterSpacingStyle(): LetterSpacingStyle { 788 let valueDeserializer: Deserializer = this 789 let ptr: KPointer = valueDeserializer.readPointer() 790 return LetterSpacingStyleInternal.fromPtr(ptr) 791 } 792 readBaselineOffsetStyle(): BaselineOffsetStyle { 793 let valueDeserializer: Deserializer = this 794 let ptr: KPointer = valueDeserializer.readPointer() 795 return BaselineOffsetStyleInternal.fromPtr(ptr) 796 } 797 readDecorationStyle(): DecorationStyle { 798 let valueDeserializer: Deserializer = this 799 let ptr: KPointer = valueDeserializer.readPointer() 800 return DecorationStyleInternal.fromPtr(ptr) 801 } 802 readTextStyle_styled_string(): TextStyle_styled_string { 803 let valueDeserializer: Deserializer = this 804 let ptr: KPointer = valueDeserializer.readPointer() 805 return TextStyle_styled_stringInternal.fromPtr(ptr) 806 } 807 readArea(): Area { 808 let valueDeserializer: Deserializer = this 809 const width_result: Length = (valueDeserializer.readLength() as Length) 810 const height_result: Length = (valueDeserializer.readLength() as Length) 811 const position_result: Position = valueDeserializer.readPosition() 812 const globalPosition_result: Position = valueDeserializer.readPosition() 813 let value: Area = ({width: width_result, height: height_result, position: position_result, globalPosition: globalPosition_result} as Area) 814 return value 815 } 816 readFont(): Font { 817 let valueDeserializer: Deserializer = this 818 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 819 let size_buf: Length | undefined|undefined 820 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 821 { 822 size_buf = (valueDeserializer.readLength() as Length) 823 } 824 const size_result: Length | undefined|undefined = size_buf 825 const weight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 826 let weight_buf: FontWeight | number | string | undefined|undefined 827 if ((RuntimeType.UNDEFINED) != (weight_buf_runtimeType)) 828 { 829 const weight_buf__selector: number = valueDeserializer.readInt8() 830 let weight_buf_: FontWeight | number | string | undefined|undefined 831 if (weight_buf__selector == 0) { 832 weight_buf_ = (valueDeserializer.readInt32() as FontWeight) 833 } 834 else if (weight_buf__selector == 1) { 835 weight_buf_ = (valueDeserializer.readNumber() as number) 836 } 837 else if (weight_buf__selector == 2) { 838 weight_buf_ = (valueDeserializer.readString() as string) 839 } 840 else { 841 throw new Error("One of the branches for weight_buf_ has to be chosen through deserialisation.") 842 } 843 weight_buf = (weight_buf_ as FontWeight | number | string) 844 } 845 const weight_result: FontWeight | number | string | undefined|undefined = weight_buf 846 const family_buf_runtimeType = (valueDeserializer.readInt8() as int32) 847 let family_buf: string | Resource | undefined|undefined 848 if ((RuntimeType.UNDEFINED) != (family_buf_runtimeType)) 849 { 850 const family_buf__selector: number = valueDeserializer.readInt8() 851 let family_buf_: string | Resource | undefined|undefined 852 if (family_buf__selector == 0) { 853 family_buf_ = (valueDeserializer.readString() as string) 854 } 855 else if (family_buf__selector == 1) { 856 family_buf_ = valueDeserializer.readResource() 857 } 858 else { 859 throw new Error("One of the branches for family_buf_ has to be chosen through deserialisation.") 860 } 861 family_buf = (family_buf_ as string | Resource) 862 } 863 const family_result: string | Resource | undefined|undefined = family_buf 864 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 865 let style_buf: FontStyle | undefined|undefined 866 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 867 { 868 style_buf = (valueDeserializer.readInt32() as FontStyle) 869 } 870 const style_result: FontStyle | undefined|undefined = style_buf 871 let value: Font = ({size: size_result, weight: weight_result, family: family_result, style: style_result} as Font) 872 return value 873 } 874 readLocalizedPadding(): LocalizedPadding { 875 let valueDeserializer: Deserializer = this 876 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 877 let top_buf: LengthMetrics | undefined|undefined 878 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 879 { 880 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 881 } 882 const top_result: LengthMetrics | undefined|undefined = top_buf 883 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 884 let end_buf: LengthMetrics | undefined|undefined 885 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 886 { 887 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 888 } 889 const end_result: LengthMetrics | undefined|undefined = end_buf 890 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 891 let bottom_buf: LengthMetrics | undefined|undefined 892 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 893 { 894 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 895 } 896 const bottom_result: LengthMetrics | undefined|undefined = bottom_buf 897 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 898 let start_buf: LengthMetrics | undefined|undefined 899 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 900 { 901 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 902 } 903 const start_result: LengthMetrics | undefined|undefined = start_buf 904 let value: LocalizedPadding = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedPadding) 905 return value 906 } 907 readTabBarSymbol(): TabBarSymbol { 908 let valueDeserializer: Deserializer = this 909 const normal_result: SymbolGlyphModifier = valueDeserializer.readSymbolGlyphModifier() 910 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 911 let selected_buf: SymbolGlyphModifier | undefined|undefined 912 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 913 { 914 selected_buf = valueDeserializer.readSymbolGlyphModifier() 915 } 916 const selected_result: SymbolGlyphModifier | undefined|undefined = selected_buf 917 let value: TabBarSymbol = ({normal: normal_result, selected: selected_result} as TabBarSymbol) 918 return value 919 } 920 readComponentContent(): ComponentContent { 921 let valueDeserializer: Deserializer = this 922 const _ComponentContentStub_result: string = (valueDeserializer.readString() as string) 923 let value: ComponentContent = ({_ComponentContentStub: _ComponentContentStub_result} as ComponentContent) 924 return value 925 } 926 readScrollAnimationOptions(): ScrollAnimationOptions { 927 let valueDeserializer: Deserializer = this 928 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 929 let duration_buf: number | undefined|undefined 930 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 931 { 932 duration_buf = (valueDeserializer.readNumber() as number) 933 } 934 const duration_result: number | undefined|undefined = duration_buf 935 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 936 let curve_buf: Curve | ICurve | undefined|undefined 937 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 938 { 939 const curve_buf__selector: number = valueDeserializer.readInt8() 940 let curve_buf_: Curve | ICurve | undefined|undefined 941 if (curve_buf__selector == 0) { 942 curve_buf_ = (valueDeserializer.readInt32() as Curve) 943 } 944 else if (curve_buf__selector == 1) { 945 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 946 } 947 else { 948 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 949 } 950 curve_buf = (curve_buf_ as Curve | ICurve) 951 } 952 const curve_result: Curve | ICurve | undefined|undefined = curve_buf 953 const canOverScroll_buf_runtimeType = (valueDeserializer.readInt8() as int32) 954 let canOverScroll_buf: boolean | undefined|undefined 955 if ((RuntimeType.UNDEFINED) != (canOverScroll_buf_runtimeType)) 956 { 957 canOverScroll_buf = valueDeserializer.readBoolean() 958 } 959 const canOverScroll_result: boolean | undefined|undefined = canOverScroll_buf 960 let value: ScrollAnimationOptions = ({duration: duration_result, curve: curve_result, canOverScroll: canOverScroll_result} as ScrollAnimationOptions) 961 return value 962 } 963 readRichEditorLayoutStyle(): RichEditorLayoutStyle { 964 let valueDeserializer: Deserializer = this 965 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 966 let margin_buf: Dimension | Margin | undefined|undefined 967 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 968 { 969 const margin_buf__selector: number = valueDeserializer.readInt8() 970 let margin_buf_: Dimension | Margin | undefined|undefined 971 if (margin_buf__selector == 0) { 972 margin_buf_ = (valueDeserializer.readLength() as Dimension) 973 } 974 else if (margin_buf__selector == 1) { 975 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 976 let margin_buf__u_top_buf: Length | undefined|undefined 977 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 978 { 979 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 980 } 981 const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf 982 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 983 let margin_buf__u_right_buf: Length | undefined|undefined 984 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 985 { 986 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 987 } 988 const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf 989 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 990 let margin_buf__u_bottom_buf: Length | undefined|undefined 991 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 992 { 993 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 994 } 995 const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf 996 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 997 let margin_buf__u_left_buf: Length | undefined|undefined 998 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 999 { 1000 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 1001 } 1002 const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf 1003 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 1004 } 1005 else { 1006 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 1007 } 1008 margin_buf = (margin_buf_ as Dimension | Margin) 1009 } 1010 const margin_result: Dimension | Margin | undefined|undefined = margin_buf 1011 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1012 let borderRadius_buf: Dimension | BorderRadiuses | undefined|undefined 1013 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 1014 { 1015 const borderRadius_buf__selector: number = valueDeserializer.readInt8() 1016 let borderRadius_buf_: Dimension | BorderRadiuses | undefined|undefined 1017 if (borderRadius_buf__selector == 0) { 1018 borderRadius_buf_ = (valueDeserializer.readLength() as Dimension) 1019 } 1020 else if (borderRadius_buf__selector == 1) { 1021 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1022 let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined 1023 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 1024 { 1025 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 1026 } 1027 const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf 1028 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1029 let borderRadius_buf__u_topRight_buf: Length | undefined|undefined 1030 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 1031 { 1032 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 1033 } 1034 const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf 1035 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1036 let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 1037 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 1038 { 1039 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 1040 } 1041 const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf 1042 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1043 let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined 1044 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 1045 { 1046 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 1047 } 1048 const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf 1049 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 1050 } 1051 else { 1052 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 1053 } 1054 borderRadius_buf = (borderRadius_buf_ as Dimension | BorderRadiuses) 1055 } 1056 const borderRadius_result: Dimension | BorderRadiuses | undefined|undefined = borderRadius_buf 1057 let value: RichEditorLayoutStyle = ({margin: margin_result, borderRadius: borderRadius_result} as RichEditorLayoutStyle) 1058 return value 1059 } 1060 readDecorationStyleResult(): DecorationStyleResult { 1061 let valueDeserializer: Deserializer = this 1062 const type_result: TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 1063 const color_buf_selector: number = valueDeserializer.readInt8() 1064 let color_buf: Color | number | string | Resource | undefined|undefined 1065 if (color_buf_selector == 0) { 1066 color_buf = (valueDeserializer.readInt32() as Color) 1067 } 1068 else if (color_buf_selector == 1) { 1069 color_buf = (valueDeserializer.readNumber() as number) 1070 } 1071 else if (color_buf_selector == 2) { 1072 color_buf = (valueDeserializer.readString() as string) 1073 } 1074 else if (color_buf_selector == 3) { 1075 color_buf = valueDeserializer.readResource() 1076 } 1077 else { 1078 throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") 1079 } 1080 const color_result: ResourceColor = (color_buf as Color | number | string | Resource) 1081 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1082 let style_buf: TextDecorationStyle | undefined|undefined 1083 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1084 { 1085 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 1086 } 1087 const style_result: TextDecorationStyle | undefined|undefined = style_buf 1088 let value: DecorationStyleResult = ({type: type_result, color: color_result, style: style_result} as DecorationStyleResult) 1089 return value 1090 } 1091 readDecorationStyleInterface(): DecorationStyleInterface { 1092 let valueDeserializer: Deserializer = this 1093 const type_result: TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 1094 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1095 let color_buf: ResourceColor | undefined|undefined 1096 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 1097 { 1098 const color_buf__selector: number = valueDeserializer.readInt8() 1099 let color_buf_: Color | number | string | Resource | undefined|undefined 1100 if (color_buf__selector == 0) { 1101 color_buf_ = (valueDeserializer.readInt32() as Color) 1102 } 1103 else if (color_buf__selector == 1) { 1104 color_buf_ = (valueDeserializer.readNumber() as number) 1105 } 1106 else if (color_buf__selector == 2) { 1107 color_buf_ = (valueDeserializer.readString() as string) 1108 } 1109 else if (color_buf__selector == 3) { 1110 color_buf_ = valueDeserializer.readResource() 1111 } 1112 else { 1113 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 1114 } 1115 color_buf = (color_buf_ as Color | number | string | Resource) 1116 } 1117 const color_result: ResourceColor | undefined|undefined = color_buf 1118 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1119 let style_buf: TextDecorationStyle | undefined|undefined 1120 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1121 { 1122 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 1123 } 1124 const style_result: TextDecorationStyle | undefined|undefined = style_buf 1125 let value: DecorationStyleInterface = ({type: type_result, color: color_result, style: style_result} as DecorationStyleInterface) 1126 return value 1127 } 1128 readCallback_GestureEvent_Void(isSync: boolean = false): ((event: GestureEvent) => void) { 1129 const _resource: CallbackResource = this.readCallbackResource() 1130 const _call: KPointer = this.readPointer() 1131 const _callSync: KPointer = this.readPointer() 1132 return (event: GestureEvent): void => { 1133 const _argsSerializer: Serializer = Serializer.hold(); 1134 _argsSerializer.writeInt32(_resource.resourceId); 1135 _argsSerializer.writePointer(_call); 1136 _argsSerializer.writePointer(_callSync); 1137 _argsSerializer.writeGestureEvent(event); 1138 (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); 1139 _argsSerializer.release(); 1140 return; } 1141 } 1142 readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { 1143 const _resource: CallbackResource = this.readCallbackResource() 1144 const _call: KPointer = this.readPointer() 1145 const _callSync: KPointer = this.readPointer() 1146 return (event: ClickEvent): void => { 1147 const _argsSerializer: Serializer = Serializer.hold(); 1148 _argsSerializer.writeInt32(_resource.resourceId); 1149 _argsSerializer.writePointer(_call); 1150 _argsSerializer.writePointer(_callSync); 1151 _argsSerializer.writeClickEvent(event); 1152 (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); 1153 _argsSerializer.release(); 1154 return; } 1155 } 1156 readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { 1157 const _resource: CallbackResource = this.readCallbackResource() 1158 const _call: KPointer = this.readPointer() 1159 const _callSync: KPointer = this.readPointer() 1160 return (parameter: PopInfo): void => { 1161 const _argsSerializer: Serializer = Serializer.hold(); 1162 _argsSerializer.writeInt32(_resource.resourceId); 1163 _argsSerializer.writePointer(_call); 1164 _argsSerializer.writePointer(_callSync); 1165 _argsSerializer.writePopInfo(parameter); 1166 (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); 1167 _argsSerializer.release(); 1168 return; } 1169 } 1170 readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { 1171 const _resource: CallbackResource = this.readCallbackResource() 1172 const _call: KPointer = this.readPointer() 1173 const _callSync: KPointer = this.readPointer() 1174 return (state: SwipeActionState): void => { 1175 const _argsSerializer: Serializer = Serializer.hold(); 1176 _argsSerializer.writeInt32(_resource.resourceId); 1177 _argsSerializer.writePointer(_call); 1178 _argsSerializer.writePointer(_callSync); 1179 _argsSerializer.writeInt32(state); 1180 (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); 1181 _argsSerializer.release(); 1182 return; } 1183 } 1184 readCallback_Void(isSync: boolean = false): (() => void) { 1185 const _resource: CallbackResource = this.readCallbackResource() 1186 const _call: KPointer = this.readPointer() 1187 const _callSync: KPointer = this.readPointer() 1188 return (): void => { 1189 const _argsSerializer: Serializer = Serializer.hold(); 1190 _argsSerializer.writeInt32(_resource.resourceId); 1191 _argsSerializer.writePointer(_call); 1192 _argsSerializer.writePointer(_callSync); 1193 (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); 1194 _argsSerializer.release(); 1195 return; } 1196 } 1197 readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { 1198 const _resource: CallbackResource = this.readCallbackResource() 1199 const _call: KPointer = this.readPointer() 1200 const _callSync: KPointer = this.readPointer() 1201 return (parentNode: KPointer): KPointer => { 1202 const _argsSerializer: Serializer = Serializer.hold(); 1203 _argsSerializer.writeInt32(_resource.resourceId); 1204 _argsSerializer.writePointer(_call); 1205 _argsSerializer.writePointer(_callSync); 1206 _argsSerializer.writePointer(parentNode); 1207 let _continuationValue: KPointer | undefined|undefined ; 1208 const _continuationCallback: ((value: KPointer) => void) = (value: KPointer): void => { _continuationValue = value; } 1209 _argsSerializer.holdAndWriteCallback(_continuationCallback); 1210 (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); 1211 _argsSerializer.release(); 1212 return (_continuationValue as KPointer); } 1213 } 1214 readLocalizedEdgeColors(): LocalizedEdgeColors { 1215 let valueDeserializer: Deserializer = this 1216 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1217 let top_buf: ResourceColor | undefined|undefined 1218 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 1219 { 1220 const top_buf__selector: number = valueDeserializer.readInt8() 1221 let top_buf_: Color | number | string | Resource | undefined|undefined 1222 if (top_buf__selector == 0) { 1223 top_buf_ = (valueDeserializer.readInt32() as Color) 1224 } 1225 else if (top_buf__selector == 1) { 1226 top_buf_ = (valueDeserializer.readNumber() as number) 1227 } 1228 else if (top_buf__selector == 2) { 1229 top_buf_ = (valueDeserializer.readString() as string) 1230 } 1231 else if (top_buf__selector == 3) { 1232 top_buf_ = valueDeserializer.readResource() 1233 } 1234 else { 1235 throw new Error("One of the branches for top_buf_ has to be chosen through deserialisation.") 1236 } 1237 top_buf = (top_buf_ as Color | number | string | Resource) 1238 } 1239 const top_result: ResourceColor | undefined|undefined = top_buf 1240 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1241 let end_buf: ResourceColor | undefined|undefined 1242 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 1243 { 1244 const end_buf__selector: number = valueDeserializer.readInt8() 1245 let end_buf_: Color | number | string | Resource | undefined|undefined 1246 if (end_buf__selector == 0) { 1247 end_buf_ = (valueDeserializer.readInt32() as Color) 1248 } 1249 else if (end_buf__selector == 1) { 1250 end_buf_ = (valueDeserializer.readNumber() as number) 1251 } 1252 else if (end_buf__selector == 2) { 1253 end_buf_ = (valueDeserializer.readString() as string) 1254 } 1255 else if (end_buf__selector == 3) { 1256 end_buf_ = valueDeserializer.readResource() 1257 } 1258 else { 1259 throw new Error("One of the branches for end_buf_ has to be chosen through deserialisation.") 1260 } 1261 end_buf = (end_buf_ as Color | number | string | Resource) 1262 } 1263 const end_result: ResourceColor | undefined|undefined = end_buf 1264 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1265 let bottom_buf: ResourceColor | undefined|undefined 1266 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 1267 { 1268 const bottom_buf__selector: number = valueDeserializer.readInt8() 1269 let bottom_buf_: Color | number | string | Resource | undefined|undefined 1270 if (bottom_buf__selector == 0) { 1271 bottom_buf_ = (valueDeserializer.readInt32() as Color) 1272 } 1273 else if (bottom_buf__selector == 1) { 1274 bottom_buf_ = (valueDeserializer.readNumber() as number) 1275 } 1276 else if (bottom_buf__selector == 2) { 1277 bottom_buf_ = (valueDeserializer.readString() as string) 1278 } 1279 else if (bottom_buf__selector == 3) { 1280 bottom_buf_ = valueDeserializer.readResource() 1281 } 1282 else { 1283 throw new Error("One of the branches for bottom_buf_ has to be chosen through deserialisation.") 1284 } 1285 bottom_buf = (bottom_buf_ as Color | number | string | Resource) 1286 } 1287 const bottom_result: ResourceColor | undefined|undefined = bottom_buf 1288 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1289 let start_buf: ResourceColor | undefined|undefined 1290 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 1291 { 1292 const start_buf__selector: number = valueDeserializer.readInt8() 1293 let start_buf_: Color | number | string | Resource | undefined|undefined 1294 if (start_buf__selector == 0) { 1295 start_buf_ = (valueDeserializer.readInt32() as Color) 1296 } 1297 else if (start_buf__selector == 1) { 1298 start_buf_ = (valueDeserializer.readNumber() as number) 1299 } 1300 else if (start_buf__selector == 2) { 1301 start_buf_ = (valueDeserializer.readString() as string) 1302 } 1303 else if (start_buf__selector == 3) { 1304 start_buf_ = valueDeserializer.readResource() 1305 } 1306 else { 1307 throw new Error("One of the branches for start_buf_ has to be chosen through deserialisation.") 1308 } 1309 start_buf = (start_buf_ as Color | number | string | Resource) 1310 } 1311 const start_result: ResourceColor | undefined|undefined = start_buf 1312 let value: LocalizedEdgeColors = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedEdgeColors) 1313 return value 1314 } 1315 readLocalizedEdgeWidths(): LocalizedEdgeWidths { 1316 let valueDeserializer: Deserializer = this 1317 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1318 let top_buf: LengthMetrics | undefined|undefined 1319 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 1320 { 1321 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1322 } 1323 const top_result: LengthMetrics | undefined|undefined = top_buf 1324 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1325 let end_buf: LengthMetrics | undefined|undefined 1326 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 1327 { 1328 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1329 } 1330 const end_result: LengthMetrics | undefined|undefined = end_buf 1331 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1332 let bottom_buf: LengthMetrics | undefined|undefined 1333 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 1334 { 1335 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1336 } 1337 const bottom_result: LengthMetrics | undefined|undefined = bottom_buf 1338 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1339 let start_buf: LengthMetrics | undefined|undefined 1340 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 1341 { 1342 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1343 } 1344 const start_result: LengthMetrics | undefined|undefined = start_buf 1345 let value: LocalizedEdgeWidths = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedEdgeWidths) 1346 return value 1347 } 1348 readSheetTitleOptions(): SheetTitleOptions { 1349 let valueDeserializer: Deserializer = this 1350 const title_buf_selector: number = valueDeserializer.readInt8() 1351 let title_buf: string | Resource | undefined|undefined 1352 if (title_buf_selector == 0) { 1353 title_buf = (valueDeserializer.readString() as string) 1354 } 1355 else if (title_buf_selector == 1) { 1356 title_buf = valueDeserializer.readResource() 1357 } 1358 else { 1359 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 1360 } 1361 const title_result: ResourceStr = (title_buf as string | Resource) 1362 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1363 let subtitle_buf: ResourceStr | undefined|undefined 1364 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 1365 { 1366 const subtitle_buf__selector: number = valueDeserializer.readInt8() 1367 let subtitle_buf_: string | Resource | undefined|undefined 1368 if (subtitle_buf__selector == 0) { 1369 subtitle_buf_ = (valueDeserializer.readString() as string) 1370 } 1371 else if (subtitle_buf__selector == 1) { 1372 subtitle_buf_ = valueDeserializer.readResource() 1373 } 1374 else { 1375 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 1376 } 1377 subtitle_buf = (subtitle_buf_ as string | Resource) 1378 } 1379 const subtitle_result: ResourceStr | undefined|undefined = subtitle_buf 1380 let value: SheetTitleOptions = ({title: title_result, subtitle: subtitle_result} as SheetTitleOptions) 1381 return value 1382 } 1383 readTransitionEffect(): TransitionEffect { 1384 let valueDeserializer: Deserializer = this 1385 let ptr: KPointer = valueDeserializer.readPointer() 1386 return TransitionEffectInternal.fromPtr(ptr) 1387 } 1388 readLocalizedBorderRadiuses(): LocalizedBorderRadiuses { 1389 let valueDeserializer: Deserializer = this 1390 const topStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1391 let topStart_buf: LengthMetrics | undefined|undefined 1392 if ((RuntimeType.UNDEFINED) != (topStart_buf_runtimeType)) 1393 { 1394 topStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1395 } 1396 const topStart_result: LengthMetrics | undefined|undefined = topStart_buf 1397 const topEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1398 let topEnd_buf: LengthMetrics | undefined|undefined 1399 if ((RuntimeType.UNDEFINED) != (topEnd_buf_runtimeType)) 1400 { 1401 topEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1402 } 1403 const topEnd_result: LengthMetrics | undefined|undefined = topEnd_buf 1404 const bottomStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1405 let bottomStart_buf: LengthMetrics | undefined|undefined 1406 if ((RuntimeType.UNDEFINED) != (bottomStart_buf_runtimeType)) 1407 { 1408 bottomStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1409 } 1410 const bottomStart_result: LengthMetrics | undefined|undefined = bottomStart_buf 1411 const bottomEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1412 let bottomEnd_buf: LengthMetrics | undefined|undefined 1413 if ((RuntimeType.UNDEFINED) != (bottomEnd_buf_runtimeType)) 1414 { 1415 bottomEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1416 } 1417 const bottomEnd_result: LengthMetrics | undefined|undefined = bottomEnd_buf 1418 let value: LocalizedBorderRadiuses = ({topStart: topStart_result, topEnd: topEnd_result, bottomStart: bottomStart_result, bottomEnd: bottomEnd_result} as LocalizedBorderRadiuses) 1419 return value 1420 } 1421 readCallback_DismissPopupAction_Void(isSync: boolean = false): ((parameter: DismissPopupAction) => void) { 1422 const _resource: CallbackResource = this.readCallbackResource() 1423 const _call: KPointer = this.readPointer() 1424 const _callSync: KPointer = this.readPointer() 1425 return (parameter: DismissPopupAction): void => { 1426 const _argsSerializer: Serializer = Serializer.hold(); 1427 _argsSerializer.writeInt32(_resource.resourceId); 1428 _argsSerializer.writePointer(_call); 1429 _argsSerializer.writePointer(_callSync); 1430 _argsSerializer.writeDismissPopupAction(parameter); 1431 (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); 1432 _argsSerializer.release(); 1433 return; } 1434 } 1435 readCanvasPattern(): CanvasPattern { 1436 let valueDeserializer: Deserializer = this 1437 let ptr: KPointer = valueDeserializer.readPointer() 1438 return CanvasPatternInternal.fromPtr(ptr) 1439 } 1440 readCanvasGradient(): CanvasGradient { 1441 let valueDeserializer: Deserializer = this 1442 let ptr: KPointer = valueDeserializer.readPointer() 1443 return CanvasGradientInternal.fromPtr(ptr) 1444 } 1445 readVoidCallback(isSync: boolean = false): VoidCallback { 1446 const _resource: CallbackResource = this.readCallbackResource() 1447 const _call: KPointer = this.readPointer() 1448 const _callSync: KPointer = this.readPointer() 1449 return (): void => { 1450 const _argsSerializer: Serializer = Serializer.hold(); 1451 _argsSerializer.writeInt32(_resource.resourceId); 1452 _argsSerializer.writePointer(_call); 1453 _argsSerializer.writePointer(_callSync); 1454 (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); 1455 _argsSerializer.release(); 1456 return; } 1457 } 1458 readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { 1459 const _resource: CallbackResource = this.readCallbackResource() 1460 const _call: KPointer = this.readPointer() 1461 const _callSync: KPointer = this.readPointer() 1462 return (transitionProxy: NavigationTransitionProxy): void => { 1463 const _argsSerializer: Serializer = Serializer.hold(); 1464 _argsSerializer.writeInt32(_resource.resourceId); 1465 _argsSerializer.writePointer(_call); 1466 _argsSerializer.writePointer(_callSync); 1467 _argsSerializer.writeNavigationTransitionProxy(transitionProxy); 1468 (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); 1469 _argsSerializer.release(); 1470 return; } 1471 } 1472 readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { 1473 const _resource: CallbackResource = this.readCallbackResource() 1474 const _call: KPointer = this.readPointer() 1475 const _callSync: KPointer = this.readPointer() 1476 return (parameter: boolean): void => { 1477 const _argsSerializer: Serializer = Serializer.hold(); 1478 _argsSerializer.writeInt32(_resource.resourceId); 1479 _argsSerializer.writePointer(_call); 1480 _argsSerializer.writePointer(_callSync); 1481 _argsSerializer.writeBoolean(parameter); 1482 (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); 1483 _argsSerializer.release(); 1484 return; } 1485 } 1486 readColorMetrics(): ColorMetrics { 1487 let valueDeserializer: Deserializer = this 1488 let ptr: KPointer = valueDeserializer.readPointer() 1489 return ColorMetricsInternal.fromPtr(ptr) 1490 } 1491 readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { 1492 const _resource: CallbackResource = this.readCallbackResource() 1493 const _call: KPointer = this.readPointer() 1494 const _callSync: KPointer = this.readPointer() 1495 return (index: number): number => { 1496 const _argsSerializer: Serializer = Serializer.hold(); 1497 _argsSerializer.writeInt32(_resource.resourceId); 1498 _argsSerializer.writePointer(_call); 1499 _argsSerializer.writePointer(_callSync); 1500 _argsSerializer.writeNumber(index); 1501 let _continuationValue: number | undefined|undefined ; 1502 const _continuationCallback: ((index: number) => void) = (value: number): void => { _continuationValue = value; } 1503 _argsSerializer.holdAndWriteCallback(_continuationCallback); 1504 (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); 1505 _argsSerializer.release(); 1506 return (_continuationValue as number); } 1507 } 1508 readImageAnalyzerController(): ImageAnalyzerController { 1509 let valueDeserializer: Deserializer = this 1510 let ptr: KPointer = valueDeserializer.readPointer() 1511 return ImageAnalyzerControllerInternal.fromPtr(ptr) 1512 } 1513 readEventTarget(): EventTarget { 1514 let valueDeserializer: Deserializer = this 1515 const area_result: Area = valueDeserializer.readArea() 1516 let value: EventTarget = ({area: area_result} as EventTarget) 1517 return value 1518 } 1519 readWebResourceRequest(): WebResourceRequest { 1520 let valueDeserializer: Deserializer = this 1521 let ptr: KPointer = valueDeserializer.readPointer() 1522 return WebResourceRequestInternal.fromPtr(ptr) 1523 } 1524 readWebviewController(): WebviewController { 1525 let valueDeserializer: Deserializer = this 1526 let ptr: KPointer = valueDeserializer.readPointer() 1527 return WebviewControllerInternal.fromPtr(ptr) 1528 } 1529 readWebController(): WebController { 1530 let valueDeserializer: Deserializer = this 1531 let ptr: KPointer = valueDeserializer.readPointer() 1532 return WebControllerInternal.fromPtr(ptr) 1533 } 1534 readCallback_String_Void(isSync: boolean = false): ((breakpoints: string) => void) { 1535 const _resource: CallbackResource = this.readCallbackResource() 1536 const _call: KPointer = this.readPointer() 1537 const _callSync: KPointer = this.readPointer() 1538 return (breakpoints: string): void => { 1539 const _argsSerializer: Serializer = Serializer.hold(); 1540 _argsSerializer.writeInt32(_resource.resourceId); 1541 _argsSerializer.writePointer(_call); 1542 _argsSerializer.writePointer(_callSync); 1543 _argsSerializer.writeString(breakpoints); 1544 (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); 1545 _argsSerializer.release(); 1546 return; } 1547 } 1548 readDateTimeOptions(): DateTimeOptions { 1549 let valueDeserializer: Deserializer = this 1550 const _DateTimeOptionsStub_result: string = (valueDeserializer.readString() as string) 1551 let value: DateTimeOptions = ({_DateTimeOptionsStub: _DateTimeOptionsStub_result} as DateTimeOptions) 1552 return value 1553 } 1554 readCallback_TimePickerResult_Void(isSync: boolean = false): ((value: TimePickerResult) => void) { 1555 const _resource: CallbackResource = this.readCallbackResource() 1556 const _call: KPointer = this.readPointer() 1557 const _callSync: KPointer = this.readPointer() 1558 return (value: TimePickerResult): void => { 1559 const _argsSerializer: Serializer = Serializer.hold(); 1560 _argsSerializer.writeInt32(_resource.resourceId); 1561 _argsSerializer.writePointer(_call); 1562 _argsSerializer.writePointer(_callSync); 1563 _argsSerializer.writeTimePickerResult(value); 1564 (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); 1565 _argsSerializer.release(); 1566 return; } 1567 } 1568 readRectangle(): Rectangle { 1569 let valueDeserializer: Deserializer = this 1570 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1571 let x_buf: Length | undefined|undefined 1572 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 1573 { 1574 x_buf = (valueDeserializer.readLength() as Length) 1575 } 1576 const x_result: Length | undefined|undefined = x_buf 1577 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1578 let y_buf: Length | undefined|undefined 1579 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 1580 { 1581 y_buf = (valueDeserializer.readLength() as Length) 1582 } 1583 const y_result: Length | undefined|undefined = y_buf 1584 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1585 let width_buf: Length | undefined|undefined 1586 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 1587 { 1588 width_buf = (valueDeserializer.readLength() as Length) 1589 } 1590 const width_result: Length | undefined|undefined = width_buf 1591 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1592 let height_buf: Length | undefined|undefined 1593 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 1594 { 1595 height_buf = (valueDeserializer.readLength() as Length) 1596 } 1597 const height_result: Length | undefined|undefined = height_buf 1598 let value: Rectangle = ({x: x_result, y: y_result, width: width_result, height: height_result} as Rectangle) 1599 return value 1600 } 1601 readPickerTextStyle(): PickerTextStyle { 1602 let valueDeserializer: Deserializer = this 1603 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1604 let color_buf: ResourceColor | undefined|undefined 1605 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 1606 { 1607 const color_buf__selector: number = valueDeserializer.readInt8() 1608 let color_buf_: Color | number | string | Resource | undefined|undefined 1609 if (color_buf__selector == 0) { 1610 color_buf_ = (valueDeserializer.readInt32() as Color) 1611 } 1612 else if (color_buf__selector == 1) { 1613 color_buf_ = (valueDeserializer.readNumber() as number) 1614 } 1615 else if (color_buf__selector == 2) { 1616 color_buf_ = (valueDeserializer.readString() as string) 1617 } 1618 else if (color_buf__selector == 3) { 1619 color_buf_ = valueDeserializer.readResource() 1620 } 1621 else { 1622 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 1623 } 1624 color_buf = (color_buf_ as Color | number | string | Resource) 1625 } 1626 const color_result: ResourceColor | undefined|undefined = color_buf 1627 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1628 let font_buf: Font | undefined|undefined 1629 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 1630 { 1631 font_buf = valueDeserializer.readFont() 1632 } 1633 const font_result: Font | undefined|undefined = font_buf 1634 let value: PickerTextStyle = ({color: color_result, font: font_result} as PickerTextStyle) 1635 return value 1636 } 1637 readPickerDialogButtonStyle(): PickerDialogButtonStyle { 1638 let valueDeserializer: Deserializer = this 1639 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1640 let type_buf: ButtonType | undefined|undefined 1641 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 1642 { 1643 type_buf = (valueDeserializer.readInt32() as ButtonType) 1644 } 1645 const type_result: ButtonType | undefined|undefined = type_buf 1646 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1647 let style_buf: ButtonStyleMode | undefined|undefined 1648 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1649 { 1650 style_buf = (valueDeserializer.readInt32() as ButtonStyleMode) 1651 } 1652 const style_result: ButtonStyleMode | undefined|undefined = style_buf 1653 const role_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1654 let role_buf: ButtonRole | undefined|undefined 1655 if ((RuntimeType.UNDEFINED) != (role_buf_runtimeType)) 1656 { 1657 role_buf = (valueDeserializer.readInt32() as ButtonRole) 1658 } 1659 const role_result: ButtonRole | undefined|undefined = role_buf 1660 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1661 let fontSize_buf: Length | undefined|undefined 1662 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 1663 { 1664 fontSize_buf = (valueDeserializer.readLength() as Length) 1665 } 1666 const fontSize_result: Length | undefined|undefined = fontSize_buf 1667 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1668 let fontColor_buf: ResourceColor | undefined|undefined 1669 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 1670 { 1671 const fontColor_buf__selector: number = valueDeserializer.readInt8() 1672 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 1673 if (fontColor_buf__selector == 0) { 1674 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 1675 } 1676 else if (fontColor_buf__selector == 1) { 1677 fontColor_buf_ = (valueDeserializer.readNumber() as number) 1678 } 1679 else if (fontColor_buf__selector == 2) { 1680 fontColor_buf_ = (valueDeserializer.readString() as string) 1681 } 1682 else if (fontColor_buf__selector == 3) { 1683 fontColor_buf_ = valueDeserializer.readResource() 1684 } 1685 else { 1686 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 1687 } 1688 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 1689 } 1690 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 1691 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1692 let fontWeight_buf: FontWeight | number | string | undefined|undefined 1693 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 1694 { 1695 const fontWeight_buf__selector: number = valueDeserializer.readInt8() 1696 let fontWeight_buf_: FontWeight | number | string | undefined|undefined 1697 if (fontWeight_buf__selector == 0) { 1698 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 1699 } 1700 else if (fontWeight_buf__selector == 1) { 1701 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 1702 } 1703 else if (fontWeight_buf__selector == 2) { 1704 fontWeight_buf_ = (valueDeserializer.readString() as string) 1705 } 1706 else { 1707 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 1708 } 1709 fontWeight_buf = (fontWeight_buf_ as FontWeight | number | string) 1710 } 1711 const fontWeight_result: FontWeight | number | string | undefined|undefined = fontWeight_buf 1712 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1713 let fontStyle_buf: FontStyle | undefined|undefined 1714 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 1715 { 1716 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 1717 } 1718 const fontStyle_result: FontStyle | undefined|undefined = fontStyle_buf 1719 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1720 let fontFamily_buf: Resource | string | undefined|undefined 1721 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 1722 { 1723 const fontFamily_buf__selector: number = valueDeserializer.readInt8() 1724 let fontFamily_buf_: Resource | string | undefined|undefined 1725 if (fontFamily_buf__selector == 0) { 1726 fontFamily_buf_ = valueDeserializer.readResource() 1727 } 1728 else if (fontFamily_buf__selector == 1) { 1729 fontFamily_buf_ = (valueDeserializer.readString() as string) 1730 } 1731 else { 1732 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 1733 } 1734 fontFamily_buf = (fontFamily_buf_ as Resource | string) 1735 } 1736 const fontFamily_result: Resource | string | undefined|undefined = fontFamily_buf 1737 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1738 let backgroundColor_buf: ResourceColor | undefined|undefined 1739 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 1740 { 1741 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 1742 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 1743 if (backgroundColor_buf__selector == 0) { 1744 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 1745 } 1746 else if (backgroundColor_buf__selector == 1) { 1747 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 1748 } 1749 else if (backgroundColor_buf__selector == 2) { 1750 backgroundColor_buf_ = (valueDeserializer.readString() as string) 1751 } 1752 else if (backgroundColor_buf__selector == 3) { 1753 backgroundColor_buf_ = valueDeserializer.readResource() 1754 } 1755 else { 1756 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 1757 } 1758 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 1759 } 1760 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 1761 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1762 let borderRadius_buf: Length | BorderRadiuses | undefined|undefined 1763 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 1764 { 1765 const borderRadius_buf__selector: number = valueDeserializer.readInt8() 1766 let borderRadius_buf_: Length | BorderRadiuses | undefined|undefined 1767 if (borderRadius_buf__selector == 0) { 1768 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 1769 } 1770 else if (borderRadius_buf__selector == 1) { 1771 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1772 let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined 1773 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 1774 { 1775 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 1776 } 1777 const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf 1778 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1779 let borderRadius_buf__u_topRight_buf: Length | undefined|undefined 1780 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 1781 { 1782 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 1783 } 1784 const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf 1785 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1786 let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 1787 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 1788 { 1789 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 1790 } 1791 const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf 1792 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1793 let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined 1794 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 1795 { 1796 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 1797 } 1798 const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf 1799 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 1800 } 1801 else { 1802 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 1803 } 1804 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses) 1805 } 1806 const borderRadius_result: Length | BorderRadiuses | undefined|undefined = borderRadius_buf 1807 const primary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1808 let primary_buf: boolean | undefined|undefined 1809 if ((RuntimeType.UNDEFINED) != (primary_buf_runtimeType)) 1810 { 1811 primary_buf = valueDeserializer.readBoolean() 1812 } 1813 const primary_result: boolean | undefined|undefined = primary_buf 1814 let value: PickerDialogButtonStyle = ({type: type_result, style: style_result, role: role_result, fontSize: fontSize_result, fontColor: fontColor_result, fontWeight: fontWeight_result, fontStyle: fontStyle_result, fontFamily: fontFamily_result, backgroundColor: backgroundColor_result, borderRadius: borderRadius_result, primary: primary_result} as PickerDialogButtonStyle) 1815 return value 1816 } 1817 readCallback_TextPickerResult_Void(isSync: boolean = false): ((value: TextPickerResult) => void) { 1818 const _resource: CallbackResource = this.readCallbackResource() 1819 const _call: KPointer = this.readPointer() 1820 const _callSync: KPointer = this.readPointer() 1821 return (value: TextPickerResult): void => { 1822 const _argsSerializer: Serializer = Serializer.hold(); 1823 _argsSerializer.writeInt32(_resource.resourceId); 1824 _argsSerializer.writePointer(_call); 1825 _argsSerializer.writePointer(_callSync); 1826 _argsSerializer.writeTextPickerResult(value); 1827 (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); 1828 _argsSerializer.release(); 1829 return; } 1830 } 1831 readTextMenuItemId(): TextMenuItemId { 1832 let valueDeserializer: Deserializer = this 1833 let ptr: KPointer = valueDeserializer.readPointer() 1834 return TextMenuItemIdInternal.fromPtr(ptr) 1835 } 1836 readAffinity(): Affinity { 1837 let valueDeserializer: Deserializer = this 1838 const _AffinityStub_result: string = (valueDeserializer.readString() as string) 1839 let value: Affinity = ({_AffinityStub: _AffinityStub_result} as Affinity) 1840 return value 1841 } 1842 readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { 1843 const _resource: CallbackResource = this.readCallbackResource() 1844 const _call: KPointer = this.readPointer() 1845 const _callSync: KPointer = this.readPointer() 1846 return (start: number, end: number): void => { 1847 const _argsSerializer: Serializer = Serializer.hold(); 1848 _argsSerializer.writeInt32(_resource.resourceId); 1849 _argsSerializer.writePointer(_call); 1850 _argsSerializer.writePointer(_callSync); 1851 _argsSerializer.writeNumber(start); 1852 _argsSerializer.writeNumber(end); 1853 (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); 1854 _argsSerializer.release(); 1855 return; } 1856 } 1857 readTabBarIconStyle(): TabBarIconStyle { 1858 let valueDeserializer: Deserializer = this 1859 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1860 let selectedColor_buf: ResourceColor | undefined|undefined 1861 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 1862 { 1863 const selectedColor_buf__selector: number = valueDeserializer.readInt8() 1864 let selectedColor_buf_: Color | number | string | Resource | undefined|undefined 1865 if (selectedColor_buf__selector == 0) { 1866 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 1867 } 1868 else if (selectedColor_buf__selector == 1) { 1869 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 1870 } 1871 else if (selectedColor_buf__selector == 2) { 1872 selectedColor_buf_ = (valueDeserializer.readString() as string) 1873 } 1874 else if (selectedColor_buf__selector == 3) { 1875 selectedColor_buf_ = valueDeserializer.readResource() 1876 } 1877 else { 1878 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 1879 } 1880 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 1881 } 1882 const selectedColor_result: ResourceColor | undefined|undefined = selectedColor_buf 1883 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1884 let unselectedColor_buf: ResourceColor | undefined|undefined 1885 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 1886 { 1887 const unselectedColor_buf__selector: number = valueDeserializer.readInt8() 1888 let unselectedColor_buf_: Color | number | string | Resource | undefined|undefined 1889 if (unselectedColor_buf__selector == 0) { 1890 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 1891 } 1892 else if (unselectedColor_buf__selector == 1) { 1893 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 1894 } 1895 else if (unselectedColor_buf__selector == 2) { 1896 unselectedColor_buf_ = (valueDeserializer.readString() as string) 1897 } 1898 else if (unselectedColor_buf__selector == 3) { 1899 unselectedColor_buf_ = valueDeserializer.readResource() 1900 } 1901 else { 1902 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 1903 } 1904 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 1905 } 1906 const unselectedColor_result: ResourceColor | undefined|undefined = unselectedColor_buf 1907 let value: TabBarIconStyle = ({selectedColor: selectedColor_result, unselectedColor: unselectedColor_result} as TabBarIconStyle) 1908 return value 1909 } 1910 readLabelStyle(): LabelStyle { 1911 let valueDeserializer: Deserializer = this 1912 const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1913 let overflow_buf: TextOverflow | undefined|undefined 1914 if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) 1915 { 1916 overflow_buf = (valueDeserializer.readInt32() as TextOverflow) 1917 } 1918 const overflow_result: TextOverflow | undefined|undefined = overflow_buf 1919 const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1920 let maxLines_buf: number | undefined|undefined 1921 if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) 1922 { 1923 maxLines_buf = (valueDeserializer.readNumber() as number) 1924 } 1925 const maxLines_result: number | undefined|undefined = maxLines_buf 1926 const minFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1927 let minFontSize_buf: number | ResourceStr | undefined|undefined 1928 if ((RuntimeType.UNDEFINED) != (minFontSize_buf_runtimeType)) 1929 { 1930 const minFontSize_buf__selector: number = valueDeserializer.readInt8() 1931 let minFontSize_buf_: number | ResourceStr | undefined|undefined 1932 if (minFontSize_buf__selector == 0) { 1933 minFontSize_buf_ = (valueDeserializer.readNumber() as number) 1934 } 1935 else if (minFontSize_buf__selector == 1) { 1936 const minFontSize_buf__u_selector: number = valueDeserializer.readInt8() 1937 let minFontSize_buf__u: string | Resource | undefined|undefined 1938 if (minFontSize_buf__u_selector == 0) { 1939 minFontSize_buf__u = (valueDeserializer.readString() as string) 1940 } 1941 else if (minFontSize_buf__u_selector == 1) { 1942 minFontSize_buf__u = valueDeserializer.readResource() 1943 } 1944 else { 1945 throw new Error("One of the branches for minFontSize_buf__u has to be chosen through deserialisation.") 1946 } 1947 minFontSize_buf_ = (minFontSize_buf__u as string | Resource) 1948 } 1949 else { 1950 throw new Error("One of the branches for minFontSize_buf_ has to be chosen through deserialisation.") 1951 } 1952 minFontSize_buf = (minFontSize_buf_ as number | ResourceStr) 1953 } 1954 const minFontSize_result: number | ResourceStr | undefined|undefined = minFontSize_buf 1955 const maxFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1956 let maxFontSize_buf: number | ResourceStr | undefined|undefined 1957 if ((RuntimeType.UNDEFINED) != (maxFontSize_buf_runtimeType)) 1958 { 1959 const maxFontSize_buf__selector: number = valueDeserializer.readInt8() 1960 let maxFontSize_buf_: number | ResourceStr | undefined|undefined 1961 if (maxFontSize_buf__selector == 0) { 1962 maxFontSize_buf_ = (valueDeserializer.readNumber() as number) 1963 } 1964 else if (maxFontSize_buf__selector == 1) { 1965 const maxFontSize_buf__u_selector: number = valueDeserializer.readInt8() 1966 let maxFontSize_buf__u: string | Resource | undefined|undefined 1967 if (maxFontSize_buf__u_selector == 0) { 1968 maxFontSize_buf__u = (valueDeserializer.readString() as string) 1969 } 1970 else if (maxFontSize_buf__u_selector == 1) { 1971 maxFontSize_buf__u = valueDeserializer.readResource() 1972 } 1973 else { 1974 throw new Error("One of the branches for maxFontSize_buf__u has to be chosen through deserialisation.") 1975 } 1976 maxFontSize_buf_ = (maxFontSize_buf__u as string | Resource) 1977 } 1978 else { 1979 throw new Error("One of the branches for maxFontSize_buf_ has to be chosen through deserialisation.") 1980 } 1981 maxFontSize_buf = (maxFontSize_buf_ as number | ResourceStr) 1982 } 1983 const maxFontSize_result: number | ResourceStr | undefined|undefined = maxFontSize_buf 1984 const heightAdaptivePolicy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1985 let heightAdaptivePolicy_buf: TextHeightAdaptivePolicy | undefined|undefined 1986 if ((RuntimeType.UNDEFINED) != (heightAdaptivePolicy_buf_runtimeType)) 1987 { 1988 heightAdaptivePolicy_buf = (valueDeserializer.readInt32() as TextHeightAdaptivePolicy) 1989 } 1990 const heightAdaptivePolicy_result: TextHeightAdaptivePolicy | undefined|undefined = heightAdaptivePolicy_buf 1991 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1992 let font_buf: Font | undefined|undefined 1993 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 1994 { 1995 font_buf = valueDeserializer.readFont() 1996 } 1997 const font_result: Font | undefined|undefined = font_buf 1998 let value: LabelStyle = ({overflow: overflow_result, maxLines: maxLines_result, minFontSize: minFontSize_result, maxFontSize: maxFontSize_result, heightAdaptivePolicy: heightAdaptivePolicy_result, font: font_result} as LabelStyle) 1999 return value 2000 } 2001 readBoardStyle(): BoardStyle { 2002 let valueDeserializer: Deserializer = this 2003 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2004 let borderRadius_buf: Length | undefined|undefined 2005 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 2006 { 2007 borderRadius_buf = (valueDeserializer.readLength() as Length) 2008 } 2009 const borderRadius_result: Length | undefined|undefined = borderRadius_buf 2010 let value: BoardStyle = ({borderRadius: borderRadius_result} as BoardStyle) 2011 return value 2012 } 2013 readIndicatorStyle(): IndicatorStyle { 2014 let valueDeserializer: Deserializer = this 2015 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2016 let left_buf: Length | undefined|undefined 2017 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 2018 { 2019 left_buf = (valueDeserializer.readLength() as Length) 2020 } 2021 const left_result: Length | undefined|undefined = left_buf 2022 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2023 let top_buf: Length | undefined|undefined 2024 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 2025 { 2026 top_buf = (valueDeserializer.readLength() as Length) 2027 } 2028 const top_result: Length | undefined|undefined = top_buf 2029 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2030 let right_buf: Length | undefined|undefined 2031 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 2032 { 2033 right_buf = (valueDeserializer.readLength() as Length) 2034 } 2035 const right_result: Length | undefined|undefined = right_buf 2036 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2037 let bottom_buf: Length | undefined|undefined 2038 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 2039 { 2040 bottom_buf = (valueDeserializer.readLength() as Length) 2041 } 2042 const bottom_result: Length | undefined|undefined = bottom_buf 2043 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2044 let size_buf: Length | undefined|undefined 2045 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2046 { 2047 size_buf = (valueDeserializer.readLength() as Length) 2048 } 2049 const size_result: Length | undefined|undefined = size_buf 2050 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2051 let mask_buf: boolean | undefined|undefined 2052 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 2053 { 2054 mask_buf = valueDeserializer.readBoolean() 2055 } 2056 const mask_result: boolean | undefined|undefined = mask_buf 2057 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2058 let color_buf: ResourceColor | undefined|undefined 2059 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 2060 { 2061 const color_buf__selector: number = valueDeserializer.readInt8() 2062 let color_buf_: Color | number | string | Resource | undefined|undefined 2063 if (color_buf__selector == 0) { 2064 color_buf_ = (valueDeserializer.readInt32() as Color) 2065 } 2066 else if (color_buf__selector == 1) { 2067 color_buf_ = (valueDeserializer.readNumber() as number) 2068 } 2069 else if (color_buf__selector == 2) { 2070 color_buf_ = (valueDeserializer.readString() as string) 2071 } 2072 else if (color_buf__selector == 3) { 2073 color_buf_ = valueDeserializer.readResource() 2074 } 2075 else { 2076 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 2077 } 2078 color_buf = (color_buf_ as Color | number | string | Resource) 2079 } 2080 const color_result: ResourceColor | undefined|undefined = color_buf 2081 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2082 let selectedColor_buf: ResourceColor | undefined|undefined 2083 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 2084 { 2085 const selectedColor_buf__selector: number = valueDeserializer.readInt8() 2086 let selectedColor_buf_: Color | number | string | Resource | undefined|undefined 2087 if (selectedColor_buf__selector == 0) { 2088 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2089 } 2090 else if (selectedColor_buf__selector == 1) { 2091 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 2092 } 2093 else if (selectedColor_buf__selector == 2) { 2094 selectedColor_buf_ = (valueDeserializer.readString() as string) 2095 } 2096 else if (selectedColor_buf__selector == 3) { 2097 selectedColor_buf_ = valueDeserializer.readResource() 2098 } 2099 else { 2100 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 2101 } 2102 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 2103 } 2104 const selectedColor_result: ResourceColor | undefined|undefined = selectedColor_buf 2105 let value: IndicatorStyle = ({left: left_result, top: top_result, right: right_result, bottom: bottom_result, size: size_result, mask: mask_result, color: color_result, selectedColor: selectedColor_result} as IndicatorStyle) 2106 return value 2107 } 2108 readBlurOptions(): BlurOptions { 2109 let valueDeserializer: Deserializer = this 2110 const grayscale_buf_value0: number = (valueDeserializer.readNumber() as number) 2111 const grayscale_buf_value1: number = (valueDeserializer.readNumber() as number) 2112 const grayscale_result: [ number, number ] = ([grayscale_buf_value0, grayscale_buf_value1] as [ number, number ]) 2113 let value: BlurOptions = ({grayscale: grayscale_result} as BlurOptions) 2114 return value 2115 } 2116 readCallback_TabContentTransitionProxy_Void(isSync: boolean = false): ((parameter: TabContentTransitionProxy) => void) { 2117 const _resource: CallbackResource = this.readCallbackResource() 2118 const _call: KPointer = this.readPointer() 2119 const _callSync: KPointer = this.readPointer() 2120 return (parameter: TabContentTransitionProxy): void => { 2121 const _argsSerializer: Serializer = Serializer.hold(); 2122 _argsSerializer.writeInt32(_resource.resourceId); 2123 _argsSerializer.writePointer(_call); 2124 _argsSerializer.writePointer(_callSync); 2125 _argsSerializer.writeTabContentTransitionProxy(parameter); 2126 (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); 2127 _argsSerializer.release(); 2128 return; } 2129 } 2130 readIconOptions(): IconOptions { 2131 let valueDeserializer: Deserializer = this 2132 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2133 let size_buf: Length | undefined|undefined 2134 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2135 { 2136 size_buf = (valueDeserializer.readLength() as Length) 2137 } 2138 const size_result: Length | undefined|undefined = size_buf 2139 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2140 let color_buf: ResourceColor | undefined|undefined 2141 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 2142 { 2143 const color_buf__selector: number = valueDeserializer.readInt8() 2144 let color_buf_: Color | number | string | Resource | undefined|undefined 2145 if (color_buf__selector == 0) { 2146 color_buf_ = (valueDeserializer.readInt32() as Color) 2147 } 2148 else if (color_buf__selector == 1) { 2149 color_buf_ = (valueDeserializer.readNumber() as number) 2150 } 2151 else if (color_buf__selector == 2) { 2152 color_buf_ = (valueDeserializer.readString() as string) 2153 } 2154 else if (color_buf__selector == 3) { 2155 color_buf_ = valueDeserializer.readResource() 2156 } 2157 else { 2158 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 2159 } 2160 color_buf = (color_buf_ as Color | number | string | Resource) 2161 } 2162 const color_result: ResourceColor | undefined|undefined = color_buf 2163 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2164 let src_buf: ResourceStr | undefined|undefined 2165 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 2166 { 2167 const src_buf__selector: number = valueDeserializer.readInt8() 2168 let src_buf_: string | Resource | undefined|undefined 2169 if (src_buf__selector == 0) { 2170 src_buf_ = (valueDeserializer.readString() as string) 2171 } 2172 else if (src_buf__selector == 1) { 2173 src_buf_ = valueDeserializer.readResource() 2174 } 2175 else { 2176 throw new Error("One of the branches for src_buf_ has to be chosen through deserialisation.") 2177 } 2178 src_buf = (src_buf_ as string | Resource) 2179 } 2180 const src_result: ResourceStr | undefined|undefined = src_buf 2181 let value: IconOptions = ({size: size_result, color: color_result, src: src_result} as IconOptions) 2182 return value 2183 } 2184 readRichEditorImageSpanStyleResult(): RichEditorImageSpanStyleResult { 2185 let valueDeserializer: Deserializer = this 2186 const size_buf_value0: number = (valueDeserializer.readNumber() as number) 2187 const size_buf_value1: number = (valueDeserializer.readNumber() as number) 2188 const size_result: [ number, number ] = ([size_buf_value0, size_buf_value1] as [ number, number ]) 2189 const verticalAlign_result: ImageSpanAlignment = (valueDeserializer.readInt32() as ImageSpanAlignment) 2190 const objectFit_result: ImageFit = (valueDeserializer.readInt32() as ImageFit) 2191 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2192 let layoutStyle_buf: RichEditorLayoutStyle | undefined|undefined 2193 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 2194 { 2195 layoutStyle_buf = valueDeserializer.readRichEditorLayoutStyle() 2196 } 2197 const layoutStyle_result: RichEditorLayoutStyle | undefined|undefined = layoutStyle_buf 2198 let value: RichEditorImageSpanStyleResult = ({size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as RichEditorImageSpanStyleResult) 2199 return value 2200 } 2201 readRichEditorSpanPosition(): RichEditorSpanPosition { 2202 let valueDeserializer: Deserializer = this 2203 const spanIndex_result: number = (valueDeserializer.readNumber() as number) 2204 const spanRange_buf_value0: number = (valueDeserializer.readNumber() as number) 2205 const spanRange_buf_value1: number = (valueDeserializer.readNumber() as number) 2206 const spanRange_result: [ number, number ] = ([spanRange_buf_value0, spanRange_buf_value1] as [ number, number ]) 2207 let value: RichEditorSpanPosition = ({spanIndex: spanIndex_result, spanRange: spanRange_result} as RichEditorSpanPosition) 2208 return value 2209 } 2210 readRichEditorParagraphStyle(): RichEditorParagraphStyle { 2211 let valueDeserializer: Deserializer = this 2212 const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2213 let textAlign_buf: TextAlign | undefined|undefined 2214 if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) 2215 { 2216 textAlign_buf = (valueDeserializer.readInt32() as TextAlign) 2217 } 2218 const textAlign_result: TextAlign | undefined|undefined = textAlign_buf 2219 const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2220 let leadingMargin_buf: Dimension | LeadingMarginPlaceholder | undefined|undefined 2221 if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) 2222 { 2223 const leadingMargin_buf__selector: number = valueDeserializer.readInt8() 2224 let leadingMargin_buf_: Dimension | LeadingMarginPlaceholder | undefined|undefined 2225 if (leadingMargin_buf__selector == 0) { 2226 leadingMargin_buf_ = (valueDeserializer.readLength() as Dimension) 2227 } 2228 else if (leadingMargin_buf__selector == 1) { 2229 leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() 2230 } 2231 else { 2232 throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") 2233 } 2234 leadingMargin_buf = (leadingMargin_buf_ as Dimension | LeadingMarginPlaceholder) 2235 } 2236 const leadingMargin_result: Dimension | LeadingMarginPlaceholder | undefined|undefined = leadingMargin_buf 2237 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2238 let wordBreak_buf: WordBreak | undefined|undefined 2239 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 2240 { 2241 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 2242 } 2243 const wordBreak_result: WordBreak | undefined|undefined = wordBreak_buf 2244 const lineBreakStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2245 let lineBreakStrategy_buf: LineBreakStrategy | undefined|undefined 2246 if ((RuntimeType.UNDEFINED) != (lineBreakStrategy_buf_runtimeType)) 2247 { 2248 lineBreakStrategy_buf = (valueDeserializer.readInt32() as LineBreakStrategy) 2249 } 2250 const lineBreakStrategy_result: LineBreakStrategy | undefined|undefined = lineBreakStrategy_buf 2251 let value: RichEditorParagraphStyle = ({textAlign: textAlign_result, leadingMargin: leadingMargin_result, wordBreak: wordBreak_result, lineBreakStrategy: lineBreakStrategy_result} as RichEditorParagraphStyle) 2252 return value 2253 } 2254 readRichEditorSymbolSpanStyle(): RichEditorSymbolSpanStyle { 2255 let valueDeserializer: Deserializer = this 2256 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2257 let fontSize_buf: number | string | Resource | undefined|undefined 2258 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 2259 { 2260 const fontSize_buf__selector: number = valueDeserializer.readInt8() 2261 let fontSize_buf_: number | string | Resource | undefined|undefined 2262 if (fontSize_buf__selector == 0) { 2263 fontSize_buf_ = (valueDeserializer.readNumber() as number) 2264 } 2265 else if (fontSize_buf__selector == 1) { 2266 fontSize_buf_ = (valueDeserializer.readString() as string) 2267 } 2268 else if (fontSize_buf__selector == 2) { 2269 fontSize_buf_ = valueDeserializer.readResource() 2270 } 2271 else { 2272 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 2273 } 2274 fontSize_buf = (fontSize_buf_ as number | string | Resource) 2275 } 2276 const fontSize_result: number | string | Resource | undefined|undefined = fontSize_buf 2277 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2278 let fontColor_buf: Array<ResourceColor> | undefined|undefined 2279 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 2280 { 2281 const fontColor_buf__length: int32 = valueDeserializer.readInt32() 2282 let fontColor_buf_: Array<ResourceColor> = new Array<ResourceColor>(fontColor_buf__length) 2283 for (let fontColor_buf__i = 0; fontColor_buf__i < fontColor_buf__length; fontColor_buf__i++) { 2284 const fontColor_buf__buf_selector: number = valueDeserializer.readInt8() 2285 let fontColor_buf__buf: Color | number | string | Resource | undefined|undefined 2286 if (fontColor_buf__buf_selector == 0) { 2287 fontColor_buf__buf = (valueDeserializer.readInt32() as Color) 2288 } 2289 else if (fontColor_buf__buf_selector == 1) { 2290 fontColor_buf__buf = (valueDeserializer.readNumber() as number) 2291 } 2292 else if (fontColor_buf__buf_selector == 2) { 2293 fontColor_buf__buf = (valueDeserializer.readString() as string) 2294 } 2295 else if (fontColor_buf__buf_selector == 3) { 2296 fontColor_buf__buf = valueDeserializer.readResource() 2297 } 2298 else { 2299 throw new Error("One of the branches for fontColor_buf__buf has to be chosen through deserialisation.") 2300 } 2301 fontColor_buf_[fontColor_buf__i] = (fontColor_buf__buf as Color | number | string | Resource) 2302 } 2303 fontColor_buf = fontColor_buf_ 2304 } 2305 const fontColor_result: Array<ResourceColor> | undefined|undefined = fontColor_buf 2306 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2307 let fontWeight_buf: number | FontWeight | string | undefined|undefined 2308 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 2309 { 2310 const fontWeight_buf__selector: number = valueDeserializer.readInt8() 2311 let fontWeight_buf_: number | FontWeight | string | undefined|undefined 2312 if (fontWeight_buf__selector == 0) { 2313 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 2314 } 2315 else if (fontWeight_buf__selector == 1) { 2316 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 2317 } 2318 else if (fontWeight_buf__selector == 2) { 2319 fontWeight_buf_ = (valueDeserializer.readString() as string) 2320 } 2321 else { 2322 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 2323 } 2324 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 2325 } 2326 const fontWeight_result: number | FontWeight | string | undefined|undefined = fontWeight_buf 2327 const effectStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2328 let effectStrategy_buf: SymbolEffectStrategy | undefined|undefined 2329 if ((RuntimeType.UNDEFINED) != (effectStrategy_buf_runtimeType)) 2330 { 2331 effectStrategy_buf = (valueDeserializer.readInt32() as SymbolEffectStrategy) 2332 } 2333 const effectStrategy_result: SymbolEffectStrategy | undefined|undefined = effectStrategy_buf 2334 const renderingStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2335 let renderingStrategy_buf: SymbolRenderingStrategy | undefined|undefined 2336 if ((RuntimeType.UNDEFINED) != (renderingStrategy_buf_runtimeType)) 2337 { 2338 renderingStrategy_buf = (valueDeserializer.readInt32() as SymbolRenderingStrategy) 2339 } 2340 const renderingStrategy_result: SymbolRenderingStrategy | undefined|undefined = renderingStrategy_buf 2341 let value: RichEditorSymbolSpanStyle = ({fontSize: fontSize_result, fontColor: fontColor_result, fontWeight: fontWeight_result, effectStrategy: effectStrategy_result, renderingStrategy: renderingStrategy_result} as RichEditorSymbolSpanStyle) 2342 return value 2343 } 2344 readRichEditorTextStyleResult(): RichEditorTextStyleResult { 2345 let valueDeserializer: Deserializer = this 2346 const fontColor_buf_selector: number = valueDeserializer.readInt8() 2347 let fontColor_buf: Color | number | string | Resource | undefined|undefined 2348 if (fontColor_buf_selector == 0) { 2349 fontColor_buf = (valueDeserializer.readInt32() as Color) 2350 } 2351 else if (fontColor_buf_selector == 1) { 2352 fontColor_buf = (valueDeserializer.readNumber() as number) 2353 } 2354 else if (fontColor_buf_selector == 2) { 2355 fontColor_buf = (valueDeserializer.readString() as string) 2356 } 2357 else if (fontColor_buf_selector == 3) { 2358 fontColor_buf = valueDeserializer.readResource() 2359 } 2360 else { 2361 throw new Error("One of the branches for fontColor_buf has to be chosen through deserialisation.") 2362 } 2363 const fontColor_result: ResourceColor = (fontColor_buf as Color | number | string | Resource) 2364 const fontSize_result: number = (valueDeserializer.readNumber() as number) 2365 const fontStyle_result: FontStyle = (valueDeserializer.readInt32() as FontStyle) 2366 const fontWeight_result: number = (valueDeserializer.readNumber() as number) 2367 const fontFamily_result: string = (valueDeserializer.readString() as string) 2368 const decoration_result: DecorationStyleResult = valueDeserializer.readDecorationStyleResult() 2369 const textShadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2370 let textShadow_buf: Array<ShadowOptions> | undefined|undefined 2371 if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) 2372 { 2373 const textShadow_buf__length: int32 = valueDeserializer.readInt32() 2374 let textShadow_buf_: Array<ShadowOptions> = new Array<ShadowOptions>(textShadow_buf__length) 2375 for (let textShadow_buf__i = 0; textShadow_buf__i < textShadow_buf__length; textShadow_buf__i++) { 2376 textShadow_buf_[textShadow_buf__i] = valueDeserializer.readShadowOptions() 2377 } 2378 textShadow_buf = textShadow_buf_ 2379 } 2380 const textShadow_result: Array<ShadowOptions> | undefined|undefined = textShadow_buf 2381 const letterSpacing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2382 let letterSpacing_buf: number | undefined|undefined 2383 if ((RuntimeType.UNDEFINED) != (letterSpacing_buf_runtimeType)) 2384 { 2385 letterSpacing_buf = (valueDeserializer.readNumber() as number) 2386 } 2387 const letterSpacing_result: number | undefined|undefined = letterSpacing_buf 2388 const lineHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2389 let lineHeight_buf: number | undefined|undefined 2390 if ((RuntimeType.UNDEFINED) != (lineHeight_buf_runtimeType)) 2391 { 2392 lineHeight_buf = (valueDeserializer.readNumber() as number) 2393 } 2394 const lineHeight_result: number | undefined|undefined = lineHeight_buf 2395 const fontFeature_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2396 let fontFeature_buf: string | undefined|undefined 2397 if ((RuntimeType.UNDEFINED) != (fontFeature_buf_runtimeType)) 2398 { 2399 fontFeature_buf = (valueDeserializer.readString() as string) 2400 } 2401 const fontFeature_result: string | undefined|undefined = fontFeature_buf 2402 let value: RichEditorTextStyleResult = ({fontColor: fontColor_result, fontSize: fontSize_result, fontStyle: fontStyle_result, fontWeight: fontWeight_result, fontFamily: fontFamily_result, decoration: decoration_result, textShadow: textShadow_result, letterSpacing: letterSpacing_result, lineHeight: lineHeight_result, fontFeature: fontFeature_result} as RichEditorTextStyleResult) 2403 return value 2404 } 2405 readOnDidChangeCallback(isSync: boolean = false): OnDidChangeCallback { 2406 const _resource: CallbackResource = this.readCallbackResource() 2407 const _call: KPointer = this.readPointer() 2408 const _callSync: KPointer = this.readPointer() 2409 return (rangeBefore: TextRange, rangeAfter: TextRange): void => { 2410 const _argsSerializer: Serializer = Serializer.hold(); 2411 _argsSerializer.writeInt32(_resource.resourceId); 2412 _argsSerializer.writePointer(_call); 2413 _argsSerializer.writePointer(_callSync); 2414 _argsSerializer.writeTextRange(rangeBefore); 2415 _argsSerializer.writeTextRange(rangeAfter); 2416 (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); 2417 _argsSerializer.release(); 2418 return; } 2419 } 2420 readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { 2421 const _resource: CallbackResource = this.readCallbackResource() 2422 const _call: KPointer = this.readPointer() 2423 const _callSync: KPointer = this.readPointer() 2424 return (parameter: StyledStringChangeValue): boolean => { 2425 const _argsSerializer: Serializer = Serializer.hold(); 2426 _argsSerializer.writeInt32(_resource.resourceId); 2427 _argsSerializer.writePointer(_call); 2428 _argsSerializer.writePointer(_callSync); 2429 _argsSerializer.writeStyledStringChangeValue(parameter); 2430 let _continuationValue: boolean | undefined|undefined ; 2431 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 2432 _argsSerializer.holdAndWriteCallback(_continuationCallback); 2433 (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); 2434 _argsSerializer.release(); 2435 return (_continuationValue as boolean); } 2436 } 2437 readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { 2438 let valueDeserializer: Deserializer = this 2439 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2440 let size_buf: [ Dimension, Dimension ] | undefined|undefined 2441 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2442 { 2443 const size_buf__value0: Dimension = (valueDeserializer.readLength() as Dimension) 2444 const size_buf__value1: Dimension = (valueDeserializer.readLength() as Dimension) 2445 size_buf = ([size_buf__value0, size_buf__value1] as [ Dimension, Dimension ]) 2446 } 2447 const size_result: [ Dimension, Dimension ] | undefined|undefined = size_buf 2448 const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2449 let verticalAlign_buf: ImageSpanAlignment | undefined|undefined 2450 if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) 2451 { 2452 verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) 2453 } 2454 const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf 2455 const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2456 let objectFit_buf: ImageFit | undefined|undefined 2457 if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) 2458 { 2459 objectFit_buf = (valueDeserializer.readInt32() as ImageFit) 2460 } 2461 const objectFit_result: ImageFit | undefined|undefined = objectFit_buf 2462 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2463 let layoutStyle_buf: RichEditorLayoutStyle | undefined|undefined 2464 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 2465 { 2466 layoutStyle_buf = valueDeserializer.readRichEditorLayoutStyle() 2467 } 2468 const layoutStyle_result: RichEditorLayoutStyle | undefined|undefined = layoutStyle_buf 2469 let value: RichEditorImageSpanStyle = ({size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as RichEditorImageSpanStyle) 2470 return value 2471 } 2472 readRichEditorTextStyle(): RichEditorTextStyle { 2473 let valueDeserializer: Deserializer = this 2474 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2475 let fontColor_buf: ResourceColor | undefined|undefined 2476 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 2477 { 2478 const fontColor_buf__selector: number = valueDeserializer.readInt8() 2479 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 2480 if (fontColor_buf__selector == 0) { 2481 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 2482 } 2483 else if (fontColor_buf__selector == 1) { 2484 fontColor_buf_ = (valueDeserializer.readNumber() as number) 2485 } 2486 else if (fontColor_buf__selector == 2) { 2487 fontColor_buf_ = (valueDeserializer.readString() as string) 2488 } 2489 else if (fontColor_buf__selector == 3) { 2490 fontColor_buf_ = valueDeserializer.readResource() 2491 } 2492 else { 2493 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 2494 } 2495 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 2496 } 2497 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 2498 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2499 let fontSize_buf: Length | number | undefined|undefined 2500 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 2501 { 2502 const fontSize_buf__selector: number = valueDeserializer.readInt8() 2503 let fontSize_buf_: Length | number | undefined|undefined 2504 if (fontSize_buf__selector == 0) { 2505 fontSize_buf_ = (valueDeserializer.readLength() as Length) 2506 } 2507 else if (fontSize_buf__selector == 1) { 2508 fontSize_buf_ = (valueDeserializer.readNumber() as number) 2509 } 2510 else { 2511 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 2512 } 2513 fontSize_buf = (fontSize_buf_ as Length | number) 2514 } 2515 const fontSize_result: Length | number | undefined|undefined = fontSize_buf 2516 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2517 let fontStyle_buf: FontStyle | undefined|undefined 2518 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 2519 { 2520 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 2521 } 2522 const fontStyle_result: FontStyle | undefined|undefined = fontStyle_buf 2523 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2524 let fontWeight_buf: number | FontWeight | string | undefined|undefined 2525 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 2526 { 2527 const fontWeight_buf__selector: number = valueDeserializer.readInt8() 2528 let fontWeight_buf_: number | FontWeight | string | undefined|undefined 2529 if (fontWeight_buf__selector == 0) { 2530 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 2531 } 2532 else if (fontWeight_buf__selector == 1) { 2533 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 2534 } 2535 else if (fontWeight_buf__selector == 2) { 2536 fontWeight_buf_ = (valueDeserializer.readString() as string) 2537 } 2538 else { 2539 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 2540 } 2541 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 2542 } 2543 const fontWeight_result: number | FontWeight | string | undefined|undefined = fontWeight_buf 2544 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2545 let fontFamily_buf: ResourceStr | undefined|undefined 2546 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 2547 { 2548 const fontFamily_buf__selector: number = valueDeserializer.readInt8() 2549 let fontFamily_buf_: string | Resource | undefined|undefined 2550 if (fontFamily_buf__selector == 0) { 2551 fontFamily_buf_ = (valueDeserializer.readString() as string) 2552 } 2553 else if (fontFamily_buf__selector == 1) { 2554 fontFamily_buf_ = valueDeserializer.readResource() 2555 } 2556 else { 2557 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 2558 } 2559 fontFamily_buf = (fontFamily_buf_ as string | Resource) 2560 } 2561 const fontFamily_result: ResourceStr | undefined|undefined = fontFamily_buf 2562 const decoration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2563 let decoration_buf: DecorationStyleInterface | undefined|undefined 2564 if ((RuntimeType.UNDEFINED) != (decoration_buf_runtimeType)) 2565 { 2566 decoration_buf = valueDeserializer.readDecorationStyleInterface() 2567 } 2568 const decoration_result: DecorationStyleInterface | undefined|undefined = decoration_buf 2569 const textShadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2570 let textShadow_buf: ShadowOptions | Array<ShadowOptions> | undefined|undefined 2571 if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) 2572 { 2573 const textShadow_buf__selector: number = valueDeserializer.readInt8() 2574 let textShadow_buf_: ShadowOptions | Array<ShadowOptions> | undefined|undefined 2575 if (textShadow_buf__selector == 0) { 2576 textShadow_buf_ = valueDeserializer.readShadowOptions() 2577 } 2578 else if (textShadow_buf__selector == 1) { 2579 const textShadow_buf__u_length: int32 = valueDeserializer.readInt32() 2580 let textShadow_buf__u: Array<ShadowOptions> = new Array<ShadowOptions>(textShadow_buf__u_length) 2581 for (let textShadow_buf__u_i = 0; textShadow_buf__u_i < textShadow_buf__u_length; textShadow_buf__u_i++) { 2582 textShadow_buf__u[textShadow_buf__u_i] = valueDeserializer.readShadowOptions() 2583 } 2584 textShadow_buf_ = textShadow_buf__u 2585 } 2586 else { 2587 throw new Error("One of the branches for textShadow_buf_ has to be chosen through deserialisation.") 2588 } 2589 textShadow_buf = (textShadow_buf_ as ShadowOptions | Array<ShadowOptions>) 2590 } 2591 const textShadow_result: ShadowOptions | Array<ShadowOptions> | undefined|undefined = textShadow_buf 2592 const letterSpacing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2593 let letterSpacing_buf: number | string | undefined|undefined 2594 if ((RuntimeType.UNDEFINED) != (letterSpacing_buf_runtimeType)) 2595 { 2596 const letterSpacing_buf__selector: number = valueDeserializer.readInt8() 2597 let letterSpacing_buf_: number | string | undefined|undefined 2598 if (letterSpacing_buf__selector == 0) { 2599 letterSpacing_buf_ = (valueDeserializer.readNumber() as number) 2600 } 2601 else if (letterSpacing_buf__selector == 1) { 2602 letterSpacing_buf_ = (valueDeserializer.readString() as string) 2603 } 2604 else { 2605 throw new Error("One of the branches for letterSpacing_buf_ has to be chosen through deserialisation.") 2606 } 2607 letterSpacing_buf = (letterSpacing_buf_ as number | string) 2608 } 2609 const letterSpacing_result: number | string | undefined|undefined = letterSpacing_buf 2610 const lineHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2611 let lineHeight_buf: number | string | Resource | undefined|undefined 2612 if ((RuntimeType.UNDEFINED) != (lineHeight_buf_runtimeType)) 2613 { 2614 const lineHeight_buf__selector: number = valueDeserializer.readInt8() 2615 let lineHeight_buf_: number | string | Resource | undefined|undefined 2616 if (lineHeight_buf__selector == 0) { 2617 lineHeight_buf_ = (valueDeserializer.readNumber() as number) 2618 } 2619 else if (lineHeight_buf__selector == 1) { 2620 lineHeight_buf_ = (valueDeserializer.readString() as string) 2621 } 2622 else if (lineHeight_buf__selector == 2) { 2623 lineHeight_buf_ = valueDeserializer.readResource() 2624 } 2625 else { 2626 throw new Error("One of the branches for lineHeight_buf_ has to be chosen through deserialisation.") 2627 } 2628 lineHeight_buf = (lineHeight_buf_ as number | string | Resource) 2629 } 2630 const lineHeight_result: number | string | Resource | undefined|undefined = lineHeight_buf 2631 const fontFeature_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2632 let fontFeature_buf: string | undefined|undefined 2633 if ((RuntimeType.UNDEFINED) != (fontFeature_buf_runtimeType)) 2634 { 2635 fontFeature_buf = (valueDeserializer.readString() as string) 2636 } 2637 const fontFeature_result: string | undefined|undefined = fontFeature_buf 2638 let value: RichEditorTextStyle = ({fontColor: fontColor_result, fontSize: fontSize_result, fontStyle: fontStyle_result, fontWeight: fontWeight_result, fontFamily: fontFamily_result, decoration: decoration_result, textShadow: textShadow_result, letterSpacing: letterSpacing_result, lineHeight: lineHeight_result, fontFeature: fontFeature_result} as RichEditorTextStyle) 2639 return value 2640 } 2641 readRichEditorGesture(): RichEditorGesture { 2642 let valueDeserializer: Deserializer = this 2643 const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2644 let onClick_buf: ((event: ClickEvent) => void) | undefined|undefined 2645 if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) 2646 { 2647 onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() 2648 } 2649 const onClick_result: ((event: ClickEvent) => void) | undefined|undefined = onClick_buf 2650 const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2651 let onLongPress_buf: ((event: GestureEvent) => void) | undefined|undefined 2652 if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) 2653 { 2654 onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() 2655 } 2656 const onLongPress_result: ((event: GestureEvent) => void) | undefined|undefined = onLongPress_buf 2657 let value: RichEditorGesture = ({onClick: onClick_result, onLongPress: onLongPress_result} as RichEditorGesture) 2658 return value 2659 } 2660 readNavPathStack(): NavPathStack { 2661 let valueDeserializer: Deserializer = this 2662 let ptr: KPointer = valueDeserializer.readPointer() 2663 return NavPathStackInternal.fromPtr(ptr) 2664 } 2665 readNavPathInfo(): NavPathInfo { 2666 let valueDeserializer: Deserializer = this 2667 let ptr: KPointer = valueDeserializer.readPointer() 2668 return NavPathInfoInternal.fromPtr(ptr) 2669 } 2670 readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { 2671 const _resource: CallbackResource = this.readCallbackResource() 2672 const _call: KPointer = this.readPointer() 2673 const _callSync: KPointer = this.readPointer() 2674 return (mode: NavigationMode): void => { 2675 const _argsSerializer: Serializer = Serializer.hold(); 2676 _argsSerializer.writeInt32(_resource.resourceId); 2677 _argsSerializer.writePointer(_call); 2678 _argsSerializer.writePointer(_callSync); 2679 _argsSerializer.writeInt32(mode); 2680 (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); 2681 _argsSerializer.release(); 2682 return; } 2683 } 2684 readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { 2685 const _resource: CallbackResource = this.readCallbackResource() 2686 const _call: KPointer = this.readPointer() 2687 const _callSync: KPointer = this.readPointer() 2688 return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { 2689 const _argsSerializer: Serializer = Serializer.hold(); 2690 _argsSerializer.writeInt32(_resource.resourceId); 2691 _argsSerializer.writePointer(_call); 2692 _argsSerializer.writePointer(_callSync); 2693 let from_type: int32 = RuntimeType.UNDEFINED; 2694 from_type = runtimeType(from); 2695 if (RuntimeType.OBJECT == from_type) { 2696 _argsSerializer.writeInt8(0); 2697 const from_0 = unsafeCast<NavDestinationContext>(from); 2698 _argsSerializer.writeNavDestinationContext(from_0); 2699 } 2700 else if (RuntimeType.STRING == from_type) { 2701 _argsSerializer.writeInt8(1); 2702 const from_1 = unsafeCast<NavBar>(from); 2703 _argsSerializer.writeString(from_1); 2704 } 2705 let to_type: int32 = RuntimeType.UNDEFINED; 2706 to_type = runtimeType(to); 2707 if (RuntimeType.OBJECT == to_type) { 2708 _argsSerializer.writeInt8(0); 2709 const to_0 = unsafeCast<NavDestinationContext>(to); 2710 _argsSerializer.writeNavDestinationContext(to_0); 2711 } 2712 else if (RuntimeType.STRING == to_type) { 2713 _argsSerializer.writeInt8(1); 2714 const to_1 = unsafeCast<NavBar>(to); 2715 _argsSerializer.writeString(to_1); 2716 } 2717 _argsSerializer.writeInt32(operation); 2718 _argsSerializer.writeBoolean(isAnimated); 2719 (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); 2720 _argsSerializer.release(); 2721 return; } 2722 } 2723 readTextModifier(): TextModifier { 2724 let value: TextModifier = ({} as TextModifier) 2725 return value 2726 } 2727 readSwipeActionItem(): SwipeActionItem { 2728 let valueDeserializer: Deserializer = this 2729 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2730 let builder_buf: CustomBuilder | undefined|undefined 2731 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 2732 { 2733 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 2734 } 2735 const builder_result: CustomBuilder | undefined|undefined = builder_buf 2736 const actionAreaDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2737 let actionAreaDistance_buf: Length | undefined|undefined 2738 if ((RuntimeType.UNDEFINED) != (actionAreaDistance_buf_runtimeType)) 2739 { 2740 actionAreaDistance_buf = (valueDeserializer.readLength() as Length) 2741 } 2742 const actionAreaDistance_result: Length | undefined|undefined = actionAreaDistance_buf 2743 const onAction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2744 let onAction_buf: (() => void) | undefined|undefined 2745 if ((RuntimeType.UNDEFINED) != (onAction_buf_runtimeType)) 2746 { 2747 onAction_buf = valueDeserializer.readCallback_Void() 2748 } 2749 const onAction_result: (() => void) | undefined|undefined = onAction_buf 2750 const onEnterActionArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2751 let onEnterActionArea_buf: (() => void) | undefined|undefined 2752 if ((RuntimeType.UNDEFINED) != (onEnterActionArea_buf_runtimeType)) 2753 { 2754 onEnterActionArea_buf = valueDeserializer.readCallback_Void() 2755 } 2756 const onEnterActionArea_result: (() => void) | undefined|undefined = onEnterActionArea_buf 2757 const onExitActionArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2758 let onExitActionArea_buf: (() => void) | undefined|undefined 2759 if ((RuntimeType.UNDEFINED) != (onExitActionArea_buf_runtimeType)) 2760 { 2761 onExitActionArea_buf = valueDeserializer.readCallback_Void() 2762 } 2763 const onExitActionArea_result: (() => void) | undefined|undefined = onExitActionArea_buf 2764 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2765 let onStateChange_buf: ((state: SwipeActionState) => void) | undefined|undefined 2766 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 2767 { 2768 onStateChange_buf = valueDeserializer.readCallback_SwipeActionState_Void() 2769 } 2770 const onStateChange_result: ((state: SwipeActionState) => void) | undefined|undefined = onStateChange_buf 2771 let value: SwipeActionItem = ({builder: builder_result, actionAreaDistance: actionAreaDistance_result, onAction: onAction_result, onEnterActionArea: onEnterActionArea_result, onExitActionArea: onExitActionArea_result, onStateChange: onStateChange_result} as SwipeActionItem) 2772 return value 2773 } 2774 readGridRowColumnOption(): GridRowColumnOption { 2775 let valueDeserializer: Deserializer = this 2776 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2777 let xs_buf: number | undefined|undefined 2778 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 2779 { 2780 xs_buf = (valueDeserializer.readNumber() as number) 2781 } 2782 const xs_result: number | undefined|undefined = xs_buf 2783 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2784 let sm_buf: number | undefined|undefined 2785 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 2786 { 2787 sm_buf = (valueDeserializer.readNumber() as number) 2788 } 2789 const sm_result: number | undefined|undefined = sm_buf 2790 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2791 let md_buf: number | undefined|undefined 2792 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 2793 { 2794 md_buf = (valueDeserializer.readNumber() as number) 2795 } 2796 const md_result: number | undefined|undefined = md_buf 2797 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2798 let lg_buf: number | undefined|undefined 2799 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 2800 { 2801 lg_buf = (valueDeserializer.readNumber() as number) 2802 } 2803 const lg_result: number | undefined|undefined = lg_buf 2804 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2805 let xl_buf: number | undefined|undefined 2806 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 2807 { 2808 xl_buf = (valueDeserializer.readNumber() as number) 2809 } 2810 const xl_result: number | undefined|undefined = xl_buf 2811 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2812 let xxl_buf: number | undefined|undefined 2813 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 2814 { 2815 xxl_buf = (valueDeserializer.readNumber() as number) 2816 } 2817 const xxl_result: number | undefined|undefined = xxl_buf 2818 let value: GridRowColumnOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridRowColumnOption) 2819 return value 2820 } 2821 readGutterOption(): GutterOption { 2822 let valueDeserializer: Deserializer = this 2823 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2824 let x_buf: Length | GridRowSizeOption | undefined|undefined 2825 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 2826 { 2827 const x_buf__selector: number = valueDeserializer.readInt8() 2828 let x_buf_: Length | GridRowSizeOption | undefined|undefined 2829 if (x_buf__selector == 0) { 2830 x_buf_ = (valueDeserializer.readLength() as Length) 2831 } 2832 else if (x_buf__selector == 1) { 2833 x_buf_ = valueDeserializer.readGridRowSizeOption() 2834 } 2835 else { 2836 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 2837 } 2838 x_buf = (x_buf_ as Length | GridRowSizeOption) 2839 } 2840 const x_result: Length | GridRowSizeOption | undefined|undefined = x_buf 2841 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2842 let y_buf: Length | GridRowSizeOption | undefined|undefined 2843 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 2844 { 2845 const y_buf__selector: number = valueDeserializer.readInt8() 2846 let y_buf_: Length | GridRowSizeOption | undefined|undefined 2847 if (y_buf__selector == 0) { 2848 y_buf_ = (valueDeserializer.readLength() as Length) 2849 } 2850 else if (y_buf__selector == 1) { 2851 y_buf_ = valueDeserializer.readGridRowSizeOption() 2852 } 2853 else { 2854 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 2855 } 2856 y_buf = (y_buf_ as Length | GridRowSizeOption) 2857 } 2858 const y_result: Length | GridRowSizeOption | undefined|undefined = y_buf 2859 let value: GutterOption = ({x: x_result, y: y_result} as GutterOption) 2860 return value 2861 } 2862 readGridColColumnOption(): GridColColumnOption { 2863 let valueDeserializer: Deserializer = this 2864 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2865 let xs_buf: number | undefined|undefined 2866 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 2867 { 2868 xs_buf = (valueDeserializer.readNumber() as number) 2869 } 2870 const xs_result: number | undefined|undefined = xs_buf 2871 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2872 let sm_buf: number | undefined|undefined 2873 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 2874 { 2875 sm_buf = (valueDeserializer.readNumber() as number) 2876 } 2877 const sm_result: number | undefined|undefined = sm_buf 2878 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2879 let md_buf: number | undefined|undefined 2880 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 2881 { 2882 md_buf = (valueDeserializer.readNumber() as number) 2883 } 2884 const md_result: number | undefined|undefined = md_buf 2885 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2886 let lg_buf: number | undefined|undefined 2887 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 2888 { 2889 lg_buf = (valueDeserializer.readNumber() as number) 2890 } 2891 const lg_result: number | undefined|undefined = lg_buf 2892 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2893 let xl_buf: number | undefined|undefined 2894 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 2895 { 2896 xl_buf = (valueDeserializer.readNumber() as number) 2897 } 2898 const xl_result: number | undefined|undefined = xl_buf 2899 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2900 let xxl_buf: number | undefined|undefined 2901 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 2902 { 2903 xxl_buf = (valueDeserializer.readNumber() as number) 2904 } 2905 const xxl_result: number | undefined|undefined = xxl_buf 2906 let value: GridColColumnOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridColColumnOption) 2907 return value 2908 } 2909 readLinearGradient(): LinearGradient { 2910 let valueDeserializer: Deserializer = this 2911 let ptr: KPointer = valueDeserializer.readPointer() 2912 return LinearGradientInternal.fromPtr(ptr) 2913 } 2914 readCallback_Date_Void(isSync: boolean = false): ((parameter: Date) => void) { 2915 const _resource: CallbackResource = this.readCallbackResource() 2916 const _call: KPointer = this.readPointer() 2917 const _callSync: KPointer = this.readPointer() 2918 return (parameter: Date): void => { 2919 const _argsSerializer: Serializer = Serializer.hold(); 2920 _argsSerializer.writeInt32(_resource.resourceId); 2921 _argsSerializer.writePointer(_call); 2922 _argsSerializer.writePointer(_callSync); 2923 _argsSerializer.writeInt64((parameter.getTime() as number)); 2924 (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); 2925 _argsSerializer.release(); 2926 return; } 2927 } 2928 readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { 2929 const _resource: CallbackResource = this.readCallbackResource() 2930 const _call: KPointer = this.readPointer() 2931 const _callSync: KPointer = this.readPointer() 2932 return (value: DatePickerResult): void => { 2933 const _argsSerializer: Serializer = Serializer.hold(); 2934 _argsSerializer.writeInt32(_resource.resourceId); 2935 _argsSerializer.writePointer(_call); 2936 _argsSerializer.writePointer(_callSync); 2937 _argsSerializer.writeDatePickerResult(value); 2938 (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); 2939 _argsSerializer.release(); 2940 return; } 2941 } 2942 readLunarSwitchStyle(): LunarSwitchStyle { 2943 let valueDeserializer: Deserializer = this 2944 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2945 let selectedColor_buf: ResourceColor | undefined|undefined 2946 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 2947 { 2948 const selectedColor_buf__selector: number = valueDeserializer.readInt8() 2949 let selectedColor_buf_: Color | number | string | Resource | undefined|undefined 2950 if (selectedColor_buf__selector == 0) { 2951 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2952 } 2953 else if (selectedColor_buf__selector == 1) { 2954 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 2955 } 2956 else if (selectedColor_buf__selector == 2) { 2957 selectedColor_buf_ = (valueDeserializer.readString() as string) 2958 } 2959 else if (selectedColor_buf__selector == 3) { 2960 selectedColor_buf_ = valueDeserializer.readResource() 2961 } 2962 else { 2963 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 2964 } 2965 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 2966 } 2967 const selectedColor_result: ResourceColor | undefined|undefined = selectedColor_buf 2968 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2969 let unselectedColor_buf: ResourceColor | undefined|undefined 2970 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 2971 { 2972 const unselectedColor_buf__selector: number = valueDeserializer.readInt8() 2973 let unselectedColor_buf_: Color | number | string | Resource | undefined|undefined 2974 if (unselectedColor_buf__selector == 0) { 2975 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2976 } 2977 else if (unselectedColor_buf__selector == 1) { 2978 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 2979 } 2980 else if (unselectedColor_buf__selector == 2) { 2981 unselectedColor_buf_ = (valueDeserializer.readString() as string) 2982 } 2983 else if (unselectedColor_buf__selector == 3) { 2984 unselectedColor_buf_ = valueDeserializer.readResource() 2985 } 2986 else { 2987 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 2988 } 2989 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 2990 } 2991 const unselectedColor_result: ResourceColor | undefined|undefined = unselectedColor_buf 2992 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2993 let strokeColor_buf: ResourceColor | undefined|undefined 2994 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 2995 { 2996 const strokeColor_buf__selector: number = valueDeserializer.readInt8() 2997 let strokeColor_buf_: Color | number | string | Resource | undefined|undefined 2998 if (strokeColor_buf__selector == 0) { 2999 strokeColor_buf_ = (valueDeserializer.readInt32() as Color) 3000 } 3001 else if (strokeColor_buf__selector == 1) { 3002 strokeColor_buf_ = (valueDeserializer.readNumber() as number) 3003 } 3004 else if (strokeColor_buf__selector == 2) { 3005 strokeColor_buf_ = (valueDeserializer.readString() as string) 3006 } 3007 else if (strokeColor_buf__selector == 3) { 3008 strokeColor_buf_ = valueDeserializer.readResource() 3009 } 3010 else { 3011 throw new Error("One of the branches for strokeColor_buf_ has to be chosen through deserialisation.") 3012 } 3013 strokeColor_buf = (strokeColor_buf_ as Color | number | string | Resource) 3014 } 3015 const strokeColor_result: ResourceColor | undefined|undefined = strokeColor_buf 3016 let value: LunarSwitchStyle = ({selectedColor: selectedColor_result, unselectedColor: unselectedColor_result, strokeColor: strokeColor_result} as LunarSwitchStyle) 3017 return value 3018 } 3019 readExpectedFrameRateRange(): ExpectedFrameRateRange { 3020 let valueDeserializer: Deserializer = this 3021 const min_result: number = (valueDeserializer.readNumber() as number) 3022 const max_result: number = (valueDeserializer.readNumber() as number) 3023 const expected_result: number = (valueDeserializer.readNumber() as number) 3024 let value: ExpectedFrameRateRange = ({min: min_result, max: max_result, expected: expected_result} as ExpectedFrameRateRange) 3025 return value 3026 } 3027 readScene(): Scene { 3028 let valueDeserializer: Deserializer = this 3029 const _SceneStub_result: string = (valueDeserializer.readString() as string) 3030 let value: Scene = ({_SceneStub: _SceneStub_result} as Scene) 3031 return value 3032 } 3033 readUIContext(): UIContext { 3034 let valueDeserializer: Deserializer = this 3035 const _UIContextStub_result: string = (valueDeserializer.readString() as string) 3036 let value: UIContext = ({_UIContextStub: _UIContextStub_result} as UIContext) 3037 return value 3038 } 3039 readCallback_SheetType_Void(isSync: boolean = false): ((parameter: SheetType) => void) { 3040 const _resource: CallbackResource = this.readCallbackResource() 3041 const _call: KPointer = this.readPointer() 3042 const _callSync: KPointer = this.readPointer() 3043 return (parameter: SheetType): void => { 3044 const _argsSerializer: Serializer = Serializer.hold(); 3045 _argsSerializer.writeInt32(_resource.resourceId); 3046 _argsSerializer.writePointer(_call); 3047 _argsSerializer.writePointer(_callSync); 3048 _argsSerializer.writeInt32(parameter); 3049 (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); 3050 _argsSerializer.release(); 3051 return; } 3052 } 3053 readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { 3054 const _resource: CallbackResource = this.readCallbackResource() 3055 const _call: KPointer = this.readPointer() 3056 const _callSync: KPointer = this.readPointer() 3057 return (index: number): void => { 3058 const _argsSerializer: Serializer = Serializer.hold(); 3059 _argsSerializer.writeInt32(_resource.resourceId); 3060 _argsSerializer.writePointer(_call); 3061 _argsSerializer.writePointer(_callSync); 3062 _argsSerializer.writeNumber(index); 3063 (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); 3064 _argsSerializer.release(); 3065 return; } 3066 } 3067 readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { 3068 const _resource: CallbackResource = this.readCallbackResource() 3069 const _call: KPointer = this.readPointer() 3070 const _callSync: KPointer = this.readPointer() 3071 return (parameter: SpringBackAction): void => { 3072 const _argsSerializer: Serializer = Serializer.hold(); 3073 _argsSerializer.writeInt32(_resource.resourceId); 3074 _argsSerializer.writePointer(_call); 3075 _argsSerializer.writePointer(_callSync); 3076 _argsSerializer.writeSpringBackAction(parameter); 3077 (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); 3078 _argsSerializer.release(); 3079 return; } 3080 } 3081 readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { 3082 const _resource: CallbackResource = this.readCallbackResource() 3083 const _call: KPointer = this.readPointer() 3084 const _callSync: KPointer = this.readPointer() 3085 return (parameter: DismissSheetAction): void => { 3086 const _argsSerializer: Serializer = Serializer.hold(); 3087 _argsSerializer.writeInt32(_resource.resourceId); 3088 _argsSerializer.writePointer(_call); 3089 _argsSerializer.writePointer(_callSync); 3090 _argsSerializer.writeDismissSheetAction(parameter); 3091 (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); 3092 _argsSerializer.release(); 3093 return; } 3094 } 3095 readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { 3096 const _resource: CallbackResource = this.readCallbackResource() 3097 const _call: KPointer = this.readPointer() 3098 const _callSync: KPointer = this.readPointer() 3099 return (sheetDismiss: SheetDismiss): void => { 3100 const _argsSerializer: Serializer = Serializer.hold(); 3101 _argsSerializer.writeInt32(_resource.resourceId); 3102 _argsSerializer.writePointer(_call); 3103 _argsSerializer.writePointer(_callSync); 3104 _argsSerializer.writeSheetDismiss(sheetDismiss); 3105 (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); 3106 _argsSerializer.release(); 3107 return; } 3108 } 3109 readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { 3110 const _resource: CallbackResource = this.readCallbackResource() 3111 const _call: KPointer = this.readPointer() 3112 const _callSync: KPointer = this.readPointer() 3113 return (parameter: DismissContentCoverAction): void => { 3114 const _argsSerializer: Serializer = Serializer.hold(); 3115 _argsSerializer.writeInt32(_resource.resourceId); 3116 _argsSerializer.writePointer(_call); 3117 _argsSerializer.writePointer(_callSync); 3118 _argsSerializer.writeDismissContentCoverAction(parameter); 3119 (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); 3120 _argsSerializer.release(); 3121 return; } 3122 } 3123 readContextMenuAnimationOptions(): ContextMenuAnimationOptions { 3124 let valueDeserializer: Deserializer = this 3125 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3126 let scale_buf: [ number, number ] | undefined|undefined 3127 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 3128 { 3129 const scale_buf__value0: number = (valueDeserializer.readNumber() as number) 3130 const scale_buf__value1: number = (valueDeserializer.readNumber() as number) 3131 scale_buf = ([scale_buf__value0, scale_buf__value1] as [ number, number ]) 3132 } 3133 const scale_result: [ number, number ] | undefined|undefined = scale_buf 3134 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3135 let transition_buf: TransitionEffect | undefined|undefined 3136 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 3137 { 3138 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 3139 } 3140 const transition_result: TransitionEffect | undefined|undefined = transition_buf 3141 const hoverScale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3142 let hoverScale_buf: [ number, number ] | undefined|undefined 3143 if ((RuntimeType.UNDEFINED) != (hoverScale_buf_runtimeType)) 3144 { 3145 const hoverScale_buf__value0: number = (valueDeserializer.readNumber() as number) 3146 const hoverScale_buf__value1: number = (valueDeserializer.readNumber() as number) 3147 hoverScale_buf = ([hoverScale_buf__value0, hoverScale_buf__value1] as [ number, number ]) 3148 } 3149 const hoverScale_result: [ number, number ] | undefined|undefined = hoverScale_buf 3150 let value: ContextMenuAnimationOptions = ({scale: scale_result, transition: transition_result, hoverScale: hoverScale_result} as ContextMenuAnimationOptions) 3151 return value 3152 } 3153 readCallback_Literal_Boolean_isVisible_Void(isSync: boolean = false): ((event: { isVisible: boolean }) => void) { 3154 const _resource: CallbackResource = this.readCallbackResource() 3155 const _call: KPointer = this.readPointer() 3156 const _callSync: KPointer = this.readPointer() 3157 return (event: { isVisible: boolean }): void => { 3158 const _argsSerializer: Serializer = Serializer.hold(); 3159 _argsSerializer.writeInt32(_resource.resourceId); 3160 _argsSerializer.writePointer(_call); 3161 _argsSerializer.writePointer(_callSync); 3162 const event_isVisible = event.isVisible; 3163 _argsSerializer.writeBoolean(event_isVisible); 3164 (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); 3165 _argsSerializer.release(); 3166 return; } 3167 } 3168 readPopupMessageOptions(): PopupMessageOptions { 3169 let valueDeserializer: Deserializer = this 3170 const textColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3171 let textColor_buf: ResourceColor | undefined|undefined 3172 if ((RuntimeType.UNDEFINED) != (textColor_buf_runtimeType)) 3173 { 3174 const textColor_buf__selector: number = valueDeserializer.readInt8() 3175 let textColor_buf_: Color | number | string | Resource | undefined|undefined 3176 if (textColor_buf__selector == 0) { 3177 textColor_buf_ = (valueDeserializer.readInt32() as Color) 3178 } 3179 else if (textColor_buf__selector == 1) { 3180 textColor_buf_ = (valueDeserializer.readNumber() as number) 3181 } 3182 else if (textColor_buf__selector == 2) { 3183 textColor_buf_ = (valueDeserializer.readString() as string) 3184 } 3185 else if (textColor_buf__selector == 3) { 3186 textColor_buf_ = valueDeserializer.readResource() 3187 } 3188 else { 3189 throw new Error("One of the branches for textColor_buf_ has to be chosen through deserialisation.") 3190 } 3191 textColor_buf = (textColor_buf_ as Color | number | string | Resource) 3192 } 3193 const textColor_result: ResourceColor | undefined|undefined = textColor_buf 3194 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3195 let font_buf: Font | undefined|undefined 3196 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 3197 { 3198 font_buf = valueDeserializer.readFont() 3199 } 3200 const font_result: Font | undefined|undefined = font_buf 3201 let value: PopupMessageOptions = ({textColor: textColor_result, font: font_result} as PopupMessageOptions) 3202 return value 3203 } 3204 readOverlayOffset(): OverlayOffset { 3205 let valueDeserializer: Deserializer = this 3206 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3207 let x_buf: number | undefined|undefined 3208 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3209 { 3210 x_buf = (valueDeserializer.readNumber() as number) 3211 } 3212 const x_result: number | undefined|undefined = x_buf 3213 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3214 let y_buf: number | undefined|undefined 3215 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3216 { 3217 y_buf = (valueDeserializer.readNumber() as number) 3218 } 3219 const y_result: number | undefined|undefined = y_buf 3220 let value: OverlayOffset = ({x: x_result, y: y_result} as OverlayOffset) 3221 return value 3222 } 3223 readImageModifier(): ImageModifier { 3224 let valueDeserializer: Deserializer = this 3225 const _ImageModifierStub_result: string = (valueDeserializer.readString() as string) 3226 let value: ImageModifier = ({_ImageModifierStub: _ImageModifierStub_result} as ImageModifier) 3227 return value 3228 } 3229 readMotionPathOptions(): MotionPathOptions { 3230 let valueDeserializer: Deserializer = this 3231 const path_result: string = (valueDeserializer.readString() as string) 3232 const from_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3233 let from_buf: number | undefined|undefined 3234 if ((RuntimeType.UNDEFINED) != (from_buf_runtimeType)) 3235 { 3236 from_buf = (valueDeserializer.readNumber() as number) 3237 } 3238 const from_result: number | undefined|undefined = from_buf 3239 const to_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3240 let to_buf: number | undefined|undefined 3241 if ((RuntimeType.UNDEFINED) != (to_buf_runtimeType)) 3242 { 3243 to_buf = (valueDeserializer.readNumber() as number) 3244 } 3245 const to_result: number | undefined|undefined = to_buf 3246 const rotatable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3247 let rotatable_buf: boolean | undefined|undefined 3248 if ((RuntimeType.UNDEFINED) != (rotatable_buf_runtimeType)) 3249 { 3250 rotatable_buf = valueDeserializer.readBoolean() 3251 } 3252 const rotatable_result: boolean | undefined|undefined = rotatable_buf 3253 let value: MotionPathOptions = ({path: path_result, from: from_result, to: to_result, rotatable: rotatable_result} as MotionPathOptions) 3254 return value 3255 } 3256 readGestureGroupInterface(): GestureGroupInterface { 3257 let valueDeserializer: Deserializer = this 3258 let ptr: KPointer = valueDeserializer.readPointer() 3259 return GestureGroupInterfaceInternal.fromPtr(ptr) 3260 } 3261 readRotationGestureInterface(): RotationGestureInterface { 3262 let valueDeserializer: Deserializer = this 3263 let ptr: KPointer = valueDeserializer.readPointer() 3264 return RotationGestureInterfaceInternal.fromPtr(ptr) 3265 } 3266 readSwipeGestureInterface(): SwipeGestureInterface { 3267 let valueDeserializer: Deserializer = this 3268 let ptr: KPointer = valueDeserializer.readPointer() 3269 return SwipeGestureInterfaceInternal.fromPtr(ptr) 3270 } 3271 readPinchGestureInterface(): PinchGestureInterface { 3272 let valueDeserializer: Deserializer = this 3273 let ptr: KPointer = valueDeserializer.readPointer() 3274 return PinchGestureInterfaceInternal.fromPtr(ptr) 3275 } 3276 readPanGestureInterface(): PanGestureInterface { 3277 let valueDeserializer: Deserializer = this 3278 let ptr: KPointer = valueDeserializer.readPointer() 3279 return PanGestureInterfaceInternal.fromPtr(ptr) 3280 } 3281 readLongPressGestureInterface(): LongPressGestureInterface { 3282 let valueDeserializer: Deserializer = this 3283 let ptr: KPointer = valueDeserializer.readPointer() 3284 return LongPressGestureInterfaceInternal.fromPtr(ptr) 3285 } 3286 readTapGestureInterface(): TapGestureInterface { 3287 let valueDeserializer: Deserializer = this 3288 let ptr: KPointer = valueDeserializer.readPointer() 3289 return TapGestureInterfaceInternal.fromPtr(ptr) 3290 } 3291 readRotateOptions(): RotateOptions { 3292 let valueDeserializer: Deserializer = this 3293 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3294 let x_buf: number | undefined|undefined 3295 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3296 { 3297 x_buf = (valueDeserializer.readNumber() as number) 3298 } 3299 const x_result: number | undefined|undefined = x_buf 3300 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3301 let y_buf: number | undefined|undefined 3302 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3303 { 3304 y_buf = (valueDeserializer.readNumber() as number) 3305 } 3306 const y_result: number | undefined|undefined = y_buf 3307 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3308 let z_buf: number | undefined|undefined 3309 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3310 { 3311 z_buf = (valueDeserializer.readNumber() as number) 3312 } 3313 const z_result: number | undefined|undefined = z_buf 3314 const centerX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3315 let centerX_buf: number | string | undefined|undefined 3316 if ((RuntimeType.UNDEFINED) != (centerX_buf_runtimeType)) 3317 { 3318 const centerX_buf__selector: number = valueDeserializer.readInt8() 3319 let centerX_buf_: number | string | undefined|undefined 3320 if (centerX_buf__selector == 0) { 3321 centerX_buf_ = (valueDeserializer.readNumber() as number) 3322 } 3323 else if (centerX_buf__selector == 1) { 3324 centerX_buf_ = (valueDeserializer.readString() as string) 3325 } 3326 else { 3327 throw new Error("One of the branches for centerX_buf_ has to be chosen through deserialisation.") 3328 } 3329 centerX_buf = (centerX_buf_ as number | string) 3330 } 3331 const centerX_result: number | string | undefined|undefined = centerX_buf 3332 const centerY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3333 let centerY_buf: number | string | undefined|undefined 3334 if ((RuntimeType.UNDEFINED) != (centerY_buf_runtimeType)) 3335 { 3336 const centerY_buf__selector: number = valueDeserializer.readInt8() 3337 let centerY_buf_: number | string | undefined|undefined 3338 if (centerY_buf__selector == 0) { 3339 centerY_buf_ = (valueDeserializer.readNumber() as number) 3340 } 3341 else if (centerY_buf__selector == 1) { 3342 centerY_buf_ = (valueDeserializer.readString() as string) 3343 } 3344 else { 3345 throw new Error("One of the branches for centerY_buf_ has to be chosen through deserialisation.") 3346 } 3347 centerY_buf = (centerY_buf_ as number | string) 3348 } 3349 const centerY_result: number | string | undefined|undefined = centerY_buf 3350 const centerZ_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3351 let centerZ_buf: number | undefined|undefined 3352 if ((RuntimeType.UNDEFINED) != (centerZ_buf_runtimeType)) 3353 { 3354 centerZ_buf = (valueDeserializer.readNumber() as number) 3355 } 3356 const centerZ_result: number | undefined|undefined = centerZ_buf 3357 const perspective_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3358 let perspective_buf: number | undefined|undefined 3359 if ((RuntimeType.UNDEFINED) != (perspective_buf_runtimeType)) 3360 { 3361 perspective_buf = (valueDeserializer.readNumber() as number) 3362 } 3363 const perspective_result: number | undefined|undefined = perspective_buf 3364 const angle_buf_selector: number = valueDeserializer.readInt8() 3365 let angle_buf: number | string | undefined|undefined 3366 if (angle_buf_selector == 0) { 3367 angle_buf = (valueDeserializer.readNumber() as number) 3368 } 3369 else if (angle_buf_selector == 1) { 3370 angle_buf = (valueDeserializer.readString() as string) 3371 } 3372 else { 3373 throw new Error("One of the branches for angle_buf has to be chosen through deserialisation.") 3374 } 3375 const angle_result: number | string = (angle_buf as number | string) 3376 let value: RotateOptions = ({x: x_result, y: y_result, z: z_result, centerX: centerX_result, centerY: centerY_result, centerZ: centerZ_result, perspective: perspective_result, angle: angle_result} as RotateOptions) 3377 return value 3378 } 3379 readScaleOptions(): ScaleOptions { 3380 let valueDeserializer: Deserializer = this 3381 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3382 let x_buf: number | undefined|undefined 3383 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3384 { 3385 x_buf = (valueDeserializer.readNumber() as number) 3386 } 3387 const x_result: number | undefined|undefined = x_buf 3388 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3389 let y_buf: number | undefined|undefined 3390 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3391 { 3392 y_buf = (valueDeserializer.readNumber() as number) 3393 } 3394 const y_result: number | undefined|undefined = y_buf 3395 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3396 let z_buf: number | undefined|undefined 3397 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3398 { 3399 z_buf = (valueDeserializer.readNumber() as number) 3400 } 3401 const z_result: number | undefined|undefined = z_buf 3402 const centerX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3403 let centerX_buf: number | string | undefined|undefined 3404 if ((RuntimeType.UNDEFINED) != (centerX_buf_runtimeType)) 3405 { 3406 const centerX_buf__selector: number = valueDeserializer.readInt8() 3407 let centerX_buf_: number | string | undefined|undefined 3408 if (centerX_buf__selector == 0) { 3409 centerX_buf_ = (valueDeserializer.readNumber() as number) 3410 } 3411 else if (centerX_buf__selector == 1) { 3412 centerX_buf_ = (valueDeserializer.readString() as string) 3413 } 3414 else { 3415 throw new Error("One of the branches for centerX_buf_ has to be chosen through deserialisation.") 3416 } 3417 centerX_buf = (centerX_buf_ as number | string) 3418 } 3419 const centerX_result: number | string | undefined|undefined = centerX_buf 3420 const centerY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3421 let centerY_buf: number | string | undefined|undefined 3422 if ((RuntimeType.UNDEFINED) != (centerY_buf_runtimeType)) 3423 { 3424 const centerY_buf__selector: number = valueDeserializer.readInt8() 3425 let centerY_buf_: number | string | undefined|undefined 3426 if (centerY_buf__selector == 0) { 3427 centerY_buf_ = (valueDeserializer.readNumber() as number) 3428 } 3429 else if (centerY_buf__selector == 1) { 3430 centerY_buf_ = (valueDeserializer.readString() as string) 3431 } 3432 else { 3433 throw new Error("One of the branches for centerY_buf_ has to be chosen through deserialisation.") 3434 } 3435 centerY_buf = (centerY_buf_ as number | string) 3436 } 3437 const centerY_result: number | string | undefined|undefined = centerY_buf 3438 let value: ScaleOptions = ({x: x_result, y: y_result, z: z_result, centerX: centerX_result, centerY: centerY_result} as ScaleOptions) 3439 return value 3440 } 3441 readTranslateOptions(): TranslateOptions { 3442 let valueDeserializer: Deserializer = this 3443 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3444 let x_buf: number | string | undefined|undefined 3445 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3446 { 3447 const x_buf__selector: number = valueDeserializer.readInt8() 3448 let x_buf_: number | string | undefined|undefined 3449 if (x_buf__selector == 0) { 3450 x_buf_ = (valueDeserializer.readNumber() as number) 3451 } 3452 else if (x_buf__selector == 1) { 3453 x_buf_ = (valueDeserializer.readString() as string) 3454 } 3455 else { 3456 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 3457 } 3458 x_buf = (x_buf_ as number | string) 3459 } 3460 const x_result: number | string | undefined|undefined = x_buf 3461 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3462 let y_buf: number | string | undefined|undefined 3463 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3464 { 3465 const y_buf__selector: number = valueDeserializer.readInt8() 3466 let y_buf_: number | string | undefined|undefined 3467 if (y_buf__selector == 0) { 3468 y_buf_ = (valueDeserializer.readNumber() as number) 3469 } 3470 else if (y_buf__selector == 1) { 3471 y_buf_ = (valueDeserializer.readString() as string) 3472 } 3473 else { 3474 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 3475 } 3476 y_buf = (y_buf_ as number | string) 3477 } 3478 const y_result: number | string | undefined|undefined = y_buf 3479 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3480 let z_buf: number | string | undefined|undefined 3481 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3482 { 3483 const z_buf__selector: number = valueDeserializer.readInt8() 3484 let z_buf_: number | string | undefined|undefined 3485 if (z_buf__selector == 0) { 3486 z_buf_ = (valueDeserializer.readNumber() as number) 3487 } 3488 else if (z_buf__selector == 1) { 3489 z_buf_ = (valueDeserializer.readString() as string) 3490 } 3491 else { 3492 throw new Error("One of the branches for z_buf_ has to be chosen through deserialisation.") 3493 } 3494 z_buf = (z_buf_ as number | string) 3495 } 3496 const z_result: number | string | undefined|undefined = z_buf 3497 let value: TranslateOptions = ({x: x_result, y: y_result, z: z_result} as TranslateOptions) 3498 return value 3499 } 3500 readLinearGradient_common(): LinearGradient_common { 3501 let valueDeserializer: Deserializer = this 3502 const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3503 let angle_buf: number | string | undefined|undefined 3504 if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) 3505 { 3506 const angle_buf__selector: number = valueDeserializer.readInt8() 3507 let angle_buf_: number | string | undefined|undefined 3508 if (angle_buf__selector == 0) { 3509 angle_buf_ = (valueDeserializer.readNumber() as number) 3510 } 3511 else if (angle_buf__selector == 1) { 3512 angle_buf_ = (valueDeserializer.readString() as string) 3513 } 3514 else { 3515 throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") 3516 } 3517 angle_buf = (angle_buf_ as number | string) 3518 } 3519 const angle_result: number | string | undefined|undefined = angle_buf 3520 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3521 let direction_buf: GradientDirection | undefined|undefined 3522 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 3523 { 3524 direction_buf = (valueDeserializer.readInt32() as GradientDirection) 3525 } 3526 const direction_result: GradientDirection | undefined|undefined = direction_buf 3527 const colors_buf_length: int32 = valueDeserializer.readInt32() 3528 let colors_buf: Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colors_buf_length) 3529 for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { 3530 const colors_buf_buf_value0_buf_selector: number = valueDeserializer.readInt8() 3531 let colors_buf_buf_value0_buf: Color | number | string | Resource | undefined|undefined 3532 if (colors_buf_buf_value0_buf_selector == 0) { 3533 colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) 3534 } 3535 else if (colors_buf_buf_value0_buf_selector == 1) { 3536 colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) 3537 } 3538 else if (colors_buf_buf_value0_buf_selector == 2) { 3539 colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) 3540 } 3541 else if (colors_buf_buf_value0_buf_selector == 3) { 3542 colors_buf_buf_value0_buf = valueDeserializer.readResource() 3543 } 3544 else { 3545 throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") 3546 } 3547 const colors_buf_buf_value0: ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) 3548 const colors_buf_buf_value1: number = (valueDeserializer.readNumber() as number) 3549 colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) 3550 } 3551 const colors_result: Array<[ ResourceColor, number ]> = colors_buf 3552 const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3553 let repeating_buf: boolean | undefined|undefined 3554 if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) 3555 { 3556 repeating_buf = valueDeserializer.readBoolean() 3557 } 3558 const repeating_result: boolean | undefined|undefined = repeating_buf 3559 let value: LinearGradient_common = ({angle: angle_result, direction: direction_result, colors: colors_result, repeating: repeating_result} as LinearGradient_common) 3560 return value 3561 } 3562 readDrawingCanvas(): DrawingCanvas { 3563 let valueDeserializer: Deserializer = this 3564 let ptr: KPointer = valueDeserializer.readPointer() 3565 return DrawingCanvasInternal.fromPtr(ptr) 3566 } 3567 readSize(): Size { 3568 let valueDeserializer: Deserializer = this 3569 const width_result: number = (valueDeserializer.readNumber() as number) 3570 const height_result: number = (valueDeserializer.readNumber() as number) 3571 let value: Size = ({width: width_result, height: height_result} as Size) 3572 return value 3573 } 3574 readFrameNode(): FrameNode { 3575 let valueDeserializer: Deserializer = this 3576 let ptr: KPointer = valueDeserializer.readPointer() 3577 return FrameNodeInternal.fromPtr(ptr) 3578 } 3579 readTextStyle_alert_dialog(): TextStyle_alert_dialog { 3580 let valueDeserializer: Deserializer = this 3581 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3582 let wordBreak_buf: WordBreak | undefined|undefined 3583 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 3584 { 3585 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 3586 } 3587 const wordBreak_result: WordBreak | undefined|undefined = wordBreak_buf 3588 let value: TextStyle_alert_dialog = ({wordBreak: wordBreak_result} as TextStyle_alert_dialog) 3589 return value 3590 } 3591 readCallback_DismissDialogAction_Void(isSync: boolean = false): ((parameter: DismissDialogAction) => void) { 3592 const _resource: CallbackResource = this.readCallbackResource() 3593 const _call: KPointer = this.readPointer() 3594 const _callSync: KPointer = this.readPointer() 3595 return (parameter: DismissDialogAction): void => { 3596 const _argsSerializer: Serializer = Serializer.hold(); 3597 _argsSerializer.writeInt32(_resource.resourceId); 3598 _argsSerializer.writePointer(_call); 3599 _argsSerializer.writePointer(_callSync); 3600 _argsSerializer.writeDismissDialogAction(parameter); 3601 (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); 3602 _argsSerializer.release(); 3603 return; } 3604 } 3605 readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { 3606 let valueDeserializer: Deserializer = this 3607 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3608 let enabled_buf: boolean | undefined|undefined 3609 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 3610 { 3611 enabled_buf = valueDeserializer.readBoolean() 3612 } 3613 const enabled_result: boolean | undefined|undefined = enabled_buf 3614 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3615 let defaultFocus_buf: boolean | undefined|undefined 3616 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 3617 { 3618 defaultFocus_buf = valueDeserializer.readBoolean() 3619 } 3620 const defaultFocus_result: boolean | undefined|undefined = defaultFocus_buf 3621 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3622 let style_buf: DialogButtonStyle | undefined|undefined 3623 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 3624 { 3625 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 3626 } 3627 const style_result: DialogButtonStyle | undefined|undefined = style_buf 3628 const value_buf_selector: number = valueDeserializer.readInt8() 3629 let value_buf: string | Resource | undefined|undefined 3630 if (value_buf_selector == 0) { 3631 value_buf = (valueDeserializer.readString() as string) 3632 } 3633 else if (value_buf_selector == 1) { 3634 value_buf = valueDeserializer.readResource() 3635 } 3636 else { 3637 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 3638 } 3639 const value_result: ResourceStr = (value_buf as string | Resource) 3640 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3641 let fontColor_buf: ResourceColor | undefined|undefined 3642 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 3643 { 3644 const fontColor_buf__selector: number = valueDeserializer.readInt8() 3645 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 3646 if (fontColor_buf__selector == 0) { 3647 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 3648 } 3649 else if (fontColor_buf__selector == 1) { 3650 fontColor_buf_ = (valueDeserializer.readNumber() as number) 3651 } 3652 else if (fontColor_buf__selector == 2) { 3653 fontColor_buf_ = (valueDeserializer.readString() as string) 3654 } 3655 else if (fontColor_buf__selector == 3) { 3656 fontColor_buf_ = valueDeserializer.readResource() 3657 } 3658 else { 3659 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 3660 } 3661 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 3662 } 3663 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 3664 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3665 let backgroundColor_buf: ResourceColor | undefined|undefined 3666 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 3667 { 3668 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 3669 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 3670 if (backgroundColor_buf__selector == 0) { 3671 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 3672 } 3673 else if (backgroundColor_buf__selector == 1) { 3674 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 3675 } 3676 else if (backgroundColor_buf__selector == 2) { 3677 backgroundColor_buf_ = (valueDeserializer.readString() as string) 3678 } 3679 else if (backgroundColor_buf__selector == 3) { 3680 backgroundColor_buf_ = valueDeserializer.readResource() 3681 } 3682 else { 3683 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 3684 } 3685 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 3686 } 3687 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 3688 const action_result: VoidCallback = valueDeserializer.readVoidCallback() 3689 let value: AlertDialogButtonBaseOptions = ({enabled: enabled_result, defaultFocus: defaultFocus_result, style: style_result, value: value_result, fontColor: fontColor_result, backgroundColor: backgroundColor_result, action: action_result} as AlertDialogButtonBaseOptions) 3690 return value 3691 } 3692 readActionSheetOffset(): ActionSheetOffset { 3693 let valueDeserializer: Deserializer = this 3694 const dx_buf_selector: number = valueDeserializer.readInt8() 3695 let dx_buf: number | string | Resource | undefined|undefined 3696 if (dx_buf_selector == 0) { 3697 dx_buf = (valueDeserializer.readNumber() as number) 3698 } 3699 else if (dx_buf_selector == 1) { 3700 dx_buf = (valueDeserializer.readString() as string) 3701 } 3702 else if (dx_buf_selector == 2) { 3703 dx_buf = valueDeserializer.readResource() 3704 } 3705 else { 3706 throw new Error("One of the branches for dx_buf has to be chosen through deserialisation.") 3707 } 3708 const dx_result: number | string | Resource = (dx_buf as number | string | Resource) 3709 const dy_buf_selector: number = valueDeserializer.readInt8() 3710 let dy_buf: number | string | Resource | undefined|undefined 3711 if (dy_buf_selector == 0) { 3712 dy_buf = (valueDeserializer.readNumber() as number) 3713 } 3714 else if (dy_buf_selector == 1) { 3715 dy_buf = (valueDeserializer.readString() as string) 3716 } 3717 else if (dy_buf_selector == 2) { 3718 dy_buf = valueDeserializer.readResource() 3719 } 3720 else { 3721 throw new Error("One of the branches for dy_buf has to be chosen through deserialisation.") 3722 } 3723 const dy_result: number | string | Resource = (dy_buf as number | string | Resource) 3724 let value: ActionSheetOffset = ({dx: dx_result, dy: dy_result} as ActionSheetOffset) 3725 return value 3726 } 3727 readActionSheetButtonOptions(): ActionSheetButtonOptions { 3728 let valueDeserializer: Deserializer = this 3729 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3730 let enabled_buf: boolean | undefined|undefined 3731 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 3732 { 3733 enabled_buf = valueDeserializer.readBoolean() 3734 } 3735 const enabled_result: boolean | undefined|undefined = enabled_buf 3736 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3737 let defaultFocus_buf: boolean | undefined|undefined 3738 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 3739 { 3740 defaultFocus_buf = valueDeserializer.readBoolean() 3741 } 3742 const defaultFocus_result: boolean | undefined|undefined = defaultFocus_buf 3743 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3744 let style_buf: DialogButtonStyle | undefined|undefined 3745 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 3746 { 3747 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 3748 } 3749 const style_result: DialogButtonStyle | undefined|undefined = style_buf 3750 const value_buf_selector: number = valueDeserializer.readInt8() 3751 let value_buf: string | Resource | undefined|undefined 3752 if (value_buf_selector == 0) { 3753 value_buf = (valueDeserializer.readString() as string) 3754 } 3755 else if (value_buf_selector == 1) { 3756 value_buf = valueDeserializer.readResource() 3757 } 3758 else { 3759 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 3760 } 3761 const value_result: string | Resource = (value_buf as string | Resource) 3762 const action_result: VoidCallback = valueDeserializer.readVoidCallback() 3763 let value: ActionSheetButtonOptions = ({enabled: enabled_result, defaultFocus: defaultFocus_result, style: style_result, value: value_result, action: action_result} as ActionSheetButtonOptions) 3764 return value 3765 } 3766 readCallback_Extender_OnFinish(isSync: boolean = false): Callback_Extender_OnFinish { 3767 const _resource: CallbackResource = this.readCallbackResource() 3768 const _call: KPointer = this.readPointer() 3769 const _callSync: KPointer = this.readPointer() 3770 return (): void => { 3771 const _argsSerializer: Serializer = Serializer.hold(); 3772 _argsSerializer.writeInt32(_resource.resourceId); 3773 _argsSerializer.writePointer(_call); 3774 _argsSerializer.writePointer(_callSync); 3775 (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); 3776 _argsSerializer.release(); 3777 return; } 3778 } 3779 readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { 3780 const _resource: CallbackResource = this.readCallbackResource() 3781 const _call: KPointer = this.readPointer() 3782 const _callSync: KPointer = this.readPointer() 3783 return (value: float32): void => { 3784 const _argsSerializer: Serializer = Serializer.hold(); 3785 _argsSerializer.writeInt32(_resource.resourceId); 3786 _argsSerializer.writePointer(_call); 3787 _argsSerializer.writePointer(_callSync); 3788 _argsSerializer.writeFloat32(value); 3789 (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); 3790 _argsSerializer.release(); 3791 return; } 3792 } 3793 readCustomTheme(): CustomTheme { 3794 let valueDeserializer: Deserializer = this 3795 const _CustomThemeStub_result: string = (valueDeserializer.readString() as string) 3796 let value: CustomTheme = ({_CustomThemeStub: _CustomThemeStub_result} as CustomTheme) 3797 return value 3798 } 3799 readRestrictedWorker(): RestrictedWorker { 3800 let valueDeserializer: Deserializer = this 3801 const _RestrictedWorkerStub_result: string = (valueDeserializer.readString() as string) 3802 let value: RestrictedWorker = ({_RestrictedWorkerStub: _RestrictedWorkerStub_result} as RestrictedWorker) 3803 return value 3804 } 3805 readWant(): Want { 3806 let valueDeserializer: Deserializer = this 3807 const bundleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3808 let bundleName_buf: string | undefined|undefined 3809 if ((RuntimeType.UNDEFINED) != (bundleName_buf_runtimeType)) 3810 { 3811 bundleName_buf = (valueDeserializer.readString() as string) 3812 } 3813 const bundleName_result: string | undefined|undefined = bundleName_buf 3814 const abilityName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3815 let abilityName_buf: string | undefined|undefined 3816 if ((RuntimeType.UNDEFINED) != (abilityName_buf_runtimeType)) 3817 { 3818 abilityName_buf = (valueDeserializer.readString() as string) 3819 } 3820 const abilityName_result: string | undefined|undefined = abilityName_buf 3821 const deviceId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3822 let deviceId_buf: string | undefined|undefined 3823 if ((RuntimeType.UNDEFINED) != (deviceId_buf_runtimeType)) 3824 { 3825 deviceId_buf = (valueDeserializer.readString() as string) 3826 } 3827 const deviceId_result: string | undefined|undefined = deviceId_buf 3828 const uri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3829 let uri_buf: string | undefined|undefined 3830 if ((RuntimeType.UNDEFINED) != (uri_buf_runtimeType)) 3831 { 3832 uri_buf = (valueDeserializer.readString() as string) 3833 } 3834 const uri_result: string | undefined|undefined = uri_buf 3835 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3836 let type_buf: string | undefined|undefined 3837 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 3838 { 3839 type_buf = (valueDeserializer.readString() as string) 3840 } 3841 const type_result: string | undefined|undefined = type_buf 3842 const flags_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3843 let flags_buf: number | undefined|undefined 3844 if ((RuntimeType.UNDEFINED) != (flags_buf_runtimeType)) 3845 { 3846 flags_buf = (valueDeserializer.readNumber() as number) 3847 } 3848 const flags_result: number | undefined|undefined = flags_buf 3849 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3850 let action_buf: string | undefined|undefined 3851 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 3852 { 3853 action_buf = (valueDeserializer.readString() as string) 3854 } 3855 const action_result: string | undefined|undefined = action_buf 3856 const parameters_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3857 let parameters_buf: Map<string, Object> | undefined|undefined 3858 if ((RuntimeType.UNDEFINED) != (parameters_buf_runtimeType)) 3859 { 3860 const parameters_buf__size: int32 = valueDeserializer.readInt32() 3861 let parameters_buf_: Map<string, Object> = new Map<string, Object>() 3862 // TODO: TS map resize 3863 for (let parameters_buf__i = 0; parameters_buf__i < parameters_buf__size; parameters_buf__i++) { 3864 const parameters_buf__key: string = (valueDeserializer.readString() as string) 3865 const parameters_buf__value: Object = (valueDeserializer.readCustomObject("Object") as Object) 3866 parameters_buf_.set(parameters_buf__key, parameters_buf__value) 3867 } 3868 parameters_buf = parameters_buf_ 3869 } 3870 const parameters_result: Map<string, Object> | undefined|undefined = parameters_buf 3871 const entities_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3872 let entities_buf: Array<string> | undefined|undefined 3873 if ((RuntimeType.UNDEFINED) != (entities_buf_runtimeType)) 3874 { 3875 const entities_buf__length: int32 = valueDeserializer.readInt32() 3876 let entities_buf_: Array<string> = new Array<string>(entities_buf__length) 3877 for (let entities_buf__i = 0; entities_buf__i < entities_buf__length; entities_buf__i++) { 3878 entities_buf_[entities_buf__i] = (valueDeserializer.readString() as string) 3879 } 3880 entities_buf = entities_buf_ 3881 } 3882 const entities_result: Array<string> | undefined|undefined = entities_buf 3883 const moduleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3884 let moduleName_buf: string | undefined|undefined 3885 if ((RuntimeType.UNDEFINED) != (moduleName_buf_runtimeType)) 3886 { 3887 moduleName_buf = (valueDeserializer.readString() as string) 3888 } 3889 const moduleName_result: string | undefined|undefined = moduleName_buf 3890 let value: Want = ({bundleName: bundleName_result, abilityName: abilityName_result, deviceId: deviceId_result, uri: uri_result, type: type_result, flags: flags_result, action: action_result, parameters: parameters_result, entities: entities_result, moduleName: moduleName_result} as Want) 3891 return value 3892 } 3893 readStyledString(): StyledString { 3894 let valueDeserializer: Deserializer = this 3895 let ptr: KPointer = valueDeserializer.readPointer() 3896 return StyledStringInternal.fromPtr(ptr) 3897 } 3898 readNavigationAnimatedTransition(): NavigationAnimatedTransition { 3899 let valueDeserializer: Deserializer = this 3900 const onTransitionEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3901 let onTransitionEnd_buf: ((parameter: boolean) => void) | undefined|undefined 3902 if ((RuntimeType.UNDEFINED) != (onTransitionEnd_buf_runtimeType)) 3903 { 3904 onTransitionEnd_buf = valueDeserializer.readCallback_Boolean_Void() 3905 } 3906 const onTransitionEnd_result: ((parameter: boolean) => void) | undefined|undefined = onTransitionEnd_buf 3907 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3908 let timeout_buf: number | undefined|undefined 3909 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 3910 { 3911 timeout_buf = (valueDeserializer.readNumber() as number) 3912 } 3913 const timeout_result: number | undefined|undefined = timeout_buf 3914 const isInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3915 let isInteractive_buf: boolean | undefined|undefined 3916 if ((RuntimeType.UNDEFINED) != (isInteractive_buf_runtimeType)) 3917 { 3918 isInteractive_buf = valueDeserializer.readBoolean() 3919 } 3920 const isInteractive_result: boolean | undefined|undefined = isInteractive_buf 3921 const transition_result: ((transitionProxy: NavigationTransitionProxy) => void) = valueDeserializer.readCallback_NavigationTransitionProxy_Void() 3922 let value: NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result, timeout: timeout_result, isInteractive: isInteractive_result, transition: transition_result} as NavigationAnimatedTransition) 3923 return value 3924 } 3925 readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { 3926 const _resource: CallbackResource = this.readCallbackResource() 3927 const _call: KPointer = this.readPointer() 3928 const _callSync: KPointer = this.readPointer() 3929 return (index: number, progress: number): void => { 3930 const _argsSerializer: Serializer = Serializer.hold(); 3931 _argsSerializer.writeInt32(_resource.resourceId); 3932 _argsSerializer.writePointer(_call); 3933 _argsSerializer.writePointer(_callSync); 3934 _argsSerializer.writeNumber(index); 3935 _argsSerializer.writeNumber(progress); 3936 (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); 3937 _argsSerializer.release(); 3938 return; } 3939 } 3940 readLinearIndicatorStyle(): LinearIndicatorStyle { 3941 let valueDeserializer: Deserializer = this 3942 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3943 let space_buf: LengthMetrics | undefined|undefined 3944 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 3945 { 3946 space_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3947 } 3948 const space_result: LengthMetrics | undefined|undefined = space_buf 3949 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3950 let strokeWidth_buf: LengthMetrics | undefined|undefined 3951 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 3952 { 3953 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3954 } 3955 const strokeWidth_result: LengthMetrics | undefined|undefined = strokeWidth_buf 3956 const strokeRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3957 let strokeRadius_buf: LengthMetrics | undefined|undefined 3958 if ((RuntimeType.UNDEFINED) != (strokeRadius_buf_runtimeType)) 3959 { 3960 strokeRadius_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3961 } 3962 const strokeRadius_result: LengthMetrics | undefined|undefined = strokeRadius_buf 3963 const trackBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3964 let trackBackgroundColor_buf: ColorMetrics | undefined|undefined 3965 if ((RuntimeType.UNDEFINED) != (trackBackgroundColor_buf_runtimeType)) 3966 { 3967 trackBackgroundColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 3968 } 3969 const trackBackgroundColor_result: ColorMetrics | undefined|undefined = trackBackgroundColor_buf 3970 const trackColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3971 let trackColor_buf: ColorMetrics | undefined|undefined 3972 if ((RuntimeType.UNDEFINED) != (trackColor_buf_runtimeType)) 3973 { 3974 trackColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 3975 } 3976 const trackColor_result: ColorMetrics | undefined|undefined = trackColor_buf 3977 let value: LinearIndicatorStyle = ({space: space_result, strokeWidth: strokeWidth_result, strokeRadius: strokeRadius_result, trackBackgroundColor: trackBackgroundColor_result, trackColor: trackColor_result} as LinearIndicatorStyle) 3978 return value 3979 } 3980 readLinearIndicatorStartOptions(): LinearIndicatorStartOptions { 3981 let valueDeserializer: Deserializer = this 3982 const interval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3983 let interval_buf: number | undefined|undefined 3984 if ((RuntimeType.UNDEFINED) != (interval_buf_runtimeType)) 3985 { 3986 interval_buf = (valueDeserializer.readNumber() as number) 3987 } 3988 const interval_result: number | undefined|undefined = interval_buf 3989 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3990 let duration_buf: number | undefined|undefined 3991 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 3992 { 3993 duration_buf = (valueDeserializer.readNumber() as number) 3994 } 3995 const duration_result: number | undefined|undefined = duration_buf 3996 let value: LinearIndicatorStartOptions = ({interval: interval_result, duration: duration_result} as LinearIndicatorStartOptions) 3997 return value 3998 } 3999 readCustomSpanDrawInfo(): CustomSpanDrawInfo { 4000 let valueDeserializer: Deserializer = this 4001 const x_result: number = (valueDeserializer.readNumber() as number) 4002 const lineTop_result: number = (valueDeserializer.readNumber() as number) 4003 const lineBottom_result: number = (valueDeserializer.readNumber() as number) 4004 const baseline_result: number = (valueDeserializer.readNumber() as number) 4005 let value: CustomSpanDrawInfo = ({x: x_result, lineTop: lineTop_result, lineBottom: lineBottom_result, baseline: baseline_result} as CustomSpanDrawInfo) 4006 return value 4007 } 4008 readDrawContext(): DrawContext { 4009 let valueDeserializer: Deserializer = this 4010 const _DrawContextStub_result: string = (valueDeserializer.readString() as string) 4011 let value: DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) 4012 return value 4013 } 4014 readCustomSpanMetrics(): CustomSpanMetrics { 4015 let valueDeserializer: Deserializer = this 4016 const width_result: number = (valueDeserializer.readNumber() as number) 4017 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4018 let height_buf: number | undefined|undefined 4019 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 4020 { 4021 height_buf = (valueDeserializer.readNumber() as number) 4022 } 4023 const height_result: number | undefined|undefined = height_buf 4024 let value: CustomSpanMetrics = ({width: width_result, height: height_result} as CustomSpanMetrics) 4025 return value 4026 } 4027 readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { 4028 let valueDeserializer: Deserializer = this 4029 const fontSize_result: number = (valueDeserializer.readNumber() as number) 4030 let value: CustomSpanMeasureInfo = ({fontSize: fontSize_result} as CustomSpanMeasureInfo) 4031 return value 4032 } 4033 readSpanStyle(): SpanStyle { 4034 let valueDeserializer: Deserializer = this 4035 const start_result: number = (valueDeserializer.readNumber() as number) 4036 const length_result: number = (valueDeserializer.readNumber() as number) 4037 const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) 4038 const styledValue_buf_selector: number = valueDeserializer.readInt8() 4039 let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined 4040 if (styledValue_buf_selector == 0) { 4041 styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) 4042 } 4043 else if (styledValue_buf_selector == 1) { 4044 styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) 4045 } 4046 else if (styledValue_buf_selector == 2) { 4047 styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) 4048 } 4049 else if (styledValue_buf_selector == 3) { 4050 styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) 4051 } 4052 else if (styledValue_buf_selector == 4) { 4053 styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) 4054 } 4055 else if (styledValue_buf_selector == 5) { 4056 styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) 4057 } 4058 else if (styledValue_buf_selector == 6) { 4059 styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) 4060 } 4061 else if (styledValue_buf_selector == 7) { 4062 styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) 4063 } 4064 else if (styledValue_buf_selector == 8) { 4065 styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) 4066 } 4067 else if (styledValue_buf_selector == 9) { 4068 styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) 4069 } 4070 else if (styledValue_buf_selector == 10) { 4071 styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) 4072 } 4073 else if (styledValue_buf_selector == 11) { 4074 styledValue_buf = valueDeserializer.readUserDataSpan() 4075 } 4076 else if (styledValue_buf_selector == 12) { 4077 styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) 4078 } 4079 else { 4080 throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") 4081 } 4082 const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) 4083 let value: SpanStyle = ({start: start_result, length: length_result, styledKey: styledKey_result, styledValue: styledValue_result} as SpanStyle) 4084 return value 4085 } 4086 readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { 4087 const _resource: CallbackResource = this.readCallbackResource() 4088 const _call: KPointer = this.readPointer() 4089 const _callSync: KPointer = this.readPointer() 4090 return (parameter: UIExtensionProxy): void => { 4091 const _argsSerializer: Serializer = Serializer.hold(); 4092 _argsSerializer.writeInt32(_resource.resourceId); 4093 _argsSerializer.writePointer(_call); 4094 _argsSerializer.writePointer(_callSync); 4095 _argsSerializer.writeUIExtensionProxy(parameter); 4096 (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); 4097 _argsSerializer.release(); 4098 return; } 4099 } 4100 readWaterFlowAttribute(): WaterFlowAttribute { 4101 let value: WaterFlowAttribute = ({} as WaterFlowAttribute) 4102 return value 4103 } 4104 readWaterFlowSections(): WaterFlowSections { 4105 let valueDeserializer: Deserializer = this 4106 let ptr: KPointer = valueDeserializer.readPointer() 4107 return WaterFlowSectionsInternal.fromPtr(ptr) 4108 } 4109 readScroller(): Scroller { 4110 let valueDeserializer: Deserializer = this 4111 let ptr: KPointer = valueDeserializer.readPointer() 4112 return ScrollerInternal.fromPtr(ptr) 4113 } 4114 readSectionOptions(): SectionOptions { 4115 let valueDeserializer: Deserializer = this 4116 const itemsCount_result: number = (valueDeserializer.readNumber() as number) 4117 const crossCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4118 let crossCount_buf: number | undefined|undefined 4119 if ((RuntimeType.UNDEFINED) != (crossCount_buf_runtimeType)) 4120 { 4121 crossCount_buf = (valueDeserializer.readNumber() as number) 4122 } 4123 const crossCount_result: number | undefined|undefined = crossCount_buf 4124 const onGetItemMainSizeByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4125 let onGetItemMainSizeByIndex_buf: GetItemMainSizeByIndex | undefined|undefined 4126 if ((RuntimeType.UNDEFINED) != (onGetItemMainSizeByIndex_buf_runtimeType)) 4127 { 4128 onGetItemMainSizeByIndex_buf = valueDeserializer.readGetItemMainSizeByIndex() 4129 } 4130 const onGetItemMainSizeByIndex_result: GetItemMainSizeByIndex | undefined|undefined = onGetItemMainSizeByIndex_buf 4131 const columnsGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4132 let columnsGap_buf: Dimension | undefined|undefined 4133 if ((RuntimeType.UNDEFINED) != (columnsGap_buf_runtimeType)) 4134 { 4135 columnsGap_buf = (valueDeserializer.readLength() as Dimension) 4136 } 4137 const columnsGap_result: Dimension | undefined|undefined = columnsGap_buf 4138 const rowsGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4139 let rowsGap_buf: Dimension | undefined|undefined 4140 if ((RuntimeType.UNDEFINED) != (rowsGap_buf_runtimeType)) 4141 { 4142 rowsGap_buf = (valueDeserializer.readLength() as Dimension) 4143 } 4144 const rowsGap_result: Dimension | undefined|undefined = rowsGap_buf 4145 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4146 let margin_buf: Margin | Dimension | undefined|undefined 4147 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 4148 { 4149 const margin_buf__selector: number = valueDeserializer.readInt8() 4150 let margin_buf_: Margin | Dimension | undefined|undefined 4151 if (margin_buf__selector == 0) { 4152 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4153 let margin_buf__u_top_buf: Length | undefined|undefined 4154 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 4155 { 4156 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 4157 } 4158 const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf 4159 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4160 let margin_buf__u_right_buf: Length | undefined|undefined 4161 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 4162 { 4163 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 4164 } 4165 const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf 4166 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4167 let margin_buf__u_bottom_buf: Length | undefined|undefined 4168 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 4169 { 4170 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 4171 } 4172 const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf 4173 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4174 let margin_buf__u_left_buf: Length | undefined|undefined 4175 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 4176 { 4177 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 4178 } 4179 const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf 4180 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 4181 } 4182 else if (margin_buf__selector == 1) { 4183 margin_buf_ = (valueDeserializer.readLength() as Dimension) 4184 } 4185 else { 4186 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 4187 } 4188 margin_buf = (margin_buf_ as Margin | Dimension) 4189 } 4190 const margin_result: Margin | Dimension | undefined|undefined = margin_buf 4191 let value: SectionOptions = ({itemsCount: itemsCount_result, crossCount: crossCount_result, onGetItemMainSizeByIndex: onGetItemMainSizeByIndex_result, columnsGap: columnsGap_result, rowsGap: rowsGap_result, margin: margin_result} as SectionOptions) 4192 return value 4193 } 4194 readRRect(): RRect { 4195 let valueDeserializer: Deserializer = this 4196 const left_result: number = (valueDeserializer.readNumber() as number) 4197 const top_result: number = (valueDeserializer.readNumber() as number) 4198 const width_result: number = (valueDeserializer.readNumber() as number) 4199 const height_result: number = (valueDeserializer.readNumber() as number) 4200 const radius_result: number = (valueDeserializer.readNumber() as number) 4201 let value: RRect = ({left: left_result, top: top_result, width: width_result, height: height_result, radius: radius_result} as RRect) 4202 return value 4203 } 4204 readDividerStyle(): DividerStyle { 4205 let valueDeserializer: Deserializer = this 4206 const strokeWidth_result: Length = (valueDeserializer.readLength() as Length) 4207 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4208 let color_buf: ResourceColor | undefined|undefined 4209 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 4210 { 4211 const color_buf__selector: number = valueDeserializer.readInt8() 4212 let color_buf_: Color | number | string | Resource | undefined|undefined 4213 if (color_buf__selector == 0) { 4214 color_buf_ = (valueDeserializer.readInt32() as Color) 4215 } 4216 else if (color_buf__selector == 1) { 4217 color_buf_ = (valueDeserializer.readNumber() as number) 4218 } 4219 else if (color_buf__selector == 2) { 4220 color_buf_ = (valueDeserializer.readString() as string) 4221 } 4222 else if (color_buf__selector == 3) { 4223 color_buf_ = valueDeserializer.readResource() 4224 } 4225 else { 4226 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 4227 } 4228 color_buf = (color_buf_ as Color | number | string | Resource) 4229 } 4230 const color_result: ResourceColor | undefined|undefined = color_buf 4231 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4232 let startMargin_buf: Length | undefined|undefined 4233 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 4234 { 4235 startMargin_buf = (valueDeserializer.readLength() as Length) 4236 } 4237 const startMargin_result: Length | undefined|undefined = startMargin_buf 4238 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4239 let endMargin_buf: Length | undefined|undefined 4240 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 4241 { 4242 endMargin_buf = (valueDeserializer.readLength() as Length) 4243 } 4244 const endMargin_result: Length | undefined|undefined = endMargin_buf 4245 let value: DividerStyle = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerStyle) 4246 return value 4247 } 4248 readButtonIconOptions(): ButtonIconOptions { 4249 let valueDeserializer: Deserializer = this 4250 const shown_buf_selector: number = valueDeserializer.readInt8() 4251 let shown_buf: string | PixelMap | Resource | undefined|undefined 4252 if (shown_buf_selector == 0) { 4253 shown_buf = (valueDeserializer.readString() as string) 4254 } 4255 else if (shown_buf_selector == 1) { 4256 shown_buf = (valueDeserializer.readPixelMap() as PixelMap) 4257 } 4258 else if (shown_buf_selector == 2) { 4259 shown_buf = valueDeserializer.readResource() 4260 } 4261 else { 4262 throw new Error("One of the branches for shown_buf has to be chosen through deserialisation.") 4263 } 4264 const shown_result: string | PixelMap | Resource = (shown_buf as string | PixelMap | Resource) 4265 const hidden_buf_selector: number = valueDeserializer.readInt8() 4266 let hidden_buf: string | PixelMap | Resource | undefined|undefined 4267 if (hidden_buf_selector == 0) { 4268 hidden_buf = (valueDeserializer.readString() as string) 4269 } 4270 else if (hidden_buf_selector == 1) { 4271 hidden_buf = (valueDeserializer.readPixelMap() as PixelMap) 4272 } 4273 else if (hidden_buf_selector == 2) { 4274 hidden_buf = valueDeserializer.readResource() 4275 } 4276 else { 4277 throw new Error("One of the branches for hidden_buf has to be chosen through deserialisation.") 4278 } 4279 const hidden_result: string | PixelMap | Resource = (hidden_buf as string | PixelMap | Resource) 4280 const switching_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4281 let switching_buf: string | PixelMap | Resource | undefined|undefined 4282 if ((RuntimeType.UNDEFINED) != (switching_buf_runtimeType)) 4283 { 4284 const switching_buf__selector: number = valueDeserializer.readInt8() 4285 let switching_buf_: string | PixelMap | Resource | undefined|undefined 4286 if (switching_buf__selector == 0) { 4287 switching_buf_ = (valueDeserializer.readString() as string) 4288 } 4289 else if (switching_buf__selector == 1) { 4290 switching_buf_ = (valueDeserializer.readPixelMap() as PixelMap) 4291 } 4292 else if (switching_buf__selector == 2) { 4293 switching_buf_ = valueDeserializer.readResource() 4294 } 4295 else { 4296 throw new Error("One of the branches for switching_buf_ has to be chosen through deserialisation.") 4297 } 4298 switching_buf = (switching_buf_ as string | PixelMap | Resource) 4299 } 4300 const switching_result: string | PixelMap | Resource | undefined|undefined = switching_buf 4301 let value: ButtonIconOptions = ({shown: shown_result, hidden: hidden_result, switching: switching_result} as ButtonIconOptions) 4302 return value 4303 } 4304 readImageAIOptions(): ImageAIOptions { 4305 let valueDeserializer: Deserializer = this 4306 const types_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4307 let types_buf: Array<ImageAnalyzerType> | undefined|undefined 4308 if ((RuntimeType.UNDEFINED) != (types_buf_runtimeType)) 4309 { 4310 const types_buf__length: int32 = valueDeserializer.readInt32() 4311 let types_buf_: Array<ImageAnalyzerType> = new Array<ImageAnalyzerType>(types_buf__length) 4312 for (let types_buf__i = 0; types_buf__i < types_buf__length; types_buf__i++) { 4313 types_buf_[types_buf__i] = (valueDeserializer.readInt32() as ImageAnalyzerType) 4314 } 4315 types_buf = types_buf_ 4316 } 4317 const types_result: Array<ImageAnalyzerType> | undefined|undefined = types_buf 4318 const aiController_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4319 let aiController_buf: ImageAnalyzerController | undefined|undefined 4320 if ((RuntimeType.UNDEFINED) != (aiController_buf_runtimeType)) 4321 { 4322 aiController_buf = (valueDeserializer.readImageAnalyzerController() as ImageAnalyzerController) 4323 } 4324 const aiController_result: ImageAnalyzerController | undefined|undefined = aiController_buf 4325 let value: ImageAIOptions = ({types: types_result, aiController: aiController_result} as ImageAIOptions) 4326 return value 4327 } 4328 readXComponentController(): XComponentController { 4329 let valueDeserializer: Deserializer = this 4330 let ptr: KPointer = valueDeserializer.readPointer() 4331 return XComponentControllerInternal.fromPtr(ptr) 4332 } 4333 readImageAnalyzerConfig(): ImageAnalyzerConfig { 4334 let valueDeserializer: Deserializer = this 4335 const types_buf_length: int32 = valueDeserializer.readInt32() 4336 let types_buf: Array<ImageAnalyzerType> = new Array<ImageAnalyzerType>(types_buf_length) 4337 for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { 4338 types_buf[types_buf_i] = (valueDeserializer.readInt32() as ImageAnalyzerType) 4339 } 4340 const types_result: Array<ImageAnalyzerType> = types_buf 4341 let value: ImageAnalyzerConfig = ({types: types_result} as ImageAnalyzerConfig) 4342 return value 4343 } 4344 readSurfaceRect(): SurfaceRect { 4345 let valueDeserializer: Deserializer = this 4346 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4347 let offsetX_buf: number | undefined|undefined 4348 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 4349 { 4350 offsetX_buf = (valueDeserializer.readNumber() as number) 4351 } 4352 const offsetX_result: number | undefined|undefined = offsetX_buf 4353 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4354 let offsetY_buf: number | undefined|undefined 4355 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 4356 { 4357 offsetY_buf = (valueDeserializer.readNumber() as number) 4358 } 4359 const offsetY_result: number | undefined|undefined = offsetY_buf 4360 const surfaceWidth_result: number = (valueDeserializer.readNumber() as number) 4361 const surfaceHeight_result: number = (valueDeserializer.readNumber() as number) 4362 let value: SurfaceRect = ({offsetX: offsetX_result, offsetY: offsetY_result, surfaceWidth: surfaceWidth_result, surfaceHeight: surfaceHeight_result} as SurfaceRect) 4363 return value 4364 } 4365 readSurfaceRotationOptions(): SurfaceRotationOptions { 4366 let valueDeserializer: Deserializer = this 4367 const lock_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4368 let lock_buf: boolean | undefined|undefined 4369 if ((RuntimeType.UNDEFINED) != (lock_buf_runtimeType)) 4370 { 4371 lock_buf = valueDeserializer.readBoolean() 4372 } 4373 const lock_result: boolean | undefined|undefined = lock_buf 4374 let value: SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) 4375 return value 4376 } 4377 readWindowSceneAttribute(): WindowSceneAttribute { 4378 let value: WindowSceneAttribute = ({} as WindowSceneAttribute) 4379 return value 4380 } 4381 readWebAttribute(): WebAttribute { 4382 let value: WebAttribute = ({} as WebAttribute) 4383 return value 4384 } 4385 readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { 4386 let valueDeserializer: Deserializer = this 4387 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4388 let onAppear_buf: (() => void) | undefined|undefined 4389 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 4390 { 4391 onAppear_buf = valueDeserializer.readCallback_Void() 4392 } 4393 const onAppear_result: (() => void) | undefined|undefined = onAppear_buf 4394 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4395 let onDisappear_buf: (() => void) | undefined|undefined 4396 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 4397 { 4398 onDisappear_buf = valueDeserializer.readCallback_Void() 4399 } 4400 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 4401 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4402 let preview_buf: CustomBuilder | undefined|undefined 4403 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 4404 { 4405 preview_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 4406 } 4407 const preview_result: CustomBuilder | undefined|undefined = preview_buf 4408 const menuType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4409 let menuType_buf: MenuType | undefined|undefined 4410 if ((RuntimeType.UNDEFINED) != (menuType_buf_runtimeType)) 4411 { 4412 menuType_buf = (valueDeserializer.readInt32() as MenuType) 4413 } 4414 const menuType_result: MenuType | undefined|undefined = menuType_buf 4415 let value: SelectionMenuOptionsExt = ({onAppear: onAppear_result, onDisappear: onDisappear_result, preview: preview_result, menuType: menuType_result} as SelectionMenuOptionsExt) 4416 return value 4417 } 4418 readWebKeyboardController(): WebKeyboardController { 4419 let valueDeserializer: Deserializer = this 4420 let ptr: KPointer = valueDeserializer.readPointer() 4421 return WebKeyboardControllerInternal.fromPtr(ptr) 4422 } 4423 readCallback_Literal_String_plainText_Void(isSync: boolean = false): ((selectedText: { plainText: string }) => void) { 4424 const _resource: CallbackResource = this.readCallbackResource() 4425 const _call: KPointer = this.readPointer() 4426 const _callSync: KPointer = this.readPointer() 4427 return (selectedText: { plainText: string }): void => { 4428 const _argsSerializer: Serializer = Serializer.hold(); 4429 _argsSerializer.writeInt32(_resource.resourceId); 4430 _argsSerializer.writePointer(_call); 4431 _argsSerializer.writePointer(_callSync); 4432 const selectedText_plainText = selectedText.plainText; 4433 _argsSerializer.writeString(selectedText_plainText); 4434 (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); 4435 _argsSerializer.release(); 4436 return; } 4437 } 4438 readEventResult(): EventResult { 4439 let valueDeserializer: Deserializer = this 4440 let ptr: KPointer = valueDeserializer.readPointer() 4441 return EventResultInternal.fromPtr(ptr) 4442 } 4443 readTouchEvent(): TouchEvent { 4444 let valueDeserializer: Deserializer = this 4445 let ptr: KPointer = valueDeserializer.readPointer() 4446 return TouchEventInternal.fromPtr(ptr) 4447 } 4448 readNativeEmbedInfo(): NativeEmbedInfo { 4449 let valueDeserializer: Deserializer = this 4450 const id_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4451 let id_buf: string | undefined|undefined 4452 if ((RuntimeType.UNDEFINED) != (id_buf_runtimeType)) 4453 { 4454 id_buf = (valueDeserializer.readString() as string) 4455 } 4456 const id_result: string | undefined|undefined = id_buf 4457 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4458 let type_buf: string | undefined|undefined 4459 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 4460 { 4461 type_buf = (valueDeserializer.readString() as string) 4462 } 4463 const type_result: string | undefined|undefined = type_buf 4464 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4465 let src_buf: string | undefined|undefined 4466 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 4467 { 4468 src_buf = (valueDeserializer.readString() as string) 4469 } 4470 const src_result: string | undefined|undefined = src_buf 4471 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4472 let position_buf: Position | undefined|undefined 4473 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 4474 { 4475 position_buf = valueDeserializer.readPosition() 4476 } 4477 const position_result: Position | undefined|undefined = position_buf 4478 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4479 let width_buf: number | undefined|undefined 4480 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 4481 { 4482 width_buf = (valueDeserializer.readNumber() as number) 4483 } 4484 const width_result: number | undefined|undefined = width_buf 4485 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4486 let height_buf: number | undefined|undefined 4487 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 4488 { 4489 height_buf = (valueDeserializer.readNumber() as number) 4490 } 4491 const height_result: number | undefined|undefined = height_buf 4492 const url_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4493 let url_buf: string | undefined|undefined 4494 if ((RuntimeType.UNDEFINED) != (url_buf_runtimeType)) 4495 { 4496 url_buf = (valueDeserializer.readString() as string) 4497 } 4498 const url_result: string | undefined|undefined = url_buf 4499 const tag_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4500 let tag_buf: string | undefined|undefined 4501 if ((RuntimeType.UNDEFINED) != (tag_buf_runtimeType)) 4502 { 4503 tag_buf = (valueDeserializer.readString() as string) 4504 } 4505 const tag_result: string | undefined|undefined = tag_buf 4506 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4507 let params_buf: Map<string, string> | undefined|undefined 4508 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 4509 { 4510 const params_buf__size: int32 = valueDeserializer.readInt32() 4511 let params_buf_: Map<string, string> = new Map<string, string>() 4512 // TODO: TS map resize 4513 for (let params_buf__i = 0; params_buf__i < params_buf__size; params_buf__i++) { 4514 const params_buf__key: string = (valueDeserializer.readString() as string) 4515 const params_buf__value: string = (valueDeserializer.readString() as string) 4516 params_buf_.set(params_buf__key, params_buf__value) 4517 } 4518 params_buf = params_buf_ 4519 } 4520 const params_result: Map<string, string> | undefined|undefined = params_buf 4521 let value: NativeEmbedInfo = ({id: id_result, type: type_result, src: src_result, position: position_result, width: width_result, height: height_result, url: url_result, tag: tag_result, params: params_result} as NativeEmbedInfo) 4522 return value 4523 } 4524 readNestedScrollOptionsExt(): NestedScrollOptionsExt { 4525 let valueDeserializer: Deserializer = this 4526 const scrollUp_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4527 let scrollUp_buf: NestedScrollMode | undefined|undefined 4528 if ((RuntimeType.UNDEFINED) != (scrollUp_buf_runtimeType)) 4529 { 4530 scrollUp_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4531 } 4532 const scrollUp_result: NestedScrollMode | undefined|undefined = scrollUp_buf 4533 const scrollDown_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4534 let scrollDown_buf: NestedScrollMode | undefined|undefined 4535 if ((RuntimeType.UNDEFINED) != (scrollDown_buf_runtimeType)) 4536 { 4537 scrollDown_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4538 } 4539 const scrollDown_result: NestedScrollMode | undefined|undefined = scrollDown_buf 4540 const scrollRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4541 let scrollRight_buf: NestedScrollMode | undefined|undefined 4542 if ((RuntimeType.UNDEFINED) != (scrollRight_buf_runtimeType)) 4543 { 4544 scrollRight_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4545 } 4546 const scrollRight_result: NestedScrollMode | undefined|undefined = scrollRight_buf 4547 const scrollLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4548 let scrollLeft_buf: NestedScrollMode | undefined|undefined 4549 if ((RuntimeType.UNDEFINED) != (scrollLeft_buf_runtimeType)) 4550 { 4551 scrollLeft_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4552 } 4553 const scrollLeft_result: NestedScrollMode | undefined|undefined = scrollLeft_buf 4554 let value: NestedScrollOptionsExt = ({scrollUp: scrollUp_result, scrollDown: scrollDown_result, scrollRight: scrollRight_result, scrollLeft: scrollLeft_result} as NestedScrollOptionsExt) 4555 return value 4556 } 4557 readNestedScrollOptions(): NestedScrollOptions { 4558 let valueDeserializer: Deserializer = this 4559 const scrollForward_result: NestedScrollMode = (valueDeserializer.readInt32() as NestedScrollMode) 4560 const scrollBackward_result: NestedScrollMode = (valueDeserializer.readInt32() as NestedScrollMode) 4561 let value: NestedScrollOptions = ({scrollForward: scrollForward_result, scrollBackward: scrollBackward_result} as NestedScrollOptions) 4562 return value 4563 } 4564 readDataResubmissionHandler(): DataResubmissionHandler { 4565 let valueDeserializer: Deserializer = this 4566 let ptr: KPointer = valueDeserializer.readPointer() 4567 return DataResubmissionHandlerInternal.fromPtr(ptr) 4568 } 4569 readControllerHandler(): ControllerHandler { 4570 let valueDeserializer: Deserializer = this 4571 let ptr: KPointer = valueDeserializer.readPointer() 4572 return ControllerHandlerInternal.fromPtr(ptr) 4573 } 4574 readClientAuthenticationHandler(): ClientAuthenticationHandler { 4575 let valueDeserializer: Deserializer = this 4576 let ptr: KPointer = valueDeserializer.readPointer() 4577 return ClientAuthenticationHandlerInternal.fromPtr(ptr) 4578 } 4579 readSslErrorHandler(): SslErrorHandler { 4580 let valueDeserializer: Deserializer = this 4581 let ptr: KPointer = valueDeserializer.readPointer() 4582 return SslErrorHandlerInternal.fromPtr(ptr) 4583 } 4584 readWebContextMenuResult(): WebContextMenuResult { 4585 let valueDeserializer: Deserializer = this 4586 let ptr: KPointer = valueDeserializer.readPointer() 4587 return WebContextMenuResultInternal.fromPtr(ptr) 4588 } 4589 readWebContextMenuParam(): WebContextMenuParam { 4590 let valueDeserializer: Deserializer = this 4591 let ptr: KPointer = valueDeserializer.readPointer() 4592 return WebContextMenuParamInternal.fromPtr(ptr) 4593 } 4594 readScreenCaptureHandler(): ScreenCaptureHandler { 4595 let valueDeserializer: Deserializer = this 4596 let ptr: KPointer = valueDeserializer.readPointer() 4597 return ScreenCaptureHandlerInternal.fromPtr(ptr) 4598 } 4599 readPermissionRequest(): PermissionRequest { 4600 let valueDeserializer: Deserializer = this 4601 let ptr: KPointer = valueDeserializer.readPointer() 4602 return PermissionRequestInternal.fromPtr(ptr) 4603 } 4604 readHttpAuthHandler(): HttpAuthHandler { 4605 let valueDeserializer: Deserializer = this 4606 let ptr: KPointer = valueDeserializer.readPointer() 4607 return HttpAuthHandlerInternal.fromPtr(ptr) 4608 } 4609 readFullScreenExitHandler(): FullScreenExitHandler { 4610 let valueDeserializer: Deserializer = this 4611 let ptr: KPointer = valueDeserializer.readPointer() 4612 return FullScreenExitHandlerInternal.fromPtr(ptr) 4613 } 4614 readFileSelectorParam(): FileSelectorParam { 4615 let valueDeserializer: Deserializer = this 4616 let ptr: KPointer = valueDeserializer.readPointer() 4617 return FileSelectorParamInternal.fromPtr(ptr) 4618 } 4619 readFileSelectorResult(): FileSelectorResult { 4620 let valueDeserializer: Deserializer = this 4621 let ptr: KPointer = valueDeserializer.readPointer() 4622 return FileSelectorResultInternal.fromPtr(ptr) 4623 } 4624 readWebResourceResponse(): WebResourceResponse { 4625 let valueDeserializer: Deserializer = this 4626 let ptr: KPointer = valueDeserializer.readPointer() 4627 return WebResourceResponseInternal.fromPtr(ptr) 4628 } 4629 readWebResourceError(): WebResourceError { 4630 let valueDeserializer: Deserializer = this 4631 let ptr: KPointer = valueDeserializer.readPointer() 4632 return WebResourceErrorInternal.fromPtr(ptr) 4633 } 4634 readConsoleMessage(): ConsoleMessage { 4635 let valueDeserializer: Deserializer = this 4636 let ptr: KPointer = valueDeserializer.readPointer() 4637 return ConsoleMessageInternal.fromPtr(ptr) 4638 } 4639 readJsResult(): JsResult { 4640 let valueDeserializer: Deserializer = this 4641 let ptr: KPointer = valueDeserializer.readPointer() 4642 return JsResultInternal.fromPtr(ptr) 4643 } 4644 readJsGeolocation(): JsGeolocation { 4645 let valueDeserializer: Deserializer = this 4646 let ptr: KPointer = valueDeserializer.readPointer() 4647 return JsGeolocationInternal.fromPtr(ptr) 4648 } 4649 readWebCookie(): WebCookie { 4650 let valueDeserializer: Deserializer = this 4651 let ptr: KPointer = valueDeserializer.readPointer() 4652 return WebCookieInternal.fromPtr(ptr) 4653 } 4654 readScreenCaptureConfig(): ScreenCaptureConfig { 4655 let valueDeserializer: Deserializer = this 4656 const captureMode_result: WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) 4657 let value: ScreenCaptureConfig = ({captureMode: captureMode_result} as ScreenCaptureConfig) 4658 return value 4659 } 4660 readVideoController(): VideoController { 4661 let valueDeserializer: Deserializer = this 4662 let ptr: KPointer = valueDeserializer.readPointer() 4663 return VideoControllerInternal.fromPtr(ptr) 4664 } 4665 readTimePickerDialogOptions(): TimePickerDialogOptions { 4666 let valueDeserializer: Deserializer = this 4667 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4668 let selected_buf: Date | undefined|undefined 4669 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 4670 { 4671 selected_buf = new Date(valueDeserializer.readInt64()) 4672 } 4673 const selected_result: Date | undefined|undefined = selected_buf 4674 const format_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4675 let format_buf: TimePickerFormat | undefined|undefined 4676 if ((RuntimeType.UNDEFINED) != (format_buf_runtimeType)) 4677 { 4678 format_buf = (valueDeserializer.readInt32() as TimePickerFormat) 4679 } 4680 const format_result: TimePickerFormat | undefined|undefined = format_buf 4681 const useMilitaryTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4682 let useMilitaryTime_buf: boolean | undefined|undefined 4683 if ((RuntimeType.UNDEFINED) != (useMilitaryTime_buf_runtimeType)) 4684 { 4685 useMilitaryTime_buf = valueDeserializer.readBoolean() 4686 } 4687 const useMilitaryTime_result: boolean | undefined|undefined = useMilitaryTime_buf 4688 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4689 let disappearTextStyle_buf: PickerTextStyle | undefined|undefined 4690 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 4691 { 4692 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 4693 } 4694 const disappearTextStyle_result: PickerTextStyle | undefined|undefined = disappearTextStyle_buf 4695 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4696 let textStyle_buf: PickerTextStyle | undefined|undefined 4697 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 4698 { 4699 textStyle_buf = valueDeserializer.readPickerTextStyle() 4700 } 4701 const textStyle_result: PickerTextStyle | undefined|undefined = textStyle_buf 4702 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4703 let acceptButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 4704 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 4705 { 4706 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 4707 } 4708 const acceptButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = acceptButtonStyle_buf 4709 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4710 let cancelButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 4711 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 4712 { 4713 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 4714 } 4715 const cancelButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = cancelButtonStyle_buf 4716 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4717 let selectedTextStyle_buf: PickerTextStyle | undefined|undefined 4718 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 4719 { 4720 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 4721 } 4722 const selectedTextStyle_result: PickerTextStyle | undefined|undefined = selectedTextStyle_buf 4723 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4724 let maskRect_buf: Rectangle | undefined|undefined 4725 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 4726 { 4727 maskRect_buf = valueDeserializer.readRectangle() 4728 } 4729 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 4730 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4731 let alignment_buf: DialogAlignment | undefined|undefined 4732 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 4733 { 4734 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 4735 } 4736 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 4737 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4738 let offset_buf: Offset | undefined|undefined 4739 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 4740 { 4741 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 4742 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 4743 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 4744 } 4745 const offset_result: Offset | undefined|undefined = offset_buf 4746 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4747 let onAccept_buf: ((value: TimePickerResult) => void) | undefined|undefined 4748 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 4749 { 4750 onAccept_buf = valueDeserializer.readCallback_TimePickerResult_Void() 4751 } 4752 const onAccept_result: ((value: TimePickerResult) => void) | undefined|undefined = onAccept_buf 4753 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4754 let onCancel_buf: (() => void) | undefined|undefined 4755 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 4756 { 4757 onCancel_buf = valueDeserializer.readCallback_Void() 4758 } 4759 const onCancel_result: (() => void) | undefined|undefined = onCancel_buf 4760 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4761 let onChange_buf: ((value: TimePickerResult) => void) | undefined|undefined 4762 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 4763 { 4764 onChange_buf = valueDeserializer.readCallback_TimePickerResult_Void() 4765 } 4766 const onChange_result: ((value: TimePickerResult) => void) | undefined|undefined = onChange_buf 4767 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4768 let backgroundColor_buf: ResourceColor | undefined|undefined 4769 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 4770 { 4771 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 4772 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 4773 if (backgroundColor_buf__selector == 0) { 4774 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 4775 } 4776 else if (backgroundColor_buf__selector == 1) { 4777 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 4778 } 4779 else if (backgroundColor_buf__selector == 2) { 4780 backgroundColor_buf_ = (valueDeserializer.readString() as string) 4781 } 4782 else if (backgroundColor_buf__selector == 3) { 4783 backgroundColor_buf_ = valueDeserializer.readResource() 4784 } 4785 else { 4786 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 4787 } 4788 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 4789 } 4790 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 4791 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4792 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 4793 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 4794 { 4795 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 4796 } 4797 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 4798 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4799 let onDidAppear_buf: (() => void) | undefined|undefined 4800 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 4801 { 4802 onDidAppear_buf = valueDeserializer.readCallback_Void() 4803 } 4804 const onDidAppear_result: (() => void) | undefined|undefined = onDidAppear_buf 4805 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4806 let onDidDisappear_buf: (() => void) | undefined|undefined 4807 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 4808 { 4809 onDidDisappear_buf = valueDeserializer.readCallback_Void() 4810 } 4811 const onDidDisappear_result: (() => void) | undefined|undefined = onDidDisappear_buf 4812 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4813 let onWillAppear_buf: (() => void) | undefined|undefined 4814 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 4815 { 4816 onWillAppear_buf = valueDeserializer.readCallback_Void() 4817 } 4818 const onWillAppear_result: (() => void) | undefined|undefined = onWillAppear_buf 4819 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4820 let onWillDisappear_buf: (() => void) | undefined|undefined 4821 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 4822 { 4823 onWillDisappear_buf = valueDeserializer.readCallback_Void() 4824 } 4825 const onWillDisappear_result: (() => void) | undefined|undefined = onWillDisappear_buf 4826 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4827 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 4828 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 4829 { 4830 const shadow_buf__selector: number = valueDeserializer.readInt8() 4831 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 4832 if (shadow_buf__selector == 0) { 4833 shadow_buf_ = valueDeserializer.readShadowOptions() 4834 } 4835 else if (shadow_buf__selector == 1) { 4836 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 4837 } 4838 else { 4839 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 4840 } 4841 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 4842 } 4843 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 4844 const dateTimeOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4845 let dateTimeOptions_buf: DateTimeOptions | undefined|undefined 4846 if ((RuntimeType.UNDEFINED) != (dateTimeOptions_buf_runtimeType)) 4847 { 4848 dateTimeOptions_buf = valueDeserializer.readDateTimeOptions() 4849 } 4850 const dateTimeOptions_result: DateTimeOptions | undefined|undefined = dateTimeOptions_buf 4851 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4852 let enableHoverMode_buf: boolean | undefined|undefined 4853 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 4854 { 4855 enableHoverMode_buf = valueDeserializer.readBoolean() 4856 } 4857 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 4858 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4859 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 4860 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 4861 { 4862 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 4863 } 4864 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 4865 let value: TimePickerDialogOptions = ({selected: selected_result, format: format_result, useMilitaryTime: useMilitaryTime_result, disappearTextStyle: disappearTextStyle_result, textStyle: textStyle_result, acceptButtonStyle: acceptButtonStyle_result, cancelButtonStyle: cancelButtonStyle_result, selectedTextStyle: selectedTextStyle_result, maskRect: maskRect_result, alignment: alignment_result, offset: offset_result, onAccept: onAccept_result, onCancel: onCancel_result, onChange: onChange_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onDidAppear: onDidAppear_result, onDidDisappear: onDidDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, shadow: shadow_result, dateTimeOptions: dateTimeOptions_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as TimePickerDialogOptions) 4866 return value 4867 } 4868 readTextTimerController(): TextTimerController { 4869 let valueDeserializer: Deserializer = this 4870 let ptr: KPointer = valueDeserializer.readPointer() 4871 return TextTimerControllerInternal.fromPtr(ptr) 4872 } 4873 readTextPickerDialogOptions(): TextPickerDialogOptions { 4874 let valueDeserializer: Deserializer = this 4875 const range_buf_selector: number = valueDeserializer.readInt8() 4876 let range_buf: Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> | undefined|undefined 4877 if (range_buf_selector == 0) { 4878 const range_buf_u_length: int32 = valueDeserializer.readInt32() 4879 let range_buf_u: Array<string> = new Array<string>(range_buf_u_length) 4880 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4881 range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) 4882 } 4883 range_buf = range_buf_u 4884 } 4885 else if (range_buf_selector == 1) { 4886 const range_buf_u_length: int32 = valueDeserializer.readInt32() 4887 let range_buf_u: Array<Array<string>> = new Array<Array<string>>(range_buf_u_length) 4888 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4889 const range_buf_u_buf_length: int32 = valueDeserializer.readInt32() 4890 let range_buf_u_buf: Array<string> = new Array<string>(range_buf_u_buf_length) 4891 for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { 4892 range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) 4893 } 4894 range_buf_u[range_buf_u_i] = range_buf_u_buf 4895 } 4896 range_buf = range_buf_u 4897 } 4898 else if (range_buf_selector == 2) { 4899 range_buf = valueDeserializer.readResource() 4900 } 4901 else if (range_buf_selector == 3) { 4902 const range_buf_u_length: int32 = valueDeserializer.readInt32() 4903 let range_buf_u: Array<TextPickerRangeContent> = new Array<TextPickerRangeContent>(range_buf_u_length) 4904 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4905 range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() 4906 } 4907 range_buf = range_buf_u 4908 } 4909 else if (range_buf_selector == 4) { 4910 const range_buf_u_length: int32 = valueDeserializer.readInt32() 4911 let range_buf_u: Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(range_buf_u_length) 4912 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4913 range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() 4914 } 4915 range_buf = range_buf_u 4916 } 4917 else { 4918 throw new Error("One of the branches for range_buf has to be chosen through deserialisation.") 4919 } 4920 const range_result: Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> = (range_buf as Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent>) 4921 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4922 let value_buf: string | Array<string> | undefined|undefined 4923 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 4924 { 4925 const value_buf__selector: number = valueDeserializer.readInt8() 4926 let value_buf_: string | Array<string> | undefined|undefined 4927 if (value_buf__selector == 0) { 4928 value_buf_ = (valueDeserializer.readString() as string) 4929 } 4930 else if (value_buf__selector == 1) { 4931 const value_buf__u_length: int32 = valueDeserializer.readInt32() 4932 let value_buf__u: Array<string> = new Array<string>(value_buf__u_length) 4933 for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { 4934 value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) 4935 } 4936 value_buf_ = value_buf__u 4937 } 4938 else { 4939 throw new Error("One of the branches for value_buf_ has to be chosen through deserialisation.") 4940 } 4941 value_buf = (value_buf_ as string | Array<string>) 4942 } 4943 const value_result: string | Array<string> | undefined|undefined = value_buf 4944 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4945 let selected_buf: number | Array<number> | undefined|undefined 4946 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 4947 { 4948 const selected_buf__selector: number = valueDeserializer.readInt8() 4949 let selected_buf_: number | Array<number> | undefined|undefined 4950 if (selected_buf__selector == 0) { 4951 selected_buf_ = (valueDeserializer.readNumber() as number) 4952 } 4953 else if (selected_buf__selector == 1) { 4954 const selected_buf__u_length: int32 = valueDeserializer.readInt32() 4955 let selected_buf__u: Array<number> = new Array<number>(selected_buf__u_length) 4956 for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { 4957 selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) 4958 } 4959 selected_buf_ = selected_buf__u 4960 } 4961 else { 4962 throw new Error("One of the branches for selected_buf_ has to be chosen through deserialisation.") 4963 } 4964 selected_buf = (selected_buf_ as number | Array<number>) 4965 } 4966 const selected_result: number | Array<number> | undefined|undefined = selected_buf 4967 const defaultPickerItemHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4968 let defaultPickerItemHeight_buf: number | string | undefined|undefined 4969 if ((RuntimeType.UNDEFINED) != (defaultPickerItemHeight_buf_runtimeType)) 4970 { 4971 const defaultPickerItemHeight_buf__selector: number = valueDeserializer.readInt8() 4972 let defaultPickerItemHeight_buf_: number | string | undefined|undefined 4973 if (defaultPickerItemHeight_buf__selector == 0) { 4974 defaultPickerItemHeight_buf_ = (valueDeserializer.readNumber() as number) 4975 } 4976 else if (defaultPickerItemHeight_buf__selector == 1) { 4977 defaultPickerItemHeight_buf_ = (valueDeserializer.readString() as string) 4978 } 4979 else { 4980 throw new Error("One of the branches for defaultPickerItemHeight_buf_ has to be chosen through deserialisation.") 4981 } 4982 defaultPickerItemHeight_buf = (defaultPickerItemHeight_buf_ as number | string) 4983 } 4984 const defaultPickerItemHeight_result: number | string | undefined|undefined = defaultPickerItemHeight_buf 4985 const canLoop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4986 let canLoop_buf: boolean | undefined|undefined 4987 if ((RuntimeType.UNDEFINED) != (canLoop_buf_runtimeType)) 4988 { 4989 canLoop_buf = valueDeserializer.readBoolean() 4990 } 4991 const canLoop_result: boolean | undefined|undefined = canLoop_buf 4992 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4993 let disappearTextStyle_buf: PickerTextStyle | undefined|undefined 4994 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 4995 { 4996 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 4997 } 4998 const disappearTextStyle_result: PickerTextStyle | undefined|undefined = disappearTextStyle_buf 4999 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5000 let textStyle_buf: PickerTextStyle | undefined|undefined 5001 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 5002 { 5003 textStyle_buf = valueDeserializer.readPickerTextStyle() 5004 } 5005 const textStyle_result: PickerTextStyle | undefined|undefined = textStyle_buf 5006 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5007 let acceptButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 5008 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 5009 { 5010 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 5011 } 5012 const acceptButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = acceptButtonStyle_buf 5013 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5014 let cancelButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 5015 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 5016 { 5017 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 5018 } 5019 const cancelButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = cancelButtonStyle_buf 5020 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5021 let selectedTextStyle_buf: PickerTextStyle | undefined|undefined 5022 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 5023 { 5024 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 5025 } 5026 const selectedTextStyle_result: PickerTextStyle | undefined|undefined = selectedTextStyle_buf 5027 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5028 let onAccept_buf: ((value: TextPickerResult) => void) | undefined|undefined 5029 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 5030 { 5031 onAccept_buf = valueDeserializer.readCallback_TextPickerResult_Void() 5032 } 5033 const onAccept_result: ((value: TextPickerResult) => void) | undefined|undefined = onAccept_buf 5034 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5035 let onCancel_buf: (() => void) | undefined|undefined 5036 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 5037 { 5038 onCancel_buf = valueDeserializer.readCallback_Void() 5039 } 5040 const onCancel_result: (() => void) | undefined|undefined = onCancel_buf 5041 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5042 let onChange_buf: ((value: TextPickerResult) => void) | undefined|undefined 5043 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 5044 { 5045 onChange_buf = valueDeserializer.readCallback_TextPickerResult_Void() 5046 } 5047 const onChange_result: ((value: TextPickerResult) => void) | undefined|undefined = onChange_buf 5048 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5049 let maskRect_buf: Rectangle | undefined|undefined 5050 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 5051 { 5052 maskRect_buf = valueDeserializer.readRectangle() 5053 } 5054 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 5055 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5056 let alignment_buf: DialogAlignment | undefined|undefined 5057 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 5058 { 5059 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 5060 } 5061 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 5062 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5063 let offset_buf: Offset | undefined|undefined 5064 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 5065 { 5066 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 5067 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 5068 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 5069 } 5070 const offset_result: Offset | undefined|undefined = offset_buf 5071 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5072 let backgroundColor_buf: ResourceColor | undefined|undefined 5073 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 5074 { 5075 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 5076 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 5077 if (backgroundColor_buf__selector == 0) { 5078 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 5079 } 5080 else if (backgroundColor_buf__selector == 1) { 5081 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 5082 } 5083 else if (backgroundColor_buf__selector == 2) { 5084 backgroundColor_buf_ = (valueDeserializer.readString() as string) 5085 } 5086 else if (backgroundColor_buf__selector == 3) { 5087 backgroundColor_buf_ = valueDeserializer.readResource() 5088 } 5089 else { 5090 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 5091 } 5092 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 5093 } 5094 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 5095 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5096 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 5097 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 5098 { 5099 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 5100 } 5101 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 5102 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5103 let onDidAppear_buf: (() => void) | undefined|undefined 5104 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 5105 { 5106 onDidAppear_buf = valueDeserializer.readCallback_Void() 5107 } 5108 const onDidAppear_result: (() => void) | undefined|undefined = onDidAppear_buf 5109 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5110 let onDidDisappear_buf: (() => void) | undefined|undefined 5111 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 5112 { 5113 onDidDisappear_buf = valueDeserializer.readCallback_Void() 5114 } 5115 const onDidDisappear_result: (() => void) | undefined|undefined = onDidDisappear_buf 5116 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5117 let onWillAppear_buf: (() => void) | undefined|undefined 5118 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 5119 { 5120 onWillAppear_buf = valueDeserializer.readCallback_Void() 5121 } 5122 const onWillAppear_result: (() => void) | undefined|undefined = onWillAppear_buf 5123 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5124 let onWillDisappear_buf: (() => void) | undefined|undefined 5125 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 5126 { 5127 onWillDisappear_buf = valueDeserializer.readCallback_Void() 5128 } 5129 const onWillDisappear_result: (() => void) | undefined|undefined = onWillDisappear_buf 5130 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5131 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 5132 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 5133 { 5134 const shadow_buf__selector: number = valueDeserializer.readInt8() 5135 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 5136 if (shadow_buf__selector == 0) { 5137 shadow_buf_ = valueDeserializer.readShadowOptions() 5138 } 5139 else if (shadow_buf__selector == 1) { 5140 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 5141 } 5142 else { 5143 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 5144 } 5145 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 5146 } 5147 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 5148 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5149 let enableHoverMode_buf: boolean | undefined|undefined 5150 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 5151 { 5152 enableHoverMode_buf = valueDeserializer.readBoolean() 5153 } 5154 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 5155 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5156 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 5157 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 5158 { 5159 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 5160 } 5161 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 5162 let value: TextPickerDialogOptions = ({range: range_result, value: value_result, selected: selected_result, defaultPickerItemHeight: defaultPickerItemHeight_result, canLoop: canLoop_result, disappearTextStyle: disappearTextStyle_result, textStyle: textStyle_result, acceptButtonStyle: acceptButtonStyle_result, cancelButtonStyle: cancelButtonStyle_result, selectedTextStyle: selectedTextStyle_result, onAccept: onAccept_result, onCancel: onCancel_result, onChange: onChange_result, maskRect: maskRect_result, alignment: alignment_result, offset: offset_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onDidAppear: onDidAppear_result, onDidDisappear: onDidDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, shadow: shadow_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as TextPickerDialogOptions) 5163 return value 5164 } 5165 readCallback_Union_String_Array_String_Void(isSync: boolean = false): ((value: string | Array<string>) => void) { 5166 const _resource: CallbackResource = this.readCallbackResource() 5167 const _call: KPointer = this.readPointer() 5168 const _callSync: KPointer = this.readPointer() 5169 return (value: string | Array<string>): void => { 5170 const _argsSerializer: Serializer = Serializer.hold(); 5171 _argsSerializer.writeInt32(_resource.resourceId); 5172 _argsSerializer.writePointer(_call); 5173 _argsSerializer.writePointer(_callSync); 5174 let value_type: int32 = RuntimeType.UNDEFINED; 5175 value_type = runtimeType(value); 5176 if (RuntimeType.STRING == value_type) { 5177 _argsSerializer.writeInt8(0); 5178 const value_0 = unsafeCast<string>(value); 5179 _argsSerializer.writeString(value_0); 5180 } 5181 else if (RuntimeType.OBJECT == value_type) { 5182 _argsSerializer.writeInt8(1); 5183 const value_1 = unsafeCast<Array<string>>(value); 5184 _argsSerializer.writeInt32(value_1.length); 5185 for (let i = 0; i < value_1.length; i++) { 5186 const value_1_element: string = value_1[i]; 5187 _argsSerializer.writeString(value_1_element); 5188 } 5189 } 5190 (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); 5191 _argsSerializer.release(); 5192 return; } 5193 } 5194 readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array<number>) => void) { 5195 const _resource: CallbackResource = this.readCallbackResource() 5196 const _call: KPointer = this.readPointer() 5197 const _callSync: KPointer = this.readPointer() 5198 return (selected: number | Array<number>): void => { 5199 const _argsSerializer: Serializer = Serializer.hold(); 5200 _argsSerializer.writeInt32(_resource.resourceId); 5201 _argsSerializer.writePointer(_call); 5202 _argsSerializer.writePointer(_callSync); 5203 let selected_type: int32 = RuntimeType.UNDEFINED; 5204 selected_type = runtimeType(selected); 5205 if (RuntimeType.NUMBER == selected_type) { 5206 _argsSerializer.writeInt8(0); 5207 const selected_0 = unsafeCast<number>(selected); 5208 _argsSerializer.writeNumber(selected_0); 5209 } 5210 else if (RuntimeType.OBJECT == selected_type) { 5211 _argsSerializer.writeInt8(1); 5212 const selected_1 = unsafeCast<Array<number>>(selected); 5213 _argsSerializer.writeInt32(selected_1.length); 5214 for (let i = 0; i < selected_1.length; i++) { 5215 const selected_1_element: number = selected_1[i]; 5216 _argsSerializer.writeNumber(selected_1_element); 5217 } 5218 } 5219 (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); 5220 _argsSerializer.release(); 5221 return; } 5222 } 5223 readDividerOptions(): DividerOptions { 5224 let valueDeserializer: Deserializer = this 5225 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5226 let strokeWidth_buf: Dimension | undefined|undefined 5227 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 5228 { 5229 strokeWidth_buf = (valueDeserializer.readLength() as Dimension) 5230 } 5231 const strokeWidth_result: Dimension | undefined|undefined = strokeWidth_buf 5232 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5233 let color_buf: ResourceColor | undefined|undefined 5234 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 5235 { 5236 const color_buf__selector: number = valueDeserializer.readInt8() 5237 let color_buf_: Color | number | string | Resource | undefined|undefined 5238 if (color_buf__selector == 0) { 5239 color_buf_ = (valueDeserializer.readInt32() as Color) 5240 } 5241 else if (color_buf__selector == 1) { 5242 color_buf_ = (valueDeserializer.readNumber() as number) 5243 } 5244 else if (color_buf__selector == 2) { 5245 color_buf_ = (valueDeserializer.readString() as string) 5246 } 5247 else if (color_buf__selector == 3) { 5248 color_buf_ = valueDeserializer.readResource() 5249 } 5250 else { 5251 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 5252 } 5253 color_buf = (color_buf_ as Color | number | string | Resource) 5254 } 5255 const color_result: ResourceColor | undefined|undefined = color_buf 5256 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5257 let startMargin_buf: Dimension | undefined|undefined 5258 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 5259 { 5260 startMargin_buf = (valueDeserializer.readLength() as Dimension) 5261 } 5262 const startMargin_result: Dimension | undefined|undefined = startMargin_buf 5263 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5264 let endMargin_buf: Dimension | undefined|undefined 5265 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 5266 { 5267 endMargin_buf = (valueDeserializer.readLength() as Dimension) 5268 } 5269 const endMargin_result: Dimension | undefined|undefined = endMargin_buf 5270 let value: DividerOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerOptions) 5271 return value 5272 } 5273 readCallback_ResourceStr_Void(isSync: boolean = false): ((value: ResourceStr) => void) { 5274 const _resource: CallbackResource = this.readCallbackResource() 5275 const _call: KPointer = this.readPointer() 5276 const _callSync: KPointer = this.readPointer() 5277 return (value: ResourceStr): void => { 5278 const _argsSerializer: Serializer = Serializer.hold(); 5279 _argsSerializer.writeInt32(_resource.resourceId); 5280 _argsSerializer.writePointer(_call); 5281 _argsSerializer.writePointer(_callSync); 5282 let value_type: int32 = RuntimeType.UNDEFINED; 5283 value_type = runtimeType(value); 5284 if (RuntimeType.STRING == value_type) { 5285 _argsSerializer.writeInt8(0); 5286 const value_0 = unsafeCast<string>(value); 5287 _argsSerializer.writeString(value_0); 5288 } 5289 else if (RuntimeType.OBJECT == value_type) { 5290 _argsSerializer.writeInt8(1); 5291 const value_1 = unsafeCast<Resource>(value); 5292 _argsSerializer.writeResource(value_1); 5293 } 5294 (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); 5295 _argsSerializer.release(); 5296 return; } 5297 } 5298 readTextInputAttribute(): TextInputAttribute { 5299 let value: TextInputAttribute = ({} as TextInputAttribute) 5300 return value 5301 } 5302 readInputCounterOptions(): InputCounterOptions { 5303 let valueDeserializer: Deserializer = this 5304 const thresholdPercentage_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5305 let thresholdPercentage_buf: number | undefined|undefined 5306 if ((RuntimeType.UNDEFINED) != (thresholdPercentage_buf_runtimeType)) 5307 { 5308 thresholdPercentage_buf = (valueDeserializer.readNumber() as number) 5309 } 5310 const thresholdPercentage_result: number | undefined|undefined = thresholdPercentage_buf 5311 const highlightBorder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5312 let highlightBorder_buf: boolean | undefined|undefined 5313 if ((RuntimeType.UNDEFINED) != (highlightBorder_buf_runtimeType)) 5314 { 5315 highlightBorder_buf = valueDeserializer.readBoolean() 5316 } 5317 const highlightBorder_result: boolean | undefined|undefined = highlightBorder_buf 5318 let value: InputCounterOptions = ({thresholdPercentage: thresholdPercentage_result, highlightBorder: highlightBorder_result} as InputCounterOptions) 5319 return value 5320 } 5321 readKeyboardOptions(): KeyboardOptions { 5322 let valueDeserializer: Deserializer = this 5323 const supportAvoidance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5324 let supportAvoidance_buf: boolean | undefined|undefined 5325 if ((RuntimeType.UNDEFINED) != (supportAvoidance_buf_runtimeType)) 5326 { 5327 supportAvoidance_buf = valueDeserializer.readBoolean() 5328 } 5329 const supportAvoidance_result: boolean | undefined|undefined = supportAvoidance_buf 5330 let value: KeyboardOptions = ({supportAvoidance: supportAvoidance_result} as KeyboardOptions) 5331 return value 5332 } 5333 readUnderlineColor(): UnderlineColor { 5334 let valueDeserializer: Deserializer = this 5335 const typing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5336 let typing_buf: ResourceColor | undefined|undefined 5337 if ((RuntimeType.UNDEFINED) != (typing_buf_runtimeType)) 5338 { 5339 const typing_buf__selector: number = valueDeserializer.readInt8() 5340 let typing_buf_: Color | number | string | Resource | undefined|undefined 5341 if (typing_buf__selector == 0) { 5342 typing_buf_ = (valueDeserializer.readInt32() as Color) 5343 } 5344 else if (typing_buf__selector == 1) { 5345 typing_buf_ = (valueDeserializer.readNumber() as number) 5346 } 5347 else if (typing_buf__selector == 2) { 5348 typing_buf_ = (valueDeserializer.readString() as string) 5349 } 5350 else if (typing_buf__selector == 3) { 5351 typing_buf_ = valueDeserializer.readResource() 5352 } 5353 else { 5354 throw new Error("One of the branches for typing_buf_ has to be chosen through deserialisation.") 5355 } 5356 typing_buf = (typing_buf_ as Color | number | string | Resource) 5357 } 5358 const typing_result: ResourceColor | undefined|undefined = typing_buf 5359 const normal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5360 let normal_buf: ResourceColor | undefined|undefined 5361 if ((RuntimeType.UNDEFINED) != (normal_buf_runtimeType)) 5362 { 5363 const normal_buf__selector: number = valueDeserializer.readInt8() 5364 let normal_buf_: Color | number | string | Resource | undefined|undefined 5365 if (normal_buf__selector == 0) { 5366 normal_buf_ = (valueDeserializer.readInt32() as Color) 5367 } 5368 else if (normal_buf__selector == 1) { 5369 normal_buf_ = (valueDeserializer.readNumber() as number) 5370 } 5371 else if (normal_buf__selector == 2) { 5372 normal_buf_ = (valueDeserializer.readString() as string) 5373 } 5374 else if (normal_buf__selector == 3) { 5375 normal_buf_ = valueDeserializer.readResource() 5376 } 5377 else { 5378 throw new Error("One of the branches for normal_buf_ has to be chosen through deserialisation.") 5379 } 5380 normal_buf = (normal_buf_ as Color | number | string | Resource) 5381 } 5382 const normal_result: ResourceColor | undefined|undefined = normal_buf 5383 const error_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5384 let error_buf: ResourceColor | undefined|undefined 5385 if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) 5386 { 5387 const error_buf__selector: number = valueDeserializer.readInt8() 5388 let error_buf_: Color | number | string | Resource | undefined|undefined 5389 if (error_buf__selector == 0) { 5390 error_buf_ = (valueDeserializer.readInt32() as Color) 5391 } 5392 else if (error_buf__selector == 1) { 5393 error_buf_ = (valueDeserializer.readNumber() as number) 5394 } 5395 else if (error_buf__selector == 2) { 5396 error_buf_ = (valueDeserializer.readString() as string) 5397 } 5398 else if (error_buf__selector == 3) { 5399 error_buf_ = valueDeserializer.readResource() 5400 } 5401 else { 5402 throw new Error("One of the branches for error_buf_ has to be chosen through deserialisation.") 5403 } 5404 error_buf = (error_buf_ as Color | number | string | Resource) 5405 } 5406 const error_result: ResourceColor | undefined|undefined = error_buf 5407 const disable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5408 let disable_buf: ResourceColor | undefined|undefined 5409 if ((RuntimeType.UNDEFINED) != (disable_buf_runtimeType)) 5410 { 5411 const disable_buf__selector: number = valueDeserializer.readInt8() 5412 let disable_buf_: Color | number | string | Resource | undefined|undefined 5413 if (disable_buf__selector == 0) { 5414 disable_buf_ = (valueDeserializer.readInt32() as Color) 5415 } 5416 else if (disable_buf__selector == 1) { 5417 disable_buf_ = (valueDeserializer.readNumber() as number) 5418 } 5419 else if (disable_buf__selector == 2) { 5420 disable_buf_ = (valueDeserializer.readString() as string) 5421 } 5422 else if (disable_buf__selector == 3) { 5423 disable_buf_ = valueDeserializer.readResource() 5424 } 5425 else { 5426 throw new Error("One of the branches for disable_buf_ has to be chosen through deserialisation.") 5427 } 5428 disable_buf = (disable_buf_ as Color | number | string | Resource) 5429 } 5430 const disable_result: ResourceColor | undefined|undefined = disable_buf 5431 let value: UnderlineColor = ({typing: typing_result, normal: normal_result, error: error_result, disable: disable_result} as UnderlineColor) 5432 return value 5433 } 5434 readTextInputController(): TextInputController { 5435 let valueDeserializer: Deserializer = this 5436 let ptr: KPointer = valueDeserializer.readPointer() 5437 return TextInputControllerInternal.fromPtr(ptr) 5438 } 5439 readSelectionOptions(): SelectionOptions { 5440 let valueDeserializer: Deserializer = this 5441 const menuPolicy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5442 let menuPolicy_buf: MenuPolicy | undefined|undefined 5443 if ((RuntimeType.UNDEFINED) != (menuPolicy_buf_runtimeType)) 5444 { 5445 menuPolicy_buf = (valueDeserializer.readInt32() as MenuPolicy) 5446 } 5447 const menuPolicy_result: MenuPolicy | undefined|undefined = menuPolicy_buf 5448 let value: SelectionOptions = ({menuPolicy: menuPolicy_result} as SelectionOptions) 5449 return value 5450 } 5451 readTextRange(): TextRange { 5452 let valueDeserializer: Deserializer = this 5453 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5454 let start_buf: number | undefined|undefined 5455 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 5456 { 5457 start_buf = (valueDeserializer.readNumber() as number) 5458 } 5459 const start_result: number | undefined|undefined = start_buf 5460 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5461 let end_buf: number | undefined|undefined 5462 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 5463 { 5464 end_buf = (valueDeserializer.readNumber() as number) 5465 } 5466 const end_result: number | undefined|undefined = end_buf 5467 let value: TextRange = ({start: start_result, end: end_result} as TextRange) 5468 return value 5469 } 5470 readTextMenuItem(): TextMenuItem { 5471 let valueDeserializer: Deserializer = this 5472 const content_buf_selector: number = valueDeserializer.readInt8() 5473 let content_buf: string | Resource | undefined|undefined 5474 if (content_buf_selector == 0) { 5475 content_buf = (valueDeserializer.readString() as string) 5476 } 5477 else if (content_buf_selector == 1) { 5478 content_buf = valueDeserializer.readResource() 5479 } 5480 else { 5481 throw new Error("One of the branches for content_buf has to be chosen through deserialisation.") 5482 } 5483 const content_result: ResourceStr = (content_buf as string | Resource) 5484 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5485 let icon_buf: ResourceStr | undefined|undefined 5486 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 5487 { 5488 const icon_buf__selector: number = valueDeserializer.readInt8() 5489 let icon_buf_: string | Resource | undefined|undefined 5490 if (icon_buf__selector == 0) { 5491 icon_buf_ = (valueDeserializer.readString() as string) 5492 } 5493 else if (icon_buf__selector == 1) { 5494 icon_buf_ = valueDeserializer.readResource() 5495 } 5496 else { 5497 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 5498 } 5499 icon_buf = (icon_buf_ as string | Resource) 5500 } 5501 const icon_result: ResourceStr | undefined|undefined = icon_buf 5502 const id_result: TextMenuItemId = (valueDeserializer.readTextMenuItemId() as TextMenuItemId) 5503 let value: TextMenuItem = ({content: content_result, icon: icon_result, id: id_result} as TextMenuItem) 5504 return value 5505 } 5506 readLineMetrics(): LineMetrics { 5507 let valueDeserializer: Deserializer = this 5508 const _LineMetricsStub_result: string = (valueDeserializer.readString() as string) 5509 let value: LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) 5510 return value 5511 } 5512 readPositionWithAffinity(): PositionWithAffinity { 5513 let valueDeserializer: Deserializer = this 5514 const position_result: number = (valueDeserializer.readNumber() as number) 5515 const affinity_result: Affinity = valueDeserializer.readAffinity() 5516 let value: PositionWithAffinity = ({position: position_result, affinity: affinity_result} as PositionWithAffinity) 5517 return value 5518 } 5519 readMutableStyledString(): MutableStyledString { 5520 let valueDeserializer: Deserializer = this 5521 let ptr: KPointer = valueDeserializer.readPointer() 5522 return MutableStyledStringInternal.fromPtr(ptr) 5523 } 5524 readPreviewText(): PreviewText { 5525 let valueDeserializer: Deserializer = this 5526 const offset_result: number = (valueDeserializer.readNumber() as number) 5527 const value_result: string = (valueDeserializer.readString() as string) 5528 let value: PreviewText = ({offset: offset_result, value: value_result} as PreviewText) 5529 return value 5530 } 5531 readLayoutManager(): LayoutManager { 5532 let valueDeserializer: Deserializer = this 5533 let ptr: KPointer = valueDeserializer.readPointer() 5534 return LayoutManagerInternal.fromPtr(ptr) 5535 } 5536 readTextClockController(): TextClockController { 5537 let valueDeserializer: Deserializer = this 5538 let ptr: KPointer = valueDeserializer.readPointer() 5539 return TextClockControllerInternal.fromPtr(ptr) 5540 } 5541 readTextAreaAttribute(): TextAreaAttribute { 5542 let value: TextAreaAttribute = ({} as TextAreaAttribute) 5543 return value 5544 } 5545 readTextAreaController(): TextAreaController { 5546 let valueDeserializer: Deserializer = this 5547 let ptr: KPointer = valueDeserializer.readPointer() 5548 return TextAreaControllerInternal.fromPtr(ptr) 5549 } 5550 readTextAttribute(): TextAttribute { 5551 let value: TextAttribute = ({} as TextAttribute) 5552 return value 5553 } 5554 readSelectionMenuOptions(): SelectionMenuOptions { 5555 let valueDeserializer: Deserializer = this 5556 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5557 let onAppear_buf: MenuOnAppearCallback | undefined|undefined 5558 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 5559 { 5560 onAppear_buf = valueDeserializer.readMenuOnAppearCallback() 5561 } 5562 const onAppear_result: MenuOnAppearCallback | undefined|undefined = onAppear_buf 5563 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5564 let onDisappear_buf: (() => void) | undefined|undefined 5565 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 5566 { 5567 onDisappear_buf = valueDeserializer.readCallback_Void() 5568 } 5569 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 5570 const menuType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5571 let menuType_buf: MenuType | undefined|undefined 5572 if ((RuntimeType.UNDEFINED) != (menuType_buf_runtimeType)) 5573 { 5574 menuType_buf = (valueDeserializer.readInt32() as MenuType) 5575 } 5576 const menuType_result: MenuType | undefined|undefined = menuType_buf 5577 let value: SelectionMenuOptions = ({onAppear: onAppear_result, onDisappear: onDisappear_result, menuType: menuType_result} as SelectionMenuOptions) 5578 return value 5579 } 5580 readFontSettingOptions(): FontSettingOptions { 5581 let valueDeserializer: Deserializer = this 5582 const enableVariableFontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5583 let enableVariableFontWeight_buf: boolean | undefined|undefined 5584 if ((RuntimeType.UNDEFINED) != (enableVariableFontWeight_buf_runtimeType)) 5585 { 5586 enableVariableFontWeight_buf = valueDeserializer.readBoolean() 5587 } 5588 const enableVariableFontWeight_result: boolean | undefined|undefined = enableVariableFontWeight_buf 5589 let value: FontSettingOptions = ({enableVariableFontWeight: enableVariableFontWeight_result} as FontSettingOptions) 5590 return value 5591 } 5592 readTextController(): TextController { 5593 let valueDeserializer: Deserializer = this 5594 let ptr: KPointer = valueDeserializer.readPointer() 5595 return TextControllerInternal.fromPtr(ptr) 5596 } 5597 readBottomTabBarStyle(): BottomTabBarStyle { 5598 throw new Error("Can not deserialize builder class") 5599 } 5600 readSubTabBarStyle(): SubTabBarStyle { 5601 throw new Error("Can not deserialize builder class") 5602 } 5603 readTabBarOptions(): TabBarOptions { 5604 let valueDeserializer: Deserializer = this 5605 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5606 let icon_buf: string | Resource | undefined|undefined 5607 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 5608 { 5609 const icon_buf__selector: number = valueDeserializer.readInt8() 5610 let icon_buf_: string | Resource | undefined|undefined 5611 if (icon_buf__selector == 0) { 5612 icon_buf_ = (valueDeserializer.readString() as string) 5613 } 5614 else if (icon_buf__selector == 1) { 5615 icon_buf_ = valueDeserializer.readResource() 5616 } 5617 else { 5618 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 5619 } 5620 icon_buf = (icon_buf_ as string | Resource) 5621 } 5622 const icon_result: string | Resource | undefined|undefined = icon_buf 5623 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5624 let text_buf: string | Resource | undefined|undefined 5625 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 5626 { 5627 const text_buf__selector: number = valueDeserializer.readInt8() 5628 let text_buf_: string | Resource | undefined|undefined 5629 if (text_buf__selector == 0) { 5630 text_buf_ = (valueDeserializer.readString() as string) 5631 } 5632 else if (text_buf__selector == 1) { 5633 text_buf_ = valueDeserializer.readResource() 5634 } 5635 else { 5636 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 5637 } 5638 text_buf = (text_buf_ as string | Resource) 5639 } 5640 const text_result: string | Resource | undefined|undefined = text_buf 5641 let value: TabBarOptions = ({icon: icon_result, text: text_result} as TabBarOptions) 5642 return value 5643 } 5644 readTabsAttribute(): TabsAttribute { 5645 let value: TabsAttribute = ({} as TabsAttribute) 5646 return value 5647 } 5648 readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { 5649 let valueDeserializer: Deserializer = this 5650 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5651 let colorMode_buf: ThemeColorMode | undefined|undefined 5652 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 5653 { 5654 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 5655 } 5656 const colorMode_result: ThemeColorMode | undefined|undefined = colorMode_buf 5657 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5658 let adaptiveColor_buf: AdaptiveColor | undefined|undefined 5659 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 5660 { 5661 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 5662 } 5663 const adaptiveColor_result: AdaptiveColor | undefined|undefined = adaptiveColor_buf 5664 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5665 let scale_buf: number | undefined|undefined 5666 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 5667 { 5668 scale_buf = (valueDeserializer.readNumber() as number) 5669 } 5670 const scale_result: number | undefined|undefined = scale_buf 5671 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5672 let blurOptions_buf: BlurOptions | undefined|undefined 5673 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 5674 { 5675 blurOptions_buf = valueDeserializer.readBlurOptions() 5676 } 5677 const blurOptions_result: BlurOptions | undefined|undefined = blurOptions_buf 5678 const policy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5679 let policy_buf: BlurStyleActivePolicy | undefined|undefined 5680 if ((RuntimeType.UNDEFINED) != (policy_buf_runtimeType)) 5681 { 5682 policy_buf = (valueDeserializer.readInt32() as BlurStyleActivePolicy) 5683 } 5684 const policy_result: BlurStyleActivePolicy | undefined|undefined = policy_buf 5685 const inactiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5686 let inactiveColor_buf: ResourceColor | undefined|undefined 5687 if ((RuntimeType.UNDEFINED) != (inactiveColor_buf_runtimeType)) 5688 { 5689 const inactiveColor_buf__selector: number = valueDeserializer.readInt8() 5690 let inactiveColor_buf_: Color | number | string | Resource | undefined|undefined 5691 if (inactiveColor_buf__selector == 0) { 5692 inactiveColor_buf_ = (valueDeserializer.readInt32() as Color) 5693 } 5694 else if (inactiveColor_buf__selector == 1) { 5695 inactiveColor_buf_ = (valueDeserializer.readNumber() as number) 5696 } 5697 else if (inactiveColor_buf__selector == 2) { 5698 inactiveColor_buf_ = (valueDeserializer.readString() as string) 5699 } 5700 else if (inactiveColor_buf__selector == 3) { 5701 inactiveColor_buf_ = valueDeserializer.readResource() 5702 } 5703 else { 5704 throw new Error("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation.") 5705 } 5706 inactiveColor_buf = (inactiveColor_buf_ as Color | number | string | Resource) 5707 } 5708 const inactiveColor_result: ResourceColor | undefined|undefined = inactiveColor_buf 5709 let value: BackgroundBlurStyleOptions = ({colorMode: colorMode_result, adaptiveColor: adaptiveColor_result, scale: scale_result, blurOptions: blurOptions_result, policy: policy_result, inactiveColor: inactiveColor_result} as BackgroundBlurStyleOptions) 5710 return value 5711 } 5712 readScrollableBarModeOptions(): ScrollableBarModeOptions { 5713 let valueDeserializer: Deserializer = this 5714 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5715 let margin_buf: Dimension | undefined|undefined 5716 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 5717 { 5718 margin_buf = (valueDeserializer.readLength() as Dimension) 5719 } 5720 const margin_result: Dimension | undefined|undefined = margin_buf 5721 const nonScrollableLayoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5722 let nonScrollableLayoutStyle_buf: LayoutStyle | undefined|undefined 5723 if ((RuntimeType.UNDEFINED) != (nonScrollableLayoutStyle_buf_runtimeType)) 5724 { 5725 nonScrollableLayoutStyle_buf = (valueDeserializer.readInt32() as LayoutStyle) 5726 } 5727 const nonScrollableLayoutStyle_result: LayoutStyle | undefined|undefined = nonScrollableLayoutStyle_buf 5728 let value: ScrollableBarModeOptions = ({margin: margin_result, nonScrollableLayoutStyle: nonScrollableLayoutStyle_result} as ScrollableBarModeOptions) 5729 return value 5730 } 5731 readTabContentAnimatedTransition(): TabContentAnimatedTransition { 5732 let valueDeserializer: Deserializer = this 5733 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5734 let timeout_buf: number | undefined|undefined 5735 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 5736 { 5737 timeout_buf = (valueDeserializer.readNumber() as number) 5738 } 5739 const timeout_result: number | undefined|undefined = timeout_buf 5740 const transition_result: ((parameter: TabContentTransitionProxy) => void) = valueDeserializer.readCallback_TabContentTransitionProxy_Void() 5741 let value: TabContentAnimatedTransition = ({timeout: timeout_result, transition: transition_result} as TabContentAnimatedTransition) 5742 return value 5743 } 5744 readTabsController(): TabsController { 5745 let valueDeserializer: Deserializer = this 5746 let ptr: KPointer = valueDeserializer.readPointer() 5747 return TabsControllerInternal.fromPtr(ptr) 5748 } 5749 readSymbolGlyphAttribute(): SymbolGlyphAttribute { 5750 let value: SymbolGlyphAttribute = ({} as SymbolGlyphAttribute) 5751 return value 5752 } 5753 readSymbolEffect(): SymbolEffect { 5754 let value: SymbolEffect = ({} as SymbolEffect) 5755 return value 5756 } 5757 readDigitIndicator(): DigitIndicator { 5758 throw new Error("Can not deserialize builder class") 5759 } 5760 readDotIndicator(): DotIndicator { 5761 throw new Error("Can not deserialize builder class") 5762 } 5763 readSwiperAttribute(): SwiperAttribute { 5764 let value: SwiperAttribute = ({} as SwiperAttribute) 5765 return value 5766 } 5767 readSwiperAutoFill(): SwiperAutoFill { 5768 let valueDeserializer: Deserializer = this 5769 const minSize_buf_selector: number = valueDeserializer.readInt8() 5770 let minSize_buf: string | number | undefined|undefined 5771 if (minSize_buf_selector == 0) { 5772 minSize_buf = (valueDeserializer.readString() as string) 5773 } 5774 else if (minSize_buf_selector == 1) { 5775 minSize_buf = (valueDeserializer.readNumber() as number) 5776 } 5777 else { 5778 throw new Error("One of the branches for minSize_buf has to be chosen through deserialisation.") 5779 } 5780 const minSize_result: VP = (minSize_buf as string | number) 5781 let value: SwiperAutoFill = ({minSize: minSize_result} as SwiperAutoFill) 5782 return value 5783 } 5784 readArrowStyle(): ArrowStyle { 5785 let valueDeserializer: Deserializer = this 5786 const showBackground_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5787 let showBackground_buf: boolean | undefined|undefined 5788 if ((RuntimeType.UNDEFINED) != (showBackground_buf_runtimeType)) 5789 { 5790 showBackground_buf = valueDeserializer.readBoolean() 5791 } 5792 const showBackground_result: boolean | undefined|undefined = showBackground_buf 5793 const isSidebarMiddle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5794 let isSidebarMiddle_buf: boolean | undefined|undefined 5795 if ((RuntimeType.UNDEFINED) != (isSidebarMiddle_buf_runtimeType)) 5796 { 5797 isSidebarMiddle_buf = valueDeserializer.readBoolean() 5798 } 5799 const isSidebarMiddle_result: boolean | undefined|undefined = isSidebarMiddle_buf 5800 const backgroundSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5801 let backgroundSize_buf: Length | undefined|undefined 5802 if ((RuntimeType.UNDEFINED) != (backgroundSize_buf_runtimeType)) 5803 { 5804 backgroundSize_buf = (valueDeserializer.readLength() as Length) 5805 } 5806 const backgroundSize_result: Length | undefined|undefined = backgroundSize_buf 5807 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5808 let backgroundColor_buf: ResourceColor | undefined|undefined 5809 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 5810 { 5811 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 5812 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 5813 if (backgroundColor_buf__selector == 0) { 5814 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 5815 } 5816 else if (backgroundColor_buf__selector == 1) { 5817 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 5818 } 5819 else if (backgroundColor_buf__selector == 2) { 5820 backgroundColor_buf_ = (valueDeserializer.readString() as string) 5821 } 5822 else if (backgroundColor_buf__selector == 3) { 5823 backgroundColor_buf_ = valueDeserializer.readResource() 5824 } 5825 else { 5826 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 5827 } 5828 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 5829 } 5830 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 5831 const arrowSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5832 let arrowSize_buf: Length | undefined|undefined 5833 if ((RuntimeType.UNDEFINED) != (arrowSize_buf_runtimeType)) 5834 { 5835 arrowSize_buf = (valueDeserializer.readLength() as Length) 5836 } 5837 const arrowSize_result: Length | undefined|undefined = arrowSize_buf 5838 const arrowColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5839 let arrowColor_buf: ResourceColor | undefined|undefined 5840 if ((RuntimeType.UNDEFINED) != (arrowColor_buf_runtimeType)) 5841 { 5842 const arrowColor_buf__selector: number = valueDeserializer.readInt8() 5843 let arrowColor_buf_: Color | number | string | Resource | undefined|undefined 5844 if (arrowColor_buf__selector == 0) { 5845 arrowColor_buf_ = (valueDeserializer.readInt32() as Color) 5846 } 5847 else if (arrowColor_buf__selector == 1) { 5848 arrowColor_buf_ = (valueDeserializer.readNumber() as number) 5849 } 5850 else if (arrowColor_buf__selector == 2) { 5851 arrowColor_buf_ = (valueDeserializer.readString() as string) 5852 } 5853 else if (arrowColor_buf__selector == 3) { 5854 arrowColor_buf_ = valueDeserializer.readResource() 5855 } 5856 else { 5857 throw new Error("One of the branches for arrowColor_buf_ has to be chosen through deserialisation.") 5858 } 5859 arrowColor_buf = (arrowColor_buf_ as Color | number | string | Resource) 5860 } 5861 const arrowColor_result: ResourceColor | undefined|undefined = arrowColor_buf 5862 let value: ArrowStyle = ({showBackground: showBackground_result, isSidebarMiddle: isSidebarMiddle_result, backgroundSize: backgroundSize_result, backgroundColor: backgroundColor_result, arrowSize: arrowSize_result, arrowColor: arrowColor_result} as ArrowStyle) 5863 return value 5864 } 5865 readCallback_SwiperContentTransitionProxy_Void(isSync: boolean = false): ((parameter: SwiperContentTransitionProxy) => void) { 5866 const _resource: CallbackResource = this.readCallbackResource() 5867 const _call: KPointer = this.readPointer() 5868 const _callSync: KPointer = this.readPointer() 5869 return (parameter: SwiperContentTransitionProxy): void => { 5870 const _argsSerializer: Serializer = Serializer.hold(); 5871 _argsSerializer.writeInt32(_resource.resourceId); 5872 _argsSerializer.writePointer(_call); 5873 _argsSerializer.writePointer(_callSync); 5874 _argsSerializer.writeSwiperContentTransitionProxy(parameter); 5875 (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); 5876 _argsSerializer.release(); 5877 return; } 5878 } 5879 readSliderAttribute(): SliderAttribute { 5880 let value: SliderAttribute = ({} as SliderAttribute) 5881 return value 5882 } 5883 readShapeAttribute(): ShapeAttribute { 5884 let value: ShapeAttribute = ({} as ShapeAttribute) 5885 return value 5886 } 5887 readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { 5888 const _resource: CallbackResource = this.readCallbackResource() 5889 const _call: KPointer = this.readPointer() 5890 const _callSync: KPointer = this.readPointer() 5891 return (selected: number | Resource): void => { 5892 const _argsSerializer: Serializer = Serializer.hold(); 5893 _argsSerializer.writeInt32(_resource.resourceId); 5894 _argsSerializer.writePointer(_call); 5895 _argsSerializer.writePointer(_callSync); 5896 let selected_type: int32 = RuntimeType.UNDEFINED; 5897 selected_type = runtimeType(selected); 5898 if (RuntimeType.NUMBER == selected_type) { 5899 _argsSerializer.writeInt8(0); 5900 const selected_0 = unsafeCast<number>(selected); 5901 _argsSerializer.writeNumber(selected_0); 5902 } 5903 else if (RuntimeType.OBJECT == selected_type) { 5904 _argsSerializer.writeInt8(1); 5905 const selected_1 = unsafeCast<Resource>(selected); 5906 _argsSerializer.writeResource(selected_1); 5907 } 5908 (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); 5909 _argsSerializer.release(); 5910 return; } 5911 } 5912 readSelectAttribute(): SelectAttribute { 5913 let value: SelectAttribute = ({} as SelectAttribute) 5914 return value 5915 } 5916 readLocalizedEdges(): LocalizedEdges { 5917 let valueDeserializer: Deserializer = this 5918 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5919 let top_buf: LengthMetrics | undefined|undefined 5920 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 5921 { 5922 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5923 } 5924 const top_result: LengthMetrics | undefined|undefined = top_buf 5925 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5926 let start_buf: LengthMetrics | undefined|undefined 5927 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 5928 { 5929 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5930 } 5931 const start_result: LengthMetrics | undefined|undefined = start_buf 5932 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5933 let bottom_buf: LengthMetrics | undefined|undefined 5934 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 5935 { 5936 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5937 } 5938 const bottom_result: LengthMetrics | undefined|undefined = bottom_buf 5939 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5940 let end_buf: LengthMetrics | undefined|undefined 5941 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 5942 { 5943 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5944 } 5945 const end_result: LengthMetrics | undefined|undefined = end_buf 5946 let value: LocalizedEdges = ({top: top_result, start: start_result, bottom: bottom_result, end: end_result} as LocalizedEdges) 5947 return value 5948 } 5949 readEdges(): Edges { 5950 let valueDeserializer: Deserializer = this 5951 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5952 let top_buf: Dimension | undefined|undefined 5953 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 5954 { 5955 top_buf = (valueDeserializer.readLength() as Dimension) 5956 } 5957 const top_result: Dimension | undefined|undefined = top_buf 5958 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5959 let left_buf: Dimension | undefined|undefined 5960 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 5961 { 5962 left_buf = (valueDeserializer.readLength() as Dimension) 5963 } 5964 const left_result: Dimension | undefined|undefined = left_buf 5965 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5966 let bottom_buf: Dimension | undefined|undefined 5967 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 5968 { 5969 bottom_buf = (valueDeserializer.readLength() as Dimension) 5970 } 5971 const bottom_result: Dimension | undefined|undefined = bottom_buf 5972 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5973 let right_buf: Dimension | undefined|undefined 5974 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 5975 { 5976 right_buf = (valueDeserializer.readLength() as Dimension) 5977 } 5978 const right_result: Dimension | undefined|undefined = right_buf 5979 let value: Edges = ({top: top_result, left: left_result, bottom: bottom_result, right: right_result} as Edges) 5980 return value 5981 } 5982 readSearchAttribute(): SearchAttribute { 5983 let value: SearchAttribute = ({} as SearchAttribute) 5984 return value 5985 } 5986 readSearchButtonOptions(): SearchButtonOptions { 5987 let valueDeserializer: Deserializer = this 5988 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5989 let fontSize_buf: Length | undefined|undefined 5990 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 5991 { 5992 fontSize_buf = (valueDeserializer.readLength() as Length) 5993 } 5994 const fontSize_result: Length | undefined|undefined = fontSize_buf 5995 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5996 let fontColor_buf: ResourceColor | undefined|undefined 5997 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 5998 { 5999 const fontColor_buf__selector: number = valueDeserializer.readInt8() 6000 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 6001 if (fontColor_buf__selector == 0) { 6002 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 6003 } 6004 else if (fontColor_buf__selector == 1) { 6005 fontColor_buf_ = (valueDeserializer.readNumber() as number) 6006 } 6007 else if (fontColor_buf__selector == 2) { 6008 fontColor_buf_ = (valueDeserializer.readString() as string) 6009 } 6010 else if (fontColor_buf__selector == 3) { 6011 fontColor_buf_ = valueDeserializer.readResource() 6012 } 6013 else { 6014 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6015 } 6016 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6017 } 6018 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 6019 const autoDisable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6020 let autoDisable_buf: boolean | undefined|undefined 6021 if ((RuntimeType.UNDEFINED) != (autoDisable_buf_runtimeType)) 6022 { 6023 autoDisable_buf = valueDeserializer.readBoolean() 6024 } 6025 const autoDisable_result: boolean | undefined|undefined = autoDisable_buf 6026 let value: SearchButtonOptions = ({fontSize: fontSize_result, fontColor: fontColor_result, autoDisable: autoDisable_result} as SearchButtonOptions) 6027 return value 6028 } 6029 readCancelButtonSymbolOptions(): CancelButtonSymbolOptions { 6030 let valueDeserializer: Deserializer = this 6031 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6032 let style_buf: CancelButtonStyle | undefined|undefined 6033 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6034 { 6035 style_buf = (valueDeserializer.readInt32() as CancelButtonStyle) 6036 } 6037 const style_result: CancelButtonStyle | undefined|undefined = style_buf 6038 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6039 let icon_buf: SymbolGlyphModifier | undefined|undefined 6040 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 6041 { 6042 icon_buf = valueDeserializer.readSymbolGlyphModifier() 6043 } 6044 const icon_result: SymbolGlyphModifier | undefined|undefined = icon_buf 6045 let value: CancelButtonSymbolOptions = ({style: style_result, icon: icon_result} as CancelButtonSymbolOptions) 6046 return value 6047 } 6048 readCancelButtonOptions(): CancelButtonOptions { 6049 let valueDeserializer: Deserializer = this 6050 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6051 let style_buf: CancelButtonStyle | undefined|undefined 6052 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6053 { 6054 style_buf = (valueDeserializer.readInt32() as CancelButtonStyle) 6055 } 6056 const style_result: CancelButtonStyle | undefined|undefined = style_buf 6057 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6058 let icon_buf: IconOptions | undefined|undefined 6059 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 6060 { 6061 icon_buf = valueDeserializer.readIconOptions() 6062 } 6063 const icon_result: IconOptions | undefined|undefined = icon_buf 6064 let value: CancelButtonOptions = ({style: style_result, icon: icon_result} as CancelButtonOptions) 6065 return value 6066 } 6067 readSearchController(): SearchController { 6068 let valueDeserializer: Deserializer = this 6069 let ptr: KPointer = valueDeserializer.readPointer() 6070 return SearchControllerInternal.fromPtr(ptr) 6071 } 6072 readScrollAttribute(): ScrollAttribute { 6073 let value: ScrollAttribute = ({} as ScrollAttribute) 6074 return value 6075 } 6076 readEdgeEffectOptions(): EdgeEffectOptions { 6077 let valueDeserializer: Deserializer = this 6078 const alwaysEnabled_result: boolean = valueDeserializer.readBoolean() 6079 let value: EdgeEffectOptions = ({alwaysEnabled: alwaysEnabled_result} as EdgeEffectOptions) 6080 return value 6081 } 6082 readScrollOnWillScrollCallback(isSync: boolean = false): ScrollOnWillScrollCallback { 6083 const _resource: CallbackResource = this.readCallbackResource() 6084 const _call: KPointer = this.readPointer() 6085 const _callSync: KPointer = this.readPointer() 6086 return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): OffsetResult => { 6087 const _argsSerializer: Serializer = Serializer.hold(); 6088 _argsSerializer.writeInt32(_resource.resourceId); 6089 _argsSerializer.writePointer(_call); 6090 _argsSerializer.writePointer(_callSync); 6091 _argsSerializer.writeNumber(xOffset); 6092 _argsSerializer.writeNumber(yOffset); 6093 _argsSerializer.writeInt32(scrollState); 6094 _argsSerializer.writeInt32(scrollSource); 6095 let _continuationValue: OffsetResult | undefined|undefined ; 6096 const _continuationCallback: ((value: OffsetResult) => void) = (value: OffsetResult): void => { _continuationValue = value; } 6097 _argsSerializer.holdAndWriteCallback(_continuationCallback); 6098 (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); 6099 _argsSerializer.release(); 6100 return (_continuationValue as OffsetResult); } 6101 } 6102 readOnWillScrollCallback(isSync: boolean = false): OnWillScrollCallback { 6103 const _resource: CallbackResource = this.readCallbackResource() 6104 const _call: KPointer = this.readPointer() 6105 const _callSync: KPointer = this.readPointer() 6106 return (scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { const _argsSerializer: Serializer = Serializer.hold(); 6107 _argsSerializer.writeInt32(_resource.resourceId); 6108 _argsSerializer.writePointer(_call); 6109 _argsSerializer.writePointer(_callSync); 6110 _argsSerializer.writeNumber(scrollOffset); 6111 _argsSerializer.writeInt32(scrollState); 6112 _argsSerializer.writeInt32(scrollSource); 6113 let _continuationValue: ScrollResult | undefined|undefined ; 6114 const _continuationCallback: ((value: ScrollResult) => void) = (value: ScrollResult): void => { _continuationValue = value; } 6115 _argsSerializer.holdAndWriteCallback(_continuationCallback); 6116 (isSync) ? (InteropNativeModule._CallCallbackSync(-150015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-150015401, _argsSerializer.asArray(), _argsSerializer.length())); 6117 _argsSerializer.release(); 6118 return (_continuationValue as ScrollResult); } 6119 } 6120 readRectResult(): RectResult { 6121 let valueDeserializer: Deserializer = this 6122 const x_result: number = (valueDeserializer.readNumber() as number) 6123 const y_result: number = (valueDeserializer.readNumber() as number) 6124 const width_result: number = (valueDeserializer.readNumber() as number) 6125 const height_result: number = (valueDeserializer.readNumber() as number) 6126 let value: RectResult = ({x: x_result, y: y_result, width: width_result, height: height_result} as RectResult) 6127 return value 6128 } 6129 readScrollToIndexOptions(): ScrollToIndexOptions { 6130 let valueDeserializer: Deserializer = this 6131 const extraOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6132 let extraOffset_buf: LengthMetrics | undefined|undefined 6133 if ((RuntimeType.UNDEFINED) != (extraOffset_buf_runtimeType)) 6134 { 6135 extraOffset_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 6136 } 6137 const extraOffset_result: LengthMetrics | undefined|undefined = extraOffset_buf 6138 let value: ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) 6139 return value 6140 } 6141 readOffsetResult(): OffsetResult { 6142 let valueDeserializer: Deserializer = this 6143 const xOffset_result: number = (valueDeserializer.readNumber() as number) 6144 const yOffset_result: number = (valueDeserializer.readNumber() as number) 6145 let value: OffsetResult = ({xOffset: xOffset_result, yOffset: yOffset_result} as OffsetResult) 6146 return value 6147 } 6148 readScrollResult(): ScrollResult { 6149 let valueDeserializer: Deserializer = this 6150 const offsetRemain_result: number = (valueDeserializer.readNumber() as number) 6151 let value: ScrollResult = ({offsetRemain: offsetRemain_result} as ScrollResult) 6152 return value 6153 } 6154 readScrollPageOptions(): ScrollPageOptions { 6155 let valueDeserializer: Deserializer = this 6156 const next_result: boolean = valueDeserializer.readBoolean() 6157 const animation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6158 let animation_buf: boolean | undefined|undefined 6159 if ((RuntimeType.UNDEFINED) != (animation_buf_runtimeType)) 6160 { 6161 animation_buf = valueDeserializer.readBoolean() 6162 } 6163 const animation_result: boolean | undefined|undefined = animation_buf 6164 let value: ScrollPageOptions = ({next: next_result, animation: animation_result} as ScrollPageOptions) 6165 return value 6166 } 6167 readScrollEdgeOptions(): ScrollEdgeOptions { 6168 let valueDeserializer: Deserializer = this 6169 const velocity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6170 let velocity_buf: number | undefined|undefined 6171 if ((RuntimeType.UNDEFINED) != (velocity_buf_runtimeType)) 6172 { 6173 velocity_buf = (valueDeserializer.readNumber() as number) 6174 } 6175 const velocity_result: number | undefined|undefined = velocity_buf 6176 let value: ScrollEdgeOptions = ({velocity: velocity_result} as ScrollEdgeOptions) 6177 return value 6178 } 6179 readScrollOptions(): ScrollOptions { 6180 let valueDeserializer: Deserializer = this 6181 const xOffset_buf_selector: number = valueDeserializer.readInt8() 6182 let xOffset_buf: number | string | undefined|undefined 6183 if (xOffset_buf_selector == 0) { 6184 xOffset_buf = (valueDeserializer.readNumber() as number) 6185 } 6186 else if (xOffset_buf_selector == 1) { 6187 xOffset_buf = (valueDeserializer.readString() as string) 6188 } 6189 else { 6190 throw new Error("One of the branches for xOffset_buf has to be chosen through deserialisation.") 6191 } 6192 const xOffset_result: number | string = (xOffset_buf as number | string) 6193 const yOffset_buf_selector: number = valueDeserializer.readInt8() 6194 let yOffset_buf: number | string | undefined|undefined 6195 if (yOffset_buf_selector == 0) { 6196 yOffset_buf = (valueDeserializer.readNumber() as number) 6197 } 6198 else if (yOffset_buf_selector == 1) { 6199 yOffset_buf = (valueDeserializer.readString() as string) 6200 } 6201 else { 6202 throw new Error("One of the branches for yOffset_buf has to be chosen through deserialisation.") 6203 } 6204 const yOffset_result: number | string = (yOffset_buf as number | string) 6205 const animation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6206 let animation_buf: ScrollAnimationOptions | boolean | undefined|undefined 6207 if ((RuntimeType.UNDEFINED) != (animation_buf_runtimeType)) 6208 { 6209 const animation_buf__selector: number = valueDeserializer.readInt8() 6210 let animation_buf_: ScrollAnimationOptions | boolean | undefined|undefined 6211 if (animation_buf__selector == 0) { 6212 animation_buf_ = valueDeserializer.readScrollAnimationOptions() 6213 } 6214 else if (animation_buf__selector == 1) { 6215 animation_buf_ = valueDeserializer.readBoolean() 6216 } 6217 else { 6218 throw new Error("One of the branches for animation_buf_ has to be chosen through deserialisation.") 6219 } 6220 animation_buf = (animation_buf_ as ScrollAnimationOptions | boolean) 6221 } 6222 const animation_result: ScrollAnimationOptions | boolean | undefined|undefined = animation_buf 6223 let value: ScrollOptions = ({xOffset: xOffset_result, yOffset: yOffset_result, animation: animation_result} as ScrollOptions) 6224 return value 6225 } 6226 readRichEditorStyledStringController(): RichEditorStyledStringController { 6227 let valueDeserializer: Deserializer = this 6228 let ptr: KPointer = valueDeserializer.readPointer() 6229 return RichEditorStyledStringControllerInternal.fromPtr(ptr) 6230 } 6231 readRichEditorController(): RichEditorController { 6232 let valueDeserializer: Deserializer = this 6233 let ptr: KPointer = valueDeserializer.readPointer() 6234 return RichEditorControllerInternal.fromPtr(ptr) 6235 } 6236 readRichEditorAttribute(): RichEditorAttribute { 6237 let value: RichEditorAttribute = ({} as RichEditorAttribute) 6238 return value 6239 } 6240 readPlaceholderStyle(): PlaceholderStyle { 6241 let valueDeserializer: Deserializer = this 6242 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6243 let font_buf: Font | undefined|undefined 6244 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 6245 { 6246 font_buf = valueDeserializer.readFont() 6247 } 6248 const font_result: Font | undefined|undefined = font_buf 6249 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6250 let fontColor_buf: ResourceColor | undefined|undefined 6251 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 6252 { 6253 const fontColor_buf__selector: number = valueDeserializer.readInt8() 6254 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 6255 if (fontColor_buf__selector == 0) { 6256 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 6257 } 6258 else if (fontColor_buf__selector == 1) { 6259 fontColor_buf_ = (valueDeserializer.readNumber() as number) 6260 } 6261 else if (fontColor_buf__selector == 2) { 6262 fontColor_buf_ = (valueDeserializer.readString() as string) 6263 } 6264 else if (fontColor_buf__selector == 3) { 6265 fontColor_buf_ = valueDeserializer.readResource() 6266 } 6267 else { 6268 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6269 } 6270 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6271 } 6272 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 6273 let value: PlaceholderStyle = ({font: font_result, fontColor: fontColor_result} as PlaceholderStyle) 6274 return value 6275 } 6276 readRichEditorImageSpanResult(): RichEditorImageSpanResult { 6277 let valueDeserializer: Deserializer = this 6278 const spanPosition_result: RichEditorSpanPosition = valueDeserializer.readRichEditorSpanPosition() 6279 const valuePixelMap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6280 let valuePixelMap_buf: PixelMap | undefined|undefined 6281 if ((RuntimeType.UNDEFINED) != (valuePixelMap_buf_runtimeType)) 6282 { 6283 valuePixelMap_buf = (valueDeserializer.readPixelMap() as PixelMap) 6284 } 6285 const valuePixelMap_result: PixelMap | undefined|undefined = valuePixelMap_buf 6286 const valueResourceStr_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6287 let valueResourceStr_buf: ResourceStr | undefined|undefined 6288 if ((RuntimeType.UNDEFINED) != (valueResourceStr_buf_runtimeType)) 6289 { 6290 const valueResourceStr_buf__selector: number = valueDeserializer.readInt8() 6291 let valueResourceStr_buf_: string | Resource | undefined|undefined 6292 if (valueResourceStr_buf__selector == 0) { 6293 valueResourceStr_buf_ = (valueDeserializer.readString() as string) 6294 } 6295 else if (valueResourceStr_buf__selector == 1) { 6296 valueResourceStr_buf_ = valueDeserializer.readResource() 6297 } 6298 else { 6299 throw new Error("One of the branches for valueResourceStr_buf_ has to be chosen through deserialisation.") 6300 } 6301 valueResourceStr_buf = (valueResourceStr_buf_ as string | Resource) 6302 } 6303 const valueResourceStr_result: ResourceStr | undefined|undefined = valueResourceStr_buf 6304 const imageStyle_result: RichEditorImageSpanStyleResult = valueDeserializer.readRichEditorImageSpanStyleResult() 6305 const offsetInSpan_buf_value0: number = (valueDeserializer.readNumber() as number) 6306 const offsetInSpan_buf_value1: number = (valueDeserializer.readNumber() as number) 6307 const offsetInSpan_result: [ number, number ] = ([offsetInSpan_buf_value0, offsetInSpan_buf_value1] as [ number, number ]) 6308 let value: RichEditorImageSpanResult = ({spanPosition: spanPosition_result, valuePixelMap: valuePixelMap_result, valueResourceStr: valueResourceStr_result, imageStyle: imageStyle_result, offsetInSpan: offsetInSpan_result} as RichEditorImageSpanResult) 6309 return value 6310 } 6311 readRichEditorTextSpanResult(): RichEditorTextSpanResult { 6312 let valueDeserializer: Deserializer = this 6313 const spanPosition_result: RichEditorSpanPosition = valueDeserializer.readRichEditorSpanPosition() 6314 const value_result: string = (valueDeserializer.readString() as string) 6315 const textStyle_result: RichEditorTextStyleResult = valueDeserializer.readRichEditorTextStyleResult() 6316 const offsetInSpan_buf_value0: number = (valueDeserializer.readNumber() as number) 6317 const offsetInSpan_buf_value1: number = (valueDeserializer.readNumber() as number) 6318 const offsetInSpan_result: [ number, number ] = ([offsetInSpan_buf_value0, offsetInSpan_buf_value1] as [ number, number ]) 6319 const symbolSpanStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6320 let symbolSpanStyle_buf: RichEditorSymbolSpanStyle | undefined|undefined 6321 if ((RuntimeType.UNDEFINED) != (symbolSpanStyle_buf_runtimeType)) 6322 { 6323 symbolSpanStyle_buf = valueDeserializer.readRichEditorSymbolSpanStyle() 6324 } 6325 const symbolSpanStyle_result: RichEditorSymbolSpanStyle | undefined|undefined = symbolSpanStyle_buf 6326 const valueResource_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6327 let valueResource_buf: Resource | undefined|undefined 6328 if ((RuntimeType.UNDEFINED) != (valueResource_buf_runtimeType)) 6329 { 6330 valueResource_buf = valueDeserializer.readResource() 6331 } 6332 const valueResource_result: Resource | undefined|undefined = valueResource_buf 6333 const paragraphStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6334 let paragraphStyle_buf: RichEditorParagraphStyle | undefined|undefined 6335 if ((RuntimeType.UNDEFINED) != (paragraphStyle_buf_runtimeType)) 6336 { 6337 paragraphStyle_buf = valueDeserializer.readRichEditorParagraphStyle() 6338 } 6339 const paragraphStyle_result: RichEditorParagraphStyle | undefined|undefined = paragraphStyle_buf 6340 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6341 let previewText_buf: string | undefined|undefined 6342 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 6343 { 6344 previewText_buf = (valueDeserializer.readString() as string) 6345 } 6346 const previewText_result: string | undefined|undefined = previewText_buf 6347 let value: RichEditorTextSpanResult = ({spanPosition: spanPosition_result, value: value_result, textStyle: textStyle_result, offsetInSpan: offsetInSpan_result, symbolSpanStyle: symbolSpanStyle_result, valueResource: valueResource_result, paragraphStyle: paragraphStyle_result, previewText: previewText_result} as RichEditorTextSpanResult) 6348 return value 6349 } 6350 readStyledStringChangedListener(): StyledStringChangedListener { 6351 let valueDeserializer: Deserializer = this 6352 const onWillChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6353 let onWillChange_buf: ((parameter: StyledStringChangeValue) => boolean) | undefined|undefined 6354 if ((RuntimeType.UNDEFINED) != (onWillChange_buf_runtimeType)) 6355 { 6356 onWillChange_buf = valueDeserializer.readCallback_StyledStringChangeValue_Boolean() 6357 } 6358 const onWillChange_result: ((parameter: StyledStringChangeValue) => boolean) | undefined|undefined = onWillChange_buf 6359 const onDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6360 let onDidChange_buf: OnDidChangeCallback | undefined|undefined 6361 if ((RuntimeType.UNDEFINED) != (onDidChange_buf_runtimeType)) 6362 { 6363 onDidChange_buf = valueDeserializer.readOnDidChangeCallback() 6364 } 6365 const onDidChange_result: OnDidChangeCallback | undefined|undefined = onDidChange_buf 6366 let value: StyledStringChangedListener = ({onWillChange: onWillChange_result, onDidChange: onDidChange_result} as StyledStringChangedListener) 6367 return value 6368 } 6369 readRichEditorRange(): RichEditorRange { 6370 let valueDeserializer: Deserializer = this 6371 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6372 let start_buf: number | undefined|undefined 6373 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6374 { 6375 start_buf = (valueDeserializer.readNumber() as number) 6376 } 6377 const start_result: number | undefined|undefined = start_buf 6378 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6379 let end_buf: number | undefined|undefined 6380 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6381 { 6382 end_buf = (valueDeserializer.readNumber() as number) 6383 } 6384 const end_result: number | undefined|undefined = end_buf 6385 let value: RichEditorRange = ({start: start_result, end: end_result} as RichEditorRange) 6386 return value 6387 } 6388 readRichEditorSelection(): RichEditorSelection { 6389 let valueDeserializer: Deserializer = this 6390 const selection_buf_value0: number = (valueDeserializer.readNumber() as number) 6391 const selection_buf_value1: number = (valueDeserializer.readNumber() as number) 6392 const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) 6393 const spans_buf_length: int32 = valueDeserializer.readInt32() 6394 let spans_buf: Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = new Array<RichEditorTextSpanResult | RichEditorImageSpanResult>(spans_buf_length) 6395 for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { 6396 const spans_buf_buf_selector: number = valueDeserializer.readInt8() 6397 let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined 6398 if (spans_buf_buf_selector == 0) { 6399 spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() 6400 } 6401 else if (spans_buf_buf_selector == 1) { 6402 spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() 6403 } 6404 else { 6405 throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") 6406 } 6407 spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) 6408 } 6409 const spans_result: Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = spans_buf 6410 let value: RichEditorSelection = ({selection: selection_result, spans: spans_result} as RichEditorSelection) 6411 return value 6412 } 6413 readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { 6414 let valueDeserializer: Deserializer = this 6415 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6416 let start_buf: number | undefined|undefined 6417 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6418 { 6419 start_buf = (valueDeserializer.readNumber() as number) 6420 } 6421 const start_result: number | undefined|undefined = start_buf 6422 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6423 let end_buf: number | undefined|undefined 6424 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6425 { 6426 end_buf = (valueDeserializer.readNumber() as number) 6427 } 6428 const end_result: number | undefined|undefined = end_buf 6429 const style_result: RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() 6430 let value: RichEditorParagraphStyleOptions = ({start: start_result, end: end_result, style: style_result} as RichEditorParagraphStyleOptions) 6431 return value 6432 } 6433 readRichEditorUpdateSymbolSpanStyleOptions(): RichEditorUpdateSymbolSpanStyleOptions { 6434 let valueDeserializer: Deserializer = this 6435 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6436 let start_buf: number | undefined|undefined 6437 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6438 { 6439 start_buf = (valueDeserializer.readNumber() as number) 6440 } 6441 const start_result: number | undefined|undefined = start_buf 6442 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6443 let end_buf: number | undefined|undefined 6444 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6445 { 6446 end_buf = (valueDeserializer.readNumber() as number) 6447 } 6448 const end_result: number | undefined|undefined = end_buf 6449 const symbolStyle_result: RichEditorSymbolSpanStyle = valueDeserializer.readRichEditorSymbolSpanStyle() 6450 let value: RichEditorUpdateSymbolSpanStyleOptions = ({start: start_result, end: end_result, symbolStyle: symbolStyle_result} as RichEditorUpdateSymbolSpanStyleOptions) 6451 return value 6452 } 6453 readRichEditorUpdateImageSpanStyleOptions(): RichEditorUpdateImageSpanStyleOptions { 6454 let valueDeserializer: Deserializer = this 6455 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6456 let start_buf: number | undefined|undefined 6457 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6458 { 6459 start_buf = (valueDeserializer.readNumber() as number) 6460 } 6461 const start_result: number | undefined|undefined = start_buf 6462 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6463 let end_buf: number | undefined|undefined 6464 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6465 { 6466 end_buf = (valueDeserializer.readNumber() as number) 6467 } 6468 const end_result: number | undefined|undefined = end_buf 6469 const imageStyle_result: RichEditorImageSpanStyle = valueDeserializer.readRichEditorImageSpanStyle() 6470 let value: RichEditorUpdateImageSpanStyleOptions = ({start: start_result, end: end_result, imageStyle: imageStyle_result} as RichEditorUpdateImageSpanStyleOptions) 6471 return value 6472 } 6473 readRichEditorUpdateTextSpanStyleOptions(): RichEditorUpdateTextSpanStyleOptions { 6474 let valueDeserializer: Deserializer = this 6475 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6476 let start_buf: number | undefined|undefined 6477 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6478 { 6479 start_buf = (valueDeserializer.readNumber() as number) 6480 } 6481 const start_result: number | undefined|undefined = start_buf 6482 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6483 let end_buf: number | undefined|undefined 6484 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6485 { 6486 end_buf = (valueDeserializer.readNumber() as number) 6487 } 6488 const end_result: number | undefined|undefined = end_buf 6489 const textStyle_result: RichEditorTextStyle = valueDeserializer.readRichEditorTextStyle() 6490 let value: RichEditorUpdateTextSpanStyleOptions = ({start: start_result, end: end_result, textStyle: textStyle_result} as RichEditorUpdateTextSpanStyleOptions) 6491 return value 6492 } 6493 readRichEditorSymbolSpanOptions(): RichEditorSymbolSpanOptions { 6494 let valueDeserializer: Deserializer = this 6495 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6496 let offset_buf: number | undefined|undefined 6497 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6498 { 6499 offset_buf = (valueDeserializer.readNumber() as number) 6500 } 6501 const offset_result: number | undefined|undefined = offset_buf 6502 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6503 let style_buf: RichEditorSymbolSpanStyle | undefined|undefined 6504 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6505 { 6506 style_buf = valueDeserializer.readRichEditorSymbolSpanStyle() 6507 } 6508 const style_result: RichEditorSymbolSpanStyle | undefined|undefined = style_buf 6509 let value: RichEditorSymbolSpanOptions = ({offset: offset_result, style: style_result} as RichEditorSymbolSpanOptions) 6510 return value 6511 } 6512 readRichEditorBuilderSpanOptions(): RichEditorBuilderSpanOptions { 6513 let valueDeserializer: Deserializer = this 6514 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6515 let offset_buf: number | undefined|undefined 6516 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6517 { 6518 offset_buf = (valueDeserializer.readNumber() as number) 6519 } 6520 const offset_result: number | undefined|undefined = offset_buf 6521 let value: RichEditorBuilderSpanOptions = ({offset: offset_result} as RichEditorBuilderSpanOptions) 6522 return value 6523 } 6524 readRichEditorImageSpanOptions(): RichEditorImageSpanOptions { 6525 let valueDeserializer: Deserializer = this 6526 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6527 let offset_buf: number | undefined|undefined 6528 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6529 { 6530 offset_buf = (valueDeserializer.readNumber() as number) 6531 } 6532 const offset_result: number | undefined|undefined = offset_buf 6533 const imageStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6534 let imageStyle_buf: RichEditorImageSpanStyle | undefined|undefined 6535 if ((RuntimeType.UNDEFINED) != (imageStyle_buf_runtimeType)) 6536 { 6537 imageStyle_buf = valueDeserializer.readRichEditorImageSpanStyle() 6538 } 6539 const imageStyle_result: RichEditorImageSpanStyle | undefined|undefined = imageStyle_buf 6540 const gesture_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6541 let gesture_buf: RichEditorGesture | undefined|undefined 6542 if ((RuntimeType.UNDEFINED) != (gesture_buf_runtimeType)) 6543 { 6544 gesture_buf = valueDeserializer.readRichEditorGesture() 6545 } 6546 const gesture_result: RichEditorGesture | undefined|undefined = gesture_buf 6547 let value: RichEditorImageSpanOptions = ({offset: offset_result, imageStyle: imageStyle_result, gesture: gesture_result} as RichEditorImageSpanOptions) 6548 return value 6549 } 6550 readRichEditorTextSpanOptions(): RichEditorTextSpanOptions { 6551 let valueDeserializer: Deserializer = this 6552 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6553 let offset_buf: number | undefined|undefined 6554 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6555 { 6556 offset_buf = (valueDeserializer.readNumber() as number) 6557 } 6558 const offset_result: number | undefined|undefined = offset_buf 6559 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6560 let style_buf: RichEditorTextStyle | undefined|undefined 6561 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6562 { 6563 style_buf = valueDeserializer.readRichEditorTextStyle() 6564 } 6565 const style_result: RichEditorTextStyle | undefined|undefined = style_buf 6566 const paragraphStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6567 let paragraphStyle_buf: RichEditorParagraphStyle | undefined|undefined 6568 if ((RuntimeType.UNDEFINED) != (paragraphStyle_buf_runtimeType)) 6569 { 6570 paragraphStyle_buf = valueDeserializer.readRichEditorParagraphStyle() 6571 } 6572 const paragraphStyle_result: RichEditorParagraphStyle | undefined|undefined = paragraphStyle_buf 6573 const gesture_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6574 let gesture_buf: RichEditorGesture | undefined|undefined 6575 if ((RuntimeType.UNDEFINED) != (gesture_buf_runtimeType)) 6576 { 6577 gesture_buf = valueDeserializer.readRichEditorGesture() 6578 } 6579 const gesture_result: RichEditorGesture | undefined|undefined = gesture_buf 6580 let value: RichEditorTextSpanOptions = ({offset: offset_result, style: style_result, paragraphStyle: paragraphStyle_result, gesture: gesture_result} as RichEditorTextSpanOptions) 6581 return value 6582 } 6583 readGuideLinePosition(): GuideLinePosition { 6584 let valueDeserializer: Deserializer = this 6585 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6586 let start_buf: Dimension | undefined|undefined 6587 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6588 { 6589 start_buf = (valueDeserializer.readLength() as Dimension) 6590 } 6591 const start_result: Dimension | undefined|undefined = start_buf 6592 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6593 let end_buf: Dimension | undefined|undefined 6594 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6595 { 6596 end_buf = (valueDeserializer.readLength() as Dimension) 6597 } 6598 const end_result: Dimension | undefined|undefined = end_buf 6599 let value: GuideLinePosition = ({start: start_result, end: end_result} as GuideLinePosition) 6600 return value 6601 } 6602 readRoundedRectOptions(): RoundedRectOptions { 6603 let valueDeserializer: Deserializer = this 6604 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6605 let width_buf: number | string | undefined|undefined 6606 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 6607 { 6608 const width_buf__selector: number = valueDeserializer.readInt8() 6609 let width_buf_: number | string | undefined|undefined 6610 if (width_buf__selector == 0) { 6611 width_buf_ = (valueDeserializer.readNumber() as number) 6612 } 6613 else if (width_buf__selector == 1) { 6614 width_buf_ = (valueDeserializer.readString() as string) 6615 } 6616 else { 6617 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 6618 } 6619 width_buf = (width_buf_ as number | string) 6620 } 6621 const width_result: number | string | undefined|undefined = width_buf 6622 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6623 let height_buf: number | string | undefined|undefined 6624 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 6625 { 6626 const height_buf__selector: number = valueDeserializer.readInt8() 6627 let height_buf_: number | string | undefined|undefined 6628 if (height_buf__selector == 0) { 6629 height_buf_ = (valueDeserializer.readNumber() as number) 6630 } 6631 else if (height_buf__selector == 1) { 6632 height_buf_ = (valueDeserializer.readString() as string) 6633 } 6634 else { 6635 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 6636 } 6637 height_buf = (height_buf_ as number | string) 6638 } 6639 const height_result: number | string | undefined|undefined = height_buf 6640 const radiusWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6641 let radiusWidth_buf: number | string | undefined|undefined 6642 if ((RuntimeType.UNDEFINED) != (radiusWidth_buf_runtimeType)) 6643 { 6644 const radiusWidth_buf__selector: number = valueDeserializer.readInt8() 6645 let radiusWidth_buf_: number | string | undefined|undefined 6646 if (radiusWidth_buf__selector == 0) { 6647 radiusWidth_buf_ = (valueDeserializer.readNumber() as number) 6648 } 6649 else if (radiusWidth_buf__selector == 1) { 6650 radiusWidth_buf_ = (valueDeserializer.readString() as string) 6651 } 6652 else { 6653 throw new Error("One of the branches for radiusWidth_buf_ has to be chosen through deserialisation.") 6654 } 6655 radiusWidth_buf = (radiusWidth_buf_ as number | string) 6656 } 6657 const radiusWidth_result: number | string | undefined|undefined = radiusWidth_buf 6658 const radiusHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6659 let radiusHeight_buf: number | string | undefined|undefined 6660 if ((RuntimeType.UNDEFINED) != (radiusHeight_buf_runtimeType)) 6661 { 6662 const radiusHeight_buf__selector: number = valueDeserializer.readInt8() 6663 let radiusHeight_buf_: number | string | undefined|undefined 6664 if (radiusHeight_buf__selector == 0) { 6665 radiusHeight_buf_ = (valueDeserializer.readNumber() as number) 6666 } 6667 else if (radiusHeight_buf__selector == 1) { 6668 radiusHeight_buf_ = (valueDeserializer.readString() as string) 6669 } 6670 else { 6671 throw new Error("One of the branches for radiusHeight_buf_ has to be chosen through deserialisation.") 6672 } 6673 radiusHeight_buf = (radiusHeight_buf_ as number | string) 6674 } 6675 const radiusHeight_result: number | string | undefined|undefined = radiusHeight_buf 6676 let value: RoundedRectOptions = ({width: width_result, height: height_result, radiusWidth: radiusWidth_result, radiusHeight: radiusHeight_result} as RoundedRectOptions) 6677 return value 6678 } 6679 readRectOptions(): RectOptions { 6680 let valueDeserializer: Deserializer = this 6681 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6682 let width_buf: number | string | undefined|undefined 6683 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 6684 { 6685 const width_buf__selector: number = valueDeserializer.readInt8() 6686 let width_buf_: number | string | undefined|undefined 6687 if (width_buf__selector == 0) { 6688 width_buf_ = (valueDeserializer.readNumber() as number) 6689 } 6690 else if (width_buf__selector == 1) { 6691 width_buf_ = (valueDeserializer.readString() as string) 6692 } 6693 else { 6694 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 6695 } 6696 width_buf = (width_buf_ as number | string) 6697 } 6698 const width_result: number | string | undefined|undefined = width_buf 6699 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6700 let height_buf: number | string | undefined|undefined 6701 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 6702 { 6703 const height_buf__selector: number = valueDeserializer.readInt8() 6704 let height_buf_: number | string | undefined|undefined 6705 if (height_buf__selector == 0) { 6706 height_buf_ = (valueDeserializer.readNumber() as number) 6707 } 6708 else if (height_buf__selector == 1) { 6709 height_buf_ = (valueDeserializer.readString() as string) 6710 } 6711 else { 6712 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 6713 } 6714 height_buf = (height_buf_ as number | string) 6715 } 6716 const height_result: number | string | undefined|undefined = height_buf 6717 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6718 let radius_buf: number | string | Array<number | string> | undefined|undefined 6719 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 6720 { 6721 const radius_buf__selector: number = valueDeserializer.readInt8() 6722 let radius_buf_: number | string | Array<number | string> | undefined|undefined 6723 if (radius_buf__selector == 0) { 6724 radius_buf_ = (valueDeserializer.readNumber() as number) 6725 } 6726 else if (radius_buf__selector == 1) { 6727 radius_buf_ = (valueDeserializer.readString() as string) 6728 } 6729 else if (radius_buf__selector == 2) { 6730 const radius_buf__u_length: int32 = valueDeserializer.readInt32() 6731 let radius_buf__u: Array<number | string> = new Array<number | string>(radius_buf__u_length) 6732 for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { 6733 const radius_buf__u_buf_selector: number = valueDeserializer.readInt8() 6734 let radius_buf__u_buf: number | string | undefined|undefined 6735 if (radius_buf__u_buf_selector == 0) { 6736 radius_buf__u_buf = (valueDeserializer.readNumber() as number) 6737 } 6738 else if (radius_buf__u_buf_selector == 1) { 6739 radius_buf__u_buf = (valueDeserializer.readString() as string) 6740 } 6741 else { 6742 throw new Error("One of the branches for radius_buf__u_buf has to be chosen through deserialisation.") 6743 } 6744 radius_buf__u[radius_buf__u_i] = (radius_buf__u_buf as number | string) 6745 } 6746 radius_buf_ = radius_buf__u 6747 } 6748 else { 6749 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 6750 } 6751 radius_buf = (radius_buf_ as number | string | Array<number | string>) 6752 } 6753 const radius_result: number | string | Array<number | string> | undefined|undefined = radius_buf 6754 let value: RectOptions = ({width: width_result, height: height_result, radius: radius_result} as RectOptions) 6755 return value 6756 } 6757 readProgressStyleOptions(): ProgressStyleOptions { 6758 let valueDeserializer: Deserializer = this 6759 const enableSmoothEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6760 let enableSmoothEffect_buf: boolean | undefined|undefined 6761 if ((RuntimeType.UNDEFINED) != (enableSmoothEffect_buf_runtimeType)) 6762 { 6763 enableSmoothEffect_buf = valueDeserializer.readBoolean() 6764 } 6765 const enableSmoothEffect_result: boolean | undefined|undefined = enableSmoothEffect_buf 6766 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6767 let strokeWidth_buf: Length | undefined|undefined 6768 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6769 { 6770 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6771 } 6772 const strokeWidth_result: Length | undefined|undefined = strokeWidth_buf 6773 const scaleCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6774 let scaleCount_buf: number | undefined|undefined 6775 if ((RuntimeType.UNDEFINED) != (scaleCount_buf_runtimeType)) 6776 { 6777 scaleCount_buf = (valueDeserializer.readNumber() as number) 6778 } 6779 const scaleCount_result: number | undefined|undefined = scaleCount_buf 6780 const scaleWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6781 let scaleWidth_buf: Length | undefined|undefined 6782 if ((RuntimeType.UNDEFINED) != (scaleWidth_buf_runtimeType)) 6783 { 6784 scaleWidth_buf = (valueDeserializer.readLength() as Length) 6785 } 6786 const scaleWidth_result: Length | undefined|undefined = scaleWidth_buf 6787 let value: ProgressStyleOptions = ({enableSmoothEffect: enableSmoothEffect_result, strokeWidth: strokeWidth_result, scaleCount: scaleCount_result, scaleWidth: scaleWidth_result} as ProgressStyleOptions) 6788 return value 6789 } 6790 readCapsuleStyleOptions(): CapsuleStyleOptions { 6791 let valueDeserializer: Deserializer = this 6792 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6793 let enableScanEffect_buf: boolean | undefined|undefined 6794 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6795 { 6796 enableScanEffect_buf = valueDeserializer.readBoolean() 6797 } 6798 const enableScanEffect_result: boolean | undefined|undefined = enableScanEffect_buf 6799 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6800 let borderColor_buf: ResourceColor | undefined|undefined 6801 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 6802 { 6803 const borderColor_buf__selector: number = valueDeserializer.readInt8() 6804 let borderColor_buf_: Color | number | string | Resource | undefined|undefined 6805 if (borderColor_buf__selector == 0) { 6806 borderColor_buf_ = (valueDeserializer.readInt32() as Color) 6807 } 6808 else if (borderColor_buf__selector == 1) { 6809 borderColor_buf_ = (valueDeserializer.readNumber() as number) 6810 } 6811 else if (borderColor_buf__selector == 2) { 6812 borderColor_buf_ = (valueDeserializer.readString() as string) 6813 } 6814 else if (borderColor_buf__selector == 3) { 6815 borderColor_buf_ = valueDeserializer.readResource() 6816 } 6817 else { 6818 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 6819 } 6820 borderColor_buf = (borderColor_buf_ as Color | number | string | Resource) 6821 } 6822 const borderColor_result: ResourceColor | undefined|undefined = borderColor_buf 6823 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6824 let borderWidth_buf: Length | undefined|undefined 6825 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 6826 { 6827 borderWidth_buf = (valueDeserializer.readLength() as Length) 6828 } 6829 const borderWidth_result: Length | undefined|undefined = borderWidth_buf 6830 const content_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6831 let content_buf: string | undefined|undefined 6832 if ((RuntimeType.UNDEFINED) != (content_buf_runtimeType)) 6833 { 6834 content_buf = (valueDeserializer.readString() as string) 6835 } 6836 const content_result: string | undefined|undefined = content_buf 6837 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6838 let font_buf: Font | undefined|undefined 6839 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 6840 { 6841 font_buf = valueDeserializer.readFont() 6842 } 6843 const font_result: Font | undefined|undefined = font_buf 6844 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6845 let fontColor_buf: ResourceColor | undefined|undefined 6846 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 6847 { 6848 const fontColor_buf__selector: number = valueDeserializer.readInt8() 6849 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 6850 if (fontColor_buf__selector == 0) { 6851 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 6852 } 6853 else if (fontColor_buf__selector == 1) { 6854 fontColor_buf_ = (valueDeserializer.readNumber() as number) 6855 } 6856 else if (fontColor_buf__selector == 2) { 6857 fontColor_buf_ = (valueDeserializer.readString() as string) 6858 } 6859 else if (fontColor_buf__selector == 3) { 6860 fontColor_buf_ = valueDeserializer.readResource() 6861 } 6862 else { 6863 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6864 } 6865 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6866 } 6867 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 6868 const showDefaultPercentage_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6869 let showDefaultPercentage_buf: boolean | undefined|undefined 6870 if ((RuntimeType.UNDEFINED) != (showDefaultPercentage_buf_runtimeType)) 6871 { 6872 showDefaultPercentage_buf = valueDeserializer.readBoolean() 6873 } 6874 const showDefaultPercentage_result: boolean | undefined|undefined = showDefaultPercentage_buf 6875 let value: CapsuleStyleOptions = ({enableScanEffect: enableScanEffect_result, borderColor: borderColor_result, borderWidth: borderWidth_result, content: content_result, font: font_result, fontColor: fontColor_result, showDefaultPercentage: showDefaultPercentage_result} as CapsuleStyleOptions) 6876 return value 6877 } 6878 readRingStyleOptions(): RingStyleOptions { 6879 let valueDeserializer: Deserializer = this 6880 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6881 let enableScanEffect_buf: boolean | undefined|undefined 6882 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6883 { 6884 enableScanEffect_buf = valueDeserializer.readBoolean() 6885 } 6886 const enableScanEffect_result: boolean | undefined|undefined = enableScanEffect_buf 6887 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6888 let strokeWidth_buf: Length | undefined|undefined 6889 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6890 { 6891 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6892 } 6893 const strokeWidth_result: Length | undefined|undefined = strokeWidth_buf 6894 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6895 let shadow_buf: boolean | undefined|undefined 6896 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 6897 { 6898 shadow_buf = valueDeserializer.readBoolean() 6899 } 6900 const shadow_result: boolean | undefined|undefined = shadow_buf 6901 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6902 let status_buf: ProgressStatus | undefined|undefined 6903 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 6904 { 6905 status_buf = (valueDeserializer.readInt32() as ProgressStatus) 6906 } 6907 const status_result: ProgressStatus | undefined|undefined = status_buf 6908 let value: RingStyleOptions = ({enableScanEffect: enableScanEffect_result, strokeWidth: strokeWidth_result, shadow: shadow_result, status: status_result} as RingStyleOptions) 6909 return value 6910 } 6911 readLinearStyleOptions(): LinearStyleOptions { 6912 let valueDeserializer: Deserializer = this 6913 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6914 let enableScanEffect_buf: boolean | undefined|undefined 6915 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6916 { 6917 enableScanEffect_buf = valueDeserializer.readBoolean() 6918 } 6919 const enableScanEffect_result: boolean | undefined|undefined = enableScanEffect_buf 6920 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6921 let strokeWidth_buf: Length | undefined|undefined 6922 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6923 { 6924 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6925 } 6926 const strokeWidth_result: Length | undefined|undefined = strokeWidth_buf 6927 const strokeRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6928 let strokeRadius_buf: string | number | Resource | undefined|undefined 6929 if ((RuntimeType.UNDEFINED) != (strokeRadius_buf_runtimeType)) 6930 { 6931 const strokeRadius_buf__selector: number = valueDeserializer.readInt8() 6932 let strokeRadius_buf_: string | number | Resource | undefined|undefined 6933 if (strokeRadius_buf__selector == 0) { 6934 strokeRadius_buf_ = (valueDeserializer.readString() as string) 6935 } 6936 else if (strokeRadius_buf__selector == 1) { 6937 strokeRadius_buf_ = (valueDeserializer.readNumber() as number) 6938 } 6939 else if (strokeRadius_buf__selector == 2) { 6940 strokeRadius_buf_ = valueDeserializer.readResource() 6941 } 6942 else { 6943 throw new Error("One of the branches for strokeRadius_buf_ has to be chosen through deserialisation.") 6944 } 6945 strokeRadius_buf = (strokeRadius_buf_ as string | number | Resource) 6946 } 6947 const strokeRadius_result: PX | VP | LPX | Resource | undefined|undefined = strokeRadius_buf 6948 let value: LinearStyleOptions = ({enableScanEffect: enableScanEffect_result, strokeWidth: strokeWidth_result, strokeRadius: strokeRadius_result} as LinearStyleOptions) 6949 return value 6950 } 6951 readPluginComponentTemplate(): PluginComponentTemplate { 6952 let valueDeserializer: Deserializer = this 6953 const source_result: string = (valueDeserializer.readString() as string) 6954 const bundleName_result: string = (valueDeserializer.readString() as string) 6955 let value: PluginComponentTemplate = ({source: source_result, bundleName: bundleName_result} as PluginComponentTemplate) 6956 return value 6957 } 6958 readCircleStyleOptions(): CircleStyleOptions { 6959 let valueDeserializer: Deserializer = this 6960 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6961 let color_buf: ResourceColor | undefined|undefined 6962 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 6963 { 6964 const color_buf__selector: number = valueDeserializer.readInt8() 6965 let color_buf_: Color | number | string | Resource | undefined|undefined 6966 if (color_buf__selector == 0) { 6967 color_buf_ = (valueDeserializer.readInt32() as Color) 6968 } 6969 else if (color_buf__selector == 1) { 6970 color_buf_ = (valueDeserializer.readNumber() as number) 6971 } 6972 else if (color_buf__selector == 2) { 6973 color_buf_ = (valueDeserializer.readString() as string) 6974 } 6975 else if (color_buf__selector == 3) { 6976 color_buf_ = valueDeserializer.readResource() 6977 } 6978 else { 6979 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 6980 } 6981 color_buf = (color_buf_ as Color | number | string | Resource) 6982 } 6983 const color_result: ResourceColor | undefined|undefined = color_buf 6984 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6985 let radius_buf: LengthMetrics | undefined|undefined 6986 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 6987 { 6988 radius_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 6989 } 6990 const radius_result: LengthMetrics | undefined|undefined = radius_buf 6991 const enableWaveEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6992 let enableWaveEffect_buf: boolean | undefined|undefined 6993 if ((RuntimeType.UNDEFINED) != (enableWaveEffect_buf_runtimeType)) 6994 { 6995 enableWaveEffect_buf = valueDeserializer.readBoolean() 6996 } 6997 const enableWaveEffect_result: boolean | undefined|undefined = enableWaveEffect_buf 6998 let value: CircleStyleOptions = ({color: color_result, radius: radius_result, enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) 6999 return value 7000 } 7001 readCallback_PanelMode_Void(isSync: boolean = false): ((mode: PanelMode) => void) { 7002 const _resource: CallbackResource = this.readCallbackResource() 7003 const _call: KPointer = this.readPointer() 7004 const _callSync: KPointer = this.readPointer() 7005 return (mode: PanelMode): void => { 7006 const _argsSerializer: Serializer = Serializer.hold(); 7007 _argsSerializer.writeInt32(_resource.resourceId); 7008 _argsSerializer.writePointer(_call); 7009 _argsSerializer.writePointer(_callSync); 7010 _argsSerializer.writeInt32(mode); 7011 (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); 7012 _argsSerializer.release(); 7013 return; } 7014 } 7015 readNavContentInfo(): NavContentInfo { 7016 let valueDeserializer: Deserializer = this 7017 const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7018 let name_buf: string | undefined|undefined 7019 if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) 7020 { 7021 name_buf = (valueDeserializer.readString() as string) 7022 } 7023 const name_result: string | undefined|undefined = name_buf 7024 const index_result: number = (valueDeserializer.readNumber() as number) 7025 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7026 let mode_buf: NavDestinationMode | undefined|undefined 7027 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 7028 { 7029 mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) 7030 } 7031 const mode_result: NavDestinationMode | undefined|undefined = mode_buf 7032 const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7033 let param_buf: Object | undefined|undefined 7034 if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) 7035 { 7036 param_buf = (valueDeserializer.readCustomObject("Object") as Object) 7037 } 7038 const param_result: Object | undefined|undefined = param_buf 7039 const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7040 let navDestinationId_buf: string | undefined|undefined 7041 if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) 7042 { 7043 navDestinationId_buf = (valueDeserializer.readString() as string) 7044 } 7045 const navDestinationId_result: string | undefined|undefined = navDestinationId_buf 7046 let value: NavContentInfo = ({name: name_result, index: index_result, mode: mode_result, param: param_result, navDestinationId: navDestinationId_result} as NavContentInfo) 7047 return value 7048 } 7049 readNavDestinationContext(): NavDestinationContext { 7050 let valueDeserializer: Deserializer = this 7051 let ptr: KPointer = valueDeserializer.readPointer() 7052 return NavDestinationContextInternal.fromPtr(ptr) 7053 } 7054 readNavigationInterception(): NavigationInterception { 7055 let valueDeserializer: Deserializer = this 7056 const willShow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7057 let willShow_buf: InterceptionShowCallback | undefined|undefined 7058 if ((RuntimeType.UNDEFINED) != (willShow_buf_runtimeType)) 7059 { 7060 willShow_buf = valueDeserializer.readInterceptionShowCallback() 7061 } 7062 const willShow_result: InterceptionShowCallback | undefined|undefined = willShow_buf 7063 const didShow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7064 let didShow_buf: InterceptionShowCallback | undefined|undefined 7065 if ((RuntimeType.UNDEFINED) != (didShow_buf_runtimeType)) 7066 { 7067 didShow_buf = valueDeserializer.readInterceptionShowCallback() 7068 } 7069 const didShow_result: InterceptionShowCallback | undefined|undefined = didShow_buf 7070 const modeChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7071 let modeChange_buf: InterceptionModeCallback | undefined|undefined 7072 if ((RuntimeType.UNDEFINED) != (modeChange_buf_runtimeType)) 7073 { 7074 modeChange_buf = valueDeserializer.readInterceptionModeCallback() 7075 } 7076 const modeChange_result: InterceptionModeCallback | undefined|undefined = modeChange_buf 7077 let value: NavigationInterception = ({willShow: willShow_result, didShow: didShow_result, modeChange: modeChange_result} as NavigationInterception) 7078 return value 7079 } 7080 readNavigationOptions(): NavigationOptions { 7081 let valueDeserializer: Deserializer = this 7082 const launchMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7083 let launchMode_buf: LaunchMode | undefined|undefined 7084 if ((RuntimeType.UNDEFINED) != (launchMode_buf_runtimeType)) 7085 { 7086 launchMode_buf = (valueDeserializer.readInt32() as LaunchMode) 7087 } 7088 const launchMode_result: LaunchMode | undefined|undefined = launchMode_buf 7089 const animated_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7090 let animated_buf: boolean | undefined|undefined 7091 if ((RuntimeType.UNDEFINED) != (animated_buf_runtimeType)) 7092 { 7093 animated_buf = valueDeserializer.readBoolean() 7094 } 7095 const animated_result: boolean | undefined|undefined = animated_buf 7096 let value: NavigationOptions = ({launchMode: launchMode_result, animated: animated_result} as NavigationOptions) 7097 return value 7098 } 7099 readNavDestinationAttribute(): NavDestinationAttribute { 7100 let value: NavDestinationAttribute = ({} as NavDestinationAttribute) 7101 return value 7102 } 7103 readNavigationToolbarOptions(): NavigationToolbarOptions { 7104 let valueDeserializer: Deserializer = this 7105 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7106 let backgroundColor_buf: ResourceColor | undefined|undefined 7107 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7108 { 7109 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 7110 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 7111 if (backgroundColor_buf__selector == 0) { 7112 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7113 } 7114 else if (backgroundColor_buf__selector == 1) { 7115 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7116 } 7117 else if (backgroundColor_buf__selector == 2) { 7118 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7119 } 7120 else if (backgroundColor_buf__selector == 3) { 7121 backgroundColor_buf_ = valueDeserializer.readResource() 7122 } 7123 else { 7124 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7125 } 7126 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7127 } 7128 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 7129 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7130 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 7131 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7132 { 7133 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7134 } 7135 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 7136 const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7137 let barStyle_buf: BarStyle | undefined|undefined 7138 if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) 7139 { 7140 barStyle_buf = (valueDeserializer.readInt32() as BarStyle) 7141 } 7142 const barStyle_result: BarStyle | undefined|undefined = barStyle_buf 7143 let value: NavigationToolbarOptions = ({backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, barStyle: barStyle_result} as NavigationToolbarOptions) 7144 return value 7145 } 7146 readNavigationTitleOptions(): NavigationTitleOptions { 7147 let valueDeserializer: Deserializer = this 7148 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7149 let backgroundColor_buf: ResourceColor | undefined|undefined 7150 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7151 { 7152 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 7153 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 7154 if (backgroundColor_buf__selector == 0) { 7155 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7156 } 7157 else if (backgroundColor_buf__selector == 1) { 7158 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7159 } 7160 else if (backgroundColor_buf__selector == 2) { 7161 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7162 } 7163 else if (backgroundColor_buf__selector == 3) { 7164 backgroundColor_buf_ = valueDeserializer.readResource() 7165 } 7166 else { 7167 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7168 } 7169 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7170 } 7171 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 7172 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7173 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 7174 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7175 { 7176 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7177 } 7178 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 7179 const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7180 let barStyle_buf: BarStyle | undefined|undefined 7181 if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) 7182 { 7183 barStyle_buf = (valueDeserializer.readInt32() as BarStyle) 7184 } 7185 const barStyle_result: BarStyle | undefined|undefined = barStyle_buf 7186 const paddingStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7187 let paddingStart_buf: LengthMetrics | undefined|undefined 7188 if ((RuntimeType.UNDEFINED) != (paddingStart_buf_runtimeType)) 7189 { 7190 paddingStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7191 } 7192 const paddingStart_result: LengthMetrics | undefined|undefined = paddingStart_buf 7193 const paddingEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7194 let paddingEnd_buf: LengthMetrics | undefined|undefined 7195 if ((RuntimeType.UNDEFINED) != (paddingEnd_buf_runtimeType)) 7196 { 7197 paddingEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7198 } 7199 const paddingEnd_result: LengthMetrics | undefined|undefined = paddingEnd_buf 7200 const mainTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7201 let mainTitleModifier_buf: TextModifier | undefined|undefined 7202 if ((RuntimeType.UNDEFINED) != (mainTitleModifier_buf_runtimeType)) 7203 { 7204 mainTitleModifier_buf = valueDeserializer.readTextModifier() 7205 } 7206 const mainTitleModifier_result: TextModifier | undefined|undefined = mainTitleModifier_buf 7207 const subTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7208 let subTitleModifier_buf: TextModifier | undefined|undefined 7209 if ((RuntimeType.UNDEFINED) != (subTitleModifier_buf_runtimeType)) 7210 { 7211 subTitleModifier_buf = valueDeserializer.readTextModifier() 7212 } 7213 const subTitleModifier_result: TextModifier | undefined|undefined = subTitleModifier_buf 7214 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7215 let enableHoverMode_buf: boolean | undefined|undefined 7216 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 7217 { 7218 enableHoverMode_buf = valueDeserializer.readBoolean() 7219 } 7220 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 7221 let value: NavigationTitleOptions = ({backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, barStyle: barStyle_result, paddingStart: paddingStart_result, paddingEnd: paddingEnd_result, mainTitleModifier: mainTitleModifier_result, subTitleModifier: subTitleModifier_result, enableHoverMode: enableHoverMode_result} as NavigationTitleOptions) 7222 return value 7223 } 7224 readNavDestinationCustomTitle(): NavDestinationCustomTitle { 7225 let valueDeserializer: Deserializer = this 7226 const builder_result: CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 7227 const height_buf_selector: number = valueDeserializer.readInt8() 7228 let height_buf: TitleHeight | Length | undefined|undefined 7229 if (height_buf_selector == 0) { 7230 height_buf = (valueDeserializer.readInt32() as TitleHeight) 7231 } 7232 else if (height_buf_selector == 1) { 7233 height_buf = (valueDeserializer.readLength() as Length) 7234 } 7235 else { 7236 throw new Error("One of the branches for height_buf has to be chosen through deserialisation.") 7237 } 7238 const height_result: TitleHeight | Length = (height_buf as TitleHeight | Length) 7239 let value: NavDestinationCustomTitle = ({builder: builder_result, height: height_result} as NavDestinationCustomTitle) 7240 return value 7241 } 7242 readNavDestinationCommonTitle(): NavDestinationCommonTitle { 7243 let valueDeserializer: Deserializer = this 7244 const main_buf_selector: number = valueDeserializer.readInt8() 7245 let main_buf: string | Resource | undefined|undefined 7246 if (main_buf_selector == 0) { 7247 main_buf = (valueDeserializer.readString() as string) 7248 } 7249 else if (main_buf_selector == 1) { 7250 main_buf = valueDeserializer.readResource() 7251 } 7252 else { 7253 throw new Error("One of the branches for main_buf has to be chosen through deserialisation.") 7254 } 7255 const main_result: string | Resource = (main_buf as string | Resource) 7256 const sub_buf_selector: number = valueDeserializer.readInt8() 7257 let sub_buf: string | Resource | undefined|undefined 7258 if (sub_buf_selector == 0) { 7259 sub_buf = (valueDeserializer.readString() as string) 7260 } 7261 else if (sub_buf_selector == 1) { 7262 sub_buf = valueDeserializer.readResource() 7263 } 7264 else { 7265 throw new Error("One of the branches for sub_buf has to be chosen through deserialisation.") 7266 } 7267 const sub_result: string | Resource = (sub_buf as string | Resource) 7268 let value: NavDestinationCommonTitle = ({main: main_result, sub: sub_result} as NavDestinationCommonTitle) 7269 return value 7270 } 7271 readSystemBarStyle(): SystemBarStyle { 7272 let valueDeserializer: Deserializer = this 7273 const _SystemBarStyleStub_result: string = (valueDeserializer.readString() as string) 7274 let value: SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) 7275 return value 7276 } 7277 readRouteMapConfig(): RouteMapConfig { 7278 let valueDeserializer: Deserializer = this 7279 const name_result: string = (valueDeserializer.readString() as string) 7280 const pageSourceFile_result: string = (valueDeserializer.readString() as string) 7281 const data_result: Object = (valueDeserializer.readCustomObject("Object") as Object) 7282 let value: RouteMapConfig = ({name: name_result, pageSourceFile: pageSourceFile_result, data: data_result} as RouteMapConfig) 7283 return value 7284 } 7285 readMenuItemOptions(): MenuItemOptions { 7286 let valueDeserializer: Deserializer = this 7287 const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7288 let startIcon_buf: ResourceStr | undefined|undefined 7289 if ((RuntimeType.UNDEFINED) != (startIcon_buf_runtimeType)) 7290 { 7291 const startIcon_buf__selector: number = valueDeserializer.readInt8() 7292 let startIcon_buf_: string | Resource | undefined|undefined 7293 if (startIcon_buf__selector == 0) { 7294 startIcon_buf_ = (valueDeserializer.readString() as string) 7295 } 7296 else if (startIcon_buf__selector == 1) { 7297 startIcon_buf_ = valueDeserializer.readResource() 7298 } 7299 else { 7300 throw new Error("One of the branches for startIcon_buf_ has to be chosen through deserialisation.") 7301 } 7302 startIcon_buf = (startIcon_buf_ as string | Resource) 7303 } 7304 const startIcon_result: ResourceStr | undefined|undefined = startIcon_buf 7305 const symbolStartIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7306 let symbolStartIcon_buf: SymbolGlyphModifier | undefined|undefined 7307 if ((RuntimeType.UNDEFINED) != (symbolStartIcon_buf_runtimeType)) 7308 { 7309 symbolStartIcon_buf = valueDeserializer.readSymbolGlyphModifier() 7310 } 7311 const symbolStartIcon_result: SymbolGlyphModifier | undefined|undefined = symbolStartIcon_buf 7312 const content_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7313 let content_buf: ResourceStr | undefined|undefined 7314 if ((RuntimeType.UNDEFINED) != (content_buf_runtimeType)) 7315 { 7316 const content_buf__selector: number = valueDeserializer.readInt8() 7317 let content_buf_: string | Resource | undefined|undefined 7318 if (content_buf__selector == 0) { 7319 content_buf_ = (valueDeserializer.readString() as string) 7320 } 7321 else if (content_buf__selector == 1) { 7322 content_buf_ = valueDeserializer.readResource() 7323 } 7324 else { 7325 throw new Error("One of the branches for content_buf_ has to be chosen through deserialisation.") 7326 } 7327 content_buf = (content_buf_ as string | Resource) 7328 } 7329 const content_result: ResourceStr | undefined|undefined = content_buf 7330 const endIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7331 let endIcon_buf: ResourceStr | undefined|undefined 7332 if ((RuntimeType.UNDEFINED) != (endIcon_buf_runtimeType)) 7333 { 7334 const endIcon_buf__selector: number = valueDeserializer.readInt8() 7335 let endIcon_buf_: string | Resource | undefined|undefined 7336 if (endIcon_buf__selector == 0) { 7337 endIcon_buf_ = (valueDeserializer.readString() as string) 7338 } 7339 else if (endIcon_buf__selector == 1) { 7340 endIcon_buf_ = valueDeserializer.readResource() 7341 } 7342 else { 7343 throw new Error("One of the branches for endIcon_buf_ has to be chosen through deserialisation.") 7344 } 7345 endIcon_buf = (endIcon_buf_ as string | Resource) 7346 } 7347 const endIcon_result: ResourceStr | undefined|undefined = endIcon_buf 7348 const symbolEndIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7349 let symbolEndIcon_buf: SymbolGlyphModifier | undefined|undefined 7350 if ((RuntimeType.UNDEFINED) != (symbolEndIcon_buf_runtimeType)) 7351 { 7352 symbolEndIcon_buf = valueDeserializer.readSymbolGlyphModifier() 7353 } 7354 const symbolEndIcon_result: SymbolGlyphModifier | undefined|undefined = symbolEndIcon_buf 7355 const labelInfo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7356 let labelInfo_buf: ResourceStr | undefined|undefined 7357 if ((RuntimeType.UNDEFINED) != (labelInfo_buf_runtimeType)) 7358 { 7359 const labelInfo_buf__selector: number = valueDeserializer.readInt8() 7360 let labelInfo_buf_: string | Resource | undefined|undefined 7361 if (labelInfo_buf__selector == 0) { 7362 labelInfo_buf_ = (valueDeserializer.readString() as string) 7363 } 7364 else if (labelInfo_buf__selector == 1) { 7365 labelInfo_buf_ = valueDeserializer.readResource() 7366 } 7367 else { 7368 throw new Error("One of the branches for labelInfo_buf_ has to be chosen through deserialisation.") 7369 } 7370 labelInfo_buf = (labelInfo_buf_ as string | Resource) 7371 } 7372 const labelInfo_result: ResourceStr | undefined|undefined = labelInfo_buf 7373 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7374 let builder_buf: CustomBuilder | undefined|undefined 7375 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 7376 { 7377 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 7378 } 7379 const builder_result: CustomBuilder | undefined|undefined = builder_buf 7380 let value: MenuItemOptions = ({startIcon: startIcon_result, symbolStartIcon: symbolStartIcon_result, content: content_result, endIcon: endIcon_result, symbolEndIcon: symbolEndIcon_result, labelInfo: labelInfo_result, builder: builder_result} as MenuItemOptions) 7381 return value 7382 } 7383 readDividerStyleOptions(): DividerStyleOptions { 7384 let valueDeserializer: Deserializer = this 7385 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7386 let strokeWidth_buf: LengthMetrics | undefined|undefined 7387 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 7388 { 7389 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7390 } 7391 const strokeWidth_result: LengthMetrics | undefined|undefined = strokeWidth_buf 7392 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7393 let color_buf: ResourceColor | undefined|undefined 7394 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 7395 { 7396 const color_buf__selector: number = valueDeserializer.readInt8() 7397 let color_buf_: Color | number | string | Resource | undefined|undefined 7398 if (color_buf__selector == 0) { 7399 color_buf_ = (valueDeserializer.readInt32() as Color) 7400 } 7401 else if (color_buf__selector == 1) { 7402 color_buf_ = (valueDeserializer.readNumber() as number) 7403 } 7404 else if (color_buf__selector == 2) { 7405 color_buf_ = (valueDeserializer.readString() as string) 7406 } 7407 else if (color_buf__selector == 3) { 7408 color_buf_ = valueDeserializer.readResource() 7409 } 7410 else { 7411 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 7412 } 7413 color_buf = (color_buf_ as Color | number | string | Resource) 7414 } 7415 const color_result: ResourceColor | undefined|undefined = color_buf 7416 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7417 let startMargin_buf: LengthMetrics | undefined|undefined 7418 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 7419 { 7420 startMargin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7421 } 7422 const startMargin_result: LengthMetrics | undefined|undefined = startMargin_buf 7423 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7424 let endMargin_buf: LengthMetrics | undefined|undefined 7425 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 7426 { 7427 endMargin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7428 } 7429 const endMargin_result: LengthMetrics | undefined|undefined = endMargin_buf 7430 let value: DividerStyleOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerStyleOptions) 7431 return value 7432 } 7433 readASTCResource(): ASTCResource { 7434 let valueDeserializer: Deserializer = this 7435 const sources_buf_length: int32 = valueDeserializer.readInt32() 7436 let sources_buf: Array<string> = new Array<string>(sources_buf_length) 7437 for (let sources_buf_i = 0; sources_buf_i < sources_buf_length; sources_buf_i++) { 7438 sources_buf[sources_buf_i] = (valueDeserializer.readString() as string) 7439 } 7440 const sources_result: Array<string> = sources_buf 7441 const column_result: number = (valueDeserializer.readNumber() as number) 7442 let value: ASTCResource = ({sources: sources_result, column: column_result} as ASTCResource) 7443 return value 7444 } 7445 readDrawableDescriptor(): DrawableDescriptor { 7446 let valueDeserializer: Deserializer = this 7447 const _DrawableDescriptorStub_result: string = (valueDeserializer.readString() as string) 7448 let value: DrawableDescriptor = ({_DrawableDescriptorStub: _DrawableDescriptorStub_result} as DrawableDescriptor) 7449 return value 7450 } 7451 readMatrix2D(): Matrix2D { 7452 let valueDeserializer: Deserializer = this 7453 let ptr: KPointer = valueDeserializer.readPointer() 7454 return Matrix2DInternal.fromPtr(ptr) 7455 } 7456 readListDividerOptions(): ListDividerOptions { 7457 let valueDeserializer: Deserializer = this 7458 const strokeWidth_result: Length = (valueDeserializer.readLength() as Length) 7459 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7460 let color_buf: ResourceColor | undefined|undefined 7461 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 7462 { 7463 const color_buf__selector: number = valueDeserializer.readInt8() 7464 let color_buf_: Color | number | string | Resource | undefined|undefined 7465 if (color_buf__selector == 0) { 7466 color_buf_ = (valueDeserializer.readInt32() as Color) 7467 } 7468 else if (color_buf__selector == 1) { 7469 color_buf_ = (valueDeserializer.readNumber() as number) 7470 } 7471 else if (color_buf__selector == 2) { 7472 color_buf_ = (valueDeserializer.readString() as string) 7473 } 7474 else if (color_buf__selector == 3) { 7475 color_buf_ = valueDeserializer.readResource() 7476 } 7477 else { 7478 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 7479 } 7480 color_buf = (color_buf_ as Color | number | string | Resource) 7481 } 7482 const color_result: ResourceColor | undefined|undefined = color_buf 7483 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7484 let startMargin_buf: Length | undefined|undefined 7485 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 7486 { 7487 startMargin_buf = (valueDeserializer.readLength() as Length) 7488 } 7489 const startMargin_result: Length | undefined|undefined = startMargin_buf 7490 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7491 let endMargin_buf: Length | undefined|undefined 7492 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 7493 { 7494 endMargin_buf = (valueDeserializer.readLength() as Length) 7495 } 7496 const endMargin_result: Length | undefined|undefined = endMargin_buf 7497 let value: ListDividerOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as ListDividerOptions) 7498 return value 7499 } 7500 readListAttribute(): ListAttribute { 7501 let value: ListAttribute = ({} as ListAttribute) 7502 return value 7503 } 7504 readVisibleListContentInfo(): VisibleListContentInfo { 7505 let valueDeserializer: Deserializer = this 7506 const index_result: number = (valueDeserializer.readNumber() as number) 7507 const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7508 let itemGroupArea_buf: ListItemGroupArea | undefined|undefined 7509 if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) 7510 { 7511 itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) 7512 } 7513 const itemGroupArea_result: ListItemGroupArea | undefined|undefined = itemGroupArea_buf 7514 const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7515 let itemIndexInGroup_buf: number | undefined|undefined 7516 if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) 7517 { 7518 itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) 7519 } 7520 const itemIndexInGroup_result: number | undefined|undefined = itemIndexInGroup_buf 7521 let value: VisibleListContentInfo = ({index: index_result, itemGroupArea: itemGroupArea_result, itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) 7522 return value 7523 } 7524 readCloseSwipeActionOptions(): CloseSwipeActionOptions { 7525 let valueDeserializer: Deserializer = this 7526 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7527 let onFinish_buf: (() => void) | undefined|undefined 7528 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 7529 { 7530 onFinish_buf = valueDeserializer.readCallback_Void() 7531 } 7532 const onFinish_result: (() => void) | undefined|undefined = onFinish_buf 7533 let value: CloseSwipeActionOptions = ({onFinish: onFinish_result} as CloseSwipeActionOptions) 7534 return value 7535 } 7536 readDrawingColorFilter(): DrawingColorFilter { 7537 let valueDeserializer: Deserializer = this 7538 const _DrawingColorFilterStub_result: string = (valueDeserializer.readString() as string) 7539 let value: DrawingColorFilter = ({_DrawingColorFilterStub: _DrawingColorFilterStub_result} as DrawingColorFilter) 7540 return value 7541 } 7542 readColorFilter(): ColorFilter { 7543 let valueDeserializer: Deserializer = this 7544 let ptr: KPointer = valueDeserializer.readPointer() 7545 return ColorFilterInternal.fromPtr(ptr) 7546 } 7547 readBreakPoints(): BreakPoints { 7548 let valueDeserializer: Deserializer = this 7549 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7550 let value_buf: Array<string> | undefined|undefined 7551 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 7552 { 7553 const value_buf__length: int32 = valueDeserializer.readInt32() 7554 let value_buf_: Array<string> = new Array<string>(value_buf__length) 7555 for (let value_buf__i = 0; value_buf__i < value_buf__length; value_buf__i++) { 7556 value_buf_[value_buf__i] = (valueDeserializer.readString() as string) 7557 } 7558 value_buf = value_buf_ 7559 } 7560 const value_result: Array<string> | undefined|undefined = value_buf 7561 const reference_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7562 let reference_buf: BreakpointsReference | undefined|undefined 7563 if ((RuntimeType.UNDEFINED) != (reference_buf_runtimeType)) 7564 { 7565 reference_buf = (valueDeserializer.readInt32() as BreakpointsReference) 7566 } 7567 const reference_result: BreakpointsReference | undefined|undefined = reference_buf 7568 let value: BreakPoints = ({value: value_result, reference: reference_result} as BreakPoints) 7569 return value 7570 } 7571 readGridAttribute(): GridAttribute { 7572 let value: GridAttribute = ({} as GridAttribute) 7573 return value 7574 } 7575 readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { 7576 const _resource: CallbackResource = this.readCallbackResource() 7577 const _call: KPointer = this.readPointer() 7578 const _callSync: KPointer = this.readPointer() 7579 return (index: number): [ number, number, number, number ] => { 7580 const _argsSerializer: Serializer = Serializer.hold(); 7581 _argsSerializer.writeInt32(_resource.resourceId); 7582 _argsSerializer.writePointer(_call); 7583 _argsSerializer.writePointer(_callSync); 7584 _argsSerializer.writeNumber(index); 7585 let _continuationValue: [ number, number, number, number ] | undefined|undefined ; 7586 const _continuationCallback: ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]): void => { _continuationValue = value; } 7587 _argsSerializer.holdAndWriteCallback(_continuationCallback); 7588 (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); 7589 _argsSerializer.release(); 7590 return (_continuationValue as [ number, number, number, number ]); } 7591 } 7592 readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { 7593 const _resource: CallbackResource = this.readCallbackResource() 7594 const _call: KPointer = this.readPointer() 7595 const _callSync: KPointer = this.readPointer() 7596 return (index: number): [ number, number ] => { 7597 const _argsSerializer: Serializer = Serializer.hold(); 7598 _argsSerializer.writeInt32(_resource.resourceId); 7599 _argsSerializer.writePointer(_call); 7600 _argsSerializer.writePointer(_callSync); 7601 _argsSerializer.writeNumber(index); 7602 let _continuationValue: [ number, number ] | undefined|undefined ; 7603 const _continuationCallback: ((value: [ number, number ]) => void) = (value: [ number, number ]): void => { _continuationValue = value; } 7604 _argsSerializer.holdAndWriteCallback(_continuationCallback); 7605 (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); 7606 _argsSerializer.release(); 7607 return (_continuationValue as [ number, number ]); } 7608 } 7609 readPanGestureOptions(): PanGestureOptions { 7610 let valueDeserializer: Deserializer = this 7611 let ptr: KPointer = valueDeserializer.readPointer() 7612 return PanGestureOptionsInternal.fromPtr(ptr) 7613 } 7614 readEventTargetInfo(): EventTargetInfo { 7615 let valueDeserializer: Deserializer = this 7616 let ptr: KPointer = valueDeserializer.readPointer() 7617 return EventTargetInfoInternal.fromPtr(ptr) 7618 } 7619 readWindowStatusType(): WindowStatusType { 7620 let valueDeserializer: Deserializer = this 7621 const _WindowStatusTypeStub_result: string = (valueDeserializer.readString() as string) 7622 let value: WindowStatusType = ({_WindowStatusTypeStub: _WindowStatusTypeStub_result} as WindowStatusType) 7623 return value 7624 } 7625 readFlexSpaceOptions(): FlexSpaceOptions { 7626 let valueDeserializer: Deserializer = this 7627 const main_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7628 let main_buf: LengthMetrics | undefined|undefined 7629 if ((RuntimeType.UNDEFINED) != (main_buf_runtimeType)) 7630 { 7631 main_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7632 } 7633 const main_result: LengthMetrics | undefined|undefined = main_buf 7634 const cross_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7635 let cross_buf: LengthMetrics | undefined|undefined 7636 if ((RuntimeType.UNDEFINED) != (cross_buf_runtimeType)) 7637 { 7638 cross_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7639 } 7640 const cross_result: LengthMetrics | undefined|undefined = cross_buf 7641 let value: FlexSpaceOptions = ({main: main_result, cross: cross_result} as FlexSpaceOptions) 7642 return value 7643 } 7644 readDatePickerDialogOptions(): DatePickerDialogOptions { 7645 let valueDeserializer: Deserializer = this 7646 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7647 let start_buf: Date | undefined|undefined 7648 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 7649 { 7650 start_buf = new Date(valueDeserializer.readInt64()) 7651 } 7652 const start_result: Date | undefined|undefined = start_buf 7653 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7654 let end_buf: Date | undefined|undefined 7655 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 7656 { 7657 end_buf = new Date(valueDeserializer.readInt64()) 7658 } 7659 const end_result: Date | undefined|undefined = end_buf 7660 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7661 let selected_buf: Date | undefined|undefined 7662 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 7663 { 7664 selected_buf = new Date(valueDeserializer.readInt64()) 7665 } 7666 const selected_result: Date | undefined|undefined = selected_buf 7667 const lunar_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7668 let lunar_buf: boolean | undefined|undefined 7669 if ((RuntimeType.UNDEFINED) != (lunar_buf_runtimeType)) 7670 { 7671 lunar_buf = valueDeserializer.readBoolean() 7672 } 7673 const lunar_result: boolean | undefined|undefined = lunar_buf 7674 const lunarSwitch_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7675 let lunarSwitch_buf: boolean | undefined|undefined 7676 if ((RuntimeType.UNDEFINED) != (lunarSwitch_buf_runtimeType)) 7677 { 7678 lunarSwitch_buf = valueDeserializer.readBoolean() 7679 } 7680 const lunarSwitch_result: boolean | undefined|undefined = lunarSwitch_buf 7681 const lunarSwitchStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7682 let lunarSwitchStyle_buf: LunarSwitchStyle | undefined|undefined 7683 if ((RuntimeType.UNDEFINED) != (lunarSwitchStyle_buf_runtimeType)) 7684 { 7685 lunarSwitchStyle_buf = valueDeserializer.readLunarSwitchStyle() 7686 } 7687 const lunarSwitchStyle_result: LunarSwitchStyle | undefined|undefined = lunarSwitchStyle_buf 7688 const showTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7689 let showTime_buf: boolean | undefined|undefined 7690 if ((RuntimeType.UNDEFINED) != (showTime_buf_runtimeType)) 7691 { 7692 showTime_buf = valueDeserializer.readBoolean() 7693 } 7694 const showTime_result: boolean | undefined|undefined = showTime_buf 7695 const useMilitaryTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7696 let useMilitaryTime_buf: boolean | undefined|undefined 7697 if ((RuntimeType.UNDEFINED) != (useMilitaryTime_buf_runtimeType)) 7698 { 7699 useMilitaryTime_buf = valueDeserializer.readBoolean() 7700 } 7701 const useMilitaryTime_result: boolean | undefined|undefined = useMilitaryTime_buf 7702 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7703 let disappearTextStyle_buf: PickerTextStyle | undefined|undefined 7704 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 7705 { 7706 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 7707 } 7708 const disappearTextStyle_result: PickerTextStyle | undefined|undefined = disappearTextStyle_buf 7709 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7710 let textStyle_buf: PickerTextStyle | undefined|undefined 7711 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 7712 { 7713 textStyle_buf = valueDeserializer.readPickerTextStyle() 7714 } 7715 const textStyle_result: PickerTextStyle | undefined|undefined = textStyle_buf 7716 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7717 let acceptButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 7718 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 7719 { 7720 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 7721 } 7722 const acceptButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = acceptButtonStyle_buf 7723 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7724 let cancelButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 7725 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 7726 { 7727 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 7728 } 7729 const cancelButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = cancelButtonStyle_buf 7730 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7731 let selectedTextStyle_buf: PickerTextStyle | undefined|undefined 7732 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 7733 { 7734 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 7735 } 7736 const selectedTextStyle_result: PickerTextStyle | undefined|undefined = selectedTextStyle_buf 7737 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7738 let maskRect_buf: Rectangle | undefined|undefined 7739 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 7740 { 7741 maskRect_buf = valueDeserializer.readRectangle() 7742 } 7743 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 7744 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7745 let alignment_buf: DialogAlignment | undefined|undefined 7746 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 7747 { 7748 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 7749 } 7750 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 7751 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7752 let offset_buf: Offset | undefined|undefined 7753 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 7754 { 7755 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 7756 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 7757 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 7758 } 7759 const offset_result: Offset | undefined|undefined = offset_buf 7760 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7761 let onAccept_buf: ((value: DatePickerResult) => void) | undefined|undefined 7762 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 7763 { 7764 onAccept_buf = valueDeserializer.readCallback_DatePickerResult_Void() 7765 } 7766 const onAccept_result: ((value: DatePickerResult) => void) | undefined|undefined = onAccept_buf 7767 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7768 let onCancel_buf: VoidCallback | undefined|undefined 7769 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 7770 { 7771 onCancel_buf = valueDeserializer.readVoidCallback() 7772 } 7773 const onCancel_result: VoidCallback | undefined|undefined = onCancel_buf 7774 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7775 let onChange_buf: ((value: DatePickerResult) => void) | undefined|undefined 7776 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 7777 { 7778 onChange_buf = valueDeserializer.readCallback_DatePickerResult_Void() 7779 } 7780 const onChange_result: ((value: DatePickerResult) => void) | undefined|undefined = onChange_buf 7781 const onDateAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7782 let onDateAccept_buf: ((parameter: Date) => void) | undefined|undefined 7783 if ((RuntimeType.UNDEFINED) != (onDateAccept_buf_runtimeType)) 7784 { 7785 onDateAccept_buf = valueDeserializer.readCallback_Date_Void() 7786 } 7787 const onDateAccept_result: ((parameter: Date) => void) | undefined|undefined = onDateAccept_buf 7788 const onDateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7789 let onDateChange_buf: ((parameter: Date) => void) | undefined|undefined 7790 if ((RuntimeType.UNDEFINED) != (onDateChange_buf_runtimeType)) 7791 { 7792 onDateChange_buf = valueDeserializer.readCallback_Date_Void() 7793 } 7794 const onDateChange_result: ((parameter: Date) => void) | undefined|undefined = onDateChange_buf 7795 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7796 let backgroundColor_buf: ResourceColor | undefined|undefined 7797 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7798 { 7799 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 7800 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 7801 if (backgroundColor_buf__selector == 0) { 7802 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7803 } 7804 else if (backgroundColor_buf__selector == 1) { 7805 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7806 } 7807 else if (backgroundColor_buf__selector == 2) { 7808 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7809 } 7810 else if (backgroundColor_buf__selector == 3) { 7811 backgroundColor_buf_ = valueDeserializer.readResource() 7812 } 7813 else { 7814 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7815 } 7816 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7817 } 7818 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 7819 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7820 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 7821 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7822 { 7823 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7824 } 7825 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 7826 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7827 let onDidAppear_buf: VoidCallback | undefined|undefined 7828 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 7829 { 7830 onDidAppear_buf = valueDeserializer.readVoidCallback() 7831 } 7832 const onDidAppear_result: VoidCallback | undefined|undefined = onDidAppear_buf 7833 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7834 let onDidDisappear_buf: VoidCallback | undefined|undefined 7835 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 7836 { 7837 onDidDisappear_buf = valueDeserializer.readVoidCallback() 7838 } 7839 const onDidDisappear_result: VoidCallback | undefined|undefined = onDidDisappear_buf 7840 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7841 let onWillAppear_buf: VoidCallback | undefined|undefined 7842 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 7843 { 7844 onWillAppear_buf = valueDeserializer.readVoidCallback() 7845 } 7846 const onWillAppear_result: VoidCallback | undefined|undefined = onWillAppear_buf 7847 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7848 let onWillDisappear_buf: VoidCallback | undefined|undefined 7849 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 7850 { 7851 onWillDisappear_buf = valueDeserializer.readVoidCallback() 7852 } 7853 const onWillDisappear_result: VoidCallback | undefined|undefined = onWillDisappear_buf 7854 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7855 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 7856 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 7857 { 7858 const shadow_buf__selector: number = valueDeserializer.readInt8() 7859 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 7860 if (shadow_buf__selector == 0) { 7861 shadow_buf_ = valueDeserializer.readShadowOptions() 7862 } 7863 else if (shadow_buf__selector == 1) { 7864 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 7865 } 7866 else { 7867 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 7868 } 7869 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 7870 } 7871 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 7872 const dateTimeOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7873 let dateTimeOptions_buf: DateTimeOptions | undefined|undefined 7874 if ((RuntimeType.UNDEFINED) != (dateTimeOptions_buf_runtimeType)) 7875 { 7876 dateTimeOptions_buf = valueDeserializer.readDateTimeOptions() 7877 } 7878 const dateTimeOptions_result: DateTimeOptions | undefined|undefined = dateTimeOptions_buf 7879 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7880 let enableHoverMode_buf: boolean | undefined|undefined 7881 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 7882 { 7883 enableHoverMode_buf = valueDeserializer.readBoolean() 7884 } 7885 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 7886 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7887 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 7888 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 7889 { 7890 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 7891 } 7892 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 7893 let value: DatePickerDialogOptions = ({start: start_result, end: end_result, selected: selected_result, lunar: lunar_result, lunarSwitch: lunarSwitch_result, lunarSwitchStyle: lunarSwitchStyle_result, showTime: showTime_result, useMilitaryTime: useMilitaryTime_result, disappearTextStyle: disappearTextStyle_result, textStyle: textStyle_result, acceptButtonStyle: acceptButtonStyle_result, cancelButtonStyle: cancelButtonStyle_result, selectedTextStyle: selectedTextStyle_result, maskRect: maskRect_result, alignment: alignment_result, offset: offset_result, onAccept: onAccept_result, onCancel: onCancel_result, onChange: onChange_result, onDateAccept: onDateAccept_result, onDateChange: onDateChange_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onDidAppear: onDidAppear_result, onDidDisappear: onDidDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, shadow: shadow_result, dateTimeOptions: dateTimeOptions_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as DatePickerDialogOptions) 7894 return value 7895 } 7896 readAnimateParam(): AnimateParam { 7897 let valueDeserializer: Deserializer = this 7898 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7899 let duration_buf: number | undefined|undefined 7900 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 7901 { 7902 duration_buf = (valueDeserializer.readNumber() as number) 7903 } 7904 const duration_result: number | undefined|undefined = duration_buf 7905 const tempo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7906 let tempo_buf: number | undefined|undefined 7907 if ((RuntimeType.UNDEFINED) != (tempo_buf_runtimeType)) 7908 { 7909 tempo_buf = (valueDeserializer.readNumber() as number) 7910 } 7911 const tempo_result: number | undefined|undefined = tempo_buf 7912 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7913 let curve_buf: Curve | string | ICurve | undefined|undefined 7914 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 7915 { 7916 const curve_buf__selector: number = valueDeserializer.readInt8() 7917 let curve_buf_: Curve | string | ICurve | undefined|undefined 7918 if (curve_buf__selector == 0) { 7919 curve_buf_ = (valueDeserializer.readInt32() as Curve) 7920 } 7921 else if (curve_buf__selector == 1) { 7922 curve_buf_ = (valueDeserializer.readString() as string) 7923 } 7924 else if (curve_buf__selector == 2) { 7925 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 7926 } 7927 else { 7928 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 7929 } 7930 curve_buf = (curve_buf_ as Curve | string | ICurve) 7931 } 7932 const curve_result: Curve | string | ICurve | undefined|undefined = curve_buf 7933 const delay_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7934 let delay_buf: number | undefined|undefined 7935 if ((RuntimeType.UNDEFINED) != (delay_buf_runtimeType)) 7936 { 7937 delay_buf = (valueDeserializer.readNumber() as number) 7938 } 7939 const delay_result: number | undefined|undefined = delay_buf 7940 const iterations_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7941 let iterations_buf: number | undefined|undefined 7942 if ((RuntimeType.UNDEFINED) != (iterations_buf_runtimeType)) 7943 { 7944 iterations_buf = (valueDeserializer.readNumber() as number) 7945 } 7946 const iterations_result: number | undefined|undefined = iterations_buf 7947 const playMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7948 let playMode_buf: PlayMode | undefined|undefined 7949 if ((RuntimeType.UNDEFINED) != (playMode_buf_runtimeType)) 7950 { 7951 playMode_buf = (valueDeserializer.readInt32() as PlayMode) 7952 } 7953 const playMode_result: PlayMode | undefined|undefined = playMode_buf 7954 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7955 let onFinish_buf: (() => void) | undefined|undefined 7956 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 7957 { 7958 onFinish_buf = valueDeserializer.readCallback_Void() 7959 } 7960 const onFinish_result: (() => void) | undefined|undefined = onFinish_buf 7961 const finishCallbackType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7962 let finishCallbackType_buf: FinishCallbackType | undefined|undefined 7963 if ((RuntimeType.UNDEFINED) != (finishCallbackType_buf_runtimeType)) 7964 { 7965 finishCallbackType_buf = (valueDeserializer.readInt32() as FinishCallbackType) 7966 } 7967 const finishCallbackType_result: FinishCallbackType | undefined|undefined = finishCallbackType_buf 7968 const expectedFrameRateRange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7969 let expectedFrameRateRange_buf: ExpectedFrameRateRange | undefined|undefined 7970 if ((RuntimeType.UNDEFINED) != (expectedFrameRateRange_buf_runtimeType)) 7971 { 7972 expectedFrameRateRange_buf = valueDeserializer.readExpectedFrameRateRange() 7973 } 7974 const expectedFrameRateRange_result: ExpectedFrameRateRange | undefined|undefined = expectedFrameRateRange_buf 7975 let value: AnimateParam = ({duration: duration_result, tempo: tempo_result, curve: curve_result, delay: delay_result, iterations: iterations_result, playMode: playMode_result, onFinish: onFinish_result, finishCallbackType: finishCallbackType_result, expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) 7976 return value 7977 } 7978 readComponent3DAttribute(): Component3DAttribute { 7979 let value: Component3DAttribute = ({} as Component3DAttribute) 7980 return value 7981 } 7982 readUIGestureEvent(): UIGestureEvent { 7983 let value: UIGestureEvent = ({} as UIGestureEvent) 7984 return value 7985 } 7986 readVisibleAreaChangeCallback(isSync: boolean = false): VisibleAreaChangeCallback { 7987 const _resource: CallbackResource = this.readCallbackResource() 7988 const _call: KPointer = this.readPointer() 7989 const _callSync: KPointer = this.readPointer() 7990 return (isExpanding: boolean, currentRatio: number): void => { 7991 const _argsSerializer: Serializer = Serializer.hold(); 7992 _argsSerializer.writeInt32(_resource.resourceId); 7993 _argsSerializer.writePointer(_call); 7994 _argsSerializer.writePointer(_callSync); 7995 _argsSerializer.writeBoolean(isExpanding); 7996 _argsSerializer.writeNumber(currentRatio); 7997 (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); 7998 _argsSerializer.release(); 7999 return; } 8000 } 8001 readVisibleAreaEventOptions(): VisibleAreaEventOptions { 8002 let valueDeserializer: Deserializer = this 8003 const ratios_buf_length: int32 = valueDeserializer.readInt32() 8004 let ratios_buf: Array<number> = new Array<number>(ratios_buf_length) 8005 for (let ratios_buf_i = 0; ratios_buf_i < ratios_buf_length; ratios_buf_i++) { 8006 ratios_buf[ratios_buf_i] = (valueDeserializer.readNumber() as number) 8007 } 8008 const ratios_result: Array<number> = ratios_buf 8009 const expectedUpdateInterval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8010 let expectedUpdateInterval_buf: number | undefined|undefined 8011 if ((RuntimeType.UNDEFINED) != (expectedUpdateInterval_buf_runtimeType)) 8012 { 8013 expectedUpdateInterval_buf = (valueDeserializer.readNumber() as number) 8014 } 8015 const expectedUpdateInterval_result: number | undefined|undefined = expectedUpdateInterval_buf 8016 let value: VisibleAreaEventOptions = ({ratios: ratios_result, expectedUpdateInterval: expectedUpdateInterval_result} as VisibleAreaEventOptions) 8017 return value 8018 } 8019 readSizeChangeCallback(isSync: boolean = false): SizeChangeCallback { 8020 const _resource: CallbackResource = this.readCallbackResource() 8021 const _call: KPointer = this.readPointer() 8022 const _callSync: KPointer = this.readPointer() 8023 return (oldValue: SizeOptions, newValue: SizeOptions): void => { 8024 const _argsSerializer: Serializer = Serializer.hold(); 8025 _argsSerializer.writeInt32(_resource.resourceId); 8026 _argsSerializer.writePointer(_call); 8027 _argsSerializer.writePointer(_callSync); 8028 _argsSerializer.writeSizeOptions(oldValue); 8029 _argsSerializer.writeSizeOptions(newValue); 8030 (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); 8031 _argsSerializer.release(); 8032 return; } 8033 } 8034 readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { 8035 const _resource: CallbackResource = this.readCallbackResource() 8036 const _call: KPointer = this.readPointer() 8037 const _callSync: KPointer = this.readPointer() 8038 return (event: MouseEvent): void => { 8039 const _argsSerializer: Serializer = Serializer.hold(); 8040 _argsSerializer.writeInt32(_resource.resourceId); 8041 _argsSerializer.writePointer(_call); 8042 _argsSerializer.writePointer(_callSync); 8043 _argsSerializer.writeMouseEvent(event); 8044 (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); 8045 _argsSerializer.release(); 8046 return; } 8047 } 8048 readHoverCallback(isSync: boolean = false): HoverCallback { 8049 const _resource: CallbackResource = this.readCallbackResource() 8050 const _call: KPointer = this.readPointer() 8051 const _callSync: KPointer = this.readPointer() 8052 return (isHover: boolean, event: HoverEvent): void => { 8053 const _argsSerializer: Serializer = Serializer.hold(); 8054 _argsSerializer.writeInt32(_resource.resourceId); 8055 _argsSerializer.writePointer(_call); 8056 _argsSerializer.writePointer(_callSync); 8057 _argsSerializer.writeBoolean(isHover); 8058 _argsSerializer.writeHoverEvent(event); 8059 (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); 8060 _argsSerializer.release(); 8061 return; } 8062 } 8063 readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { 8064 const _resource: CallbackResource = this.readCallbackResource() 8065 const _call: KPointer = this.readPointer() 8066 const _callSync: KPointer = this.readPointer() 8067 return (event: KeyEvent): void => { 8068 const _argsSerializer: Serializer = Serializer.hold(); 8069 _argsSerializer.writeInt32(_resource.resourceId); 8070 _argsSerializer.writePointer(_call); 8071 _argsSerializer.writePointer(_callSync); 8072 _argsSerializer.writeKeyEvent(event); 8073 (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); 8074 _argsSerializer.release(); 8075 return; } 8076 } 8077 readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { 8078 const _resource: CallbackResource = this.readCallbackResource() 8079 const _call: KPointer = this.readPointer() 8080 const _callSync: KPointer = this.readPointer() 8081 return (event: TouchEvent): void => { 8082 const _argsSerializer: Serializer = Serializer.hold(); 8083 _argsSerializer.writeInt32(_resource.resourceId); 8084 _argsSerializer.writePointer(_call); 8085 _argsSerializer.writePointer(_callSync); 8086 _argsSerializer.writeTouchEvent(event); 8087 (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); 8088 _argsSerializer.release(); 8089 return; } 8090 } 8091 readFadingEdgeOptions(): FadingEdgeOptions { 8092 let valueDeserializer: Deserializer = this 8093 const fadingEdgeLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8094 let fadingEdgeLength_buf: LengthMetrics | undefined|undefined 8095 if ((RuntimeType.UNDEFINED) != (fadingEdgeLength_buf_runtimeType)) 8096 { 8097 fadingEdgeLength_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 8098 } 8099 const fadingEdgeLength_result: LengthMetrics | undefined|undefined = fadingEdgeLength_buf 8100 let value: FadingEdgeOptions = ({fadingEdgeLength: fadingEdgeLength_result} as FadingEdgeOptions) 8101 return value 8102 } 8103 readRectShape(): RectShape { 8104 let valueDeserializer: Deserializer = this 8105 let ptr: KPointer = valueDeserializer.readPointer() 8106 return RectShapeInternal.fromPtr(ptr) 8107 } 8108 readCaretOffset(): CaretOffset { 8109 let valueDeserializer: Deserializer = this 8110 const index_result: number = (valueDeserializer.readNumber() as number) 8111 const x_result: number = (valueDeserializer.readNumber() as number) 8112 const y_result: number = (valueDeserializer.readNumber() as number) 8113 let value: CaretOffset = ({index: index_result, x: x_result, y: y_result} as CaretOffset) 8114 return value 8115 } 8116 readDirectionalEdgesT(): DirectionalEdgesT { 8117 let valueDeserializer: Deserializer = this 8118 const start_result: number = (valueDeserializer.readNumber() as number) 8119 const end_result: number = (valueDeserializer.readNumber() as number) 8120 const top_result: number = (valueDeserializer.readNumber() as number) 8121 const bottom_result: number = (valueDeserializer.readNumber() as number) 8122 let value: DirectionalEdgesT = ({start: start_result, end: end_result, top: top_result, bottom: bottom_result} as DirectionalEdgesT) 8123 return value 8124 } 8125 readMeasureResult(): MeasureResult { 8126 let valueDeserializer: Deserializer = this 8127 const width_result: number = (valueDeserializer.readNumber() as number) 8128 const height_result: number = (valueDeserializer.readNumber() as number) 8129 let value: MeasureResult = ({width: width_result, height: height_result} as MeasureResult) 8130 return value 8131 } 8132 readConstraintSizeOptions(): ConstraintSizeOptions { 8133 let valueDeserializer: Deserializer = this 8134 const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8135 let minWidth_buf: Length | undefined|undefined 8136 if ((RuntimeType.UNDEFINED) != (minWidth_buf_runtimeType)) 8137 { 8138 minWidth_buf = (valueDeserializer.readLength() as Length) 8139 } 8140 const minWidth_result: Length | undefined|undefined = minWidth_buf 8141 const maxWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8142 let maxWidth_buf: Length | undefined|undefined 8143 if ((RuntimeType.UNDEFINED) != (maxWidth_buf_runtimeType)) 8144 { 8145 maxWidth_buf = (valueDeserializer.readLength() as Length) 8146 } 8147 const maxWidth_result: Length | undefined|undefined = maxWidth_buf 8148 const minHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8149 let minHeight_buf: Length | undefined|undefined 8150 if ((RuntimeType.UNDEFINED) != (minHeight_buf_runtimeType)) 8151 { 8152 minHeight_buf = (valueDeserializer.readLength() as Length) 8153 } 8154 const minHeight_result: Length | undefined|undefined = minHeight_buf 8155 const maxHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8156 let maxHeight_buf: Length | undefined|undefined 8157 if ((RuntimeType.UNDEFINED) != (maxHeight_buf_runtimeType)) 8158 { 8159 maxHeight_buf = (valueDeserializer.readLength() as Length) 8160 } 8161 const maxHeight_result: Length | undefined|undefined = maxHeight_buf 8162 let value: ConstraintSizeOptions = ({minWidth: minWidth_result, maxWidth: maxWidth_result, minHeight: minHeight_result, maxHeight: maxHeight_result} as ConstraintSizeOptions) 8163 return value 8164 } 8165 readGestureRecognizerJudgeBeginCallback(isSync: boolean = false): GestureRecognizerJudgeBeginCallback { 8166 const _resource: CallbackResource = this.readCallbackResource() 8167 const _call: KPointer = this.readPointer() 8168 const _callSync: KPointer = this.readPointer() 8169 return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array<GestureRecognizer>): GestureJudgeResult => { 8170 const _argsSerializer: Serializer = Serializer.hold(); 8171 _argsSerializer.writeInt32(_resource.resourceId); 8172 _argsSerializer.writePointer(_call); 8173 _argsSerializer.writePointer(_callSync); 8174 _argsSerializer.writeBaseGestureEvent(event); 8175 _argsSerializer.writeGestureRecognizer(current); 8176 _argsSerializer.writeInt32(recognizers.length); 8177 for (let i = 0; i < recognizers.length; i++) { 8178 const recognizers_element: GestureRecognizer = recognizers[i]; 8179 _argsSerializer.writeGestureRecognizer(recognizers_element); 8180 } 8181 let _continuationValue: GestureJudgeResult | undefined|undefined ; 8182 const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } 8183 _argsSerializer.holdAndWriteCallback(_continuationCallback); 8184 (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); 8185 _argsSerializer.release(); 8186 return (_continuationValue as GestureJudgeResult); } 8187 } 8188 readAccessibilityOptions(): AccessibilityOptions { 8189 let valueDeserializer: Deserializer = this 8190 const accessibilityPreferred_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8191 let accessibilityPreferred_buf: boolean | undefined|undefined 8192 if ((RuntimeType.UNDEFINED) != (accessibilityPreferred_buf_runtimeType)) 8193 { 8194 accessibilityPreferred_buf = valueDeserializer.readBoolean() 8195 } 8196 const accessibilityPreferred_result: boolean | undefined|undefined = accessibilityPreferred_buf 8197 let value: AccessibilityOptions = ({accessibilityPreferred: accessibilityPreferred_result} as AccessibilityOptions) 8198 return value 8199 } 8200 readSheetOptions(): SheetOptions { 8201 let valueDeserializer: Deserializer = this 8202 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8203 let backgroundColor_buf: ResourceColor | undefined|undefined 8204 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 8205 { 8206 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 8207 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 8208 if (backgroundColor_buf__selector == 0) { 8209 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 8210 } 8211 else if (backgroundColor_buf__selector == 1) { 8212 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 8213 } 8214 else if (backgroundColor_buf__selector == 2) { 8215 backgroundColor_buf_ = (valueDeserializer.readString() as string) 8216 } 8217 else if (backgroundColor_buf__selector == 3) { 8218 backgroundColor_buf_ = valueDeserializer.readResource() 8219 } 8220 else { 8221 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 8222 } 8223 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 8224 } 8225 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 8226 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8227 let onAppear_buf: (() => void) | undefined|undefined 8228 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8229 { 8230 onAppear_buf = valueDeserializer.readCallback_Void() 8231 } 8232 const onAppear_result: (() => void) | undefined|undefined = onAppear_buf 8233 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8234 let onDisappear_buf: (() => void) | undefined|undefined 8235 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8236 { 8237 onDisappear_buf = valueDeserializer.readCallback_Void() 8238 } 8239 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 8240 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8241 let onWillAppear_buf: (() => void) | undefined|undefined 8242 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 8243 { 8244 onWillAppear_buf = valueDeserializer.readCallback_Void() 8245 } 8246 const onWillAppear_result: (() => void) | undefined|undefined = onWillAppear_buf 8247 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8248 let onWillDisappear_buf: (() => void) | undefined|undefined 8249 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 8250 { 8251 onWillDisappear_buf = valueDeserializer.readCallback_Void() 8252 } 8253 const onWillDisappear_result: (() => void) | undefined|undefined = onWillDisappear_buf 8254 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8255 let height_buf: SheetSize | Length | undefined|undefined 8256 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 8257 { 8258 const height_buf__selector: number = valueDeserializer.readInt8() 8259 let height_buf_: SheetSize | Length | undefined|undefined 8260 if (height_buf__selector == 0) { 8261 height_buf_ = (valueDeserializer.readInt32() as SheetSize) 8262 } 8263 else if (height_buf__selector == 1) { 8264 height_buf_ = (valueDeserializer.readLength() as Length) 8265 } 8266 else { 8267 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 8268 } 8269 height_buf = (height_buf_ as SheetSize | Length) 8270 } 8271 const height_result: SheetSize | Length | undefined|undefined = height_buf 8272 const dragBar_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8273 let dragBar_buf: boolean | undefined|undefined 8274 if ((RuntimeType.UNDEFINED) != (dragBar_buf_runtimeType)) 8275 { 8276 dragBar_buf = valueDeserializer.readBoolean() 8277 } 8278 const dragBar_result: boolean | undefined|undefined = dragBar_buf 8279 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8280 let maskColor_buf: ResourceColor | undefined|undefined 8281 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 8282 { 8283 const maskColor_buf__selector: number = valueDeserializer.readInt8() 8284 let maskColor_buf_: Color | number | string | Resource | undefined|undefined 8285 if (maskColor_buf__selector == 0) { 8286 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 8287 } 8288 else if (maskColor_buf__selector == 1) { 8289 maskColor_buf_ = (valueDeserializer.readNumber() as number) 8290 } 8291 else if (maskColor_buf__selector == 2) { 8292 maskColor_buf_ = (valueDeserializer.readString() as string) 8293 } 8294 else if (maskColor_buf__selector == 3) { 8295 maskColor_buf_ = valueDeserializer.readResource() 8296 } 8297 else { 8298 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 8299 } 8300 maskColor_buf = (maskColor_buf_ as Color | number | string | Resource) 8301 } 8302 const maskColor_result: ResourceColor | undefined|undefined = maskColor_buf 8303 const detents_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8304 let detents_buf: [ SheetSize | Length, (SheetSize | Length)?, (SheetSize | Length)? ] | undefined|undefined 8305 if ((RuntimeType.UNDEFINED) != (detents_buf_runtimeType)) 8306 { 8307 const detents_buf__value0_buf_selector: number = valueDeserializer.readInt8() 8308 let detents_buf__value0_buf: SheetSize | Length | undefined|undefined 8309 if (detents_buf__value0_buf_selector == 0) { 8310 detents_buf__value0_buf = (valueDeserializer.readInt32() as SheetSize) 8311 } 8312 else if (detents_buf__value0_buf_selector == 1) { 8313 detents_buf__value0_buf = (valueDeserializer.readLength() as Length) 8314 } 8315 else { 8316 throw new Error("One of the branches for detents_buf__value0_buf has to be chosen through deserialisation.") 8317 } 8318 const detents_buf__value0: SheetSize | Length = (detents_buf__value0_buf as SheetSize | Length) 8319 const detents_buf__value1_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8320 let detents_buf__value1_buf: SheetSize | Length | undefined|undefined 8321 if ((RuntimeType.UNDEFINED) != (detents_buf__value1_buf_runtimeType)) 8322 { 8323 const detents_buf__value1_buf__selector: number = valueDeserializer.readInt8() 8324 let detents_buf__value1_buf_: SheetSize | Length | undefined|undefined 8325 if (detents_buf__value1_buf__selector == 0) { 8326 detents_buf__value1_buf_ = (valueDeserializer.readInt32() as SheetSize) 8327 } 8328 else if (detents_buf__value1_buf__selector == 1) { 8329 detents_buf__value1_buf_ = (valueDeserializer.readLength() as Length) 8330 } 8331 else { 8332 throw new Error("One of the branches for detents_buf__value1_buf_ has to be chosen through deserialisation.") 8333 } 8334 detents_buf__value1_buf = (detents_buf__value1_buf_ as SheetSize | Length) 8335 } 8336 const detents_buf__value1: undefined | SheetSize | Length = detents_buf__value1_buf 8337 const detents_buf__value2_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8338 let detents_buf__value2_buf: SheetSize | Length | undefined|undefined 8339 if ((RuntimeType.UNDEFINED) != (detents_buf__value2_buf_runtimeType)) 8340 { 8341 const detents_buf__value2_buf__selector: number = valueDeserializer.readInt8() 8342 let detents_buf__value2_buf_: SheetSize | Length | undefined|undefined 8343 if (detents_buf__value2_buf__selector == 0) { 8344 detents_buf__value2_buf_ = (valueDeserializer.readInt32() as SheetSize) 8345 } 8346 else if (detents_buf__value2_buf__selector == 1) { 8347 detents_buf__value2_buf_ = (valueDeserializer.readLength() as Length) 8348 } 8349 else { 8350 throw new Error("One of the branches for detents_buf__value2_buf_ has to be chosen through deserialisation.") 8351 } 8352 detents_buf__value2_buf = (detents_buf__value2_buf_ as SheetSize | Length) 8353 } 8354 const detents_buf__value2: undefined | SheetSize | Length = detents_buf__value2_buf 8355 detents_buf = ([detents_buf__value0, detents_buf__value1, detents_buf__value2] as [ SheetSize | Length, (SheetSize | Length)?, (SheetSize | Length)? ]) 8356 } 8357 const detents_result: [ SheetSize | Length, (SheetSize | Length)?, (SheetSize | Length)? ] | undefined|undefined = detents_buf 8358 const blurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8359 let blurStyle_buf: BlurStyle | undefined|undefined 8360 if ((RuntimeType.UNDEFINED) != (blurStyle_buf_runtimeType)) 8361 { 8362 blurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 8363 } 8364 const blurStyle_result: BlurStyle | undefined|undefined = blurStyle_buf 8365 const showClose_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8366 let showClose_buf: boolean | Resource | undefined|undefined 8367 if ((RuntimeType.UNDEFINED) != (showClose_buf_runtimeType)) 8368 { 8369 const showClose_buf__selector: number = valueDeserializer.readInt8() 8370 let showClose_buf_: boolean | Resource | undefined|undefined 8371 if (showClose_buf__selector == 0) { 8372 showClose_buf_ = valueDeserializer.readBoolean() 8373 } 8374 else if (showClose_buf__selector == 1) { 8375 showClose_buf_ = valueDeserializer.readResource() 8376 } 8377 else { 8378 throw new Error("One of the branches for showClose_buf_ has to be chosen through deserialisation.") 8379 } 8380 showClose_buf = (showClose_buf_ as boolean | Resource) 8381 } 8382 const showClose_result: boolean | Resource | undefined|undefined = showClose_buf 8383 const preferType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8384 let preferType_buf: SheetType | undefined|undefined 8385 if ((RuntimeType.UNDEFINED) != (preferType_buf_runtimeType)) 8386 { 8387 preferType_buf = (valueDeserializer.readInt32() as SheetType) 8388 } 8389 const preferType_result: SheetType | undefined|undefined = preferType_buf 8390 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8391 let title_buf: SheetTitleOptions | CustomBuilder | undefined|undefined 8392 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 8393 { 8394 const title_buf__selector: number = valueDeserializer.readInt8() 8395 let title_buf_: SheetTitleOptions | CustomBuilder | undefined|undefined 8396 if (title_buf__selector == 0) { 8397 title_buf_ = valueDeserializer.readSheetTitleOptions() 8398 } 8399 else if (title_buf__selector == 1) { 8400 title_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 8401 } 8402 else { 8403 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 8404 } 8405 title_buf = (title_buf_ as SheetTitleOptions | CustomBuilder) 8406 } 8407 const title_result: SheetTitleOptions | CustomBuilder | undefined|undefined = title_buf 8408 const shouldDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8409 let shouldDismiss_buf: ((sheetDismiss: SheetDismiss) => void) | undefined|undefined 8410 if ((RuntimeType.UNDEFINED) != (shouldDismiss_buf_runtimeType)) 8411 { 8412 shouldDismiss_buf = valueDeserializer.readCallback_SheetDismiss_Void() 8413 } 8414 const shouldDismiss_result: ((sheetDismiss: SheetDismiss) => void) | undefined|undefined = shouldDismiss_buf 8415 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8416 let onWillDismiss_buf: ((parameter: DismissSheetAction) => void) | undefined|undefined 8417 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 8418 { 8419 onWillDismiss_buf = valueDeserializer.readCallback_DismissSheetAction_Void() 8420 } 8421 const onWillDismiss_result: ((parameter: DismissSheetAction) => void) | undefined|undefined = onWillDismiss_buf 8422 const onWillSpringBackWhenDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8423 let onWillSpringBackWhenDismiss_buf: ((parameter: SpringBackAction) => void) | undefined|undefined 8424 if ((RuntimeType.UNDEFINED) != (onWillSpringBackWhenDismiss_buf_runtimeType)) 8425 { 8426 onWillSpringBackWhenDismiss_buf = valueDeserializer.readCallback_SpringBackAction_Void() 8427 } 8428 const onWillSpringBackWhenDismiss_result: ((parameter: SpringBackAction) => void) | undefined|undefined = onWillSpringBackWhenDismiss_buf 8429 const enableOutsideInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8430 let enableOutsideInteractive_buf: boolean | undefined|undefined 8431 if ((RuntimeType.UNDEFINED) != (enableOutsideInteractive_buf_runtimeType)) 8432 { 8433 enableOutsideInteractive_buf = valueDeserializer.readBoolean() 8434 } 8435 const enableOutsideInteractive_result: boolean | undefined|undefined = enableOutsideInteractive_buf 8436 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8437 let width_buf: Dimension | undefined|undefined 8438 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 8439 { 8440 width_buf = (valueDeserializer.readLength() as Dimension) 8441 } 8442 const width_result: Dimension | undefined|undefined = width_buf 8443 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8444 let borderWidth_buf: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 8445 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 8446 { 8447 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 8448 let borderWidth_buf_: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 8449 if (borderWidth_buf__selector == 0) { 8450 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 8451 } 8452 else if (borderWidth_buf__selector == 1) { 8453 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8454 let borderWidth_buf__u_top_buf: Length | undefined|undefined 8455 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 8456 { 8457 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 8458 } 8459 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 8460 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8461 let borderWidth_buf__u_right_buf: Length | undefined|undefined 8462 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 8463 { 8464 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 8465 } 8466 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 8467 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8468 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 8469 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 8470 { 8471 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 8472 } 8473 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 8474 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8475 let borderWidth_buf__u_left_buf: Length | undefined|undefined 8476 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 8477 { 8478 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 8479 } 8480 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 8481 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 8482 } 8483 else if (borderWidth_buf__selector == 2) { 8484 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 8485 } 8486 else { 8487 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 8488 } 8489 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 8490 } 8491 const borderWidth_result: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = borderWidth_buf 8492 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8493 let borderColor_buf: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 8494 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 8495 { 8496 const borderColor_buf__selector: number = valueDeserializer.readInt8() 8497 let borderColor_buf_: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 8498 if (borderColor_buf__selector == 0) { 8499 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 8500 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 8501 if (borderColor_buf__u_selector == 0) { 8502 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 8503 } 8504 else if (borderColor_buf__u_selector == 1) { 8505 borderColor_buf__u = (valueDeserializer.readNumber() as number) 8506 } 8507 else if (borderColor_buf__u_selector == 2) { 8508 borderColor_buf__u = (valueDeserializer.readString() as string) 8509 } 8510 else if (borderColor_buf__u_selector == 3) { 8511 borderColor_buf__u = valueDeserializer.readResource() 8512 } 8513 else { 8514 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 8515 } 8516 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 8517 } 8518 else if (borderColor_buf__selector == 1) { 8519 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8520 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 8521 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 8522 { 8523 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 8524 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 8525 if (borderColor_buf__u_top_buf__selector == 0) { 8526 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 8527 } 8528 else if (borderColor_buf__u_top_buf__selector == 1) { 8529 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 8530 } 8531 else if (borderColor_buf__u_top_buf__selector == 2) { 8532 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 8533 } 8534 else if (borderColor_buf__u_top_buf__selector == 3) { 8535 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 8536 } 8537 else { 8538 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 8539 } 8540 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 8541 } 8542 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 8543 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8544 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 8545 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 8546 { 8547 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 8548 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 8549 if (borderColor_buf__u_right_buf__selector == 0) { 8550 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 8551 } 8552 else if (borderColor_buf__u_right_buf__selector == 1) { 8553 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 8554 } 8555 else if (borderColor_buf__u_right_buf__selector == 2) { 8556 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 8557 } 8558 else if (borderColor_buf__u_right_buf__selector == 3) { 8559 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 8560 } 8561 else { 8562 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 8563 } 8564 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 8565 } 8566 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 8567 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8568 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 8569 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 8570 { 8571 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 8572 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 8573 if (borderColor_buf__u_bottom_buf__selector == 0) { 8574 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 8575 } 8576 else if (borderColor_buf__u_bottom_buf__selector == 1) { 8577 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 8578 } 8579 else if (borderColor_buf__u_bottom_buf__selector == 2) { 8580 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 8581 } 8582 else if (borderColor_buf__u_bottom_buf__selector == 3) { 8583 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 8584 } 8585 else { 8586 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 8587 } 8588 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 8589 } 8590 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 8591 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8592 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 8593 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 8594 { 8595 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 8596 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 8597 if (borderColor_buf__u_left_buf__selector == 0) { 8598 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 8599 } 8600 else if (borderColor_buf__u_left_buf__selector == 1) { 8601 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 8602 } 8603 else if (borderColor_buf__u_left_buf__selector == 2) { 8604 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 8605 } 8606 else if (borderColor_buf__u_left_buf__selector == 3) { 8607 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 8608 } 8609 else { 8610 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 8611 } 8612 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 8613 } 8614 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 8615 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 8616 } 8617 else if (borderColor_buf__selector == 2) { 8618 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 8619 } 8620 else { 8621 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 8622 } 8623 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 8624 } 8625 const borderColor_result: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined = borderColor_buf 8626 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8627 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 8628 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 8629 { 8630 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 8631 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 8632 if (borderStyle_buf__selector == 0) { 8633 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 8634 } 8635 else if (borderStyle_buf__selector == 1) { 8636 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8637 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 8638 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 8639 { 8640 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 8641 } 8642 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 8643 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8644 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 8645 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 8646 { 8647 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 8648 } 8649 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 8650 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8651 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 8652 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 8653 { 8654 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 8655 } 8656 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 8657 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8658 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 8659 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 8660 { 8661 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 8662 } 8663 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 8664 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 8665 } 8666 else { 8667 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 8668 } 8669 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 8670 } 8671 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 8672 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8673 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 8674 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 8675 { 8676 const shadow_buf__selector: number = valueDeserializer.readInt8() 8677 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 8678 if (shadow_buf__selector == 0) { 8679 shadow_buf_ = valueDeserializer.readShadowOptions() 8680 } 8681 else if (shadow_buf__selector == 1) { 8682 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 8683 } 8684 else { 8685 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 8686 } 8687 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 8688 } 8689 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 8690 const onHeightDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8691 let onHeightDidChange_buf: ((index: number) => void) | undefined|undefined 8692 if ((RuntimeType.UNDEFINED) != (onHeightDidChange_buf_runtimeType)) 8693 { 8694 onHeightDidChange_buf = valueDeserializer.readCallback_Number_Void() 8695 } 8696 const onHeightDidChange_result: ((index: number) => void) | undefined|undefined = onHeightDidChange_buf 8697 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8698 let mode_buf: SheetMode | undefined|undefined 8699 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 8700 { 8701 mode_buf = (valueDeserializer.readInt32() as SheetMode) 8702 } 8703 const mode_result: SheetMode | undefined|undefined = mode_buf 8704 const scrollSizeMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8705 let scrollSizeMode_buf: ScrollSizeMode | undefined|undefined 8706 if ((RuntimeType.UNDEFINED) != (scrollSizeMode_buf_runtimeType)) 8707 { 8708 scrollSizeMode_buf = (valueDeserializer.readInt32() as ScrollSizeMode) 8709 } 8710 const scrollSizeMode_result: ScrollSizeMode | undefined|undefined = scrollSizeMode_buf 8711 const onDetentsDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8712 let onDetentsDidChange_buf: ((index: number) => void) | undefined|undefined 8713 if ((RuntimeType.UNDEFINED) != (onDetentsDidChange_buf_runtimeType)) 8714 { 8715 onDetentsDidChange_buf = valueDeserializer.readCallback_Number_Void() 8716 } 8717 const onDetentsDidChange_result: ((index: number) => void) | undefined|undefined = onDetentsDidChange_buf 8718 const onWidthDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8719 let onWidthDidChange_buf: ((index: number) => void) | undefined|undefined 8720 if ((RuntimeType.UNDEFINED) != (onWidthDidChange_buf_runtimeType)) 8721 { 8722 onWidthDidChange_buf = valueDeserializer.readCallback_Number_Void() 8723 } 8724 const onWidthDidChange_result: ((index: number) => void) | undefined|undefined = onWidthDidChange_buf 8725 const onTypeDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8726 let onTypeDidChange_buf: ((parameter: SheetType) => void) | undefined|undefined 8727 if ((RuntimeType.UNDEFINED) != (onTypeDidChange_buf_runtimeType)) 8728 { 8729 onTypeDidChange_buf = valueDeserializer.readCallback_SheetType_Void() 8730 } 8731 const onTypeDidChange_result: ((parameter: SheetType) => void) | undefined|undefined = onTypeDidChange_buf 8732 const uiContext_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8733 let uiContext_buf: UIContext | undefined|undefined 8734 if ((RuntimeType.UNDEFINED) != (uiContext_buf_runtimeType)) 8735 { 8736 uiContext_buf = valueDeserializer.readUIContext() 8737 } 8738 const uiContext_result: UIContext | undefined|undefined = uiContext_buf 8739 const keyboardAvoidMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8740 let keyboardAvoidMode_buf: SheetKeyboardAvoidMode | undefined|undefined 8741 if ((RuntimeType.UNDEFINED) != (keyboardAvoidMode_buf_runtimeType)) 8742 { 8743 keyboardAvoidMode_buf = (valueDeserializer.readInt32() as SheetKeyboardAvoidMode) 8744 } 8745 const keyboardAvoidMode_result: SheetKeyboardAvoidMode | undefined|undefined = keyboardAvoidMode_buf 8746 let value: SheetOptions = ({backgroundColor: backgroundColor_result, onAppear: onAppear_result, onDisappear: onDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, height: height_result, dragBar: dragBar_result, maskColor: maskColor_result, detents: detents_result, blurStyle: blurStyle_result, showClose: showClose_result, preferType: preferType_result, title: title_result, shouldDismiss: shouldDismiss_result, onWillDismiss: onWillDismiss_result, onWillSpringBackWhenDismiss: onWillSpringBackWhenDismiss_result, enableOutsideInteractive: enableOutsideInteractive_result, width: width_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, onHeightDidChange: onHeightDidChange_result, mode: mode_result, scrollSizeMode: scrollSizeMode_result, onDetentsDidChange: onDetentsDidChange_result, onWidthDidChange: onWidthDidChange_result, onTypeDidChange: onTypeDidChange_result, uiContext: uiContext_result, keyboardAvoidMode: keyboardAvoidMode_result} as SheetOptions) 8747 return value 8748 } 8749 readContentCoverOptions(): ContentCoverOptions { 8750 let valueDeserializer: Deserializer = this 8751 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8752 let backgroundColor_buf: ResourceColor | undefined|undefined 8753 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 8754 { 8755 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 8756 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 8757 if (backgroundColor_buf__selector == 0) { 8758 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 8759 } 8760 else if (backgroundColor_buf__selector == 1) { 8761 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 8762 } 8763 else if (backgroundColor_buf__selector == 2) { 8764 backgroundColor_buf_ = (valueDeserializer.readString() as string) 8765 } 8766 else if (backgroundColor_buf__selector == 3) { 8767 backgroundColor_buf_ = valueDeserializer.readResource() 8768 } 8769 else { 8770 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 8771 } 8772 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 8773 } 8774 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 8775 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8776 let onAppear_buf: (() => void) | undefined|undefined 8777 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8778 { 8779 onAppear_buf = valueDeserializer.readCallback_Void() 8780 } 8781 const onAppear_result: (() => void) | undefined|undefined = onAppear_buf 8782 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8783 let onDisappear_buf: (() => void) | undefined|undefined 8784 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8785 { 8786 onDisappear_buf = valueDeserializer.readCallback_Void() 8787 } 8788 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 8789 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8790 let onWillAppear_buf: (() => void) | undefined|undefined 8791 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 8792 { 8793 onWillAppear_buf = valueDeserializer.readCallback_Void() 8794 } 8795 const onWillAppear_result: (() => void) | undefined|undefined = onWillAppear_buf 8796 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8797 let onWillDisappear_buf: (() => void) | undefined|undefined 8798 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 8799 { 8800 onWillDisappear_buf = valueDeserializer.readCallback_Void() 8801 } 8802 const onWillDisappear_result: (() => void) | undefined|undefined = onWillDisappear_buf 8803 const modalTransition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8804 let modalTransition_buf: ModalTransition | undefined|undefined 8805 if ((RuntimeType.UNDEFINED) != (modalTransition_buf_runtimeType)) 8806 { 8807 modalTransition_buf = (valueDeserializer.readInt32() as ModalTransition) 8808 } 8809 const modalTransition_result: ModalTransition | undefined|undefined = modalTransition_buf 8810 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8811 let onWillDismiss_buf: ((parameter: DismissContentCoverAction) => void) | undefined|undefined 8812 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 8813 { 8814 onWillDismiss_buf = valueDeserializer.readCallback_DismissContentCoverAction_Void() 8815 } 8816 const onWillDismiss_result: ((parameter: DismissContentCoverAction) => void) | undefined|undefined = onWillDismiss_buf 8817 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8818 let transition_buf: TransitionEffect | undefined|undefined 8819 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 8820 { 8821 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 8822 } 8823 const transition_result: TransitionEffect | undefined|undefined = transition_buf 8824 let value: ContentCoverOptions = ({backgroundColor: backgroundColor_result, onAppear: onAppear_result, onDisappear: onDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, modalTransition: modalTransition_result, onWillDismiss: onWillDismiss_result, transition: transition_result} as ContentCoverOptions) 8825 return value 8826 } 8827 readContextMenuOptions(): ContextMenuOptions { 8828 let valueDeserializer: Deserializer = this 8829 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8830 let offset_buf: Position | undefined|undefined 8831 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 8832 { 8833 offset_buf = valueDeserializer.readPosition() 8834 } 8835 const offset_result: Position | undefined|undefined = offset_buf 8836 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8837 let placement_buf: Placement | undefined|undefined 8838 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 8839 { 8840 placement_buf = (valueDeserializer.readInt32() as Placement) 8841 } 8842 const placement_result: Placement | undefined|undefined = placement_buf 8843 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8844 let enableArrow_buf: boolean | undefined|undefined 8845 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 8846 { 8847 enableArrow_buf = valueDeserializer.readBoolean() 8848 } 8849 const enableArrow_result: boolean | undefined|undefined = enableArrow_buf 8850 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8851 let arrowOffset_buf: Length | undefined|undefined 8852 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 8853 { 8854 arrowOffset_buf = (valueDeserializer.readLength() as Length) 8855 } 8856 const arrowOffset_result: Length | undefined|undefined = arrowOffset_buf 8857 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8858 let preview_buf: MenuPreviewMode | CustomBuilder | undefined|undefined 8859 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 8860 { 8861 const preview_buf__selector: number = valueDeserializer.readInt8() 8862 let preview_buf_: MenuPreviewMode | CustomBuilder | undefined|undefined 8863 if (preview_buf__selector == 0) { 8864 preview_buf_ = (valueDeserializer.readInt32() as MenuPreviewMode) 8865 } 8866 else if (preview_buf__selector == 1) { 8867 preview_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 8868 } 8869 else { 8870 throw new Error("One of the branches for preview_buf_ has to be chosen through deserialisation.") 8871 } 8872 preview_buf = (preview_buf_ as MenuPreviewMode | CustomBuilder) 8873 } 8874 const preview_result: MenuPreviewMode | CustomBuilder | undefined|undefined = preview_buf 8875 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8876 let borderRadius_buf: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 8877 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 8878 { 8879 const borderRadius_buf__selector: number = valueDeserializer.readInt8() 8880 let borderRadius_buf_: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 8881 if (borderRadius_buf__selector == 0) { 8882 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 8883 } 8884 else if (borderRadius_buf__selector == 1) { 8885 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8886 let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined 8887 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 8888 { 8889 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 8890 } 8891 const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf 8892 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8893 let borderRadius_buf__u_topRight_buf: Length | undefined|undefined 8894 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 8895 { 8896 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 8897 } 8898 const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf 8899 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8900 let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 8901 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 8902 { 8903 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 8904 } 8905 const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf 8906 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8907 let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined 8908 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 8909 { 8910 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 8911 } 8912 const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf 8913 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 8914 } 8915 else if (borderRadius_buf__selector == 2) { 8916 borderRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 8917 } 8918 else { 8919 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 8920 } 8921 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) 8922 } 8923 const borderRadius_result: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = borderRadius_buf 8924 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8925 let onAppear_buf: (() => void) | undefined|undefined 8926 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8927 { 8928 onAppear_buf = valueDeserializer.readCallback_Void() 8929 } 8930 const onAppear_result: (() => void) | undefined|undefined = onAppear_buf 8931 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8932 let onDisappear_buf: (() => void) | undefined|undefined 8933 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8934 { 8935 onDisappear_buf = valueDeserializer.readCallback_Void() 8936 } 8937 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 8938 const aboutToAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8939 let aboutToAppear_buf: (() => void) | undefined|undefined 8940 if ((RuntimeType.UNDEFINED) != (aboutToAppear_buf_runtimeType)) 8941 { 8942 aboutToAppear_buf = valueDeserializer.readCallback_Void() 8943 } 8944 const aboutToAppear_result: (() => void) | undefined|undefined = aboutToAppear_buf 8945 const aboutToDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8946 let aboutToDisappear_buf: (() => void) | undefined|undefined 8947 if ((RuntimeType.UNDEFINED) != (aboutToDisappear_buf_runtimeType)) 8948 { 8949 aboutToDisappear_buf = valueDeserializer.readCallback_Void() 8950 } 8951 const aboutToDisappear_result: (() => void) | undefined|undefined = aboutToDisappear_buf 8952 const layoutRegionMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8953 let layoutRegionMargin_buf: Margin | undefined|undefined 8954 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf_runtimeType)) 8955 { 8956 const layoutRegionMargin_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8957 let layoutRegionMargin_buf__top_buf: Length | undefined|undefined 8958 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__top_buf_runtimeType)) 8959 { 8960 layoutRegionMargin_buf__top_buf = (valueDeserializer.readLength() as Length) 8961 } 8962 const layoutRegionMargin_buf__top: undefined | Length = layoutRegionMargin_buf__top_buf 8963 const layoutRegionMargin_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8964 let layoutRegionMargin_buf__right_buf: Length | undefined|undefined 8965 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__right_buf_runtimeType)) 8966 { 8967 layoutRegionMargin_buf__right_buf = (valueDeserializer.readLength() as Length) 8968 } 8969 const layoutRegionMargin_buf__right: undefined | Length = layoutRegionMargin_buf__right_buf 8970 const layoutRegionMargin_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8971 let layoutRegionMargin_buf__bottom_buf: Length | undefined|undefined 8972 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__bottom_buf_runtimeType)) 8973 { 8974 layoutRegionMargin_buf__bottom_buf = (valueDeserializer.readLength() as Length) 8975 } 8976 const layoutRegionMargin_buf__bottom: undefined | Length = layoutRegionMargin_buf__bottom_buf 8977 const layoutRegionMargin_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8978 let layoutRegionMargin_buf__left_buf: Length | undefined|undefined 8979 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__left_buf_runtimeType)) 8980 { 8981 layoutRegionMargin_buf__left_buf = (valueDeserializer.readLength() as Length) 8982 } 8983 const layoutRegionMargin_buf__left: undefined | Length = layoutRegionMargin_buf__left_buf 8984 layoutRegionMargin_buf = ({top: layoutRegionMargin_buf__top, right: layoutRegionMargin_buf__right, bottom: layoutRegionMargin_buf__bottom, left: layoutRegionMargin_buf__left} as Padding) 8985 } 8986 const layoutRegionMargin_result: Margin | undefined|undefined = layoutRegionMargin_buf 8987 const previewAnimationOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8988 let previewAnimationOptions_buf: ContextMenuAnimationOptions | undefined|undefined 8989 if ((RuntimeType.UNDEFINED) != (previewAnimationOptions_buf_runtimeType)) 8990 { 8991 previewAnimationOptions_buf = valueDeserializer.readContextMenuAnimationOptions() 8992 } 8993 const previewAnimationOptions_result: ContextMenuAnimationOptions | undefined|undefined = previewAnimationOptions_buf 8994 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8995 let backgroundColor_buf: ResourceColor | undefined|undefined 8996 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 8997 { 8998 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 8999 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 9000 if (backgroundColor_buf__selector == 0) { 9001 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 9002 } 9003 else if (backgroundColor_buf__selector == 1) { 9004 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 9005 } 9006 else if (backgroundColor_buf__selector == 2) { 9007 backgroundColor_buf_ = (valueDeserializer.readString() as string) 9008 } 9009 else if (backgroundColor_buf__selector == 3) { 9010 backgroundColor_buf_ = valueDeserializer.readResource() 9011 } 9012 else { 9013 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 9014 } 9015 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 9016 } 9017 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 9018 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9019 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 9020 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9021 { 9022 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9023 } 9024 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 9025 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9026 let transition_buf: TransitionEffect | undefined|undefined 9027 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9028 { 9029 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9030 } 9031 const transition_result: TransitionEffect | undefined|undefined = transition_buf 9032 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9033 let enableHoverMode_buf: boolean | undefined|undefined 9034 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9035 { 9036 enableHoverMode_buf = valueDeserializer.readBoolean() 9037 } 9038 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 9039 let value: ContextMenuOptions = ({offset: offset_result, placement: placement_result, enableArrow: enableArrow_result, arrowOffset: arrowOffset_result, preview: preview_result, borderRadius: borderRadius_result, onAppear: onAppear_result, onDisappear: onDisappear_result, aboutToAppear: aboutToAppear_result, aboutToDisappear: aboutToDisappear_result, layoutRegionMargin: layoutRegionMargin_result, previewAnimationOptions: previewAnimationOptions_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, transition: transition_result, enableHoverMode: enableHoverMode_result} as ContextMenuOptions) 9040 return value 9041 } 9042 readMenuOptions(): MenuOptions { 9043 let valueDeserializer: Deserializer = this 9044 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9045 let offset_buf: Position | undefined|undefined 9046 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9047 { 9048 offset_buf = valueDeserializer.readPosition() 9049 } 9050 const offset_result: Position | undefined|undefined = offset_buf 9051 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9052 let placement_buf: Placement | undefined|undefined 9053 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9054 { 9055 placement_buf = (valueDeserializer.readInt32() as Placement) 9056 } 9057 const placement_result: Placement | undefined|undefined = placement_buf 9058 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9059 let enableArrow_buf: boolean | undefined|undefined 9060 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9061 { 9062 enableArrow_buf = valueDeserializer.readBoolean() 9063 } 9064 const enableArrow_result: boolean | undefined|undefined = enableArrow_buf 9065 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9066 let arrowOffset_buf: Length | undefined|undefined 9067 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9068 { 9069 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9070 } 9071 const arrowOffset_result: Length | undefined|undefined = arrowOffset_buf 9072 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9073 let preview_buf: MenuPreviewMode | CustomBuilder | undefined|undefined 9074 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 9075 { 9076 const preview_buf__selector: number = valueDeserializer.readInt8() 9077 let preview_buf_: MenuPreviewMode | CustomBuilder | undefined|undefined 9078 if (preview_buf__selector == 0) { 9079 preview_buf_ = (valueDeserializer.readInt32() as MenuPreviewMode) 9080 } 9081 else if (preview_buf__selector == 1) { 9082 preview_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 9083 } 9084 else { 9085 throw new Error("One of the branches for preview_buf_ has to be chosen through deserialisation.") 9086 } 9087 preview_buf = (preview_buf_ as MenuPreviewMode | CustomBuilder) 9088 } 9089 const preview_result: MenuPreviewMode | CustomBuilder | undefined|undefined = preview_buf 9090 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9091 let borderRadius_buf: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 9092 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 9093 { 9094 const borderRadius_buf__selector: number = valueDeserializer.readInt8() 9095 let borderRadius_buf_: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 9096 if (borderRadius_buf__selector == 0) { 9097 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 9098 } 9099 else if (borderRadius_buf__selector == 1) { 9100 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9101 let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined 9102 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 9103 { 9104 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 9105 } 9106 const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf 9107 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9108 let borderRadius_buf__u_topRight_buf: Length | undefined|undefined 9109 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 9110 { 9111 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 9112 } 9113 const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf 9114 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9115 let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 9116 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 9117 { 9118 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 9119 } 9120 const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf 9121 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9122 let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined 9123 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 9124 { 9125 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 9126 } 9127 const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf 9128 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 9129 } 9130 else if (borderRadius_buf__selector == 2) { 9131 borderRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 9132 } 9133 else { 9134 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 9135 } 9136 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) 9137 } 9138 const borderRadius_result: Length | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = borderRadius_buf 9139 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9140 let onAppear_buf: (() => void) | undefined|undefined 9141 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 9142 { 9143 onAppear_buf = valueDeserializer.readCallback_Void() 9144 } 9145 const onAppear_result: (() => void) | undefined|undefined = onAppear_buf 9146 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9147 let onDisappear_buf: (() => void) | undefined|undefined 9148 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 9149 { 9150 onDisappear_buf = valueDeserializer.readCallback_Void() 9151 } 9152 const onDisappear_result: (() => void) | undefined|undefined = onDisappear_buf 9153 const aboutToAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9154 let aboutToAppear_buf: (() => void) | undefined|undefined 9155 if ((RuntimeType.UNDEFINED) != (aboutToAppear_buf_runtimeType)) 9156 { 9157 aboutToAppear_buf = valueDeserializer.readCallback_Void() 9158 } 9159 const aboutToAppear_result: (() => void) | undefined|undefined = aboutToAppear_buf 9160 const aboutToDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9161 let aboutToDisappear_buf: (() => void) | undefined|undefined 9162 if ((RuntimeType.UNDEFINED) != (aboutToDisappear_buf_runtimeType)) 9163 { 9164 aboutToDisappear_buf = valueDeserializer.readCallback_Void() 9165 } 9166 const aboutToDisappear_result: (() => void) | undefined|undefined = aboutToDisappear_buf 9167 const layoutRegionMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9168 let layoutRegionMargin_buf: Margin | undefined|undefined 9169 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf_runtimeType)) 9170 { 9171 const layoutRegionMargin_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9172 let layoutRegionMargin_buf__top_buf: Length | undefined|undefined 9173 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__top_buf_runtimeType)) 9174 { 9175 layoutRegionMargin_buf__top_buf = (valueDeserializer.readLength() as Length) 9176 } 9177 const layoutRegionMargin_buf__top: undefined | Length = layoutRegionMargin_buf__top_buf 9178 const layoutRegionMargin_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9179 let layoutRegionMargin_buf__right_buf: Length | undefined|undefined 9180 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__right_buf_runtimeType)) 9181 { 9182 layoutRegionMargin_buf__right_buf = (valueDeserializer.readLength() as Length) 9183 } 9184 const layoutRegionMargin_buf__right: undefined | Length = layoutRegionMargin_buf__right_buf 9185 const layoutRegionMargin_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9186 let layoutRegionMargin_buf__bottom_buf: Length | undefined|undefined 9187 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__bottom_buf_runtimeType)) 9188 { 9189 layoutRegionMargin_buf__bottom_buf = (valueDeserializer.readLength() as Length) 9190 } 9191 const layoutRegionMargin_buf__bottom: undefined | Length = layoutRegionMargin_buf__bottom_buf 9192 const layoutRegionMargin_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9193 let layoutRegionMargin_buf__left_buf: Length | undefined|undefined 9194 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__left_buf_runtimeType)) 9195 { 9196 layoutRegionMargin_buf__left_buf = (valueDeserializer.readLength() as Length) 9197 } 9198 const layoutRegionMargin_buf__left: undefined | Length = layoutRegionMargin_buf__left_buf 9199 layoutRegionMargin_buf = ({top: layoutRegionMargin_buf__top, right: layoutRegionMargin_buf__right, bottom: layoutRegionMargin_buf__bottom, left: layoutRegionMargin_buf__left} as Padding) 9200 } 9201 const layoutRegionMargin_result: Margin | undefined|undefined = layoutRegionMargin_buf 9202 const previewAnimationOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9203 let previewAnimationOptions_buf: ContextMenuAnimationOptions | undefined|undefined 9204 if ((RuntimeType.UNDEFINED) != (previewAnimationOptions_buf_runtimeType)) 9205 { 9206 previewAnimationOptions_buf = valueDeserializer.readContextMenuAnimationOptions() 9207 } 9208 const previewAnimationOptions_result: ContextMenuAnimationOptions | undefined|undefined = previewAnimationOptions_buf 9209 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9210 let backgroundColor_buf: ResourceColor | undefined|undefined 9211 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 9212 { 9213 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 9214 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 9215 if (backgroundColor_buf__selector == 0) { 9216 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 9217 } 9218 else if (backgroundColor_buf__selector == 1) { 9219 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 9220 } 9221 else if (backgroundColor_buf__selector == 2) { 9222 backgroundColor_buf_ = (valueDeserializer.readString() as string) 9223 } 9224 else if (backgroundColor_buf__selector == 3) { 9225 backgroundColor_buf_ = valueDeserializer.readResource() 9226 } 9227 else { 9228 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 9229 } 9230 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 9231 } 9232 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 9233 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9234 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 9235 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9236 { 9237 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9238 } 9239 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 9240 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9241 let transition_buf: TransitionEffect | undefined|undefined 9242 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9243 { 9244 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9245 } 9246 const transition_result: TransitionEffect | undefined|undefined = transition_buf 9247 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9248 let enableHoverMode_buf: boolean | undefined|undefined 9249 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9250 { 9251 enableHoverMode_buf = valueDeserializer.readBoolean() 9252 } 9253 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 9254 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9255 let title_buf: ResourceStr | undefined|undefined 9256 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 9257 { 9258 const title_buf__selector: number = valueDeserializer.readInt8() 9259 let title_buf_: string | Resource | undefined|undefined 9260 if (title_buf__selector == 0) { 9261 title_buf_ = (valueDeserializer.readString() as string) 9262 } 9263 else if (title_buf__selector == 1) { 9264 title_buf_ = valueDeserializer.readResource() 9265 } 9266 else { 9267 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 9268 } 9269 title_buf = (title_buf_ as string | Resource) 9270 } 9271 const title_result: ResourceStr | undefined|undefined = title_buf 9272 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9273 let showInSubWindow_buf: boolean | undefined|undefined 9274 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9275 { 9276 showInSubWindow_buf = valueDeserializer.readBoolean() 9277 } 9278 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 9279 let value: MenuOptions = ({offset: offset_result, placement: placement_result, enableArrow: enableArrow_result, arrowOffset: arrowOffset_result, preview: preview_result, borderRadius: borderRadius_result, onAppear: onAppear_result, onDisappear: onDisappear_result, aboutToAppear: aboutToAppear_result, aboutToDisappear: aboutToDisappear_result, layoutRegionMargin: layoutRegionMargin_result, previewAnimationOptions: previewAnimationOptions_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, transition: transition_result, enableHoverMode: enableHoverMode_result, title: title_result, showInSubWindow: showInSubWindow_result} as MenuOptions) 9280 return value 9281 } 9282 readCustomPopupOptions(): CustomPopupOptions { 9283 let valueDeserializer: Deserializer = this 9284 const builder_result: CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 9285 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9286 let placement_buf: Placement | undefined|undefined 9287 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9288 { 9289 placement_buf = (valueDeserializer.readInt32() as Placement) 9290 } 9291 const placement_result: Placement | undefined|undefined = placement_buf 9292 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9293 let maskColor_buf: Color | string | Resource | number | undefined|undefined 9294 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 9295 { 9296 const maskColor_buf__selector: number = valueDeserializer.readInt8() 9297 let maskColor_buf_: Color | string | Resource | number | undefined|undefined 9298 if (maskColor_buf__selector == 0) { 9299 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 9300 } 9301 else if (maskColor_buf__selector == 1) { 9302 maskColor_buf_ = (valueDeserializer.readString() as string) 9303 } 9304 else if (maskColor_buf__selector == 2) { 9305 maskColor_buf_ = valueDeserializer.readResource() 9306 } 9307 else if (maskColor_buf__selector == 3) { 9308 maskColor_buf_ = (valueDeserializer.readNumber() as number) 9309 } 9310 else { 9311 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 9312 } 9313 maskColor_buf = (maskColor_buf_ as Color | string | Resource | number) 9314 } 9315 const maskColor_result: Color | string | Resource | number | undefined|undefined = maskColor_buf 9316 const popupColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9317 let popupColor_buf: Color | string | Resource | number | undefined|undefined 9318 if ((RuntimeType.UNDEFINED) != (popupColor_buf_runtimeType)) 9319 { 9320 const popupColor_buf__selector: number = valueDeserializer.readInt8() 9321 let popupColor_buf_: Color | string | Resource | number | undefined|undefined 9322 if (popupColor_buf__selector == 0) { 9323 popupColor_buf_ = (valueDeserializer.readInt32() as Color) 9324 } 9325 else if (popupColor_buf__selector == 1) { 9326 popupColor_buf_ = (valueDeserializer.readString() as string) 9327 } 9328 else if (popupColor_buf__selector == 2) { 9329 popupColor_buf_ = valueDeserializer.readResource() 9330 } 9331 else if (popupColor_buf__selector == 3) { 9332 popupColor_buf_ = (valueDeserializer.readNumber() as number) 9333 } 9334 else { 9335 throw new Error("One of the branches for popupColor_buf_ has to be chosen through deserialisation.") 9336 } 9337 popupColor_buf = (popupColor_buf_ as Color | string | Resource | number) 9338 } 9339 const popupColor_result: Color | string | Resource | number | undefined|undefined = popupColor_buf 9340 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9341 let enableArrow_buf: boolean | undefined|undefined 9342 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9343 { 9344 enableArrow_buf = valueDeserializer.readBoolean() 9345 } 9346 const enableArrow_result: boolean | undefined|undefined = enableArrow_buf 9347 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9348 let autoCancel_buf: boolean | undefined|undefined 9349 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 9350 { 9351 autoCancel_buf = valueDeserializer.readBoolean() 9352 } 9353 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 9354 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9355 let onStateChange_buf: ((event: { isVisible: boolean }) => void) | undefined|undefined 9356 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 9357 { 9358 onStateChange_buf = valueDeserializer.readCallback_Literal_Boolean_isVisible_Void() 9359 } 9360 const onStateChange_result: ((event: { isVisible: boolean }) => void) | undefined|undefined = onStateChange_buf 9361 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9362 let arrowOffset_buf: Length | undefined|undefined 9363 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9364 { 9365 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9366 } 9367 const arrowOffset_result: Length | undefined|undefined = arrowOffset_buf 9368 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9369 let showInSubWindow_buf: boolean | undefined|undefined 9370 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9371 { 9372 showInSubWindow_buf = valueDeserializer.readBoolean() 9373 } 9374 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 9375 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9376 let mask_buf: boolean | { color: ResourceColor } | undefined|undefined 9377 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 9378 { 9379 const mask_buf__selector: number = valueDeserializer.readInt8() 9380 let mask_buf_: boolean | { color: ResourceColor } | undefined|undefined 9381 if (mask_buf__selector == 0) { 9382 mask_buf_ = valueDeserializer.readBoolean() 9383 } 9384 else if (mask_buf__selector == 1) { 9385 const mask_buf__u_color_buf_selector: number = valueDeserializer.readInt8() 9386 let mask_buf__u_color_buf: Color | number | string | Resource | undefined|undefined 9387 if (mask_buf__u_color_buf_selector == 0) { 9388 mask_buf__u_color_buf = (valueDeserializer.readInt32() as Color) 9389 } 9390 else if (mask_buf__u_color_buf_selector == 1) { 9391 mask_buf__u_color_buf = (valueDeserializer.readNumber() as number) 9392 } 9393 else if (mask_buf__u_color_buf_selector == 2) { 9394 mask_buf__u_color_buf = (valueDeserializer.readString() as string) 9395 } 9396 else if (mask_buf__u_color_buf_selector == 3) { 9397 mask_buf__u_color_buf = valueDeserializer.readResource() 9398 } 9399 else { 9400 throw new Error("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation.") 9401 } 9402 const mask_buf__u_color: ResourceColor = (mask_buf__u_color_buf as Color | number | string | Resource) 9403 mask_buf_ = ({color: mask_buf__u_color} as { color: ResourceColor }) 9404 } 9405 else { 9406 throw new Error("One of the branches for mask_buf_ has to be chosen through deserialisation.") 9407 } 9408 mask_buf = (mask_buf_ as boolean | { color: ResourceColor }) 9409 } 9410 const mask_result: boolean | { color: ResourceColor } | undefined|undefined = mask_buf 9411 const targetSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9412 let targetSpace_buf: Length | undefined|undefined 9413 if ((RuntimeType.UNDEFINED) != (targetSpace_buf_runtimeType)) 9414 { 9415 targetSpace_buf = (valueDeserializer.readLength() as Length) 9416 } 9417 const targetSpace_result: Length | undefined|undefined = targetSpace_buf 9418 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9419 let offset_buf: Position | undefined|undefined 9420 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9421 { 9422 offset_buf = valueDeserializer.readPosition() 9423 } 9424 const offset_result: Position | undefined|undefined = offset_buf 9425 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9426 let width_buf: Dimension | undefined|undefined 9427 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 9428 { 9429 width_buf = (valueDeserializer.readLength() as Dimension) 9430 } 9431 const width_result: Dimension | undefined|undefined = width_buf 9432 const arrowPointPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9433 let arrowPointPosition_buf: ArrowPointPosition | undefined|undefined 9434 if ((RuntimeType.UNDEFINED) != (arrowPointPosition_buf_runtimeType)) 9435 { 9436 arrowPointPosition_buf = Object.values(ArrowPointPosition)[valueDeserializer.readInt32()] 9437 } 9438 const arrowPointPosition_result: ArrowPointPosition | undefined|undefined = arrowPointPosition_buf 9439 const arrowWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9440 let arrowWidth_buf: Dimension | undefined|undefined 9441 if ((RuntimeType.UNDEFINED) != (arrowWidth_buf_runtimeType)) 9442 { 9443 arrowWidth_buf = (valueDeserializer.readLength() as Dimension) 9444 } 9445 const arrowWidth_result: Dimension | undefined|undefined = arrowWidth_buf 9446 const arrowHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9447 let arrowHeight_buf: Dimension | undefined|undefined 9448 if ((RuntimeType.UNDEFINED) != (arrowHeight_buf_runtimeType)) 9449 { 9450 arrowHeight_buf = (valueDeserializer.readLength() as Dimension) 9451 } 9452 const arrowHeight_result: Dimension | undefined|undefined = arrowHeight_buf 9453 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9454 let radius_buf: Dimension | undefined|undefined 9455 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 9456 { 9457 radius_buf = (valueDeserializer.readLength() as Dimension) 9458 } 9459 const radius_result: Dimension | undefined|undefined = radius_buf 9460 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9461 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 9462 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 9463 { 9464 const shadow_buf__selector: number = valueDeserializer.readInt8() 9465 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 9466 if (shadow_buf__selector == 0) { 9467 shadow_buf_ = valueDeserializer.readShadowOptions() 9468 } 9469 else if (shadow_buf__selector == 1) { 9470 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 9471 } 9472 else { 9473 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 9474 } 9475 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 9476 } 9477 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 9478 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9479 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 9480 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9481 { 9482 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9483 } 9484 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 9485 const focusable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9486 let focusable_buf: boolean | undefined|undefined 9487 if ((RuntimeType.UNDEFINED) != (focusable_buf_runtimeType)) 9488 { 9489 focusable_buf = valueDeserializer.readBoolean() 9490 } 9491 const focusable_result: boolean | undefined|undefined = focusable_buf 9492 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9493 let transition_buf: TransitionEffect | undefined|undefined 9494 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9495 { 9496 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9497 } 9498 const transition_result: TransitionEffect | undefined|undefined = transition_buf 9499 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9500 let onWillDismiss_buf: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined 9501 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 9502 { 9503 const onWillDismiss_buf__selector: number = valueDeserializer.readInt8() 9504 let onWillDismiss_buf_: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined 9505 if (onWillDismiss_buf__selector == 0) { 9506 onWillDismiss_buf_ = valueDeserializer.readBoolean() 9507 } 9508 else if (onWillDismiss_buf__selector == 1) { 9509 onWillDismiss_buf_ = valueDeserializer.readCallback_DismissPopupAction_Void() 9510 } 9511 else { 9512 throw new Error("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation.") 9513 } 9514 onWillDismiss_buf = (onWillDismiss_buf_ as boolean | ((parameter: DismissPopupAction) => void)) 9515 } 9516 const onWillDismiss_result: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined = onWillDismiss_buf 9517 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9518 let enableHoverMode_buf: boolean | undefined|undefined 9519 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9520 { 9521 enableHoverMode_buf = valueDeserializer.readBoolean() 9522 } 9523 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 9524 const followTransformOfTarget_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9525 let followTransformOfTarget_buf: boolean | undefined|undefined 9526 if ((RuntimeType.UNDEFINED) != (followTransformOfTarget_buf_runtimeType)) 9527 { 9528 followTransformOfTarget_buf = valueDeserializer.readBoolean() 9529 } 9530 const followTransformOfTarget_result: boolean | undefined|undefined = followTransformOfTarget_buf 9531 let value: CustomPopupOptions = ({builder: builder_result, placement: placement_result, maskColor: maskColor_result, popupColor: popupColor_result, enableArrow: enableArrow_result, autoCancel: autoCancel_result, onStateChange: onStateChange_result, arrowOffset: arrowOffset_result, showInSubWindow: showInSubWindow_result, mask: mask_result, targetSpace: targetSpace_result, offset: offset_result, width: width_result, arrowPointPosition: arrowPointPosition_result, arrowWidth: arrowWidth_result, arrowHeight: arrowHeight_result, radius: radius_result, shadow: shadow_result, backgroundBlurStyle: backgroundBlurStyle_result, focusable: focusable_result, transition: transition_result, onWillDismiss: onWillDismiss_result, enableHoverMode: enableHoverMode_result, followTransformOfTarget: followTransformOfTarget_result} as CustomPopupOptions) 9532 return value 9533 } 9534 readPopupOptions(): PopupOptions { 9535 let valueDeserializer: Deserializer = this 9536 const message_result: string = (valueDeserializer.readString() as string) 9537 const placementOnTop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9538 let placementOnTop_buf: boolean | undefined|undefined 9539 if ((RuntimeType.UNDEFINED) != (placementOnTop_buf_runtimeType)) 9540 { 9541 placementOnTop_buf = valueDeserializer.readBoolean() 9542 } 9543 const placementOnTop_result: boolean | undefined|undefined = placementOnTop_buf 9544 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9545 let placement_buf: Placement | undefined|undefined 9546 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9547 { 9548 placement_buf = (valueDeserializer.readInt32() as Placement) 9549 } 9550 const placement_result: Placement | undefined|undefined = placement_buf 9551 const primaryButton_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9552 let primaryButton_buf: { value: string, action: (() => void) } | undefined|undefined 9553 if ((RuntimeType.UNDEFINED) != (primaryButton_buf_runtimeType)) 9554 { 9555 const primaryButton_buf__value: string = (valueDeserializer.readString() as string) 9556 const primaryButton_buf__action: (() => void) = valueDeserializer.readCallback_Void() 9557 primaryButton_buf = ({value: primaryButton_buf__value, action: primaryButton_buf__action} as { value: string, action: (() => void) }) 9558 } 9559 const primaryButton_result: { value: string, action: (() => void) } | undefined|undefined = primaryButton_buf 9560 const secondaryButton_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9561 let secondaryButton_buf: { value: string, action: (() => void) } | undefined|undefined 9562 if ((RuntimeType.UNDEFINED) != (secondaryButton_buf_runtimeType)) 9563 { 9564 const secondaryButton_buf__value: string = (valueDeserializer.readString() as string) 9565 const secondaryButton_buf__action: (() => void) = valueDeserializer.readCallback_Void() 9566 secondaryButton_buf = ({value: secondaryButton_buf__value, action: secondaryButton_buf__action} as { value: string, action: (() => void) }) 9567 } 9568 const secondaryButton_result: { value: string, action: (() => void) } | undefined|undefined = secondaryButton_buf 9569 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9570 let onStateChange_buf: ((event: { isVisible: boolean }) => void) | undefined|undefined 9571 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 9572 { 9573 onStateChange_buf = valueDeserializer.readCallback_Literal_Boolean_isVisible_Void() 9574 } 9575 const onStateChange_result: ((event: { isVisible: boolean }) => void) | undefined|undefined = onStateChange_buf 9576 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9577 let arrowOffset_buf: Length | undefined|undefined 9578 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9579 { 9580 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9581 } 9582 const arrowOffset_result: Length | undefined|undefined = arrowOffset_buf 9583 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9584 let showInSubWindow_buf: boolean | undefined|undefined 9585 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9586 { 9587 showInSubWindow_buf = valueDeserializer.readBoolean() 9588 } 9589 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 9590 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9591 let mask_buf: boolean | { color: ResourceColor } | undefined|undefined 9592 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 9593 { 9594 const mask_buf__selector: number = valueDeserializer.readInt8() 9595 let mask_buf_: boolean | { color: ResourceColor } | undefined|undefined 9596 if (mask_buf__selector == 0) { 9597 mask_buf_ = valueDeserializer.readBoolean() 9598 } 9599 else if (mask_buf__selector == 1) { 9600 const mask_buf__u_color_buf_selector: number = valueDeserializer.readInt8() 9601 let mask_buf__u_color_buf: Color | number | string | Resource | undefined|undefined 9602 if (mask_buf__u_color_buf_selector == 0) { 9603 mask_buf__u_color_buf = (valueDeserializer.readInt32() as Color) 9604 } 9605 else if (mask_buf__u_color_buf_selector == 1) { 9606 mask_buf__u_color_buf = (valueDeserializer.readNumber() as number) 9607 } 9608 else if (mask_buf__u_color_buf_selector == 2) { 9609 mask_buf__u_color_buf = (valueDeserializer.readString() as string) 9610 } 9611 else if (mask_buf__u_color_buf_selector == 3) { 9612 mask_buf__u_color_buf = valueDeserializer.readResource() 9613 } 9614 else { 9615 throw new Error("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation.") 9616 } 9617 const mask_buf__u_color: ResourceColor = (mask_buf__u_color_buf as Color | number | string | Resource) 9618 mask_buf_ = ({color: mask_buf__u_color} as { color: ResourceColor }) 9619 } 9620 else { 9621 throw new Error("One of the branches for mask_buf_ has to be chosen through deserialisation.") 9622 } 9623 mask_buf = (mask_buf_ as boolean | { color: ResourceColor }) 9624 } 9625 const mask_result: boolean | { color: ResourceColor } | undefined|undefined = mask_buf 9626 const messageOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9627 let messageOptions_buf: PopupMessageOptions | undefined|undefined 9628 if ((RuntimeType.UNDEFINED) != (messageOptions_buf_runtimeType)) 9629 { 9630 messageOptions_buf = valueDeserializer.readPopupMessageOptions() 9631 } 9632 const messageOptions_result: PopupMessageOptions | undefined|undefined = messageOptions_buf 9633 const targetSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9634 let targetSpace_buf: Length | undefined|undefined 9635 if ((RuntimeType.UNDEFINED) != (targetSpace_buf_runtimeType)) 9636 { 9637 targetSpace_buf = (valueDeserializer.readLength() as Length) 9638 } 9639 const targetSpace_result: Length | undefined|undefined = targetSpace_buf 9640 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9641 let enableArrow_buf: boolean | undefined|undefined 9642 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9643 { 9644 enableArrow_buf = valueDeserializer.readBoolean() 9645 } 9646 const enableArrow_result: boolean | undefined|undefined = enableArrow_buf 9647 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9648 let offset_buf: Position | undefined|undefined 9649 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9650 { 9651 offset_buf = valueDeserializer.readPosition() 9652 } 9653 const offset_result: Position | undefined|undefined = offset_buf 9654 const popupColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9655 let popupColor_buf: Color | string | Resource | number | undefined|undefined 9656 if ((RuntimeType.UNDEFINED) != (popupColor_buf_runtimeType)) 9657 { 9658 const popupColor_buf__selector: number = valueDeserializer.readInt8() 9659 let popupColor_buf_: Color | string | Resource | number | undefined|undefined 9660 if (popupColor_buf__selector == 0) { 9661 popupColor_buf_ = (valueDeserializer.readInt32() as Color) 9662 } 9663 else if (popupColor_buf__selector == 1) { 9664 popupColor_buf_ = (valueDeserializer.readString() as string) 9665 } 9666 else if (popupColor_buf__selector == 2) { 9667 popupColor_buf_ = valueDeserializer.readResource() 9668 } 9669 else if (popupColor_buf__selector == 3) { 9670 popupColor_buf_ = (valueDeserializer.readNumber() as number) 9671 } 9672 else { 9673 throw new Error("One of the branches for popupColor_buf_ has to be chosen through deserialisation.") 9674 } 9675 popupColor_buf = (popupColor_buf_ as Color | string | Resource | number) 9676 } 9677 const popupColor_result: Color | string | Resource | number | undefined|undefined = popupColor_buf 9678 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9679 let autoCancel_buf: boolean | undefined|undefined 9680 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 9681 { 9682 autoCancel_buf = valueDeserializer.readBoolean() 9683 } 9684 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 9685 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9686 let width_buf: Dimension | undefined|undefined 9687 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 9688 { 9689 width_buf = (valueDeserializer.readLength() as Dimension) 9690 } 9691 const width_result: Dimension | undefined|undefined = width_buf 9692 const arrowPointPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9693 let arrowPointPosition_buf: ArrowPointPosition | undefined|undefined 9694 if ((RuntimeType.UNDEFINED) != (arrowPointPosition_buf_runtimeType)) 9695 { 9696 arrowPointPosition_buf = Object.values(ArrowPointPosition)[valueDeserializer.readInt32()] 9697 } 9698 const arrowPointPosition_result: ArrowPointPosition | undefined|undefined = arrowPointPosition_buf 9699 const arrowWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9700 let arrowWidth_buf: Dimension | undefined|undefined 9701 if ((RuntimeType.UNDEFINED) != (arrowWidth_buf_runtimeType)) 9702 { 9703 arrowWidth_buf = (valueDeserializer.readLength() as Dimension) 9704 } 9705 const arrowWidth_result: Dimension | undefined|undefined = arrowWidth_buf 9706 const arrowHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9707 let arrowHeight_buf: Dimension | undefined|undefined 9708 if ((RuntimeType.UNDEFINED) != (arrowHeight_buf_runtimeType)) 9709 { 9710 arrowHeight_buf = (valueDeserializer.readLength() as Dimension) 9711 } 9712 const arrowHeight_result: Dimension | undefined|undefined = arrowHeight_buf 9713 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9714 let radius_buf: Dimension | undefined|undefined 9715 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 9716 { 9717 radius_buf = (valueDeserializer.readLength() as Dimension) 9718 } 9719 const radius_result: Dimension | undefined|undefined = radius_buf 9720 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9721 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 9722 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 9723 { 9724 const shadow_buf__selector: number = valueDeserializer.readInt8() 9725 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 9726 if (shadow_buf__selector == 0) { 9727 shadow_buf_ = valueDeserializer.readShadowOptions() 9728 } 9729 else if (shadow_buf__selector == 1) { 9730 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 9731 } 9732 else { 9733 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 9734 } 9735 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 9736 } 9737 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 9738 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9739 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 9740 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9741 { 9742 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9743 } 9744 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 9745 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9746 let transition_buf: TransitionEffect | undefined|undefined 9747 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9748 { 9749 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9750 } 9751 const transition_result: TransitionEffect | undefined|undefined = transition_buf 9752 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9753 let onWillDismiss_buf: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined 9754 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 9755 { 9756 const onWillDismiss_buf__selector: number = valueDeserializer.readInt8() 9757 let onWillDismiss_buf_: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined 9758 if (onWillDismiss_buf__selector == 0) { 9759 onWillDismiss_buf_ = valueDeserializer.readBoolean() 9760 } 9761 else if (onWillDismiss_buf__selector == 1) { 9762 onWillDismiss_buf_ = valueDeserializer.readCallback_DismissPopupAction_Void() 9763 } 9764 else { 9765 throw new Error("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation.") 9766 } 9767 onWillDismiss_buf = (onWillDismiss_buf_ as boolean | ((parameter: DismissPopupAction) => void)) 9768 } 9769 const onWillDismiss_result: boolean | ((parameter: DismissPopupAction) => void) | undefined|undefined = onWillDismiss_buf 9770 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9771 let enableHoverMode_buf: boolean | undefined|undefined 9772 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9773 { 9774 enableHoverMode_buf = valueDeserializer.readBoolean() 9775 } 9776 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 9777 const followTransformOfTarget_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9778 let followTransformOfTarget_buf: boolean | undefined|undefined 9779 if ((RuntimeType.UNDEFINED) != (followTransformOfTarget_buf_runtimeType)) 9780 { 9781 followTransformOfTarget_buf = valueDeserializer.readBoolean() 9782 } 9783 const followTransformOfTarget_result: boolean | undefined|undefined = followTransformOfTarget_buf 9784 let value: PopupOptions = ({message: message_result, placementOnTop: placementOnTop_result, placement: placement_result, primaryButton: primaryButton_result, secondaryButton: secondaryButton_result, onStateChange: onStateChange_result, arrowOffset: arrowOffset_result, showInSubWindow: showInSubWindow_result, mask: mask_result, messageOptions: messageOptions_result, targetSpace: targetSpace_result, enableArrow: enableArrow_result, offset: offset_result, popupColor: popupColor_result, autoCancel: autoCancel_result, width: width_result, arrowPointPosition: arrowPointPosition_result, arrowWidth: arrowWidth_result, arrowHeight: arrowHeight_result, radius: radius_result, shadow: shadow_result, backgroundBlurStyle: backgroundBlurStyle_result, transition: transition_result, onWillDismiss: onWillDismiss_result, enableHoverMode: enableHoverMode_result, followTransformOfTarget: followTransformOfTarget_result} as PopupOptions) 9785 return value 9786 } 9787 readGeometryTransitionOptions(): GeometryTransitionOptions { 9788 let valueDeserializer: Deserializer = this 9789 const follow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9790 let follow_buf: boolean | undefined|undefined 9791 if ((RuntimeType.UNDEFINED) != (follow_buf_runtimeType)) 9792 { 9793 follow_buf = valueDeserializer.readBoolean() 9794 } 9795 const follow_result: boolean | undefined|undefined = follow_buf 9796 const hierarchyStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9797 let hierarchyStrategy_buf: TransitionHierarchyStrategy | undefined|undefined 9798 if ((RuntimeType.UNDEFINED) != (hierarchyStrategy_buf_runtimeType)) 9799 { 9800 hierarchyStrategy_buf = (valueDeserializer.readInt32() as TransitionHierarchyStrategy) 9801 } 9802 const hierarchyStrategy_result: TransitionHierarchyStrategy | undefined|undefined = hierarchyStrategy_buf 9803 let value: GeometryTransitionOptions = ({follow: follow_result, hierarchyStrategy: hierarchyStrategy_result} as GeometryTransitionOptions) 9804 return value 9805 } 9806 readBlender(): Blender { 9807 let valueDeserializer: Deserializer = this 9808 const _BlenderStub_result: string = (valueDeserializer.readString() as string) 9809 let value: Blender = ({_BlenderStub: _BlenderStub_result} as Blender) 9810 return value 9811 } 9812 readOverlayOptions(): OverlayOptions { 9813 let valueDeserializer: Deserializer = this 9814 const align_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9815 let align_buf: Alignment | undefined|undefined 9816 if ((RuntimeType.UNDEFINED) != (align_buf_runtimeType)) 9817 { 9818 align_buf = (valueDeserializer.readInt32() as Alignment) 9819 } 9820 const align_result: Alignment | undefined|undefined = align_buf 9821 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9822 let offset_buf: OverlayOffset | undefined|undefined 9823 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9824 { 9825 offset_buf = valueDeserializer.readOverlayOffset() 9826 } 9827 const offset_result: OverlayOffset | undefined|undefined = offset_buf 9828 let value: OverlayOptions = ({align: align_result, offset: offset_result} as OverlayOptions) 9829 return value 9830 } 9831 readDragInteractionOptions(): DragInteractionOptions { 9832 let valueDeserializer: Deserializer = this 9833 const isMultiSelectionEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9834 let isMultiSelectionEnabled_buf: boolean | undefined|undefined 9835 if ((RuntimeType.UNDEFINED) != (isMultiSelectionEnabled_buf_runtimeType)) 9836 { 9837 isMultiSelectionEnabled_buf = valueDeserializer.readBoolean() 9838 } 9839 const isMultiSelectionEnabled_result: boolean | undefined|undefined = isMultiSelectionEnabled_buf 9840 const defaultAnimationBeforeLifting_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9841 let defaultAnimationBeforeLifting_buf: boolean | undefined|undefined 9842 if ((RuntimeType.UNDEFINED) != (defaultAnimationBeforeLifting_buf_runtimeType)) 9843 { 9844 defaultAnimationBeforeLifting_buf = valueDeserializer.readBoolean() 9845 } 9846 const defaultAnimationBeforeLifting_result: boolean | undefined|undefined = defaultAnimationBeforeLifting_buf 9847 let value: DragInteractionOptions = ({isMultiSelectionEnabled: isMultiSelectionEnabled_result, defaultAnimationBeforeLifting: defaultAnimationBeforeLifting_result} as DragInteractionOptions) 9848 return value 9849 } 9850 readDragPreviewOptions(): DragPreviewOptions { 9851 let valueDeserializer: Deserializer = this 9852 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9853 let mode_buf: DragPreviewMode | Array<DragPreviewMode> | undefined|undefined 9854 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 9855 { 9856 const mode_buf__selector: number = valueDeserializer.readInt8() 9857 let mode_buf_: DragPreviewMode | Array<DragPreviewMode> | undefined|undefined 9858 if (mode_buf__selector == 0) { 9859 mode_buf_ = (valueDeserializer.readInt32() as DragPreviewMode) 9860 } 9861 else if (mode_buf__selector == 1) { 9862 const mode_buf__u_length: int32 = valueDeserializer.readInt32() 9863 let mode_buf__u: Array<DragPreviewMode> = new Array<DragPreviewMode>(mode_buf__u_length) 9864 for (let mode_buf__u_i = 0; mode_buf__u_i < mode_buf__u_length; mode_buf__u_i++) { 9865 mode_buf__u[mode_buf__u_i] = (valueDeserializer.readInt32() as DragPreviewMode) 9866 } 9867 mode_buf_ = mode_buf__u 9868 } 9869 else { 9870 throw new Error("One of the branches for mode_buf_ has to be chosen through deserialisation.") 9871 } 9872 mode_buf = (mode_buf_ as DragPreviewMode | Array<DragPreviewMode>) 9873 } 9874 const mode_result: DragPreviewMode | Array<DragPreviewMode> | undefined|undefined = mode_buf 9875 const modifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9876 let modifier_buf: ImageModifier | undefined|undefined 9877 if ((RuntimeType.UNDEFINED) != (modifier_buf_runtimeType)) 9878 { 9879 modifier_buf = valueDeserializer.readImageModifier() 9880 } 9881 const modifier_result: ImageModifier | undefined|undefined = modifier_buf 9882 const numberBadge_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9883 let numberBadge_buf: boolean | number | undefined|undefined 9884 if ((RuntimeType.UNDEFINED) != (numberBadge_buf_runtimeType)) 9885 { 9886 const numberBadge_buf__selector: number = valueDeserializer.readInt8() 9887 let numberBadge_buf_: boolean | number | undefined|undefined 9888 if (numberBadge_buf__selector == 0) { 9889 numberBadge_buf_ = valueDeserializer.readBoolean() 9890 } 9891 else if (numberBadge_buf__selector == 1) { 9892 numberBadge_buf_ = (valueDeserializer.readNumber() as number) 9893 } 9894 else { 9895 throw new Error("One of the branches for numberBadge_buf_ has to be chosen through deserialisation.") 9896 } 9897 numberBadge_buf = (numberBadge_buf_ as boolean | number) 9898 } 9899 const numberBadge_result: boolean | number | undefined|undefined = numberBadge_buf 9900 let value: DragPreviewOptions = ({mode: mode_result, modifier: modifier_result, numberBadge: numberBadge_result} as DragPreviewOptions) 9901 return value 9902 } 9903 readsharedTransitionOptions(): sharedTransitionOptions { 9904 let valueDeserializer: Deserializer = this 9905 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9906 let duration_buf: number | undefined|undefined 9907 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 9908 { 9909 duration_buf = (valueDeserializer.readNumber() as number) 9910 } 9911 const duration_result: number | undefined|undefined = duration_buf 9912 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9913 let curve_buf: Curve | string | ICurve | undefined|undefined 9914 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 9915 { 9916 const curve_buf__selector: number = valueDeserializer.readInt8() 9917 let curve_buf_: Curve | string | ICurve | undefined|undefined 9918 if (curve_buf__selector == 0) { 9919 curve_buf_ = (valueDeserializer.readInt32() as Curve) 9920 } 9921 else if (curve_buf__selector == 1) { 9922 curve_buf_ = (valueDeserializer.readString() as string) 9923 } 9924 else if (curve_buf__selector == 2) { 9925 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 9926 } 9927 else { 9928 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 9929 } 9930 curve_buf = (curve_buf_ as Curve | string | ICurve) 9931 } 9932 const curve_result: Curve | string | ICurve | undefined|undefined = curve_buf 9933 const delay_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9934 let delay_buf: number | undefined|undefined 9935 if ((RuntimeType.UNDEFINED) != (delay_buf_runtimeType)) 9936 { 9937 delay_buf = (valueDeserializer.readNumber() as number) 9938 } 9939 const delay_result: number | undefined|undefined = delay_buf 9940 const motionPath_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9941 let motionPath_buf: MotionPathOptions | undefined|undefined 9942 if ((RuntimeType.UNDEFINED) != (motionPath_buf_runtimeType)) 9943 { 9944 motionPath_buf = valueDeserializer.readMotionPathOptions() 9945 } 9946 const motionPath_result: MotionPathOptions | undefined|undefined = motionPath_buf 9947 const zIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9948 let zIndex_buf: number | undefined|undefined 9949 if ((RuntimeType.UNDEFINED) != (zIndex_buf_runtimeType)) 9950 { 9951 zIndex_buf = (valueDeserializer.readNumber() as number) 9952 } 9953 const zIndex_result: number | undefined|undefined = zIndex_buf 9954 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9955 let type_buf: SharedTransitionEffectType | undefined|undefined 9956 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 9957 { 9958 type_buf = (valueDeserializer.readInt32() as SharedTransitionEffectType) 9959 } 9960 const type_result: SharedTransitionEffectType | undefined|undefined = type_buf 9961 let value: sharedTransitionOptions = ({duration: duration_result, curve: curve_result, delay: delay_result, motionPath: motionPath_result, zIndex: zIndex_result, type: type_result} as sharedTransitionOptions) 9962 return value 9963 } 9964 readLinearGradientBlurOptions(): LinearGradientBlurOptions { 9965 let valueDeserializer: Deserializer = this 9966 const fractionStops_buf_length: int32 = valueDeserializer.readInt32() 9967 let fractionStops_buf: Array<FractionStop> = new Array<FractionStop>(fractionStops_buf_length) 9968 for (let fractionStops_buf_i = 0; fractionStops_buf_i < fractionStops_buf_length; fractionStops_buf_i++) { 9969 const fractionStops_buf_buf_value0: number = (valueDeserializer.readNumber() as number) 9970 const fractionStops_buf_buf_value1: number = (valueDeserializer.readNumber() as number) 9971 fractionStops_buf[fractionStops_buf_i] = ([fractionStops_buf_buf_value0, fractionStops_buf_buf_value1] as FractionStop) 9972 } 9973 const fractionStops_result: Array<FractionStop> = fractionStops_buf 9974 const direction_result: GradientDirection = (valueDeserializer.readInt32() as GradientDirection) 9975 let value: LinearGradientBlurOptions = ({fractionStops: fractionStops_result, direction: direction_result} as LinearGradientBlurOptions) 9976 return value 9977 } 9978 readTransitionFinishCallback(isSync: boolean = false): TransitionFinishCallback { 9979 const _resource: CallbackResource = this.readCallbackResource() 9980 const _call: KPointer = this.readPointer() 9981 const _callSync: KPointer = this.readPointer() 9982 return (transitionIn: boolean): void => { 9983 const _argsSerializer: Serializer = Serializer.hold(); 9984 _argsSerializer.writeInt32(_resource.resourceId); 9985 _argsSerializer.writePointer(_call); 9986 _argsSerializer.writePointer(_callSync); 9987 _argsSerializer.writeBoolean(transitionIn); 9988 (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); 9989 _argsSerializer.release(); 9990 return; } 9991 } 9992 readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { 9993 let valueDeserializer: Deserializer = this 9994 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9995 let colorMode_buf: ThemeColorMode | undefined|undefined 9996 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 9997 { 9998 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 9999 } 10000 const colorMode_result: ThemeColorMode | undefined|undefined = colorMode_buf 10001 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10002 let adaptiveColor_buf: AdaptiveColor | undefined|undefined 10003 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 10004 { 10005 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 10006 } 10007 const adaptiveColor_result: AdaptiveColor | undefined|undefined = adaptiveColor_buf 10008 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10009 let scale_buf: number | undefined|undefined 10010 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10011 { 10012 scale_buf = (valueDeserializer.readNumber() as number) 10013 } 10014 const scale_result: number | undefined|undefined = scale_buf 10015 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10016 let blurOptions_buf: BlurOptions | undefined|undefined 10017 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 10018 { 10019 blurOptions_buf = valueDeserializer.readBlurOptions() 10020 } 10021 const blurOptions_result: BlurOptions | undefined|undefined = blurOptions_buf 10022 let value: ForegroundBlurStyleOptions = ({colorMode: colorMode_result, adaptiveColor: adaptiveColor_result, scale: scale_result, blurOptions: blurOptions_result} as ForegroundBlurStyleOptions) 10023 return value 10024 } 10025 readPathShape(): PathShape { 10026 let valueDeserializer: Deserializer = this 10027 let ptr: KPointer = valueDeserializer.readPointer() 10028 return PathShapeInternal.fromPtr(ptr) 10029 } 10030 readEllipseShape(): EllipseShape { 10031 let valueDeserializer: Deserializer = this 10032 let ptr: KPointer = valueDeserializer.readPointer() 10033 return EllipseShapeInternal.fromPtr(ptr) 10034 } 10035 readCircleShape(): CircleShape { 10036 let valueDeserializer: Deserializer = this 10037 let ptr: KPointer = valueDeserializer.readPointer() 10038 return CircleShapeInternal.fromPtr(ptr) 10039 } 10040 readProgressMask(): ProgressMask { 10041 let valueDeserializer: Deserializer = this 10042 let ptr: KPointer = valueDeserializer.readPointer() 10043 return ProgressMaskInternal.fromPtr(ptr) 10044 } 10045 readDragItemInfo(): DragItemInfo { 10046 let valueDeserializer: Deserializer = this 10047 const pixelMap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10048 let pixelMap_buf: PixelMap | undefined|undefined 10049 if ((RuntimeType.UNDEFINED) != (pixelMap_buf_runtimeType)) 10050 { 10051 pixelMap_buf = (valueDeserializer.readPixelMap() as PixelMap) 10052 } 10053 const pixelMap_result: PixelMap | undefined|undefined = pixelMap_buf 10054 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10055 let builder_buf: CustomBuilder | undefined|undefined 10056 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 10057 { 10058 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 10059 } 10060 const builder_result: CustomBuilder | undefined|undefined = builder_buf 10061 const extraInfo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10062 let extraInfo_buf: string | undefined|undefined 10063 if ((RuntimeType.UNDEFINED) != (extraInfo_buf_runtimeType)) 10064 { 10065 extraInfo_buf = (valueDeserializer.readString() as string) 10066 } 10067 const extraInfo_result: string | undefined|undefined = extraInfo_buf 10068 let value: DragItemInfo = ({pixelMap: pixelMap_result, builder: builder_result, extraInfo: extraInfo_result} as DragItemInfo) 10069 return value 10070 } 10071 readClickEffect(): ClickEffect { 10072 let valueDeserializer: Deserializer = this 10073 const level_result: ClickEffectLevel = (valueDeserializer.readInt32() as ClickEffectLevel) 10074 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10075 let scale_buf: number | undefined|undefined 10076 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10077 { 10078 scale_buf = (valueDeserializer.readNumber() as number) 10079 } 10080 const scale_result: number | undefined|undefined = scale_buf 10081 let value: ClickEffect = ({level: level_result, scale: scale_result} as ClickEffect) 10082 return value 10083 } 10084 readBias(): Bias { 10085 let valueDeserializer: Deserializer = this 10086 const horizontal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10087 let horizontal_buf: number | undefined|undefined 10088 if ((RuntimeType.UNDEFINED) != (horizontal_buf_runtimeType)) 10089 { 10090 horizontal_buf = (valueDeserializer.readNumber() as number) 10091 } 10092 const horizontal_result: number | undefined|undefined = horizontal_buf 10093 const vertical_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10094 let vertical_buf: number | undefined|undefined 10095 if ((RuntimeType.UNDEFINED) != (vertical_buf_runtimeType)) 10096 { 10097 vertical_buf = (valueDeserializer.readNumber() as number) 10098 } 10099 const vertical_result: number | undefined|undefined = vertical_buf 10100 let value: Bias = ({horizontal: horizontal_result, vertical: vertical_result} as Bias) 10101 return value 10102 } 10103 readLocalizedVerticalAlignParam(): LocalizedVerticalAlignParam { 10104 let valueDeserializer: Deserializer = this 10105 const anchor_result: string = (valueDeserializer.readString() as string) 10106 const align_result: VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 10107 let value: LocalizedVerticalAlignParam = ({anchor: anchor_result, align: align_result} as LocalizedVerticalAlignParam) 10108 return value 10109 } 10110 readLocalizedHorizontalAlignParam(): LocalizedHorizontalAlignParam { 10111 let valueDeserializer: Deserializer = this 10112 const anchor_result: string = (valueDeserializer.readString() as string) 10113 const align_result: HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 10114 let value: LocalizedHorizontalAlignParam = ({anchor: anchor_result, align: align_result} as LocalizedHorizontalAlignParam) 10115 return value 10116 } 10117 readLocalizedPosition(): LocalizedPosition { 10118 let valueDeserializer: Deserializer = this 10119 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10120 let start_buf: LengthMetrics | undefined|undefined 10121 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 10122 { 10123 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 10124 } 10125 const start_result: LengthMetrics | undefined|undefined = start_buf 10126 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10127 let top_buf: LengthMetrics | undefined|undefined 10128 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 10129 { 10130 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 10131 } 10132 const top_result: LengthMetrics | undefined|undefined = top_buf 10133 let value: LocalizedPosition = ({start: start_result, top: top_result} as LocalizedPosition) 10134 return value 10135 } 10136 readInvertOptions(): InvertOptions { 10137 let valueDeserializer: Deserializer = this 10138 const low_result: number = (valueDeserializer.readNumber() as number) 10139 const high_result: number = (valueDeserializer.readNumber() as number) 10140 const threshold_result: number = (valueDeserializer.readNumber() as number) 10141 const thresholdRange_result: number = (valueDeserializer.readNumber() as number) 10142 let value: InvertOptions = ({low: low_result, high: high_result, threshold: threshold_result, thresholdRange: thresholdRange_result} as InvertOptions) 10143 return value 10144 } 10145 readMotionBlurAnchor(): MotionBlurAnchor { 10146 let valueDeserializer: Deserializer = this 10147 const x_result: number = (valueDeserializer.readNumber() as number) 10148 const y_result: number = (valueDeserializer.readNumber() as number) 10149 let value: MotionBlurAnchor = ({x: x_result, y: y_result} as MotionBlurAnchor) 10150 return value 10151 } 10152 readTransitionOptions(): TransitionOptions { 10153 let valueDeserializer: Deserializer = this 10154 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10155 let type_buf: TransitionType | undefined|undefined 10156 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 10157 { 10158 type_buf = (valueDeserializer.readInt32() as TransitionType) 10159 } 10160 const type_result: TransitionType | undefined|undefined = type_buf 10161 const opacity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10162 let opacity_buf: number | undefined|undefined 10163 if ((RuntimeType.UNDEFINED) != (opacity_buf_runtimeType)) 10164 { 10165 opacity_buf = (valueDeserializer.readNumber() as number) 10166 } 10167 const opacity_result: number | undefined|undefined = opacity_buf 10168 const translate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10169 let translate_buf: TranslateOptions | undefined|undefined 10170 if ((RuntimeType.UNDEFINED) != (translate_buf_runtimeType)) 10171 { 10172 translate_buf = valueDeserializer.readTranslateOptions() 10173 } 10174 const translate_result: TranslateOptions | undefined|undefined = translate_buf 10175 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10176 let scale_buf: ScaleOptions | undefined|undefined 10177 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10178 { 10179 scale_buf = valueDeserializer.readScaleOptions() 10180 } 10181 const scale_result: ScaleOptions | undefined|undefined = scale_buf 10182 const rotate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10183 let rotate_buf: RotateOptions | undefined|undefined 10184 if ((RuntimeType.UNDEFINED) != (rotate_buf_runtimeType)) 10185 { 10186 rotate_buf = valueDeserializer.readRotateOptions() 10187 } 10188 const rotate_result: RotateOptions | undefined|undefined = rotate_buf 10189 let value: TransitionOptions = ({type: type_result, opacity: opacity_result, translate: translate_result, scale: scale_result, rotate: rotate_result} as TransitionOptions) 10190 return value 10191 } 10192 readDrawingLattice(): DrawingLattice { 10193 let valueDeserializer: Deserializer = this 10194 const _DrawingLatticeStub_result: string = (valueDeserializer.readString() as string) 10195 let value: DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) 10196 return value 10197 } 10198 readDrawModifier(): DrawModifier { 10199 let valueDeserializer: Deserializer = this 10200 let ptr: KPointer = valueDeserializer.readPointer() 10201 return DrawModifierInternal.fromPtr(ptr) 10202 } 10203 readIntentionCode(): IntentionCode { 10204 let valueDeserializer: Deserializer = this 10205 const _IntentionCodeStub_result: string = (valueDeserializer.readString() as string) 10206 let value: IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) 10207 return value 10208 } 10209 readSummary(): Summary { 10210 let valueDeserializer: Deserializer = this 10211 const _SummaryStub_result: string = (valueDeserializer.readString() as string) 10212 let value: Summary = ({_SummaryStub: _SummaryStub_result} as Summary) 10213 return value 10214 } 10215 readUnifiedData(): UnifiedData { 10216 let valueDeserializer: Deserializer = this 10217 let ptr: KPointer = valueDeserializer.readPointer() 10218 return UnifiedDataInternal.fromPtr(ptr) 10219 } 10220 readTouchObject(): TouchObject { 10221 let valueDeserializer: Deserializer = this 10222 const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) 10223 const id_result: number = (valueDeserializer.readNumber() as number) 10224 const displayX_result: number = (valueDeserializer.readNumber() as number) 10225 const displayY_result: number = (valueDeserializer.readNumber() as number) 10226 const windowX_result: number = (valueDeserializer.readNumber() as number) 10227 const windowY_result: number = (valueDeserializer.readNumber() as number) 10228 const screenX_result: number = (valueDeserializer.readNumber() as number) 10229 const screenY_result: number = (valueDeserializer.readNumber() as number) 10230 const x_result: number = (valueDeserializer.readNumber() as number) 10231 const y_result: number = (valueDeserializer.readNumber() as number) 10232 let value: TouchObject = ({type: type_result, id: id_result, displayX: displayX_result, displayY: displayY_result, windowX: windowX_result, windowY: windowY_result, screenX: screenX_result, screenY: screenY_result, x: x_result, y: y_result} as TouchObject) 10233 return value 10234 } 10235 readContext(): Context { 10236 let valueDeserializer: Deserializer = this 10237 const _ContextStub_result: string = (valueDeserializer.readString() as string) 10238 let value: Context = ({_ContextStub: _ContextStub_result} as Context) 10239 return value 10240 } 10241 readColumnSplitDividerStyle(): ColumnSplitDividerStyle { 10242 let valueDeserializer: Deserializer = this 10243 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10244 let startMargin_buf: Dimension | undefined|undefined 10245 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 10246 { 10247 startMargin_buf = (valueDeserializer.readLength() as Dimension) 10248 } 10249 const startMargin_result: Dimension | undefined|undefined = startMargin_buf 10250 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10251 let endMargin_buf: Dimension | undefined|undefined 10252 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 10253 { 10254 endMargin_buf = (valueDeserializer.readLength() as Dimension) 10255 } 10256 const endMargin_result: Dimension | undefined|undefined = endMargin_buf 10257 let value: ColumnSplitDividerStyle = ({startMargin: startMargin_result, endMargin: endMargin_result} as ColumnSplitDividerStyle) 10258 return value 10259 } 10260 readLightSource(): LightSource { 10261 let valueDeserializer: Deserializer = this 10262 const positionX_result: Dimension = (valueDeserializer.readLength() as Dimension) 10263 const positionY_result: Dimension = (valueDeserializer.readLength() as Dimension) 10264 const positionZ_result: Dimension = (valueDeserializer.readLength() as Dimension) 10265 const intensity_result: number = (valueDeserializer.readNumber() as number) 10266 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10267 let color_buf: ResourceColor | undefined|undefined 10268 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 10269 { 10270 const color_buf__selector: number = valueDeserializer.readInt8() 10271 let color_buf_: Color | number | string | Resource | undefined|undefined 10272 if (color_buf__selector == 0) { 10273 color_buf_ = (valueDeserializer.readInt32() as Color) 10274 } 10275 else if (color_buf__selector == 1) { 10276 color_buf_ = (valueDeserializer.readNumber() as number) 10277 } 10278 else if (color_buf__selector == 2) { 10279 color_buf_ = (valueDeserializer.readString() as string) 10280 } 10281 else if (color_buf__selector == 3) { 10282 color_buf_ = valueDeserializer.readResource() 10283 } 10284 else { 10285 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 10286 } 10287 color_buf = (color_buf_ as Color | number | string | Resource) 10288 } 10289 const color_result: ResourceColor | undefined|undefined = color_buf 10290 let value: LightSource = ({positionX: positionX_result, positionY: positionY_result, positionZ: positionZ_result, intensity: intensity_result, color: color_result} as LightSource) 10291 return value 10292 } 10293 readDrawingRenderingContext(): DrawingRenderingContext { 10294 let valueDeserializer: Deserializer = this 10295 let ptr: KPointer = valueDeserializer.readPointer() 10296 return DrawingRenderingContextInternal.fromPtr(ptr) 10297 } 10298 readCanvasRenderingContext2D(): CanvasRenderingContext2D { 10299 let valueDeserializer: Deserializer = this 10300 let ptr: KPointer = valueDeserializer.readPointer() 10301 return CanvasRenderingContext2DInternal.fromPtr(ptr) 10302 } 10303 readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { 10304 let valueDeserializer: Deserializer = this 10305 let ptr: KPointer = valueDeserializer.readPointer() 10306 return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) 10307 } 10308 readRenderingContextSettings(): RenderingContextSettings { 10309 let valueDeserializer: Deserializer = this 10310 let ptr: KPointer = valueDeserializer.readPointer() 10311 return RenderingContextSettingsInternal.fromPtr(ptr) 10312 } 10313 readImageBitmap(): ImageBitmap { 10314 let valueDeserializer: Deserializer = this 10315 let ptr: KPointer = valueDeserializer.readPointer() 10316 return ImageBitmapInternal.fromPtr(ptr) 10317 } 10318 readTextMetrics(): TextMetrics { 10319 let valueDeserializer: Deserializer = this 10320 const actualBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) 10321 const actualBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) 10322 const actualBoundingBoxLeft_result: number = (valueDeserializer.readNumber() as number) 10323 const actualBoundingBoxRight_result: number = (valueDeserializer.readNumber() as number) 10324 const alphabeticBaseline_result: number = (valueDeserializer.readNumber() as number) 10325 const emHeightAscent_result: number = (valueDeserializer.readNumber() as number) 10326 const emHeightDescent_result: number = (valueDeserializer.readNumber() as number) 10327 const fontBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) 10328 const fontBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) 10329 const hangingBaseline_result: number = (valueDeserializer.readNumber() as number) 10330 const ideographicBaseline_result: number = (valueDeserializer.readNumber() as number) 10331 const width_result: number = (valueDeserializer.readNumber() as number) 10332 const height_result: number = (valueDeserializer.readNumber() as number) 10333 let value: TextMetrics = ({actualBoundingBoxAscent: actualBoundingBoxAscent_result, actualBoundingBoxDescent: actualBoundingBoxDescent_result, actualBoundingBoxLeft: actualBoundingBoxLeft_result, actualBoundingBoxRight: actualBoundingBoxRight_result, alphabeticBaseline: alphabeticBaseline_result, emHeightAscent: emHeightAscent_result, emHeightDescent: emHeightDescent_result, fontBoundingBoxAscent: fontBoundingBoxAscent_result, fontBoundingBoxDescent: fontBoundingBoxDescent_result, hangingBaseline: hangingBaseline_result, ideographicBaseline: ideographicBaseline_result, width: width_result, height: height_result} as TextMetrics) 10334 return value 10335 } 10336 readImageData(): ImageData { 10337 let valueDeserializer: Deserializer = this 10338 let ptr: KPointer = valueDeserializer.readPointer() 10339 return ImageDataInternal.fromPtr(ptr) 10340 } 10341 readPath2D(): Path2D { 10342 let valueDeserializer: Deserializer = this 10343 let ptr: KPointer = valueDeserializer.readPointer() 10344 return Path2DInternal.fromPtr(ptr) 10345 } 10346 readCalendarDialogOptions(): CalendarDialogOptions { 10347 let valueDeserializer: Deserializer = this 10348 const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10349 let hintRadius_buf: number | Resource | undefined|undefined 10350 if ((RuntimeType.UNDEFINED) != (hintRadius_buf_runtimeType)) 10351 { 10352 const hintRadius_buf__selector: number = valueDeserializer.readInt8() 10353 let hintRadius_buf_: number | Resource | undefined|undefined 10354 if (hintRadius_buf__selector == 0) { 10355 hintRadius_buf_ = (valueDeserializer.readNumber() as number) 10356 } 10357 else if (hintRadius_buf__selector == 1) { 10358 hintRadius_buf_ = valueDeserializer.readResource() 10359 } 10360 else { 10361 throw new Error("One of the branches for hintRadius_buf_ has to be chosen through deserialisation.") 10362 } 10363 hintRadius_buf = (hintRadius_buf_ as number | Resource) 10364 } 10365 const hintRadius_result: number | Resource | undefined|undefined = hintRadius_buf 10366 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10367 let selected_buf: Date | undefined|undefined 10368 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 10369 { 10370 selected_buf = new Date(valueDeserializer.readInt64()) 10371 } 10372 const selected_result: Date | undefined|undefined = selected_buf 10373 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10374 let onAccept_buf: ((parameter: Date) => void) | undefined|undefined 10375 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 10376 { 10377 onAccept_buf = valueDeserializer.readCallback_Date_Void() 10378 } 10379 const onAccept_result: ((parameter: Date) => void) | undefined|undefined = onAccept_buf 10380 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10381 let onCancel_buf: VoidCallback | undefined|undefined 10382 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 10383 { 10384 onCancel_buf = valueDeserializer.readVoidCallback() 10385 } 10386 const onCancel_result: VoidCallback | undefined|undefined = onCancel_buf 10387 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10388 let onChange_buf: ((parameter: Date) => void) | undefined|undefined 10389 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 10390 { 10391 onChange_buf = valueDeserializer.readCallback_Date_Void() 10392 } 10393 const onChange_result: ((parameter: Date) => void) | undefined|undefined = onChange_buf 10394 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10395 let backgroundColor_buf: ResourceColor | undefined|undefined 10396 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 10397 { 10398 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 10399 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 10400 if (backgroundColor_buf__selector == 0) { 10401 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 10402 } 10403 else if (backgroundColor_buf__selector == 1) { 10404 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 10405 } 10406 else if (backgroundColor_buf__selector == 2) { 10407 backgroundColor_buf_ = (valueDeserializer.readString() as string) 10408 } 10409 else if (backgroundColor_buf__selector == 3) { 10410 backgroundColor_buf_ = valueDeserializer.readResource() 10411 } 10412 else { 10413 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 10414 } 10415 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 10416 } 10417 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 10418 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10419 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 10420 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 10421 { 10422 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 10423 } 10424 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 10425 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10426 let acceptButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 10427 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 10428 { 10429 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 10430 } 10431 const acceptButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = acceptButtonStyle_buf 10432 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10433 let cancelButtonStyle_buf: PickerDialogButtonStyle | undefined|undefined 10434 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 10435 { 10436 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 10437 } 10438 const cancelButtonStyle_result: PickerDialogButtonStyle | undefined|undefined = cancelButtonStyle_buf 10439 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10440 let onDidAppear_buf: VoidCallback | undefined|undefined 10441 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 10442 { 10443 onDidAppear_buf = valueDeserializer.readVoidCallback() 10444 } 10445 const onDidAppear_result: VoidCallback | undefined|undefined = onDidAppear_buf 10446 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10447 let onDidDisappear_buf: VoidCallback | undefined|undefined 10448 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 10449 { 10450 onDidDisappear_buf = valueDeserializer.readVoidCallback() 10451 } 10452 const onDidDisappear_result: VoidCallback | undefined|undefined = onDidDisappear_buf 10453 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10454 let onWillAppear_buf: VoidCallback | undefined|undefined 10455 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 10456 { 10457 onWillAppear_buf = valueDeserializer.readVoidCallback() 10458 } 10459 const onWillAppear_result: VoidCallback | undefined|undefined = onWillAppear_buf 10460 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10461 let onWillDisappear_buf: VoidCallback | undefined|undefined 10462 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 10463 { 10464 onWillDisappear_buf = valueDeserializer.readVoidCallback() 10465 } 10466 const onWillDisappear_result: VoidCallback | undefined|undefined = onWillDisappear_buf 10467 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10468 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 10469 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 10470 { 10471 const shadow_buf__selector: number = valueDeserializer.readInt8() 10472 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 10473 if (shadow_buf__selector == 0) { 10474 shadow_buf_ = valueDeserializer.readShadowOptions() 10475 } 10476 else if (shadow_buf__selector == 1) { 10477 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 10478 } 10479 else { 10480 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 10481 } 10482 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 10483 } 10484 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 10485 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10486 let enableHoverMode_buf: boolean | undefined|undefined 10487 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 10488 { 10489 enableHoverMode_buf = valueDeserializer.readBoolean() 10490 } 10491 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 10492 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10493 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 10494 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 10495 { 10496 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 10497 } 10498 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 10499 let value: CalendarDialogOptions = ({hintRadius: hintRadius_result, selected: selected_result, onAccept: onAccept_result, onCancel: onCancel_result, onChange: onChange_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, acceptButtonStyle: acceptButtonStyle_result, cancelButtonStyle: cancelButtonStyle_result, onDidAppear: onDidAppear_result, onDidDisappear: onDidDisappear_result, onWillAppear: onWillAppear_result, onWillDisappear: onWillDisappear_result, shadow: shadow_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as CalendarDialogOptions) 10500 return value 10501 } 10502 readCalendarPickerAttribute(): CalendarPickerAttribute { 10503 let value: CalendarPickerAttribute = ({} as CalendarPickerAttribute) 10504 return value 10505 } 10506 readCalendarController(): CalendarController { 10507 let valueDeserializer: Deserializer = this 10508 let ptr: KPointer = valueDeserializer.readPointer() 10509 return CalendarControllerInternal.fromPtr(ptr) 10510 } 10511 readMonthData(): MonthData { 10512 let valueDeserializer: Deserializer = this 10513 const year_result: number = (valueDeserializer.readNumber() as number) 10514 const month_result: number = (valueDeserializer.readNumber() as number) 10515 const data_buf_length: int32 = valueDeserializer.readInt32() 10516 let data_buf: Array<CalendarDay> = new Array<CalendarDay>(data_buf_length) 10517 for (let data_buf_i = 0; data_buf_i < data_buf_length; data_buf_i++) { 10518 data_buf[data_buf_i] = valueDeserializer.readCalendarDay() 10519 } 10520 const data_result: Array<CalendarDay> = data_buf 10521 let value: MonthData = ({year: year_result, month: month_result, data: data_result} as MonthData) 10522 return value 10523 } 10524 readBadgeStyle(): BadgeStyle { 10525 let valueDeserializer: Deserializer = this 10526 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10527 let color_buf: ResourceColor | undefined|undefined 10528 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 10529 { 10530 const color_buf__selector: number = valueDeserializer.readInt8() 10531 let color_buf_: Color | number | string | Resource | undefined|undefined 10532 if (color_buf__selector == 0) { 10533 color_buf_ = (valueDeserializer.readInt32() as Color) 10534 } 10535 else if (color_buf__selector == 1) { 10536 color_buf_ = (valueDeserializer.readNumber() as number) 10537 } 10538 else if (color_buf__selector == 2) { 10539 color_buf_ = (valueDeserializer.readString() as string) 10540 } 10541 else if (color_buf__selector == 3) { 10542 color_buf_ = valueDeserializer.readResource() 10543 } 10544 else { 10545 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 10546 } 10547 color_buf = (color_buf_ as Color | number | string | Resource) 10548 } 10549 const color_result: ResourceColor | undefined|undefined = color_buf 10550 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10551 let fontSize_buf: number | string | undefined|undefined 10552 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 10553 { 10554 const fontSize_buf__selector: number = valueDeserializer.readInt8() 10555 let fontSize_buf_: number | string | undefined|undefined 10556 if (fontSize_buf__selector == 0) { 10557 fontSize_buf_ = (valueDeserializer.readNumber() as number) 10558 } 10559 else if (fontSize_buf__selector == 1) { 10560 fontSize_buf_ = (valueDeserializer.readString() as string) 10561 } 10562 else { 10563 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 10564 } 10565 fontSize_buf = (fontSize_buf_ as number | string) 10566 } 10567 const fontSize_result: number | string | undefined|undefined = fontSize_buf 10568 const badgeSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10569 let badgeSize_buf: number | string | undefined|undefined 10570 if ((RuntimeType.UNDEFINED) != (badgeSize_buf_runtimeType)) 10571 { 10572 const badgeSize_buf__selector: number = valueDeserializer.readInt8() 10573 let badgeSize_buf_: number | string | undefined|undefined 10574 if (badgeSize_buf__selector == 0) { 10575 badgeSize_buf_ = (valueDeserializer.readNumber() as number) 10576 } 10577 else if (badgeSize_buf__selector == 1) { 10578 badgeSize_buf_ = (valueDeserializer.readString() as string) 10579 } 10580 else { 10581 throw new Error("One of the branches for badgeSize_buf_ has to be chosen through deserialisation.") 10582 } 10583 badgeSize_buf = (badgeSize_buf_ as number | string) 10584 } 10585 const badgeSize_result: number | string | undefined|undefined = badgeSize_buf 10586 const badgeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10587 let badgeColor_buf: ResourceColor | undefined|undefined 10588 if ((RuntimeType.UNDEFINED) != (badgeColor_buf_runtimeType)) 10589 { 10590 const badgeColor_buf__selector: number = valueDeserializer.readInt8() 10591 let badgeColor_buf_: Color | number | string | Resource | undefined|undefined 10592 if (badgeColor_buf__selector == 0) { 10593 badgeColor_buf_ = (valueDeserializer.readInt32() as Color) 10594 } 10595 else if (badgeColor_buf__selector == 1) { 10596 badgeColor_buf_ = (valueDeserializer.readNumber() as number) 10597 } 10598 else if (badgeColor_buf__selector == 2) { 10599 badgeColor_buf_ = (valueDeserializer.readString() as string) 10600 } 10601 else if (badgeColor_buf__selector == 3) { 10602 badgeColor_buf_ = valueDeserializer.readResource() 10603 } 10604 else { 10605 throw new Error("One of the branches for badgeColor_buf_ has to be chosen through deserialisation.") 10606 } 10607 badgeColor_buf = (badgeColor_buf_ as Color | number | string | Resource) 10608 } 10609 const badgeColor_result: ResourceColor | undefined|undefined = badgeColor_buf 10610 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10611 let borderColor_buf: ResourceColor | undefined|undefined 10612 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 10613 { 10614 const borderColor_buf__selector: number = valueDeserializer.readInt8() 10615 let borderColor_buf_: Color | number | string | Resource | undefined|undefined 10616 if (borderColor_buf__selector == 0) { 10617 borderColor_buf_ = (valueDeserializer.readInt32() as Color) 10618 } 10619 else if (borderColor_buf__selector == 1) { 10620 borderColor_buf_ = (valueDeserializer.readNumber() as number) 10621 } 10622 else if (borderColor_buf__selector == 2) { 10623 borderColor_buf_ = (valueDeserializer.readString() as string) 10624 } 10625 else if (borderColor_buf__selector == 3) { 10626 borderColor_buf_ = valueDeserializer.readResource() 10627 } 10628 else { 10629 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 10630 } 10631 borderColor_buf = (borderColor_buf_ as Color | number | string | Resource) 10632 } 10633 const borderColor_result: ResourceColor | undefined|undefined = borderColor_buf 10634 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10635 let borderWidth_buf: Length | undefined|undefined 10636 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 10637 { 10638 borderWidth_buf = (valueDeserializer.readLength() as Length) 10639 } 10640 const borderWidth_result: Length | undefined|undefined = borderWidth_buf 10641 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10642 let fontWeight_buf: number | FontWeight | string | undefined|undefined 10643 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 10644 { 10645 const fontWeight_buf__selector: number = valueDeserializer.readInt8() 10646 let fontWeight_buf_: number | FontWeight | string | undefined|undefined 10647 if (fontWeight_buf__selector == 0) { 10648 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 10649 } 10650 else if (fontWeight_buf__selector == 1) { 10651 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 10652 } 10653 else if (fontWeight_buf__selector == 2) { 10654 fontWeight_buf_ = (valueDeserializer.readString() as string) 10655 } 10656 else { 10657 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 10658 } 10659 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 10660 } 10661 const fontWeight_result: number | FontWeight | string | undefined|undefined = fontWeight_buf 10662 let value: BadgeStyle = ({color: color_result, fontSize: fontSize_result, badgeSize: badgeSize_result, badgeColor: badgeColor_result, borderColor: borderColor_result, borderWidth: borderWidth_result, fontWeight: fontWeight_result} as BadgeStyle) 10663 return value 10664 } 10665 readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { 10666 let value: AlphabetIndexerAttribute = ({} as AlphabetIndexerAttribute) 10667 return value 10668 } 10669 readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { 10670 let valueDeserializer: Deserializer = this 10671 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10672 let title_buf: ResourceStr | undefined|undefined 10673 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 10674 { 10675 const title_buf__selector: number = valueDeserializer.readInt8() 10676 let title_buf_: string | Resource | undefined|undefined 10677 if (title_buf__selector == 0) { 10678 title_buf_ = (valueDeserializer.readString() as string) 10679 } 10680 else if (title_buf__selector == 1) { 10681 title_buf_ = valueDeserializer.readResource() 10682 } 10683 else { 10684 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 10685 } 10686 title_buf = (title_buf_ as string | Resource) 10687 } 10688 const title_result: ResourceStr | undefined|undefined = title_buf 10689 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10690 let subtitle_buf: ResourceStr | undefined|undefined 10691 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 10692 { 10693 const subtitle_buf__selector: number = valueDeserializer.readInt8() 10694 let subtitle_buf_: string | Resource | undefined|undefined 10695 if (subtitle_buf__selector == 0) { 10696 subtitle_buf_ = (valueDeserializer.readString() as string) 10697 } 10698 else if (subtitle_buf__selector == 1) { 10699 subtitle_buf_ = valueDeserializer.readResource() 10700 } 10701 else { 10702 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 10703 } 10704 subtitle_buf = (subtitle_buf_ as string | Resource) 10705 } 10706 const subtitle_result: ResourceStr | undefined|undefined = subtitle_buf 10707 const message_buf_selector: number = valueDeserializer.readInt8() 10708 let message_buf: string | Resource | undefined|undefined 10709 if (message_buf_selector == 0) { 10710 message_buf = (valueDeserializer.readString() as string) 10711 } 10712 else if (message_buf_selector == 1) { 10713 message_buf = valueDeserializer.readResource() 10714 } 10715 else { 10716 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 10717 } 10718 const message_result: ResourceStr = (message_buf as string | Resource) 10719 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10720 let autoCancel_buf: boolean | undefined|undefined 10721 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 10722 { 10723 autoCancel_buf = valueDeserializer.readBoolean() 10724 } 10725 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 10726 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10727 let cancel_buf: VoidCallback | undefined|undefined 10728 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 10729 { 10730 cancel_buf = valueDeserializer.readVoidCallback() 10731 } 10732 const cancel_result: VoidCallback | undefined|undefined = cancel_buf 10733 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10734 let alignment_buf: DialogAlignment | undefined|undefined 10735 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 10736 { 10737 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 10738 } 10739 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 10740 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10741 let offset_buf: Offset | undefined|undefined 10742 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 10743 { 10744 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 10745 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 10746 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 10747 } 10748 const offset_result: Offset | undefined|undefined = offset_buf 10749 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10750 let gridCount_buf: number | undefined|undefined 10751 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 10752 { 10753 gridCount_buf = (valueDeserializer.readNumber() as number) 10754 } 10755 const gridCount_result: number | undefined|undefined = gridCount_buf 10756 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10757 let maskRect_buf: Rectangle | undefined|undefined 10758 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 10759 { 10760 maskRect_buf = valueDeserializer.readRectangle() 10761 } 10762 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 10763 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10764 let showInSubWindow_buf: boolean | undefined|undefined 10765 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 10766 { 10767 showInSubWindow_buf = valueDeserializer.readBoolean() 10768 } 10769 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 10770 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10771 let isModal_buf: boolean | undefined|undefined 10772 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 10773 { 10774 isModal_buf = valueDeserializer.readBoolean() 10775 } 10776 const isModal_result: boolean | undefined|undefined = isModal_buf 10777 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10778 let backgroundColor_buf: ResourceColor | undefined|undefined 10779 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 10780 { 10781 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 10782 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 10783 if (backgroundColor_buf__selector == 0) { 10784 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 10785 } 10786 else if (backgroundColor_buf__selector == 1) { 10787 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 10788 } 10789 else if (backgroundColor_buf__selector == 2) { 10790 backgroundColor_buf_ = (valueDeserializer.readString() as string) 10791 } 10792 else if (backgroundColor_buf__selector == 3) { 10793 backgroundColor_buf_ = valueDeserializer.readResource() 10794 } 10795 else { 10796 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 10797 } 10798 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 10799 } 10800 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 10801 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10802 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 10803 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 10804 { 10805 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 10806 } 10807 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 10808 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10809 let onWillDismiss_buf: ((parameter: DismissDialogAction) => void) | undefined|undefined 10810 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 10811 { 10812 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 10813 } 10814 const onWillDismiss_result: ((parameter: DismissDialogAction) => void) | undefined|undefined = onWillDismiss_buf 10815 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10816 let transition_buf: TransitionEffect | undefined|undefined 10817 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 10818 { 10819 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 10820 } 10821 const transition_result: TransitionEffect | undefined|undefined = transition_buf 10822 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10823 let cornerRadius_buf: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 10824 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 10825 { 10826 const cornerRadius_buf__selector: number = valueDeserializer.readInt8() 10827 let cornerRadius_buf_: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 10828 if (cornerRadius_buf__selector == 0) { 10829 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 10830 } 10831 else if (cornerRadius_buf__selector == 1) { 10832 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10833 let cornerRadius_buf__u_topLeft_buf: Length | undefined|undefined 10834 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 10835 { 10836 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 10837 } 10838 const cornerRadius_buf__u_topLeft: undefined | Length = cornerRadius_buf__u_topLeft_buf 10839 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10840 let cornerRadius_buf__u_topRight_buf: Length | undefined|undefined 10841 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 10842 { 10843 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 10844 } 10845 const cornerRadius_buf__u_topRight: undefined | Length = cornerRadius_buf__u_topRight_buf 10846 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10847 let cornerRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 10848 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 10849 { 10850 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 10851 } 10852 const cornerRadius_buf__u_bottomLeft: undefined | Length = cornerRadius_buf__u_bottomLeft_buf 10853 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10854 let cornerRadius_buf__u_bottomRight_buf: Length | undefined|undefined 10855 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 10856 { 10857 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 10858 } 10859 const cornerRadius_buf__u_bottomRight: undefined | Length = cornerRadius_buf__u_bottomRight_buf 10860 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 10861 } 10862 else if (cornerRadius_buf__selector == 2) { 10863 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 10864 } 10865 else { 10866 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 10867 } 10868 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 10869 } 10870 const cornerRadius_result: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = cornerRadius_buf 10871 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10872 let width_buf: Dimension | undefined|undefined 10873 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 10874 { 10875 width_buf = (valueDeserializer.readLength() as Dimension) 10876 } 10877 const width_result: Dimension | undefined|undefined = width_buf 10878 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10879 let height_buf: Dimension | undefined|undefined 10880 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 10881 { 10882 height_buf = (valueDeserializer.readLength() as Dimension) 10883 } 10884 const height_result: Dimension | undefined|undefined = height_buf 10885 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10886 let borderWidth_buf: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 10887 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 10888 { 10889 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 10890 let borderWidth_buf_: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 10891 if (borderWidth_buf__selector == 0) { 10892 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 10893 } 10894 else if (borderWidth_buf__selector == 1) { 10895 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10896 let borderWidth_buf__u_top_buf: Length | undefined|undefined 10897 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 10898 { 10899 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 10900 } 10901 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 10902 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10903 let borderWidth_buf__u_right_buf: Length | undefined|undefined 10904 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 10905 { 10906 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 10907 } 10908 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 10909 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10910 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 10911 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 10912 { 10913 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 10914 } 10915 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 10916 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10917 let borderWidth_buf__u_left_buf: Length | undefined|undefined 10918 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 10919 { 10920 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 10921 } 10922 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 10923 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 10924 } 10925 else if (borderWidth_buf__selector == 2) { 10926 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 10927 } 10928 else { 10929 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 10930 } 10931 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 10932 } 10933 const borderWidth_result: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = borderWidth_buf 10934 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10935 let borderColor_buf: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 10936 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 10937 { 10938 const borderColor_buf__selector: number = valueDeserializer.readInt8() 10939 let borderColor_buf_: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 10940 if (borderColor_buf__selector == 0) { 10941 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 10942 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 10943 if (borderColor_buf__u_selector == 0) { 10944 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 10945 } 10946 else if (borderColor_buf__u_selector == 1) { 10947 borderColor_buf__u = (valueDeserializer.readNumber() as number) 10948 } 10949 else if (borderColor_buf__u_selector == 2) { 10950 borderColor_buf__u = (valueDeserializer.readString() as string) 10951 } 10952 else if (borderColor_buf__u_selector == 3) { 10953 borderColor_buf__u = valueDeserializer.readResource() 10954 } 10955 else { 10956 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 10957 } 10958 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 10959 } 10960 else if (borderColor_buf__selector == 1) { 10961 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10962 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 10963 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 10964 { 10965 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 10966 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 10967 if (borderColor_buf__u_top_buf__selector == 0) { 10968 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 10969 } 10970 else if (borderColor_buf__u_top_buf__selector == 1) { 10971 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 10972 } 10973 else if (borderColor_buf__u_top_buf__selector == 2) { 10974 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 10975 } 10976 else if (borderColor_buf__u_top_buf__selector == 3) { 10977 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 10978 } 10979 else { 10980 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 10981 } 10982 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 10983 } 10984 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 10985 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10986 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 10987 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 10988 { 10989 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 10990 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 10991 if (borderColor_buf__u_right_buf__selector == 0) { 10992 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 10993 } 10994 else if (borderColor_buf__u_right_buf__selector == 1) { 10995 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 10996 } 10997 else if (borderColor_buf__u_right_buf__selector == 2) { 10998 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 10999 } 11000 else if (borderColor_buf__u_right_buf__selector == 3) { 11001 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11002 } 11003 else { 11004 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 11005 } 11006 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 11007 } 11008 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 11009 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11010 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 11011 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 11012 { 11013 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 11014 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 11015 if (borderColor_buf__u_bottom_buf__selector == 0) { 11016 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 11017 } 11018 else if (borderColor_buf__u_bottom_buf__selector == 1) { 11019 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 11020 } 11021 else if (borderColor_buf__u_bottom_buf__selector == 2) { 11022 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 11023 } 11024 else if (borderColor_buf__u_bottom_buf__selector == 3) { 11025 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 11026 } 11027 else { 11028 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 11029 } 11030 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 11031 } 11032 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 11033 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11034 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 11035 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 11036 { 11037 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 11038 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 11039 if (borderColor_buf__u_left_buf__selector == 0) { 11040 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 11041 } 11042 else if (borderColor_buf__u_left_buf__selector == 1) { 11043 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 11044 } 11045 else if (borderColor_buf__u_left_buf__selector == 2) { 11046 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 11047 } 11048 else if (borderColor_buf__u_left_buf__selector == 3) { 11049 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 11050 } 11051 else { 11052 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 11053 } 11054 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 11055 } 11056 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 11057 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 11058 } 11059 else if (borderColor_buf__selector == 2) { 11060 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 11061 } 11062 else { 11063 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 11064 } 11065 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 11066 } 11067 const borderColor_result: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined = borderColor_buf 11068 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11069 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 11070 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 11071 { 11072 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 11073 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 11074 if (borderStyle_buf__selector == 0) { 11075 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 11076 } 11077 else if (borderStyle_buf__selector == 1) { 11078 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11079 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 11080 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 11081 { 11082 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 11083 } 11084 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 11085 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11086 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 11087 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 11088 { 11089 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 11090 } 11091 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 11092 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11093 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 11094 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 11095 { 11096 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 11097 } 11098 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 11099 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11100 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 11101 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 11102 { 11103 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 11104 } 11105 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 11106 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 11107 } 11108 else { 11109 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 11110 } 11111 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 11112 } 11113 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 11114 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11115 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 11116 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 11117 { 11118 const shadow_buf__selector: number = valueDeserializer.readInt8() 11119 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 11120 if (shadow_buf__selector == 0) { 11121 shadow_buf_ = valueDeserializer.readShadowOptions() 11122 } 11123 else if (shadow_buf__selector == 1) { 11124 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 11125 } 11126 else { 11127 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 11128 } 11129 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 11130 } 11131 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 11132 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11133 let textStyle_buf: TextStyle_alert_dialog | undefined|undefined 11134 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 11135 { 11136 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 11137 } 11138 const textStyle_result: TextStyle_alert_dialog | undefined|undefined = textStyle_buf 11139 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11140 let enableHoverMode_buf: boolean | undefined|undefined 11141 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 11142 { 11143 enableHoverMode_buf = valueDeserializer.readBoolean() 11144 } 11145 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 11146 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11147 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 11148 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 11149 { 11150 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 11151 } 11152 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 11153 const buttons_buf_length: int32 = valueDeserializer.readInt32() 11154 let buttons_buf: Array<AlertDialogButtonOptions> = new Array<AlertDialogButtonOptions>(buttons_buf_length) 11155 for (let buttons_buf_i = 0; buttons_buf_i < buttons_buf_length; buttons_buf_i++) { 11156 buttons_buf[buttons_buf_i] = valueDeserializer.readAlertDialogButtonOptions() 11157 } 11158 const buttons_result: Array<AlertDialogButtonOptions> = buttons_buf 11159 const buttonDirection_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11160 let buttonDirection_buf: DialogButtonDirection | undefined|undefined 11161 if ((RuntimeType.UNDEFINED) != (buttonDirection_buf_runtimeType)) 11162 { 11163 buttonDirection_buf = (valueDeserializer.readInt32() as DialogButtonDirection) 11164 } 11165 const buttonDirection_result: DialogButtonDirection | undefined|undefined = buttonDirection_buf 11166 let value: AlertDialogParamWithOptions = ({title: title_result, subtitle: subtitle_result, message: message_result, autoCancel: autoCancel_result, cancel: cancel_result, alignment: alignment_result, offset: offset_result, gridCount: gridCount_result, maskRect: maskRect_result, showInSubWindow: showInSubWindow_result, isModal: isModal_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onWillDismiss: onWillDismiss_result, transition: transition_result, cornerRadius: cornerRadius_result, width: width_result, height: height_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, textStyle: textStyle_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result, buttons: buttons_result, buttonDirection: buttonDirection_result} as AlertDialogParamWithOptions) 11167 return value 11168 } 11169 readAlertDialogParamWithButtons(): AlertDialogParamWithButtons { 11170 let valueDeserializer: Deserializer = this 11171 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11172 let title_buf: ResourceStr | undefined|undefined 11173 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 11174 { 11175 const title_buf__selector: number = valueDeserializer.readInt8() 11176 let title_buf_: string | Resource | undefined|undefined 11177 if (title_buf__selector == 0) { 11178 title_buf_ = (valueDeserializer.readString() as string) 11179 } 11180 else if (title_buf__selector == 1) { 11181 title_buf_ = valueDeserializer.readResource() 11182 } 11183 else { 11184 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 11185 } 11186 title_buf = (title_buf_ as string | Resource) 11187 } 11188 const title_result: ResourceStr | undefined|undefined = title_buf 11189 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11190 let subtitle_buf: ResourceStr | undefined|undefined 11191 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 11192 { 11193 const subtitle_buf__selector: number = valueDeserializer.readInt8() 11194 let subtitle_buf_: string | Resource | undefined|undefined 11195 if (subtitle_buf__selector == 0) { 11196 subtitle_buf_ = (valueDeserializer.readString() as string) 11197 } 11198 else if (subtitle_buf__selector == 1) { 11199 subtitle_buf_ = valueDeserializer.readResource() 11200 } 11201 else { 11202 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 11203 } 11204 subtitle_buf = (subtitle_buf_ as string | Resource) 11205 } 11206 const subtitle_result: ResourceStr | undefined|undefined = subtitle_buf 11207 const message_buf_selector: number = valueDeserializer.readInt8() 11208 let message_buf: string | Resource | undefined|undefined 11209 if (message_buf_selector == 0) { 11210 message_buf = (valueDeserializer.readString() as string) 11211 } 11212 else if (message_buf_selector == 1) { 11213 message_buf = valueDeserializer.readResource() 11214 } 11215 else { 11216 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 11217 } 11218 const message_result: ResourceStr = (message_buf as string | Resource) 11219 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11220 let autoCancel_buf: boolean | undefined|undefined 11221 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 11222 { 11223 autoCancel_buf = valueDeserializer.readBoolean() 11224 } 11225 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 11226 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11227 let cancel_buf: VoidCallback | undefined|undefined 11228 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 11229 { 11230 cancel_buf = valueDeserializer.readVoidCallback() 11231 } 11232 const cancel_result: VoidCallback | undefined|undefined = cancel_buf 11233 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11234 let alignment_buf: DialogAlignment | undefined|undefined 11235 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 11236 { 11237 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 11238 } 11239 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 11240 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11241 let offset_buf: Offset | undefined|undefined 11242 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 11243 { 11244 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 11245 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 11246 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 11247 } 11248 const offset_result: Offset | undefined|undefined = offset_buf 11249 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11250 let gridCount_buf: number | undefined|undefined 11251 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 11252 { 11253 gridCount_buf = (valueDeserializer.readNumber() as number) 11254 } 11255 const gridCount_result: number | undefined|undefined = gridCount_buf 11256 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11257 let maskRect_buf: Rectangle | undefined|undefined 11258 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 11259 { 11260 maskRect_buf = valueDeserializer.readRectangle() 11261 } 11262 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 11263 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11264 let showInSubWindow_buf: boolean | undefined|undefined 11265 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 11266 { 11267 showInSubWindow_buf = valueDeserializer.readBoolean() 11268 } 11269 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 11270 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11271 let isModal_buf: boolean | undefined|undefined 11272 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 11273 { 11274 isModal_buf = valueDeserializer.readBoolean() 11275 } 11276 const isModal_result: boolean | undefined|undefined = isModal_buf 11277 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11278 let backgroundColor_buf: ResourceColor | undefined|undefined 11279 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 11280 { 11281 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 11282 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 11283 if (backgroundColor_buf__selector == 0) { 11284 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 11285 } 11286 else if (backgroundColor_buf__selector == 1) { 11287 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 11288 } 11289 else if (backgroundColor_buf__selector == 2) { 11290 backgroundColor_buf_ = (valueDeserializer.readString() as string) 11291 } 11292 else if (backgroundColor_buf__selector == 3) { 11293 backgroundColor_buf_ = valueDeserializer.readResource() 11294 } 11295 else { 11296 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 11297 } 11298 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 11299 } 11300 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 11301 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11302 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 11303 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 11304 { 11305 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 11306 } 11307 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 11308 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11309 let onWillDismiss_buf: ((parameter: DismissDialogAction) => void) | undefined|undefined 11310 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 11311 { 11312 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 11313 } 11314 const onWillDismiss_result: ((parameter: DismissDialogAction) => void) | undefined|undefined = onWillDismiss_buf 11315 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11316 let transition_buf: TransitionEffect | undefined|undefined 11317 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 11318 { 11319 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 11320 } 11321 const transition_result: TransitionEffect | undefined|undefined = transition_buf 11322 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11323 let cornerRadius_buf: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 11324 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 11325 { 11326 const cornerRadius_buf__selector: number = valueDeserializer.readInt8() 11327 let cornerRadius_buf_: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 11328 if (cornerRadius_buf__selector == 0) { 11329 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 11330 } 11331 else if (cornerRadius_buf__selector == 1) { 11332 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11333 let cornerRadius_buf__u_topLeft_buf: Length | undefined|undefined 11334 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 11335 { 11336 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 11337 } 11338 const cornerRadius_buf__u_topLeft: undefined | Length = cornerRadius_buf__u_topLeft_buf 11339 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11340 let cornerRadius_buf__u_topRight_buf: Length | undefined|undefined 11341 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 11342 { 11343 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 11344 } 11345 const cornerRadius_buf__u_topRight: undefined | Length = cornerRadius_buf__u_topRight_buf 11346 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11347 let cornerRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 11348 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 11349 { 11350 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 11351 } 11352 const cornerRadius_buf__u_bottomLeft: undefined | Length = cornerRadius_buf__u_bottomLeft_buf 11353 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11354 let cornerRadius_buf__u_bottomRight_buf: Length | undefined|undefined 11355 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 11356 { 11357 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 11358 } 11359 const cornerRadius_buf__u_bottomRight: undefined | Length = cornerRadius_buf__u_bottomRight_buf 11360 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 11361 } 11362 else if (cornerRadius_buf__selector == 2) { 11363 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 11364 } 11365 else { 11366 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 11367 } 11368 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 11369 } 11370 const cornerRadius_result: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = cornerRadius_buf 11371 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11372 let width_buf: Dimension | undefined|undefined 11373 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 11374 { 11375 width_buf = (valueDeserializer.readLength() as Dimension) 11376 } 11377 const width_result: Dimension | undefined|undefined = width_buf 11378 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11379 let height_buf: Dimension | undefined|undefined 11380 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 11381 { 11382 height_buf = (valueDeserializer.readLength() as Dimension) 11383 } 11384 const height_result: Dimension | undefined|undefined = height_buf 11385 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11386 let borderWidth_buf: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 11387 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 11388 { 11389 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 11390 let borderWidth_buf_: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 11391 if (borderWidth_buf__selector == 0) { 11392 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 11393 } 11394 else if (borderWidth_buf__selector == 1) { 11395 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11396 let borderWidth_buf__u_top_buf: Length | undefined|undefined 11397 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 11398 { 11399 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 11400 } 11401 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 11402 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11403 let borderWidth_buf__u_right_buf: Length | undefined|undefined 11404 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 11405 { 11406 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 11407 } 11408 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 11409 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11410 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 11411 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 11412 { 11413 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 11414 } 11415 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 11416 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11417 let borderWidth_buf__u_left_buf: Length | undefined|undefined 11418 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 11419 { 11420 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 11421 } 11422 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 11423 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 11424 } 11425 else if (borderWidth_buf__selector == 2) { 11426 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 11427 } 11428 else { 11429 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 11430 } 11431 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 11432 } 11433 const borderWidth_result: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = borderWidth_buf 11434 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11435 let borderColor_buf: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 11436 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 11437 { 11438 const borderColor_buf__selector: number = valueDeserializer.readInt8() 11439 let borderColor_buf_: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 11440 if (borderColor_buf__selector == 0) { 11441 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 11442 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 11443 if (borderColor_buf__u_selector == 0) { 11444 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 11445 } 11446 else if (borderColor_buf__u_selector == 1) { 11447 borderColor_buf__u = (valueDeserializer.readNumber() as number) 11448 } 11449 else if (borderColor_buf__u_selector == 2) { 11450 borderColor_buf__u = (valueDeserializer.readString() as string) 11451 } 11452 else if (borderColor_buf__u_selector == 3) { 11453 borderColor_buf__u = valueDeserializer.readResource() 11454 } 11455 else { 11456 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 11457 } 11458 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 11459 } 11460 else if (borderColor_buf__selector == 1) { 11461 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11462 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 11463 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 11464 { 11465 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 11466 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 11467 if (borderColor_buf__u_top_buf__selector == 0) { 11468 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 11469 } 11470 else if (borderColor_buf__u_top_buf__selector == 1) { 11471 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 11472 } 11473 else if (borderColor_buf__u_top_buf__selector == 2) { 11474 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 11475 } 11476 else if (borderColor_buf__u_top_buf__selector == 3) { 11477 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 11478 } 11479 else { 11480 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 11481 } 11482 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 11483 } 11484 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 11485 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11486 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 11487 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 11488 { 11489 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 11490 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 11491 if (borderColor_buf__u_right_buf__selector == 0) { 11492 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 11493 } 11494 else if (borderColor_buf__u_right_buf__selector == 1) { 11495 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 11496 } 11497 else if (borderColor_buf__u_right_buf__selector == 2) { 11498 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 11499 } 11500 else if (borderColor_buf__u_right_buf__selector == 3) { 11501 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11502 } 11503 else { 11504 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 11505 } 11506 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 11507 } 11508 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 11509 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11510 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 11511 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 11512 { 11513 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 11514 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 11515 if (borderColor_buf__u_bottom_buf__selector == 0) { 11516 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 11517 } 11518 else if (borderColor_buf__u_bottom_buf__selector == 1) { 11519 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 11520 } 11521 else if (borderColor_buf__u_bottom_buf__selector == 2) { 11522 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 11523 } 11524 else if (borderColor_buf__u_bottom_buf__selector == 3) { 11525 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 11526 } 11527 else { 11528 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 11529 } 11530 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 11531 } 11532 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 11533 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11534 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 11535 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 11536 { 11537 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 11538 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 11539 if (borderColor_buf__u_left_buf__selector == 0) { 11540 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 11541 } 11542 else if (borderColor_buf__u_left_buf__selector == 1) { 11543 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 11544 } 11545 else if (borderColor_buf__u_left_buf__selector == 2) { 11546 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 11547 } 11548 else if (borderColor_buf__u_left_buf__selector == 3) { 11549 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 11550 } 11551 else { 11552 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 11553 } 11554 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 11555 } 11556 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 11557 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 11558 } 11559 else if (borderColor_buf__selector == 2) { 11560 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 11561 } 11562 else { 11563 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 11564 } 11565 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 11566 } 11567 const borderColor_result: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined = borderColor_buf 11568 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11569 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 11570 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 11571 { 11572 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 11573 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 11574 if (borderStyle_buf__selector == 0) { 11575 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 11576 } 11577 else if (borderStyle_buf__selector == 1) { 11578 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11579 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 11580 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 11581 { 11582 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 11583 } 11584 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 11585 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11586 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 11587 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 11588 { 11589 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 11590 } 11591 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 11592 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11593 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 11594 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 11595 { 11596 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 11597 } 11598 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 11599 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11600 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 11601 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 11602 { 11603 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 11604 } 11605 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 11606 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 11607 } 11608 else { 11609 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 11610 } 11611 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 11612 } 11613 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 11614 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11615 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 11616 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 11617 { 11618 const shadow_buf__selector: number = valueDeserializer.readInt8() 11619 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 11620 if (shadow_buf__selector == 0) { 11621 shadow_buf_ = valueDeserializer.readShadowOptions() 11622 } 11623 else if (shadow_buf__selector == 1) { 11624 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 11625 } 11626 else { 11627 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 11628 } 11629 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 11630 } 11631 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 11632 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11633 let textStyle_buf: TextStyle_alert_dialog | undefined|undefined 11634 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 11635 { 11636 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 11637 } 11638 const textStyle_result: TextStyle_alert_dialog | undefined|undefined = textStyle_buf 11639 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11640 let enableHoverMode_buf: boolean | undefined|undefined 11641 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 11642 { 11643 enableHoverMode_buf = valueDeserializer.readBoolean() 11644 } 11645 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 11646 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11647 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 11648 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 11649 { 11650 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 11651 } 11652 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 11653 const primaryButton_result: AlertDialogButtonBaseOptions = valueDeserializer.readAlertDialogButtonBaseOptions() 11654 const secondaryButton_result: AlertDialogButtonBaseOptions = valueDeserializer.readAlertDialogButtonBaseOptions() 11655 let value: AlertDialogParamWithButtons = ({title: title_result, subtitle: subtitle_result, message: message_result, autoCancel: autoCancel_result, cancel: cancel_result, alignment: alignment_result, offset: offset_result, gridCount: gridCount_result, maskRect: maskRect_result, showInSubWindow: showInSubWindow_result, isModal: isModal_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onWillDismiss: onWillDismiss_result, transition: transition_result, cornerRadius: cornerRadius_result, width: width_result, height: height_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, textStyle: textStyle_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result, primaryButton: primaryButton_result, secondaryButton: secondaryButton_result} as AlertDialogParamWithButtons) 11656 return value 11657 } 11658 readAlertDialogParamWithConfirm(): AlertDialogParamWithConfirm { 11659 let valueDeserializer: Deserializer = this 11660 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11661 let title_buf: ResourceStr | undefined|undefined 11662 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 11663 { 11664 const title_buf__selector: number = valueDeserializer.readInt8() 11665 let title_buf_: string | Resource | undefined|undefined 11666 if (title_buf__selector == 0) { 11667 title_buf_ = (valueDeserializer.readString() as string) 11668 } 11669 else if (title_buf__selector == 1) { 11670 title_buf_ = valueDeserializer.readResource() 11671 } 11672 else { 11673 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 11674 } 11675 title_buf = (title_buf_ as string | Resource) 11676 } 11677 const title_result: ResourceStr | undefined|undefined = title_buf 11678 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11679 let subtitle_buf: ResourceStr | undefined|undefined 11680 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 11681 { 11682 const subtitle_buf__selector: number = valueDeserializer.readInt8() 11683 let subtitle_buf_: string | Resource | undefined|undefined 11684 if (subtitle_buf__selector == 0) { 11685 subtitle_buf_ = (valueDeserializer.readString() as string) 11686 } 11687 else if (subtitle_buf__selector == 1) { 11688 subtitle_buf_ = valueDeserializer.readResource() 11689 } 11690 else { 11691 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 11692 } 11693 subtitle_buf = (subtitle_buf_ as string | Resource) 11694 } 11695 const subtitle_result: ResourceStr | undefined|undefined = subtitle_buf 11696 const message_buf_selector: number = valueDeserializer.readInt8() 11697 let message_buf: string | Resource | undefined|undefined 11698 if (message_buf_selector == 0) { 11699 message_buf = (valueDeserializer.readString() as string) 11700 } 11701 else if (message_buf_selector == 1) { 11702 message_buf = valueDeserializer.readResource() 11703 } 11704 else { 11705 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 11706 } 11707 const message_result: ResourceStr = (message_buf as string | Resource) 11708 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11709 let autoCancel_buf: boolean | undefined|undefined 11710 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 11711 { 11712 autoCancel_buf = valueDeserializer.readBoolean() 11713 } 11714 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 11715 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11716 let cancel_buf: VoidCallback | undefined|undefined 11717 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 11718 { 11719 cancel_buf = valueDeserializer.readVoidCallback() 11720 } 11721 const cancel_result: VoidCallback | undefined|undefined = cancel_buf 11722 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11723 let alignment_buf: DialogAlignment | undefined|undefined 11724 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 11725 { 11726 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 11727 } 11728 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 11729 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11730 let offset_buf: Offset | undefined|undefined 11731 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 11732 { 11733 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 11734 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 11735 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 11736 } 11737 const offset_result: Offset | undefined|undefined = offset_buf 11738 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11739 let gridCount_buf: number | undefined|undefined 11740 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 11741 { 11742 gridCount_buf = (valueDeserializer.readNumber() as number) 11743 } 11744 const gridCount_result: number | undefined|undefined = gridCount_buf 11745 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11746 let maskRect_buf: Rectangle | undefined|undefined 11747 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 11748 { 11749 maskRect_buf = valueDeserializer.readRectangle() 11750 } 11751 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 11752 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11753 let showInSubWindow_buf: boolean | undefined|undefined 11754 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 11755 { 11756 showInSubWindow_buf = valueDeserializer.readBoolean() 11757 } 11758 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 11759 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11760 let isModal_buf: boolean | undefined|undefined 11761 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 11762 { 11763 isModal_buf = valueDeserializer.readBoolean() 11764 } 11765 const isModal_result: boolean | undefined|undefined = isModal_buf 11766 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11767 let backgroundColor_buf: ResourceColor | undefined|undefined 11768 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 11769 { 11770 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 11771 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 11772 if (backgroundColor_buf__selector == 0) { 11773 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 11774 } 11775 else if (backgroundColor_buf__selector == 1) { 11776 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 11777 } 11778 else if (backgroundColor_buf__selector == 2) { 11779 backgroundColor_buf_ = (valueDeserializer.readString() as string) 11780 } 11781 else if (backgroundColor_buf__selector == 3) { 11782 backgroundColor_buf_ = valueDeserializer.readResource() 11783 } 11784 else { 11785 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 11786 } 11787 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 11788 } 11789 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 11790 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11791 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 11792 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 11793 { 11794 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 11795 } 11796 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 11797 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11798 let onWillDismiss_buf: ((parameter: DismissDialogAction) => void) | undefined|undefined 11799 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 11800 { 11801 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 11802 } 11803 const onWillDismiss_result: ((parameter: DismissDialogAction) => void) | undefined|undefined = onWillDismiss_buf 11804 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11805 let transition_buf: TransitionEffect | undefined|undefined 11806 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 11807 { 11808 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 11809 } 11810 const transition_result: TransitionEffect | undefined|undefined = transition_buf 11811 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11812 let cornerRadius_buf: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 11813 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 11814 { 11815 const cornerRadius_buf__selector: number = valueDeserializer.readInt8() 11816 let cornerRadius_buf_: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 11817 if (cornerRadius_buf__selector == 0) { 11818 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 11819 } 11820 else if (cornerRadius_buf__selector == 1) { 11821 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11822 let cornerRadius_buf__u_topLeft_buf: Length | undefined|undefined 11823 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 11824 { 11825 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 11826 } 11827 const cornerRadius_buf__u_topLeft: undefined | Length = cornerRadius_buf__u_topLeft_buf 11828 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11829 let cornerRadius_buf__u_topRight_buf: Length | undefined|undefined 11830 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 11831 { 11832 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 11833 } 11834 const cornerRadius_buf__u_topRight: undefined | Length = cornerRadius_buf__u_topRight_buf 11835 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11836 let cornerRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 11837 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 11838 { 11839 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 11840 } 11841 const cornerRadius_buf__u_bottomLeft: undefined | Length = cornerRadius_buf__u_bottomLeft_buf 11842 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11843 let cornerRadius_buf__u_bottomRight_buf: Length | undefined|undefined 11844 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 11845 { 11846 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 11847 } 11848 const cornerRadius_buf__u_bottomRight: undefined | Length = cornerRadius_buf__u_bottomRight_buf 11849 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 11850 } 11851 else if (cornerRadius_buf__selector == 2) { 11852 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 11853 } 11854 else { 11855 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 11856 } 11857 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 11858 } 11859 const cornerRadius_result: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = cornerRadius_buf 11860 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11861 let width_buf: Dimension | undefined|undefined 11862 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 11863 { 11864 width_buf = (valueDeserializer.readLength() as Dimension) 11865 } 11866 const width_result: Dimension | undefined|undefined = width_buf 11867 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11868 let height_buf: Dimension | undefined|undefined 11869 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 11870 { 11871 height_buf = (valueDeserializer.readLength() as Dimension) 11872 } 11873 const height_result: Dimension | undefined|undefined = height_buf 11874 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11875 let borderWidth_buf: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 11876 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 11877 { 11878 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 11879 let borderWidth_buf_: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 11880 if (borderWidth_buf__selector == 0) { 11881 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 11882 } 11883 else if (borderWidth_buf__selector == 1) { 11884 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11885 let borderWidth_buf__u_top_buf: Length | undefined|undefined 11886 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 11887 { 11888 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 11889 } 11890 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 11891 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11892 let borderWidth_buf__u_right_buf: Length | undefined|undefined 11893 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 11894 { 11895 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 11896 } 11897 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 11898 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11899 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 11900 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 11901 { 11902 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 11903 } 11904 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 11905 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11906 let borderWidth_buf__u_left_buf: Length | undefined|undefined 11907 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 11908 { 11909 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 11910 } 11911 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 11912 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 11913 } 11914 else if (borderWidth_buf__selector == 2) { 11915 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 11916 } 11917 else { 11918 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 11919 } 11920 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 11921 } 11922 const borderWidth_result: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = borderWidth_buf 11923 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11924 let borderColor_buf: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 11925 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 11926 { 11927 const borderColor_buf__selector: number = valueDeserializer.readInt8() 11928 let borderColor_buf_: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 11929 if (borderColor_buf__selector == 0) { 11930 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 11931 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 11932 if (borderColor_buf__u_selector == 0) { 11933 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 11934 } 11935 else if (borderColor_buf__u_selector == 1) { 11936 borderColor_buf__u = (valueDeserializer.readNumber() as number) 11937 } 11938 else if (borderColor_buf__u_selector == 2) { 11939 borderColor_buf__u = (valueDeserializer.readString() as string) 11940 } 11941 else if (borderColor_buf__u_selector == 3) { 11942 borderColor_buf__u = valueDeserializer.readResource() 11943 } 11944 else { 11945 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 11946 } 11947 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 11948 } 11949 else if (borderColor_buf__selector == 1) { 11950 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11951 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 11952 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 11953 { 11954 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 11955 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 11956 if (borderColor_buf__u_top_buf__selector == 0) { 11957 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 11958 } 11959 else if (borderColor_buf__u_top_buf__selector == 1) { 11960 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 11961 } 11962 else if (borderColor_buf__u_top_buf__selector == 2) { 11963 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 11964 } 11965 else if (borderColor_buf__u_top_buf__selector == 3) { 11966 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 11967 } 11968 else { 11969 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 11970 } 11971 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 11972 } 11973 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 11974 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11975 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 11976 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 11977 { 11978 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 11979 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 11980 if (borderColor_buf__u_right_buf__selector == 0) { 11981 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 11982 } 11983 else if (borderColor_buf__u_right_buf__selector == 1) { 11984 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 11985 } 11986 else if (borderColor_buf__u_right_buf__selector == 2) { 11987 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 11988 } 11989 else if (borderColor_buf__u_right_buf__selector == 3) { 11990 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11991 } 11992 else { 11993 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 11994 } 11995 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 11996 } 11997 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 11998 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11999 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 12000 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 12001 { 12002 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 12003 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 12004 if (borderColor_buf__u_bottom_buf__selector == 0) { 12005 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 12006 } 12007 else if (borderColor_buf__u_bottom_buf__selector == 1) { 12008 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 12009 } 12010 else if (borderColor_buf__u_bottom_buf__selector == 2) { 12011 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 12012 } 12013 else if (borderColor_buf__u_bottom_buf__selector == 3) { 12014 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 12015 } 12016 else { 12017 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 12018 } 12019 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 12020 } 12021 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 12022 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12023 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 12024 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 12025 { 12026 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 12027 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 12028 if (borderColor_buf__u_left_buf__selector == 0) { 12029 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 12030 } 12031 else if (borderColor_buf__u_left_buf__selector == 1) { 12032 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 12033 } 12034 else if (borderColor_buf__u_left_buf__selector == 2) { 12035 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 12036 } 12037 else if (borderColor_buf__u_left_buf__selector == 3) { 12038 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 12039 } 12040 else { 12041 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 12042 } 12043 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 12044 } 12045 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 12046 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 12047 } 12048 else if (borderColor_buf__selector == 2) { 12049 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 12050 } 12051 else { 12052 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 12053 } 12054 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 12055 } 12056 const borderColor_result: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined = borderColor_buf 12057 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12058 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 12059 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 12060 { 12061 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 12062 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 12063 if (borderStyle_buf__selector == 0) { 12064 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 12065 } 12066 else if (borderStyle_buf__selector == 1) { 12067 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12068 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 12069 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 12070 { 12071 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 12072 } 12073 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 12074 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12075 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 12076 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 12077 { 12078 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 12079 } 12080 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 12081 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12082 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 12083 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 12084 { 12085 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 12086 } 12087 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 12088 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12089 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 12090 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 12091 { 12092 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 12093 } 12094 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 12095 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 12096 } 12097 else { 12098 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 12099 } 12100 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 12101 } 12102 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 12103 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12104 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 12105 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 12106 { 12107 const shadow_buf__selector: number = valueDeserializer.readInt8() 12108 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 12109 if (shadow_buf__selector == 0) { 12110 shadow_buf_ = valueDeserializer.readShadowOptions() 12111 } 12112 else if (shadow_buf__selector == 1) { 12113 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 12114 } 12115 else { 12116 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 12117 } 12118 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 12119 } 12120 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 12121 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12122 let textStyle_buf: TextStyle_alert_dialog | undefined|undefined 12123 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 12124 { 12125 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 12126 } 12127 const textStyle_result: TextStyle_alert_dialog | undefined|undefined = textStyle_buf 12128 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12129 let enableHoverMode_buf: boolean | undefined|undefined 12130 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 12131 { 12132 enableHoverMode_buf = valueDeserializer.readBoolean() 12133 } 12134 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 12135 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12136 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 12137 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 12138 { 12139 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 12140 } 12141 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 12142 const confirm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12143 let confirm_buf: AlertDialogButtonBaseOptions | undefined|undefined 12144 if ((RuntimeType.UNDEFINED) != (confirm_buf_runtimeType)) 12145 { 12146 confirm_buf = valueDeserializer.readAlertDialogButtonBaseOptions() 12147 } 12148 const confirm_result: AlertDialogButtonBaseOptions | undefined|undefined = confirm_buf 12149 let value: AlertDialogParamWithConfirm = ({title: title_result, subtitle: subtitle_result, message: message_result, autoCancel: autoCancel_result, cancel: cancel_result, alignment: alignment_result, offset: offset_result, gridCount: gridCount_result, maskRect: maskRect_result, showInSubWindow: showInSubWindow_result, isModal: isModal_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onWillDismiss: onWillDismiss_result, transition: transition_result, cornerRadius: cornerRadius_result, width: width_result, height: height_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, textStyle: textStyle_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result, confirm: confirm_result} as AlertDialogParamWithConfirm) 12150 return value 12151 } 12152 readActionSheetOptions(): ActionSheetOptions { 12153 let valueDeserializer: Deserializer = this 12154 const title_buf_selector: number = valueDeserializer.readInt8() 12155 let title_buf: string | Resource | undefined|undefined 12156 if (title_buf_selector == 0) { 12157 title_buf = (valueDeserializer.readString() as string) 12158 } 12159 else if (title_buf_selector == 1) { 12160 title_buf = valueDeserializer.readResource() 12161 } 12162 else { 12163 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 12164 } 12165 const title_result: string | Resource = (title_buf as string | Resource) 12166 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12167 let subtitle_buf: ResourceStr | undefined|undefined 12168 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 12169 { 12170 const subtitle_buf__selector: number = valueDeserializer.readInt8() 12171 let subtitle_buf_: string | Resource | undefined|undefined 12172 if (subtitle_buf__selector == 0) { 12173 subtitle_buf_ = (valueDeserializer.readString() as string) 12174 } 12175 else if (subtitle_buf__selector == 1) { 12176 subtitle_buf_ = valueDeserializer.readResource() 12177 } 12178 else { 12179 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 12180 } 12181 subtitle_buf = (subtitle_buf_ as string | Resource) 12182 } 12183 const subtitle_result: ResourceStr | undefined|undefined = subtitle_buf 12184 const message_buf_selector: number = valueDeserializer.readInt8() 12185 let message_buf: string | Resource | undefined|undefined 12186 if (message_buf_selector == 0) { 12187 message_buf = (valueDeserializer.readString() as string) 12188 } 12189 else if (message_buf_selector == 1) { 12190 message_buf = valueDeserializer.readResource() 12191 } 12192 else { 12193 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 12194 } 12195 const message_result: string | Resource = (message_buf as string | Resource) 12196 const confirm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12197 let confirm_buf: ActionSheetButtonOptions | undefined|undefined 12198 if ((RuntimeType.UNDEFINED) != (confirm_buf_runtimeType)) 12199 { 12200 confirm_buf = valueDeserializer.readActionSheetButtonOptions() 12201 } 12202 const confirm_result: ActionSheetButtonOptions | undefined|undefined = confirm_buf 12203 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12204 let cancel_buf: VoidCallback | undefined|undefined 12205 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 12206 { 12207 cancel_buf = valueDeserializer.readVoidCallback() 12208 } 12209 const cancel_result: VoidCallback | undefined|undefined = cancel_buf 12210 const sheets_buf_length: int32 = valueDeserializer.readInt32() 12211 let sheets_buf: Array<SheetInfo> = new Array<SheetInfo>(sheets_buf_length) 12212 for (let sheets_buf_i = 0; sheets_buf_i < sheets_buf_length; sheets_buf_i++) { 12213 sheets_buf[sheets_buf_i] = valueDeserializer.readSheetInfo() 12214 } 12215 const sheets_result: Array<SheetInfo> = sheets_buf 12216 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12217 let autoCancel_buf: boolean | undefined|undefined 12218 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 12219 { 12220 autoCancel_buf = valueDeserializer.readBoolean() 12221 } 12222 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 12223 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12224 let alignment_buf: DialogAlignment | undefined|undefined 12225 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 12226 { 12227 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 12228 } 12229 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 12230 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12231 let offset_buf: ActionSheetOffset | undefined|undefined 12232 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 12233 { 12234 offset_buf = valueDeserializer.readActionSheetOffset() 12235 } 12236 const offset_result: ActionSheetOffset | undefined|undefined = offset_buf 12237 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12238 let maskRect_buf: Rectangle | undefined|undefined 12239 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 12240 { 12241 maskRect_buf = valueDeserializer.readRectangle() 12242 } 12243 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 12244 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12245 let showInSubWindow_buf: boolean | undefined|undefined 12246 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 12247 { 12248 showInSubWindow_buf = valueDeserializer.readBoolean() 12249 } 12250 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 12251 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12252 let isModal_buf: boolean | undefined|undefined 12253 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 12254 { 12255 isModal_buf = valueDeserializer.readBoolean() 12256 } 12257 const isModal_result: boolean | undefined|undefined = isModal_buf 12258 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12259 let backgroundColor_buf: ResourceColor | undefined|undefined 12260 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 12261 { 12262 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 12263 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 12264 if (backgroundColor_buf__selector == 0) { 12265 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 12266 } 12267 else if (backgroundColor_buf__selector == 1) { 12268 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 12269 } 12270 else if (backgroundColor_buf__selector == 2) { 12271 backgroundColor_buf_ = (valueDeserializer.readString() as string) 12272 } 12273 else if (backgroundColor_buf__selector == 3) { 12274 backgroundColor_buf_ = valueDeserializer.readResource() 12275 } 12276 else { 12277 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 12278 } 12279 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 12280 } 12281 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 12282 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12283 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 12284 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 12285 { 12286 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 12287 } 12288 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 12289 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12290 let onWillDismiss_buf: ((parameter: DismissDialogAction) => void) | undefined|undefined 12291 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 12292 { 12293 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 12294 } 12295 const onWillDismiss_result: ((parameter: DismissDialogAction) => void) | undefined|undefined = onWillDismiss_buf 12296 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12297 let transition_buf: TransitionEffect | undefined|undefined 12298 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 12299 { 12300 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 12301 } 12302 const transition_result: TransitionEffect | undefined|undefined = transition_buf 12303 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12304 let cornerRadius_buf: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 12305 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 12306 { 12307 const cornerRadius_buf__selector: number = valueDeserializer.readInt8() 12308 let cornerRadius_buf_: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined 12309 if (cornerRadius_buf__selector == 0) { 12310 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 12311 } 12312 else if (cornerRadius_buf__selector == 1) { 12313 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12314 let cornerRadius_buf__u_topLeft_buf: Length | undefined|undefined 12315 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 12316 { 12317 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 12318 } 12319 const cornerRadius_buf__u_topLeft: undefined | Length = cornerRadius_buf__u_topLeft_buf 12320 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12321 let cornerRadius_buf__u_topRight_buf: Length | undefined|undefined 12322 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 12323 { 12324 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 12325 } 12326 const cornerRadius_buf__u_topRight: undefined | Length = cornerRadius_buf__u_topRight_buf 12327 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12328 let cornerRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 12329 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 12330 { 12331 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 12332 } 12333 const cornerRadius_buf__u_bottomLeft: undefined | Length = cornerRadius_buf__u_bottomLeft_buf 12334 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12335 let cornerRadius_buf__u_bottomRight_buf: Length | undefined|undefined 12336 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 12337 { 12338 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 12339 } 12340 const cornerRadius_buf__u_bottomRight: undefined | Length = cornerRadius_buf__u_bottomRight_buf 12341 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 12342 } 12343 else if (cornerRadius_buf__selector == 2) { 12344 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 12345 } 12346 else { 12347 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 12348 } 12349 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 12350 } 12351 const cornerRadius_result: Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined|undefined = cornerRadius_buf 12352 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12353 let width_buf: Dimension | undefined|undefined 12354 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 12355 { 12356 width_buf = (valueDeserializer.readLength() as Dimension) 12357 } 12358 const width_result: Dimension | undefined|undefined = width_buf 12359 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12360 let height_buf: Dimension | undefined|undefined 12361 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 12362 { 12363 height_buf = (valueDeserializer.readLength() as Dimension) 12364 } 12365 const height_result: Dimension | undefined|undefined = height_buf 12366 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12367 let borderWidth_buf: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 12368 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 12369 { 12370 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 12371 let borderWidth_buf_: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 12372 if (borderWidth_buf__selector == 0) { 12373 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 12374 } 12375 else if (borderWidth_buf__selector == 1) { 12376 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12377 let borderWidth_buf__u_top_buf: Length | undefined|undefined 12378 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 12379 { 12380 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 12381 } 12382 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 12383 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12384 let borderWidth_buf__u_right_buf: Length | undefined|undefined 12385 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 12386 { 12387 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 12388 } 12389 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 12390 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12391 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 12392 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 12393 { 12394 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 12395 } 12396 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 12397 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12398 let borderWidth_buf__u_left_buf: Length | undefined|undefined 12399 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 12400 { 12401 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 12402 } 12403 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 12404 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 12405 } 12406 else if (borderWidth_buf__selector == 2) { 12407 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 12408 } 12409 else { 12410 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 12411 } 12412 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 12413 } 12414 const borderWidth_result: Dimension | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = borderWidth_buf 12415 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12416 let borderColor_buf: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 12417 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 12418 { 12419 const borderColor_buf__selector: number = valueDeserializer.readInt8() 12420 let borderColor_buf_: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined 12421 if (borderColor_buf__selector == 0) { 12422 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 12423 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 12424 if (borderColor_buf__u_selector == 0) { 12425 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 12426 } 12427 else if (borderColor_buf__u_selector == 1) { 12428 borderColor_buf__u = (valueDeserializer.readNumber() as number) 12429 } 12430 else if (borderColor_buf__u_selector == 2) { 12431 borderColor_buf__u = (valueDeserializer.readString() as string) 12432 } 12433 else if (borderColor_buf__u_selector == 3) { 12434 borderColor_buf__u = valueDeserializer.readResource() 12435 } 12436 else { 12437 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 12438 } 12439 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 12440 } 12441 else if (borderColor_buf__selector == 1) { 12442 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12443 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 12444 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 12445 { 12446 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 12447 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 12448 if (borderColor_buf__u_top_buf__selector == 0) { 12449 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 12450 } 12451 else if (borderColor_buf__u_top_buf__selector == 1) { 12452 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 12453 } 12454 else if (borderColor_buf__u_top_buf__selector == 2) { 12455 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 12456 } 12457 else if (borderColor_buf__u_top_buf__selector == 3) { 12458 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 12459 } 12460 else { 12461 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 12462 } 12463 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 12464 } 12465 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 12466 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12467 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 12468 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 12469 { 12470 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 12471 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 12472 if (borderColor_buf__u_right_buf__selector == 0) { 12473 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 12474 } 12475 else if (borderColor_buf__u_right_buf__selector == 1) { 12476 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 12477 } 12478 else if (borderColor_buf__u_right_buf__selector == 2) { 12479 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 12480 } 12481 else if (borderColor_buf__u_right_buf__selector == 3) { 12482 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 12483 } 12484 else { 12485 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 12486 } 12487 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 12488 } 12489 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 12490 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12491 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 12492 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 12493 { 12494 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 12495 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 12496 if (borderColor_buf__u_bottom_buf__selector == 0) { 12497 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 12498 } 12499 else if (borderColor_buf__u_bottom_buf__selector == 1) { 12500 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 12501 } 12502 else if (borderColor_buf__u_bottom_buf__selector == 2) { 12503 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 12504 } 12505 else if (borderColor_buf__u_bottom_buf__selector == 3) { 12506 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 12507 } 12508 else { 12509 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 12510 } 12511 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 12512 } 12513 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 12514 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12515 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 12516 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 12517 { 12518 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 12519 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 12520 if (borderColor_buf__u_left_buf__selector == 0) { 12521 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 12522 } 12523 else if (borderColor_buf__u_left_buf__selector == 1) { 12524 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 12525 } 12526 else if (borderColor_buf__u_left_buf__selector == 2) { 12527 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 12528 } 12529 else if (borderColor_buf__u_left_buf__selector == 3) { 12530 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 12531 } 12532 else { 12533 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 12534 } 12535 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 12536 } 12537 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 12538 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 12539 } 12540 else if (borderColor_buf__selector == 2) { 12541 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 12542 } 12543 else { 12544 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 12545 } 12546 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 12547 } 12548 const borderColor_result: ResourceColor | EdgeColors | LocalizedEdgeColors | undefined|undefined = borderColor_buf 12549 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12550 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 12551 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 12552 { 12553 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 12554 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 12555 if (borderStyle_buf__selector == 0) { 12556 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 12557 } 12558 else if (borderStyle_buf__selector == 1) { 12559 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12560 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 12561 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 12562 { 12563 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 12564 } 12565 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 12566 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12567 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 12568 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 12569 { 12570 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 12571 } 12572 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 12573 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12574 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 12575 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 12576 { 12577 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 12578 } 12579 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 12580 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12581 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 12582 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 12583 { 12584 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 12585 } 12586 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 12587 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 12588 } 12589 else { 12590 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 12591 } 12592 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 12593 } 12594 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 12595 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12596 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 12597 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 12598 { 12599 const shadow_buf__selector: number = valueDeserializer.readInt8() 12600 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 12601 if (shadow_buf__selector == 0) { 12602 shadow_buf_ = valueDeserializer.readShadowOptions() 12603 } 12604 else if (shadow_buf__selector == 1) { 12605 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 12606 } 12607 else { 12608 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 12609 } 12610 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 12611 } 12612 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 12613 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12614 let enableHoverMode_buf: boolean | undefined|undefined 12615 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 12616 { 12617 enableHoverMode_buf = valueDeserializer.readBoolean() 12618 } 12619 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 12620 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12621 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 12622 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 12623 { 12624 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 12625 } 12626 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 12627 let value: ActionSheetOptions = ({title: title_result, subtitle: subtitle_result, message: message_result, confirm: confirm_result, cancel: cancel_result, sheets: sheets_result, autoCancel: autoCancel_result, alignment: alignment_result, offset: offset_result, maskRect: maskRect_result, showInSubWindow: showInSubWindow_result, isModal: isModal_result, backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, onWillDismiss: onWillDismiss_result, transition: transition_result, cornerRadius: cornerRadius_result, width: width_result, height: height_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as ActionSheetOptions) 12628 return value 12629 } 12630 readClickEvent(): ClickEvent { 12631 let valueDeserializer: Deserializer = this 12632 let ptr: KPointer = valueDeserializer.readPointer() 12633 return ClickEventInternal.fromPtr(ptr) 12634 } 12635 readNavExtender_OnUpdateStack(isSync: boolean = false): NavExtender_OnUpdateStack { 12636 const _resource: CallbackResource = this.readCallbackResource() 12637 const _call: KPointer = this.readPointer() 12638 const _callSync: KPointer = this.readPointer() 12639 return (): void => { 12640 const _argsSerializer: Serializer = Serializer.hold(); 12641 _argsSerializer.writeInt32(_resource.resourceId); 12642 _argsSerializer.writePointer(_call); 12643 _argsSerializer.writePointer(_callSync); 12644 (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); 12645 _argsSerializer.release(); 12646 return; } 12647 } 12648 readFontOptions(): FontOptions { 12649 let valueDeserializer: Deserializer = this 12650 const familyName_buf_selector: number = valueDeserializer.readInt8() 12651 let familyName_buf: string | Resource | undefined|undefined 12652 if (familyName_buf_selector == 0) { 12653 familyName_buf = (valueDeserializer.readString() as string) 12654 } 12655 else if (familyName_buf_selector == 1) { 12656 familyName_buf = valueDeserializer.readResource() 12657 } 12658 else { 12659 throw new Error("One of the branches for familyName_buf has to be chosen through deserialisation.") 12660 } 12661 const familyName_result: string | Resource = (familyName_buf as string | Resource) 12662 const familySrc_buf_selector: number = valueDeserializer.readInt8() 12663 let familySrc_buf: string | Resource | undefined|undefined 12664 if (familySrc_buf_selector == 0) { 12665 familySrc_buf = (valueDeserializer.readString() as string) 12666 } 12667 else if (familySrc_buf_selector == 1) { 12668 familySrc_buf = valueDeserializer.readResource() 12669 } 12670 else { 12671 throw new Error("One of the branches for familySrc_buf has to be chosen through deserialisation.") 12672 } 12673 const familySrc_result: string | Resource = (familySrc_buf as string | Resource) 12674 let value: FontOptions = ({familyName: familyName_result, familySrc: familySrc_result} as FontOptions) 12675 return value 12676 } 12677 readRoundRectShapeOptions(): RoundRectShapeOptions { 12678 let valueDeserializer: Deserializer = this 12679 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12680 let width_buf: number | string | undefined|undefined 12681 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 12682 { 12683 const width_buf__selector: number = valueDeserializer.readInt8() 12684 let width_buf_: number | string | undefined|undefined 12685 if (width_buf__selector == 0) { 12686 width_buf_ = (valueDeserializer.readNumber() as number) 12687 } 12688 else if (width_buf__selector == 1) { 12689 width_buf_ = (valueDeserializer.readString() as string) 12690 } 12691 else { 12692 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 12693 } 12694 width_buf = (width_buf_ as number | string) 12695 } 12696 const width_result: number | string | undefined|undefined = width_buf 12697 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12698 let height_buf: number | string | undefined|undefined 12699 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 12700 { 12701 const height_buf__selector: number = valueDeserializer.readInt8() 12702 let height_buf_: number | string | undefined|undefined 12703 if (height_buf__selector == 0) { 12704 height_buf_ = (valueDeserializer.readNumber() as number) 12705 } 12706 else if (height_buf__selector == 1) { 12707 height_buf_ = (valueDeserializer.readString() as string) 12708 } 12709 else { 12710 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 12711 } 12712 height_buf = (height_buf_ as number | string) 12713 } 12714 const height_result: number | string | undefined|undefined = height_buf 12715 const radiusWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12716 let radiusWidth_buf: number | string | undefined|undefined 12717 if ((RuntimeType.UNDEFINED) != (radiusWidth_buf_runtimeType)) 12718 { 12719 const radiusWidth_buf__selector: number = valueDeserializer.readInt8() 12720 let radiusWidth_buf_: number | string | undefined|undefined 12721 if (radiusWidth_buf__selector == 0) { 12722 radiusWidth_buf_ = (valueDeserializer.readNumber() as number) 12723 } 12724 else if (radiusWidth_buf__selector == 1) { 12725 radiusWidth_buf_ = (valueDeserializer.readString() as string) 12726 } 12727 else { 12728 throw new Error("One of the branches for radiusWidth_buf_ has to be chosen through deserialisation.") 12729 } 12730 radiusWidth_buf = (radiusWidth_buf_ as number | string) 12731 } 12732 const radiusWidth_result: number | string | undefined|undefined = radiusWidth_buf 12733 const radiusHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12734 let radiusHeight_buf: number | string | undefined|undefined 12735 if ((RuntimeType.UNDEFINED) != (radiusHeight_buf_runtimeType)) 12736 { 12737 const radiusHeight_buf__selector: number = valueDeserializer.readInt8() 12738 let radiusHeight_buf_: number | string | undefined|undefined 12739 if (radiusHeight_buf__selector == 0) { 12740 radiusHeight_buf_ = (valueDeserializer.readNumber() as number) 12741 } 12742 else if (radiusHeight_buf__selector == 1) { 12743 radiusHeight_buf_ = (valueDeserializer.readString() as string) 12744 } 12745 else { 12746 throw new Error("One of the branches for radiusHeight_buf_ has to be chosen through deserialisation.") 12747 } 12748 radiusHeight_buf = (radiusHeight_buf_ as number | string) 12749 } 12750 const radiusHeight_result: number | string | undefined|undefined = radiusHeight_buf 12751 let value: RoundRectShapeOptions = ({width: width_result, height: height_result, radiusWidth: radiusWidth_result, radiusHeight: radiusHeight_result} as RoundRectShapeOptions) 12752 return value 12753 } 12754 readRectShapeOptions(): RectShapeOptions { 12755 let valueDeserializer: Deserializer = this 12756 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12757 let width_buf: number | string | undefined|undefined 12758 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 12759 { 12760 const width_buf__selector: number = valueDeserializer.readInt8() 12761 let width_buf_: number | string | undefined|undefined 12762 if (width_buf__selector == 0) { 12763 width_buf_ = (valueDeserializer.readNumber() as number) 12764 } 12765 else if (width_buf__selector == 1) { 12766 width_buf_ = (valueDeserializer.readString() as string) 12767 } 12768 else { 12769 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 12770 } 12771 width_buf = (width_buf_ as number | string) 12772 } 12773 const width_result: number | string | undefined|undefined = width_buf 12774 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12775 let height_buf: number | string | undefined|undefined 12776 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 12777 { 12778 const height_buf__selector: number = valueDeserializer.readInt8() 12779 let height_buf_: number | string | undefined|undefined 12780 if (height_buf__selector == 0) { 12781 height_buf_ = (valueDeserializer.readNumber() as number) 12782 } 12783 else if (height_buf__selector == 1) { 12784 height_buf_ = (valueDeserializer.readString() as string) 12785 } 12786 else { 12787 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 12788 } 12789 height_buf = (height_buf_ as number | string) 12790 } 12791 const height_result: number | string | undefined|undefined = height_buf 12792 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12793 let radius_buf: number | string | Array<number | string> | undefined|undefined 12794 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 12795 { 12796 const radius_buf__selector: number = valueDeserializer.readInt8() 12797 let radius_buf_: number | string | Array<number | string> | undefined|undefined 12798 if (radius_buf__selector == 0) { 12799 radius_buf_ = (valueDeserializer.readNumber() as number) 12800 } 12801 else if (radius_buf__selector == 1) { 12802 radius_buf_ = (valueDeserializer.readString() as string) 12803 } 12804 else if (radius_buf__selector == 2) { 12805 const radius_buf__u_length: int32 = valueDeserializer.readInt32() 12806 let radius_buf__u: Array<number | string> = new Array<number | string>(radius_buf__u_length) 12807 for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { 12808 const radius_buf__u_buf_selector: number = valueDeserializer.readInt8() 12809 let radius_buf__u_buf: number | string | undefined|undefined 12810 if (radius_buf__u_buf_selector == 0) { 12811 radius_buf__u_buf = (valueDeserializer.readNumber() as number) 12812 } 12813 else if (radius_buf__u_buf_selector == 1) { 12814 radius_buf__u_buf = (valueDeserializer.readString() as string) 12815 } 12816 else { 12817 throw new Error("One of the branches for radius_buf__u_buf has to be chosen through deserialisation.") 12818 } 12819 radius_buf__u[radius_buf__u_i] = (radius_buf__u_buf as number | string) 12820 } 12821 radius_buf_ = radius_buf__u 12822 } 12823 else { 12824 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 12825 } 12826 radius_buf = (radius_buf_ as number | string | Array<number | string>) 12827 } 12828 const radius_result: number | string | Array<number | string> | undefined|undefined = radius_buf 12829 let value: RectShapeOptions = ({width: width_result, height: height_result, radius: radius_result} as RectShapeOptions) 12830 return value 12831 } 12832 readBaseShape(): BaseShape { 12833 let valueDeserializer: Deserializer = this 12834 let ptr: KPointer = valueDeserializer.readPointer() 12835 return BaseShapeInternal.fromPtr(ptr) 12836 } 12837 readCommonShape(): CommonShape { 12838 let valueDeserializer: Deserializer = this 12839 let ptr: KPointer = valueDeserializer.readPointer() 12840 return CommonShapeInternal.fromPtr(ptr) 12841 } 12842 readSnapshotOptions(): SnapshotOptions { 12843 let valueDeserializer: Deserializer = this 12844 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12845 let scale_buf: number | undefined|undefined 12846 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 12847 { 12848 scale_buf = (valueDeserializer.readNumber() as number) 12849 } 12850 const scale_result: number | undefined|undefined = scale_buf 12851 const waitUntilRenderFinished_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12852 let waitUntilRenderFinished_buf: boolean | undefined|undefined 12853 if ((RuntimeType.UNDEFINED) != (waitUntilRenderFinished_buf_runtimeType)) 12854 { 12855 waitUntilRenderFinished_buf = valueDeserializer.readBoolean() 12856 } 12857 const waitUntilRenderFinished_result: boolean | undefined|undefined = waitUntilRenderFinished_buf 12858 let value: SnapshotOptions = ({scale: scale_result, waitUntilRenderFinished: waitUntilRenderFinished_result} as SnapshotOptions) 12859 return value 12860 } 12861 readAsyncCallback_image_PixelMap_Void(isSync: boolean = false): ((result: PixelMap) => void) { 12862 const _resource: CallbackResource = this.readCallbackResource() 12863 const _call: KPointer = this.readPointer() 12864 const _callSync: KPointer = this.readPointer() 12865 return (result: PixelMap): void => { 12866 const _argsSerializer: Serializer = Serializer.hold(); 12867 _argsSerializer.writeInt32(_resource.resourceId); 12868 _argsSerializer.writePointer(_call); 12869 _argsSerializer.writePointer(_callSync); 12870 _argsSerializer.writePixelMap(result); 12871 (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); 12872 _argsSerializer.release(); 12873 return; } 12874 } 12875 readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { 12876 const _resource: CallbackResource = this.readCallbackResource() 12877 const _call: KPointer = this.readPointer() 12878 const _callSync: KPointer = this.readPointer() 12879 return (index: int32, mark: KPointer, end: int32): void => { 12880 const _argsSerializer: Serializer = Serializer.hold(); 12881 _argsSerializer.writeInt32(_resource.resourceId); 12882 _argsSerializer.writePointer(_call); 12883 _argsSerializer.writePointer(_callSync); 12884 _argsSerializer.writeInt32(index); 12885 _argsSerializer.writePointer(mark); 12886 _argsSerializer.writeInt32(end); 12887 (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); 12888 _argsSerializer.release(); 12889 return; } 12890 } 12891 readDoubleAnimationParam(): DoubleAnimationParam { 12892 let valueDeserializer: Deserializer = this 12893 const propertyName_result: string = (valueDeserializer.readString() as string) 12894 const startValue_result: float32 = valueDeserializer.readFloat32() 12895 const endValue_result: float32 = valueDeserializer.readFloat32() 12896 const duration_result: int32 = valueDeserializer.readInt32() 12897 const delay_result: int32 = valueDeserializer.readInt32() 12898 const curve_buf_selector: number = valueDeserializer.readInt8() 12899 let curve_buf: Curve | string | ICurve | undefined|undefined 12900 if (curve_buf_selector == 0) { 12901 curve_buf = (valueDeserializer.readInt32() as Curve) 12902 } 12903 else if (curve_buf_selector == 1) { 12904 curve_buf = (valueDeserializer.readString() as string) 12905 } 12906 else if (curve_buf_selector == 2) { 12907 curve_buf = (valueDeserializer.readICurve() as ICurve) 12908 } 12909 else { 12910 throw new Error("One of the branches for curve_buf has to be chosen through deserialisation.") 12911 } 12912 const curve_result: Curve | string | ICurve = (curve_buf as Curve | string | ICurve) 12913 const onProgress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12914 let onProgress_buf: Callback_Extender_OnProgress | undefined|undefined 12915 if ((RuntimeType.UNDEFINED) != (onProgress_buf_runtimeType)) 12916 { 12917 onProgress_buf = valueDeserializer.readCallback_Extender_OnProgress() 12918 } 12919 const onProgress_result: Callback_Extender_OnProgress | undefined|undefined = onProgress_buf 12920 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12921 let onFinish_buf: Callback_Extender_OnFinish | undefined|undefined 12922 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 12923 { 12924 onFinish_buf = valueDeserializer.readCallback_Extender_OnFinish() 12925 } 12926 const onFinish_result: Callback_Extender_OnFinish | undefined|undefined = onFinish_buf 12927 let value: DoubleAnimationParam = ({propertyName: propertyName_result, startValue: startValue_result, endValue: endValue_result, duration: duration_result, delay: delay_result, curve: curve_result, onProgress: onProgress_result, onFinish: onFinish_result} as DoubleAnimationParam) 12928 return value 12929 } 12930 readWithThemeOptions(): WithThemeOptions { 12931 let valueDeserializer: Deserializer = this 12932 const theme_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12933 let theme_buf: CustomTheme | undefined|undefined 12934 if ((RuntimeType.UNDEFINED) != (theme_buf_runtimeType)) 12935 { 12936 theme_buf = valueDeserializer.readCustomTheme() 12937 } 12938 const theme_result: CustomTheme | undefined|undefined = theme_buf 12939 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12940 let colorMode_buf: ThemeColorMode | undefined|undefined 12941 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 12942 { 12943 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 12944 } 12945 const colorMode_result: ThemeColorMode | undefined|undefined = colorMode_buf 12946 let value: WithThemeOptions = ({theme: theme_result, colorMode: colorMode_result} as WithThemeOptions) 12947 return value 12948 } 12949 readWithThemeInterface(isSync: boolean = false): WithThemeInterface { 12950 const _resource: CallbackResource = this.readCallbackResource() 12951 const _call: KPointer = this.readPointer() 12952 const _callSync: KPointer = this.readPointer() 12953 return (options: WithThemeOptions): WithThemeAttribute => { 12954 const _argsSerializer: Serializer = Serializer.hold(); 12955 _argsSerializer.writeInt32(_resource.resourceId); 12956 _argsSerializer.writePointer(_call); 12957 _argsSerializer.writePointer(_callSync); 12958 _argsSerializer.writeWithThemeOptions(options); 12959 let _continuationValue: WithThemeAttribute | undefined|undefined ; 12960 const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; } 12961 _argsSerializer.holdAndWriteCallback(_continuationCallback); 12962 (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); 12963 _argsSerializer.release(); 12964 return (_continuationValue as WithThemeAttribute); } 12965 } 12966 readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { 12967 const _resource: CallbackResource = this.readCallbackResource() 12968 const _call: KPointer = this.readPointer() 12969 const _callSync: KPointer = this.readPointer() 12970 return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { 12971 const _argsSerializer: Serializer = Serializer.hold(); 12972 _argsSerializer.writeInt32(_resource.resourceId); 12973 _argsSerializer.writePointer(_call); 12974 _argsSerializer.writePointer(_callSync); 12975 _argsSerializer.writeNavContentInfo(from); 12976 _argsSerializer.writeNavContentInfo(to); 12977 _argsSerializer.writeInt32(operation); 12978 let _continuationValue: NavigationAnimatedTransition | undefined|undefined ; 12979 const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; } 12980 _argsSerializer.holdAndWriteCallback(_continuationCallback); 12981 (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); 12982 _argsSerializer.release(); 12983 return (_continuationValue as NavigationAnimatedTransition); } 12984 } 12985 readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { 12986 const _resource: CallbackResource = this.readCallbackResource() 12987 const _call: KPointer = this.readPointer() 12988 const _callSync: KPointer = this.readPointer() 12989 return (value: number, mode: SliderChangeMode): void => { 12990 const _argsSerializer: Serializer = Serializer.hold(); 12991 _argsSerializer.writeInt32(_resource.resourceId); 12992 _argsSerializer.writePointer(_call); 12993 _argsSerializer.writePointer(_callSync); 12994 _argsSerializer.writeNumber(value); 12995 _argsSerializer.writeInt32(mode); 12996 (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); 12997 _argsSerializer.release(); 12998 return; } 12999 } 13000 readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { 13001 const _resource: CallbackResource = this.readCallbackResource() 13002 const _call: KPointer = this.readPointer() 13003 const _callSync: KPointer = this.readPointer() 13004 return (type: RouteType, progress: number): void => { 13005 const _argsSerializer: Serializer = Serializer.hold(); 13006 _argsSerializer.writeInt32(_resource.resourceId); 13007 _argsSerializer.writePointer(_call); 13008 _argsSerializer.writePointer(_callSync); 13009 _argsSerializer.writeInt32(type); 13010 _argsSerializer.writeNumber(progress); 13011 (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); 13012 _argsSerializer.release(); 13013 return; } 13014 } 13015 readOnScrollCallback(isSync: boolean = false): OnScrollCallback { 13016 const _resource: CallbackResource = this.readCallbackResource() 13017 const _call: KPointer = this.readPointer() 13018 const _callSync: KPointer = this.readPointer() 13019 return (scrollOffset: number, scrollState: ScrollState): void => { 13020 const _argsSerializer: Serializer = Serializer.hold(); 13021 _argsSerializer.writeInt32(_resource.resourceId); 13022 _argsSerializer.writePointer(_call); 13023 _argsSerializer.writePointer(_callSync); 13024 _argsSerializer.writeNumber(scrollOffset); 13025 _argsSerializer.writeInt32(scrollState); 13026 (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); 13027 _argsSerializer.release(); 13028 return; } 13029 } 13030 readOnMoveHandler(isSync: boolean = false): OnMoveHandler { 13031 const _resource: CallbackResource = this.readCallbackResource() 13032 const _call: KPointer = this.readPointer() 13033 const _callSync: KPointer = this.readPointer() 13034 return (from: number, to: number): void => { 13035 const _argsSerializer: Serializer = Serializer.hold(); 13036 _argsSerializer.writeInt32(_resource.resourceId); 13037 _argsSerializer.writePointer(_call); 13038 _argsSerializer.writePointer(_callSync); 13039 _argsSerializer.writeNumber(from); 13040 _argsSerializer.writeNumber(to); 13041 (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); 13042 _argsSerializer.release(); 13043 return; } 13044 } 13045 readIsolatedOptions(): IsolatedOptions { 13046 let valueDeserializer: Deserializer = this 13047 const want_result: Want = valueDeserializer.readWant() 13048 const worker_result: RestrictedWorker = valueDeserializer.readRestrictedWorker() 13049 let value: IsolatedOptions = ({want: want_result, worker: worker_result} as IsolatedOptions) 13050 return value 13051 } 13052 readIsolatedComponentInterface(isSync: boolean = false): IsolatedComponentInterface { 13053 const _resource: CallbackResource = this.readCallbackResource() 13054 const _call: KPointer = this.readPointer() 13055 const _callSync: KPointer = this.readPointer() 13056 return (options: IsolatedOptions): IsolatedComponentAttribute => { 13057 const _argsSerializer: Serializer = Serializer.hold(); 13058 _argsSerializer.writeInt32(_resource.resourceId); 13059 _argsSerializer.writePointer(_call); 13060 _argsSerializer.writePointer(_callSync); 13061 _argsSerializer.writeIsolatedOptions(options); 13062 let _continuationValue: IsolatedComponentAttribute | undefined|undefined ; 13063 const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; } 13064 _argsSerializer.holdAndWriteCallback(_continuationCallback); 13065 (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); 13066 _argsSerializer.release(); 13067 return (_continuationValue as IsolatedComponentAttribute); } 13068 } 13069 readWithThemeAttribute(): WithThemeAttribute { 13070 let value: WithThemeAttribute = ({} as WithThemeAttribute) 13071 return value 13072 } 13073 readCallback_WithThemeAttribute_Void(isSync: boolean = false): ((value: WithThemeAttribute) => void) { 13074 const _resource: CallbackResource = this.readCallbackResource() 13075 const _call: KPointer = this.readPointer() 13076 const _callSync: KPointer = this.readPointer() 13077 return (value: WithThemeAttribute): void => { 13078 const _argsSerializer: Serializer = Serializer.hold(); 13079 _argsSerializer.writeInt32(_resource.resourceId); 13080 _argsSerializer.writePointer(_call); 13081 _argsSerializer.writePointer(_callSync); 13082 _argsSerializer.writeWithThemeAttribute(value); 13083 (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); 13084 _argsSerializer.release(); 13085 return; } 13086 } 13087 readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { 13088 const _resource: CallbackResource = this.readCallbackResource() 13089 const _call: KPointer = this.readPointer() 13090 const _callSync: KPointer = this.readPointer() 13091 return (value: WebResourceResponse): void => { 13092 const _argsSerializer: Serializer = Serializer.hold(); 13093 _argsSerializer.writeInt32(_resource.resourceId); 13094 _argsSerializer.writePointer(_call); 13095 _argsSerializer.writePointer(_callSync); 13096 _argsSerializer.writeWebResourceResponse(value); 13097 (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); 13098 _argsSerializer.release(); 13099 return; } 13100 } 13101 readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { 13102 const _resource: CallbackResource = this.readCallbackResource() 13103 const _call: KPointer = this.readPointer() 13104 const _callSync: KPointer = this.readPointer() 13105 return (value: WebKeyboardOptions): void => { 13106 const _argsSerializer: Serializer = Serializer.hold(); 13107 _argsSerializer.writeInt32(_resource.resourceId); 13108 _argsSerializer.writePointer(_call); 13109 _argsSerializer.writePointer(_callSync); 13110 _argsSerializer.writeWebKeyboardOptions(value); 13111 (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); 13112 _argsSerializer.release(); 13113 return; } 13114 } 13115 readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { 13116 const _resource: CallbackResource = this.readCallbackResource() 13117 const _call: KPointer = this.readPointer() 13118 const _callSync: KPointer = this.readPointer() 13119 return (value: CustomBuilder | DragItemInfo): void => { 13120 const _argsSerializer: Serializer = Serializer.hold(); 13121 _argsSerializer.writeInt32(_resource.resourceId); 13122 _argsSerializer.writePointer(_call); 13123 _argsSerializer.writePointer(_callSync); 13124 let value_type: int32 = RuntimeType.UNDEFINED; 13125 value_type = runtimeType(value); 13126 if (RuntimeType.FUNCTION == value_type) { 13127 _argsSerializer.writeInt8(0); 13128 const value_0 = unsafeCast<CustomBuilder>(value); 13129 _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); 13130 } 13131 else if (RuntimeType.OBJECT == value_type) { 13132 _argsSerializer.writeInt8(1); 13133 const value_1 = unsafeCast<DragItemInfo>(value); 13134 _argsSerializer.writeDragItemInfo(value_1); 13135 } 13136 (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); 13137 _argsSerializer.release(); 13138 return; } 13139 } 13140 readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { 13141 const _resource: CallbackResource = this.readCallbackResource() 13142 const _call: KPointer = this.readPointer() 13143 const _callSync: KPointer = this.readPointer() 13144 return (value: [ number, number ]): void => { 13145 const _argsSerializer: Serializer = Serializer.hold(); 13146 _argsSerializer.writeInt32(_resource.resourceId); 13147 _argsSerializer.writePointer(_call); 13148 _argsSerializer.writePointer(_callSync); 13149 const value_0 = value[0]; 13150 _argsSerializer.writeNumber(value_0); 13151 const value_1 = value[1]; 13152 _argsSerializer.writeNumber(value_1); 13153 (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); 13154 _argsSerializer.release(); 13155 return; } 13156 } 13157 readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { 13158 const _resource: CallbackResource = this.readCallbackResource() 13159 const _call: KPointer = this.readPointer() 13160 const _callSync: KPointer = this.readPointer() 13161 return (value: [ number, number, number, number ]): void => { 13162 const _argsSerializer: Serializer = Serializer.hold(); 13163 _argsSerializer.writeInt32(_resource.resourceId); 13164 _argsSerializer.writePointer(_call); 13165 _argsSerializer.writePointer(_callSync); 13166 const value_0 = value[0]; 13167 _argsSerializer.writeNumber(value_0); 13168 const value_1 = value[1]; 13169 _argsSerializer.writeNumber(value_1); 13170 const value_2 = value[2]; 13171 _argsSerializer.writeNumber(value_2); 13172 const value_3 = value[3]; 13173 _argsSerializer.writeNumber(value_3); 13174 (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); 13175 _argsSerializer.release(); 13176 return; } 13177 } 13178 readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { 13179 const _resource: CallbackResource = this.readCallbackResource() 13180 const _call: KPointer = this.readPointer() 13181 const _callSync: KPointer = this.readPointer() 13182 return (value: TouchResult): void => { 13183 const _argsSerializer: Serializer = Serializer.hold(); 13184 _argsSerializer.writeInt32(_resource.resourceId); 13185 _argsSerializer.writePointer(_call); 13186 _argsSerializer.writePointer(_callSync); 13187 _argsSerializer.writeTouchResult(value); 13188 (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); 13189 _argsSerializer.release(); 13190 return; } 13191 } 13192 readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string, param: unknown) => void) { 13193 const _resource: CallbackResource = this.readCallbackResource() 13194 const _call: KPointer = this.readPointer() 13195 const _callSync: KPointer = this.readPointer() 13196 return (name: string, param: unknown): void => { 13197 const _argsSerializer: Serializer = Serializer.hold(); 13198 _argsSerializer.writeInt32(_resource.resourceId); 13199 _argsSerializer.writePointer(_call); 13200 _argsSerializer.writePointer(_callSync); 13201 _argsSerializer.writeString(name); 13202 _argsSerializer.writeCustomObject("Any", param); 13203 (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); 13204 _argsSerializer.release(); 13205 return; } 13206 } 13207 readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { 13208 const _resource: CallbackResource = this.readCallbackResource() 13209 const _call: KPointer = this.readPointer() 13210 const _callSync: KPointer = this.readPointer() 13211 return (value: KPointer): void => { 13212 const _argsSerializer: Serializer = Serializer.hold(); 13213 _argsSerializer.writeInt32(_resource.resourceId); 13214 _argsSerializer.writePointer(_call); 13215 _argsSerializer.writePointer(_callSync); 13216 _argsSerializer.writePointer(value); 13217 (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); 13218 _argsSerializer.release(); 13219 return; } 13220 } 13221 readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { 13222 const _resource: CallbackResource = this.readCallbackResource() 13223 const _call: KPointer = this.readPointer() 13224 const _callSync: KPointer = this.readPointer() 13225 return (value?: TabContentAnimatedTransition | undefined): void => { 13226 const _argsSerializer: Serializer = Serializer.hold(); 13227 _argsSerializer.writeInt32(_resource.resourceId); 13228 _argsSerializer.writePointer(_call); 13229 _argsSerializer.writePointer(_callSync); 13230 let value_type: int32 = RuntimeType.UNDEFINED; 13231 value_type = runtimeType(value); 13232 _argsSerializer.writeInt8(value_type); 13233 if ((RuntimeType.UNDEFINED) != (value_type)) { 13234 const value_value = value!; 13235 _argsSerializer.writeTabContentAnimatedTransition(value_value); 13236 } 13237 (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); 13238 _argsSerializer.release(); 13239 return; } 13240 } 13241 readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined, error?: Array<string> | undefined) => void) { 13242 const _resource: CallbackResource = this.readCallbackResource() 13243 const _call: KPointer = this.readPointer() 13244 const _callSync: KPointer = this.readPointer() 13245 return (value?: StyledString | undefined, error?: Array<string> | undefined): void => { 13246 const _argsSerializer: Serializer = Serializer.hold(); 13247 _argsSerializer.writeInt32(_resource.resourceId); 13248 _argsSerializer.writePointer(_call); 13249 _argsSerializer.writePointer(_callSync); 13250 let value_type: int32 = RuntimeType.UNDEFINED; 13251 value_type = runtimeType(value); 13252 _argsSerializer.writeInt8(value_type); 13253 if ((RuntimeType.UNDEFINED) != (value_type)) { 13254 const value_value = value!; 13255 _argsSerializer.writeStyledString(value_value); 13256 } 13257 let error_type: int32 = RuntimeType.UNDEFINED; 13258 error_type = runtimeType(error); 13259 _argsSerializer.writeInt8(error_type); 13260 if ((RuntimeType.UNDEFINED) != (error_type)) { 13261 const error_value = error!; 13262 _argsSerializer.writeInt32(error_value.length); 13263 for (let i = 0; i < error_value.length; i++) { 13264 const error_value_element: string = error_value[i]; 13265 _argsSerializer.writeString(error_value_element); 13266 } 13267 } 13268 (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); 13269 _argsSerializer.release(); 13270 return; } 13271 } 13272 readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { 13273 const _resource: CallbackResource = this.readCallbackResource() 13274 const _call: KPointer = this.readPointer() 13275 const _callSync: KPointer = this.readPointer() 13276 return (value?: NavigationAnimatedTransition | undefined): void => { 13277 const _argsSerializer: Serializer = Serializer.hold(); 13278 _argsSerializer.writeInt32(_resource.resourceId); 13279 _argsSerializer.writePointer(_call); 13280 _argsSerializer.writePointer(_callSync); 13281 let value_type: int32 = RuntimeType.UNDEFINED; 13282 value_type = runtimeType(value); 13283 _argsSerializer.writeInt8(value_type); 13284 if ((RuntimeType.UNDEFINED) != (value_type)) { 13285 const value_value = value!; 13286 _argsSerializer.writeNavigationAnimatedTransition(value_value); 13287 } 13288 (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); 13289 _argsSerializer.release(); 13290 return; } 13291 } 13292 readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array<string> | undefined) => void) { 13293 const _resource: CallbackResource = this.readCallbackResource() 13294 const _call: KPointer = this.readPointer() 13295 const _callSync: KPointer = this.readPointer() 13296 return (error?: Array<string> | undefined): void => { 13297 const _argsSerializer: Serializer = Serializer.hold(); 13298 _argsSerializer.writeInt32(_resource.resourceId); 13299 _argsSerializer.writePointer(_call); 13300 _argsSerializer.writePointer(_callSync); 13301 let error_type: int32 = RuntimeType.UNDEFINED; 13302 error_type = runtimeType(error); 13303 _argsSerializer.writeInt8(error_type); 13304 if ((RuntimeType.UNDEFINED) != (error_type)) { 13305 const error_value = error!; 13306 _argsSerializer.writeInt32(error_value.length); 13307 for (let i = 0; i < error_value.length; i++) { 13308 const error_value_element: string = error_value[i]; 13309 _argsSerializer.writeString(error_value_element); 13310 } 13311 } 13312 (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); 13313 _argsSerializer.release(); 13314 return; } 13315 } 13316 readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { 13317 const _resource: CallbackResource = this.readCallbackResource() 13318 const _call: KPointer = this.readPointer() 13319 const _callSync: KPointer = this.readPointer() 13320 return (value: OnScrollFrameBeginHandlerResult): void => { 13321 const _argsSerializer: Serializer = Serializer.hold(); 13322 _argsSerializer.writeInt32(_resource.resourceId); 13323 _argsSerializer.writePointer(_call); 13324 _argsSerializer.writePointer(_callSync); 13325 _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); 13326 (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); 13327 _argsSerializer.release(); 13328 return; } 13329 } 13330 readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { 13331 const _resource: CallbackResource = this.readCallbackResource() 13332 const _call: KPointer = this.readPointer() 13333 const _callSync: KPointer = this.readPointer() 13334 return (value: OffsetResult): void => { 13335 const _argsSerializer: Serializer = Serializer.hold(); 13336 _argsSerializer.writeInt32(_resource.resourceId); 13337 _argsSerializer.writePointer(_call); 13338 _argsSerializer.writePointer(_callSync); 13339 _argsSerializer.writeOffsetResult(value); 13340 (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); 13341 _argsSerializer.release(); 13342 return; } 13343 } 13344 readCallback_ScrollResult_Void(isSync: boolean = false): ((value: ScrollResult) => void) { 13345 const _resource: CallbackResource = this.readCallbackResource() 13346 const _call: KPointer = this.readPointer() 13347 const _callSync: KPointer = this.readPointer() 13348 return (value: ScrollResult): void => { const _argsSerializer: Serializer = Serializer.hold(); 13349 _argsSerializer.writeInt32(_resource.resourceId); 13350 _argsSerializer.writePointer(_call); 13351 _argsSerializer.writePointer(_callSync); 13352 _argsSerializer.writeScrollResult(value); 13353 (isSync) ? (InteropNativeModule._CallCallbackSync(1385252075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1385252075, _argsSerializer.asArray(), _argsSerializer.length())); 13354 _argsSerializer.release(); 13355 return; } 13356 } 13357 readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { 13358 const _resource: CallbackResource = this.readCallbackResource() 13359 const _call: KPointer = this.readPointer() 13360 const _callSync: KPointer = this.readPointer() 13361 return (titleMode: NavigationTitleMode): void => { 13362 const _argsSerializer: Serializer = Serializer.hold(); 13363 _argsSerializer.writeInt32(_resource.resourceId); 13364 _argsSerializer.writePointer(_call); 13365 _argsSerializer.writePointer(_callSync); 13366 _argsSerializer.writeInt32(titleMode); 13367 (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); 13368 _argsSerializer.release(); 13369 return; } 13370 } 13371 readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { 13372 const _resource: CallbackResource = this.readCallbackResource() 13373 const _call: KPointer = this.readPointer() 13374 const _callSync: KPointer = this.readPointer() 13375 return (mode: NavigationMode): void => { 13376 const _argsSerializer: Serializer = Serializer.hold(); 13377 _argsSerializer.writeInt32(_resource.resourceId); 13378 _argsSerializer.writePointer(_call); 13379 _argsSerializer.writePointer(_callSync); 13380 _argsSerializer.writeInt32(mode); 13381 (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); 13382 _argsSerializer.release(); 13383 return; } 13384 } 13385 readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: { offsetRemain: number }) => void) { 13386 const _resource: CallbackResource = this.readCallbackResource() 13387 const _call: KPointer = this.readPointer() 13388 const _callSync: KPointer = this.readPointer() 13389 return (value: { offsetRemain: number }): void => { 13390 const _argsSerializer: Serializer = Serializer.hold(); 13391 _argsSerializer.writeInt32(_resource.resourceId); 13392 _argsSerializer.writePointer(_call); 13393 _argsSerializer.writePointer(_callSync); 13394 const value_offsetRemain = value.offsetRemain; 13395 _argsSerializer.writeNumber(value_offsetRemain); 13396 (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); 13397 _argsSerializer.release(); 13398 return; } 13399 } 13400 readIsolatedComponentAttribute(): IsolatedComponentAttribute { 13401 let value: IsolatedComponentAttribute = ({} as IsolatedComponentAttribute) 13402 return value 13403 } 13404 readCallback_IsolatedComponentAttribute_Void(isSync: boolean = false): ((value: IsolatedComponentAttribute) => void) { 13405 const _resource: CallbackResource = this.readCallbackResource() 13406 const _call: KPointer = this.readPointer() 13407 const _callSync: KPointer = this.readPointer() 13408 return (value: IsolatedComponentAttribute): void => { 13409 const _argsSerializer: Serializer = Serializer.hold(); 13410 _argsSerializer.writeInt32(_resource.resourceId); 13411 _argsSerializer.writePointer(_call); 13412 _argsSerializer.writePointer(_callSync); 13413 _argsSerializer.writeIsolatedComponentAttribute(value); 13414 (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); 13415 _argsSerializer.release(); 13416 return; } 13417 } 13418 readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { 13419 const _resource: CallbackResource = this.readCallbackResource() 13420 const _call: KPointer = this.readPointer() 13421 const _callSync: KPointer = this.readPointer() 13422 return (value: HitTestMode): void => { 13423 const _argsSerializer: Serializer = Serializer.hold(); 13424 _argsSerializer.writeInt32(_resource.resourceId); 13425 _argsSerializer.writePointer(_call); 13426 _argsSerializer.writePointer(_callSync); 13427 _argsSerializer.writeInt32(value); 13428 (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); 13429 _argsSerializer.release(); 13430 return; } 13431 } 13432 readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { 13433 const _resource: CallbackResource = this.readCallbackResource() 13434 const _call: KPointer = this.readPointer() 13435 const _callSync: KPointer = this.readPointer() 13436 return (value: GestureRecognizer): void => { 13437 const _argsSerializer: Serializer = Serializer.hold(); 13438 _argsSerializer.writeInt32(_resource.resourceId); 13439 _argsSerializer.writePointer(_call); 13440 _argsSerializer.writePointer(_callSync); 13441 _argsSerializer.writeGestureRecognizer(value); 13442 (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); 13443 _argsSerializer.release(); 13444 return; } 13445 } 13446 readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { 13447 const _resource: CallbackResource = this.readCallbackResource() 13448 const _call: KPointer = this.readPointer() 13449 const _callSync: KPointer = this.readPointer() 13450 return (value: GestureJudgeResult): void => { 13451 const _argsSerializer: Serializer = Serializer.hold(); 13452 _argsSerializer.writeInt32(_resource.resourceId); 13453 _argsSerializer.writePointer(_call); 13454 _argsSerializer.writePointer(_callSync); 13455 _argsSerializer.writeInt32(value); 13456 (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); 13457 _argsSerializer.release(); 13458 return; } 13459 } 13460 readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { 13461 const _resource: CallbackResource = this.readCallbackResource() 13462 const _call: KPointer = this.readPointer() 13463 const _callSync: KPointer = this.readPointer() 13464 return (value: CustomBuilder): void => { 13465 const _argsSerializer: Serializer = Serializer.hold(); 13466 _argsSerializer.writeInt32(_resource.resourceId); 13467 _argsSerializer.writePointer(_call); 13468 _argsSerializer.writePointer(_callSync); 13469 _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); 13470 (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); 13471 _argsSerializer.release(); 13472 return; } 13473 } 13474 readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { 13475 const _resource: CallbackResource = this.readCallbackResource() 13476 const _call: KPointer = this.readPointer() 13477 const _callSync: KPointer = this.readPointer() 13478 return (value: ComputedBarAttribute): void => { 13479 const _argsSerializer: Serializer = Serializer.hold(); 13480 _argsSerializer.writeInt32(_resource.resourceId); 13481 _argsSerializer.writePointer(_call); 13482 _argsSerializer.writePointer(_callSync); 13483 _argsSerializer.writeComputedBarAttribute(value); 13484 (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); 13485 _argsSerializer.release(); 13486 return; } 13487 } 13488 readCallback_Array_String_Void(isSync: boolean = false): ((value: Array<string>) => void) { 13489 const _resource: CallbackResource = this.readCallbackResource() 13490 const _call: KPointer = this.readPointer() 13491 const _callSync: KPointer = this.readPointer() 13492 return (value: Array<string>): void => { 13493 const _argsSerializer: Serializer = Serializer.hold(); 13494 _argsSerializer.writeInt32(_resource.resourceId); 13495 _argsSerializer.writePointer(_call); 13496 _argsSerializer.writePointer(_callSync); 13497 _argsSerializer.writeInt32(value.length); 13498 for (let i = 0; i < value.length; i++) { 13499 const value_element: string = value[i]; 13500 _argsSerializer.writeString(value_element); 13501 } 13502 (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); 13503 _argsSerializer.release(); 13504 return; } 13505 } 13506 readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { 13507 const _resource: CallbackResource = this.readCallbackResource() 13508 const _call: KPointer = this.readPointer() 13509 const _callSync: KPointer = this.readPointer() 13510 return (xPos: number, yPos: number): void => { 13511 const _argsSerializer: Serializer = Serializer.hold(); 13512 _argsSerializer.writeInt32(_resource.resourceId); 13513 _argsSerializer.writePointer(_call); 13514 _argsSerializer.writePointer(_callSync); 13515 _argsSerializer.writeNumber(xPos); 13516 _argsSerializer.writeNumber(yPos); 13517 (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); 13518 _argsSerializer.release(); 13519 return; } 13520 } 13521 readLinearIndicatorController(): LinearIndicatorController { 13522 let valueDeserializer: Deserializer = this 13523 let ptr: KPointer = valueDeserializer.readPointer() 13524 return LinearIndicatorControllerInternal.fromPtr(ptr) 13525 } 13526 readImageAttachmentInterface(): ImageAttachmentInterface { 13527 let valueDeserializer: Deserializer = this 13528 const value_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 13529 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13530 let size_buf: SizeOptions | undefined|undefined 13531 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 13532 { 13533 size_buf = valueDeserializer.readSizeOptions() 13534 } 13535 const size_result: SizeOptions | undefined|undefined = size_buf 13536 const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13537 let verticalAlign_buf: ImageSpanAlignment | undefined|undefined 13538 if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) 13539 { 13540 verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) 13541 } 13542 const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf 13543 const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13544 let objectFit_buf: ImageFit | undefined|undefined 13545 if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) 13546 { 13547 objectFit_buf = (valueDeserializer.readInt32() as ImageFit) 13548 } 13549 const objectFit_result: ImageFit | undefined|undefined = objectFit_buf 13550 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13551 let layoutStyle_buf: ImageAttachmentLayoutStyle | undefined|undefined 13552 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 13553 { 13554 layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() 13555 } 13556 const layoutStyle_result: ImageAttachmentLayoutStyle | undefined|undefined = layoutStyle_buf 13557 let value: ImageAttachmentInterface = ({value: value_result, size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as ImageAttachmentInterface) 13558 return value 13559 } 13560 readParagraphStyleInterface(): ParagraphStyleInterface { 13561 let valueDeserializer: Deserializer = this 13562 const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13563 let textAlign_buf: TextAlign | undefined|undefined 13564 if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) 13565 { 13566 textAlign_buf = (valueDeserializer.readInt32() as TextAlign) 13567 } 13568 const textAlign_result: TextAlign | undefined|undefined = textAlign_buf 13569 const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13570 let textIndent_buf: LengthMetrics | undefined|undefined 13571 if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) 13572 { 13573 textIndent_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13574 } 13575 const textIndent_result: LengthMetrics | undefined|undefined = textIndent_buf 13576 const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13577 let maxLines_buf: number | undefined|undefined 13578 if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) 13579 { 13580 maxLines_buf = (valueDeserializer.readNumber() as number) 13581 } 13582 const maxLines_result: number | undefined|undefined = maxLines_buf 13583 const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13584 let overflow_buf: TextOverflow | undefined|undefined 13585 if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) 13586 { 13587 overflow_buf = (valueDeserializer.readInt32() as TextOverflow) 13588 } 13589 const overflow_result: TextOverflow | undefined|undefined = overflow_buf 13590 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13591 let wordBreak_buf: WordBreak | undefined|undefined 13592 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 13593 { 13594 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 13595 } 13596 const wordBreak_result: WordBreak | undefined|undefined = wordBreak_buf 13597 const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13598 let leadingMargin_buf: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined 13599 if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) 13600 { 13601 const leadingMargin_buf__selector: number = valueDeserializer.readInt8() 13602 let leadingMargin_buf_: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined 13603 if (leadingMargin_buf__selector == 0) { 13604 leadingMargin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13605 } 13606 else if (leadingMargin_buf__selector == 1) { 13607 leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() 13608 } 13609 else { 13610 throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") 13611 } 13612 leadingMargin_buf = (leadingMargin_buf_ as LengthMetrics | LeadingMarginPlaceholder) 13613 } 13614 const leadingMargin_result: LengthMetrics | LeadingMarginPlaceholder | undefined|undefined = leadingMargin_buf 13615 let value: ParagraphStyleInterface = ({textAlign: textAlign_result, textIndent: textIndent_result, maxLines: maxLines_result, overflow: overflow_result, wordBreak: wordBreak_result, leadingMargin: leadingMargin_result} as ParagraphStyleInterface) 13616 return value 13617 } 13618 readGestureStyleInterface(): GestureStyleInterface { 13619 let valueDeserializer: Deserializer = this 13620 const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13621 let onClick_buf: ((event: ClickEvent) => void) | undefined|undefined 13622 if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) 13623 { 13624 onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() 13625 } 13626 const onClick_result: ((event: ClickEvent) => void) | undefined|undefined = onClick_buf 13627 const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13628 let onLongPress_buf: ((event: GestureEvent) => void) | undefined|undefined 13629 if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) 13630 { 13631 onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() 13632 } 13633 const onLongPress_result: ((event: GestureEvent) => void) | undefined|undefined = onLongPress_buf 13634 let value: GestureStyleInterface = ({onClick: onClick_result, onLongPress: onLongPress_result} as GestureStyleInterface) 13635 return value 13636 } 13637 readTextStyleInterface(): TextStyleInterface { 13638 let valueDeserializer: Deserializer = this 13639 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13640 let fontColor_buf: ResourceColor | undefined|undefined 13641 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 13642 { 13643 const fontColor_buf__selector: number = valueDeserializer.readInt8() 13644 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 13645 if (fontColor_buf__selector == 0) { 13646 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 13647 } 13648 else if (fontColor_buf__selector == 1) { 13649 fontColor_buf_ = (valueDeserializer.readNumber() as number) 13650 } 13651 else if (fontColor_buf__selector == 2) { 13652 fontColor_buf_ = (valueDeserializer.readString() as string) 13653 } 13654 else if (fontColor_buf__selector == 3) { 13655 fontColor_buf_ = valueDeserializer.readResource() 13656 } 13657 else { 13658 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 13659 } 13660 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 13661 } 13662 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 13663 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13664 let fontFamily_buf: ResourceStr | undefined|undefined 13665 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 13666 { 13667 const fontFamily_buf__selector: number = valueDeserializer.readInt8() 13668 let fontFamily_buf_: string | Resource | undefined|undefined 13669 if (fontFamily_buf__selector == 0) { 13670 fontFamily_buf_ = (valueDeserializer.readString() as string) 13671 } 13672 else if (fontFamily_buf__selector == 1) { 13673 fontFamily_buf_ = valueDeserializer.readResource() 13674 } 13675 else { 13676 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 13677 } 13678 fontFamily_buf = (fontFamily_buf_ as string | Resource) 13679 } 13680 const fontFamily_result: ResourceStr | undefined|undefined = fontFamily_buf 13681 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13682 let fontSize_buf: LengthMetrics | undefined|undefined 13683 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 13684 { 13685 fontSize_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13686 } 13687 const fontSize_result: LengthMetrics | undefined|undefined = fontSize_buf 13688 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13689 let fontWeight_buf: number | FontWeight | string | undefined|undefined 13690 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 13691 { 13692 const fontWeight_buf__selector: number = valueDeserializer.readInt8() 13693 let fontWeight_buf_: number | FontWeight | string | undefined|undefined 13694 if (fontWeight_buf__selector == 0) { 13695 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 13696 } 13697 else if (fontWeight_buf__selector == 1) { 13698 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 13699 } 13700 else if (fontWeight_buf__selector == 2) { 13701 fontWeight_buf_ = (valueDeserializer.readString() as string) 13702 } 13703 else { 13704 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 13705 } 13706 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 13707 } 13708 const fontWeight_result: number | FontWeight | string | undefined|undefined = fontWeight_buf 13709 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13710 let fontStyle_buf: FontStyle | undefined|undefined 13711 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 13712 { 13713 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 13714 } 13715 const fontStyle_result: FontStyle | undefined|undefined = fontStyle_buf 13716 let value: TextStyleInterface = ({fontColor: fontColor_result, fontFamily: fontFamily_result, fontSize: fontSize_result, fontWeight: fontWeight_result, fontStyle: fontStyle_result} as TextStyleInterface) 13717 return value 13718 } 13719 readStyleOptions(): StyleOptions { 13720 let valueDeserializer: Deserializer = this 13721 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13722 let start_buf: number | undefined|undefined 13723 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 13724 { 13725 start_buf = (valueDeserializer.readNumber() as number) 13726 } 13727 const start_result: number | undefined|undefined = start_buf 13728 const length_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13729 let length_buf: number | undefined|undefined 13730 if ((RuntimeType.UNDEFINED) != (length_buf_runtimeType)) 13731 { 13732 length_buf = (valueDeserializer.readNumber() as number) 13733 } 13734 const length_result: number | undefined|undefined = length_buf 13735 const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) 13736 const styledValue_buf_selector: number = valueDeserializer.readInt8() 13737 let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined 13738 if (styledValue_buf_selector == 0) { 13739 styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) 13740 } 13741 else if (styledValue_buf_selector == 1) { 13742 styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) 13743 } 13744 else if (styledValue_buf_selector == 2) { 13745 styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) 13746 } 13747 else if (styledValue_buf_selector == 3) { 13748 styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) 13749 } 13750 else if (styledValue_buf_selector == 4) { 13751 styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) 13752 } 13753 else if (styledValue_buf_selector == 5) { 13754 styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) 13755 } 13756 else if (styledValue_buf_selector == 6) { 13757 styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) 13758 } 13759 else if (styledValue_buf_selector == 7) { 13760 styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) 13761 } 13762 else if (styledValue_buf_selector == 8) { 13763 styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) 13764 } 13765 else if (styledValue_buf_selector == 9) { 13766 styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) 13767 } 13768 else if (styledValue_buf_selector == 10) { 13769 styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) 13770 } 13771 else if (styledValue_buf_selector == 11) { 13772 styledValue_buf = valueDeserializer.readUserDataSpan() 13773 } 13774 else if (styledValue_buf_selector == 12) { 13775 styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) 13776 } 13777 else { 13778 throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") 13779 } 13780 const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) 13781 let value: StyleOptions = ({start: start_result, length: length_result, styledKey: styledKey_result, styledValue: styledValue_result} as StyleOptions) 13782 return value 13783 } 13784 readCallback_Literal_Number_code_Want_want_Void(isSync: boolean = false): ((parameter: { code: number, want?: Want }) => void) { 13785 const _resource: CallbackResource = this.readCallbackResource() 13786 const _call: KPointer = this.readPointer() 13787 const _callSync: KPointer = this.readPointer() 13788 return (parameter: { code: number, want?: Want }): void => { 13789 const _argsSerializer: Serializer = Serializer.hold(); 13790 _argsSerializer.writeInt32(_resource.resourceId); 13791 _argsSerializer.writePointer(_call); 13792 _argsSerializer.writePointer(_callSync); 13793 const parameter_code = parameter.code; 13794 _argsSerializer.writeNumber(parameter_code); 13795 const parameter_want = parameter.want; 13796 let parameter_want_type: int32 = RuntimeType.UNDEFINED; 13797 parameter_want_type = runtimeType(parameter_want); 13798 _argsSerializer.writeInt8(parameter_want_type); 13799 if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { 13800 const parameter_want_value = parameter_want!; 13801 _argsSerializer.writeWant(parameter_want_value); 13802 } 13803 (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); 13804 _argsSerializer.release(); 13805 return; } 13806 } 13807 readReceiveCallback(): ReceiveCallback { 13808 let valueDeserializer: Deserializer = this 13809 const _ReceiveCallbackStub_result: string = (valueDeserializer.readString() as string) 13810 let value: ReceiveCallback = ({_ReceiveCallbackStub: _ReceiveCallbackStub_result} as ReceiveCallback) 13811 return value 13812 } 13813 readUIExtensionOptions(): UIExtensionOptions { 13814 let valueDeserializer: Deserializer = this 13815 const isTransferringCaller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13816 let isTransferringCaller_buf: boolean | undefined|undefined 13817 if ((RuntimeType.UNDEFINED) != (isTransferringCaller_buf_runtimeType)) 13818 { 13819 isTransferringCaller_buf = valueDeserializer.readBoolean() 13820 } 13821 const isTransferringCaller_result: boolean | undefined|undefined = isTransferringCaller_buf 13822 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13823 let placeholder_buf: ComponentContent | undefined|undefined 13824 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 13825 { 13826 placeholder_buf = valueDeserializer.readComponentContent() 13827 } 13828 const placeholder_result: ComponentContent | undefined|undefined = placeholder_buf 13829 const areaChangePlaceholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13830 let areaChangePlaceholder_buf: Map<string, ComponentContent> | undefined|undefined 13831 if ((RuntimeType.UNDEFINED) != (areaChangePlaceholder_buf_runtimeType)) 13832 { 13833 const areaChangePlaceholder_buf__size: int32 = valueDeserializer.readInt32() 13834 let areaChangePlaceholder_buf_: Map<string, ComponentContent> = new Map<string, ComponentContent>() 13835 // TODO: TS map resize 13836 for (let areaChangePlaceholder_buf__i = 0; areaChangePlaceholder_buf__i < areaChangePlaceholder_buf__size; areaChangePlaceholder_buf__i++) { 13837 const areaChangePlaceholder_buf__key: string = (valueDeserializer.readString() as string) 13838 const areaChangePlaceholder_buf__value: ComponentContent = valueDeserializer.readComponentContent() 13839 areaChangePlaceholder_buf_.set(areaChangePlaceholder_buf__key, areaChangePlaceholder_buf__value) 13840 } 13841 areaChangePlaceholder_buf = areaChangePlaceholder_buf_ 13842 } 13843 const areaChangePlaceholder_result: Map<string, ComponentContent> | undefined|undefined = areaChangePlaceholder_buf 13844 const dpiFollowStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13845 let dpiFollowStrategy_buf: DpiFollowStrategy | undefined|undefined 13846 if ((RuntimeType.UNDEFINED) != (dpiFollowStrategy_buf_runtimeType)) 13847 { 13848 dpiFollowStrategy_buf = (valueDeserializer.readInt32() as DpiFollowStrategy) 13849 } 13850 const dpiFollowStrategy_result: DpiFollowStrategy | undefined|undefined = dpiFollowStrategy_buf 13851 let value: UIExtensionOptions = ({isTransferringCaller: isTransferringCaller_result, placeholder: placeholder_result, areaChangePlaceholder: areaChangePlaceholder_result, dpiFollowStrategy: dpiFollowStrategy_result} as UIExtensionOptions) 13852 return value 13853 } 13854 readUIExtensionProxy(): UIExtensionProxy { 13855 let valueDeserializer: Deserializer = this 13856 let ptr: KPointer = valueDeserializer.readPointer() 13857 return UIExtensionProxyInternal.fromPtr(ptr) 13858 } 13859 readWaterFlowOptions(): WaterFlowOptions { 13860 let valueDeserializer: Deserializer = this 13861 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13862 let footer_buf: CustomBuilder | undefined|undefined 13863 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 13864 { 13865 footer_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 13866 } 13867 const footer_result: CustomBuilder | undefined|undefined = footer_buf 13868 const scroller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13869 let scroller_buf: Scroller | undefined|undefined 13870 if ((RuntimeType.UNDEFINED) != (scroller_buf_runtimeType)) 13871 { 13872 scroller_buf = (valueDeserializer.readScroller() as Scroller) 13873 } 13874 const scroller_result: Scroller | undefined|undefined = scroller_buf 13875 const sections_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13876 let sections_buf: WaterFlowSections | undefined|undefined 13877 if ((RuntimeType.UNDEFINED) != (sections_buf_runtimeType)) 13878 { 13879 sections_buf = (valueDeserializer.readWaterFlowSections() as WaterFlowSections) 13880 } 13881 const sections_result: WaterFlowSections | undefined|undefined = sections_buf 13882 const layoutMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13883 let layoutMode_buf: WaterFlowLayoutMode | undefined|undefined 13884 if ((RuntimeType.UNDEFINED) != (layoutMode_buf_runtimeType)) 13885 { 13886 layoutMode_buf = (valueDeserializer.readInt32() as WaterFlowLayoutMode) 13887 } 13888 const layoutMode_result: WaterFlowLayoutMode | undefined|undefined = layoutMode_buf 13889 let value: WaterFlowOptions = ({footer: footer_result, scroller: scroller_result, sections: sections_result, layoutMode: layoutMode_result} as WaterFlowOptions) 13890 return value 13891 } 13892 readWindowAnimationTarget(): WindowAnimationTarget { 13893 let valueDeserializer: Deserializer = this 13894 const bundleName_result: string = (valueDeserializer.readString() as string) 13895 const abilityName_result: string = (valueDeserializer.readString() as string) 13896 const windowBounds_result: RRect = valueDeserializer.readRRect() 13897 const missionId_result: number = (valueDeserializer.readNumber() as number) 13898 let value: WindowAnimationTarget = ({bundleName: bundleName_result, abilityName: abilityName_result, windowBounds: windowBounds_result, missionId: missionId_result} as WindowAnimationTarget) 13899 return value 13900 } 13901 readButtonStyle(): ButtonStyle { 13902 let valueDeserializer: Deserializer = this 13903 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13904 let left_buf: number | undefined|undefined 13905 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 13906 { 13907 left_buf = (valueDeserializer.readNumber() as number) 13908 } 13909 const left_result: number | undefined|undefined = left_buf 13910 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13911 let top_buf: number | undefined|undefined 13912 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 13913 { 13914 top_buf = (valueDeserializer.readNumber() as number) 13915 } 13916 const top_result: number | undefined|undefined = top_buf 13917 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13918 let width_buf: number | undefined|undefined 13919 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 13920 { 13921 width_buf = (valueDeserializer.readNumber() as number) 13922 } 13923 const width_result: number | undefined|undefined = width_buf 13924 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13925 let height_buf: number | undefined|undefined 13926 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 13927 { 13928 height_buf = (valueDeserializer.readNumber() as number) 13929 } 13930 const height_result: number | undefined|undefined = height_buf 13931 const icons_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13932 let icons_buf: ButtonIconOptions | undefined|undefined 13933 if ((RuntimeType.UNDEFINED) != (icons_buf_runtimeType)) 13934 { 13935 icons_buf = valueDeserializer.readButtonIconOptions() 13936 } 13937 const icons_result: ButtonIconOptions | undefined|undefined = icons_buf 13938 let value: ButtonStyle = ({left: left_result, top: top_result, width: width_result, height: height_result, icons: icons_result} as ButtonStyle) 13939 return value 13940 } 13941 readOnNativeLoadCallback(isSync: boolean = false): OnNativeLoadCallback { 13942 const _resource: CallbackResource = this.readCallbackResource() 13943 const _call: KPointer = this.readPointer() 13944 const _callSync: KPointer = this.readPointer() 13945 return (event?: Object | undefined): void => { 13946 const _argsSerializer: Serializer = Serializer.hold(); 13947 _argsSerializer.writeInt32(_resource.resourceId); 13948 _argsSerializer.writePointer(_call); 13949 _argsSerializer.writePointer(_callSync); 13950 let event_type: int32 = RuntimeType.UNDEFINED; 13951 event_type = runtimeType(event); 13952 _argsSerializer.writeInt8(event_type); 13953 if ((RuntimeType.UNDEFINED) != (event_type)) { 13954 const event_value = event!; 13955 _argsSerializer.writeCustomObject("Object", event_value); 13956 } 13957 (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); 13958 _argsSerializer.release(); 13959 return; } 13960 } 13961 readXComponentOptions(): XComponentOptions { 13962 let valueDeserializer: Deserializer = this 13963 const type_result: XComponentType = (valueDeserializer.readInt32() as XComponentType) 13964 const controller_result: XComponentController = (valueDeserializer.readXComponentController() as XComponentController) 13965 const imageAIOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13966 let imageAIOptions_buf: ImageAIOptions | undefined|undefined 13967 if ((RuntimeType.UNDEFINED) != (imageAIOptions_buf_runtimeType)) 13968 { 13969 imageAIOptions_buf = valueDeserializer.readImageAIOptions() 13970 } 13971 const imageAIOptions_result: ImageAIOptions | undefined|undefined = imageAIOptions_buf 13972 let value: XComponentOptions = ({type: type_result, controller: controller_result, imageAIOptions: imageAIOptions_result} as XComponentOptions) 13973 return value 13974 } 13975 readAdsBlockedDetails(): AdsBlockedDetails { 13976 let valueDeserializer: Deserializer = this 13977 const url_result: string = (valueDeserializer.readString() as string) 13978 const adsBlocked_buf_length: int32 = valueDeserializer.readInt32() 13979 let adsBlocked_buf: Array<string> = new Array<string>(adsBlocked_buf_length) 13980 for (let adsBlocked_buf_i = 0; adsBlocked_buf_i < adsBlocked_buf_length; adsBlocked_buf_i++) { 13981 adsBlocked_buf[adsBlocked_buf_i] = (valueDeserializer.readString() as string) 13982 } 13983 const adsBlocked_result: Array<string> = adsBlocked_buf 13984 let value: AdsBlockedDetails = ({url: url_result, adsBlocked: adsBlocked_result} as AdsBlockedDetails) 13985 return value 13986 } 13987 readOnAdsBlockedCallback(isSync: boolean = false): OnAdsBlockedCallback { 13988 const _resource: CallbackResource = this.readCallbackResource() 13989 const _call: KPointer = this.readPointer() 13990 const _callSync: KPointer = this.readPointer() 13991 return (details: AdsBlockedDetails): void => { 13992 const _argsSerializer: Serializer = Serializer.hold(); 13993 _argsSerializer.writeInt32(_resource.resourceId); 13994 _argsSerializer.writePointer(_call); 13995 _argsSerializer.writePointer(_callSync); 13996 _argsSerializer.writeAdsBlockedDetails(details); 13997 (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); 13998 _argsSerializer.release(); 13999 return; } 14000 } 14001 readWebKeyboardOptions(): WebKeyboardOptions { 14002 let valueDeserializer: Deserializer = this 14003 const useSystemKeyboard_result: boolean = valueDeserializer.readBoolean() 14004 const enterKeyType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14005 let enterKeyType_buf: number | undefined|undefined 14006 if ((RuntimeType.UNDEFINED) != (enterKeyType_buf_runtimeType)) 14007 { 14008 enterKeyType_buf = (valueDeserializer.readNumber() as number) 14009 } 14010 const enterKeyType_result: number | undefined|undefined = enterKeyType_buf 14011 const customKeyboard_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14012 let customKeyboard_buf: CustomBuilder | undefined|undefined 14013 if ((RuntimeType.UNDEFINED) != (customKeyboard_buf_runtimeType)) 14014 { 14015 customKeyboard_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 14016 } 14017 const customKeyboard_result: CustomBuilder | undefined|undefined = customKeyboard_buf 14018 let value: WebKeyboardOptions = ({useSystemKeyboard: useSystemKeyboard_result, enterKeyType: enterKeyType_result, customKeyboard: customKeyboard_result} as WebKeyboardOptions) 14019 return value 14020 } 14021 readWebKeyboardCallbackInfo(): WebKeyboardCallbackInfo { 14022 let valueDeserializer: Deserializer = this 14023 const controller_result: WebKeyboardController = (valueDeserializer.readWebKeyboardController() as WebKeyboardController) 14024 const attributes_buf_size: int32 = valueDeserializer.readInt32() 14025 let attributes_buf: Map<string, string> = new Map<string, string>() 14026 // TODO: TS map resize 14027 for (let attributes_buf_i = 0; attributes_buf_i < attributes_buf_size; attributes_buf_i++) { 14028 const attributes_buf_key: string = (valueDeserializer.readString() as string) 14029 const attributes_buf_value: string = (valueDeserializer.readString() as string) 14030 attributes_buf.set(attributes_buf_key, attributes_buf_value) 14031 } 14032 const attributes_result: Map<string, string> = attributes_buf 14033 let value: WebKeyboardCallbackInfo = ({controller: controller_result, attributes: attributes_result} as WebKeyboardCallbackInfo) 14034 return value 14035 } 14036 readWebKeyboardCallback(isSync: boolean = false): WebKeyboardCallback { 14037 const _resource: CallbackResource = this.readCallbackResource() 14038 const _call: KPointer = this.readPointer() 14039 const _callSync: KPointer = this.readPointer() 14040 return (keyboardCallbackInfo: WebKeyboardCallbackInfo): WebKeyboardOptions => { 14041 const _argsSerializer: Serializer = Serializer.hold(); 14042 _argsSerializer.writeInt32(_resource.resourceId); 14043 _argsSerializer.writePointer(_call); 14044 _argsSerializer.writePointer(_callSync); 14045 _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); 14046 let _continuationValue: WebKeyboardOptions | undefined|undefined ; 14047 const _continuationCallback: ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions): void => { _continuationValue = value; } 14048 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14049 (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); 14050 _argsSerializer.release(); 14051 return (_continuationValue as WebKeyboardOptions); } 14052 } 14053 readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { 14054 const _resource: CallbackResource = this.readCallbackResource() 14055 const _call: KPointer = this.readPointer() 14056 const _callSync: KPointer = this.readPointer() 14057 return (viewportFit: ViewportFit): void => { 14058 const _argsSerializer: Serializer = Serializer.hold(); 14059 _argsSerializer.writeInt32(_resource.resourceId); 14060 _argsSerializer.writePointer(_call); 14061 _argsSerializer.writePointer(_callSync); 14062 _argsSerializer.writeInt32(viewportFit); 14063 (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); 14064 _argsSerializer.release(); 14065 return; } 14066 } 14067 readExpandedMenuItemOptions(): ExpandedMenuItemOptions { 14068 let valueDeserializer: Deserializer = this 14069 const content_buf_selector: number = valueDeserializer.readInt8() 14070 let content_buf: string | Resource | undefined|undefined 14071 if (content_buf_selector == 0) { 14072 content_buf = (valueDeserializer.readString() as string) 14073 } 14074 else if (content_buf_selector == 1) { 14075 content_buf = valueDeserializer.readResource() 14076 } 14077 else { 14078 throw new Error("One of the branches for content_buf has to be chosen through deserialisation.") 14079 } 14080 const content_result: ResourceStr = (content_buf as string | Resource) 14081 const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14082 let startIcon_buf: ResourceStr | undefined|undefined 14083 if ((RuntimeType.UNDEFINED) != (startIcon_buf_runtimeType)) 14084 { 14085 const startIcon_buf__selector: number = valueDeserializer.readInt8() 14086 let startIcon_buf_: string | Resource | undefined|undefined 14087 if (startIcon_buf__selector == 0) { 14088 startIcon_buf_ = (valueDeserializer.readString() as string) 14089 } 14090 else if (startIcon_buf__selector == 1) { 14091 startIcon_buf_ = valueDeserializer.readResource() 14092 } 14093 else { 14094 throw new Error("One of the branches for startIcon_buf_ has to be chosen through deserialisation.") 14095 } 14096 startIcon_buf = (startIcon_buf_ as string | Resource) 14097 } 14098 const startIcon_result: ResourceStr | undefined|undefined = startIcon_buf 14099 const action_result: ((selectedText: { plainText: string }) => void) = valueDeserializer.readCallback_Literal_String_plainText_Void() 14100 let value: ExpandedMenuItemOptions = ({content: content_result, startIcon: startIcon_result, action: action_result} as ExpandedMenuItemOptions) 14101 return value 14102 } 14103 readOnRenderProcessRespondingCallback(isSync: boolean = false): OnRenderProcessRespondingCallback { 14104 const _resource: CallbackResource = this.readCallbackResource() 14105 const _call: KPointer = this.readPointer() 14106 const _callSync: KPointer = this.readPointer() 14107 return (): void => { 14108 const _argsSerializer: Serializer = Serializer.hold(); 14109 _argsSerializer.writeInt32(_resource.resourceId); 14110 _argsSerializer.writePointer(_call); 14111 _argsSerializer.writePointer(_callSync); 14112 (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); 14113 _argsSerializer.release(); 14114 return; } 14115 } 14116 readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { 14117 let valueDeserializer: Deserializer = this 14118 const jsStack_result: string = (valueDeserializer.readString() as string) 14119 const pid_result: number = (valueDeserializer.readNumber() as number) 14120 const reason_result: RenderProcessNotRespondingReason = (valueDeserializer.readInt32() as RenderProcessNotRespondingReason) 14121 let value: RenderProcessNotRespondingData = ({jsStack: jsStack_result, pid: pid_result, reason: reason_result} as RenderProcessNotRespondingData) 14122 return value 14123 } 14124 readOnRenderProcessNotRespondingCallback(isSync: boolean = false): OnRenderProcessNotRespondingCallback { 14125 const _resource: CallbackResource = this.readCallbackResource() 14126 const _call: KPointer = this.readPointer() 14127 const _callSync: KPointer = this.readPointer() 14128 return (data: RenderProcessNotRespondingData): void => { 14129 const _argsSerializer: Serializer = Serializer.hold(); 14130 _argsSerializer.writeInt32(_resource.resourceId); 14131 _argsSerializer.writePointer(_call); 14132 _argsSerializer.writePointer(_callSync); 14133 _argsSerializer.writeRenderProcessNotRespondingData(data); 14134 (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); 14135 _argsSerializer.release(); 14136 return; } 14137 } 14138 readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { 14139 let valueDeserializer: Deserializer = this 14140 const enable_result: boolean = valueDeserializer.readBoolean() 14141 const shouldOverlay_result: boolean = valueDeserializer.readBoolean() 14142 let value: NativeMediaPlayerConfig = ({enable: enable_result, shouldOverlay: shouldOverlay_result} as NativeMediaPlayerConfig) 14143 return value 14144 } 14145 readOnOverrideUrlLoadingCallback(isSync: boolean = false): OnOverrideUrlLoadingCallback { 14146 const _resource: CallbackResource = this.readCallbackResource() 14147 const _call: KPointer = this.readPointer() 14148 const _callSync: KPointer = this.readPointer() 14149 return (webResourceRequest: WebResourceRequest): boolean => { 14150 const _argsSerializer: Serializer = Serializer.hold(); 14151 _argsSerializer.writeInt32(_resource.resourceId); 14152 _argsSerializer.writePointer(_call); 14153 _argsSerializer.writePointer(_callSync); 14154 _argsSerializer.writeWebResourceRequest(webResourceRequest); 14155 let _continuationValue: boolean | undefined|undefined ; 14156 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 14157 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14158 (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); 14159 _argsSerializer.release(); 14160 return (_continuationValue as boolean); } 14161 } 14162 readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { 14163 let valueDeserializer: Deserializer = this 14164 const embedId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14165 let embedId_buf: string | undefined|undefined 14166 if ((RuntimeType.UNDEFINED) != (embedId_buf_runtimeType)) 14167 { 14168 embedId_buf = (valueDeserializer.readString() as string) 14169 } 14170 const embedId_result: string | undefined|undefined = embedId_buf 14171 const touchEvent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14172 let touchEvent_buf: TouchEvent | undefined|undefined 14173 if ((RuntimeType.UNDEFINED) != (touchEvent_buf_runtimeType)) 14174 { 14175 touchEvent_buf = (valueDeserializer.readTouchEvent() as TouchEvent) 14176 } 14177 const touchEvent_result: TouchEvent | undefined|undefined = touchEvent_buf 14178 const result_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14179 let result_buf: EventResult | undefined|undefined 14180 if ((RuntimeType.UNDEFINED) != (result_buf_runtimeType)) 14181 { 14182 result_buf = (valueDeserializer.readEventResult() as EventResult) 14183 } 14184 const result_result: EventResult | undefined|undefined = result_buf 14185 let value: NativeEmbedTouchInfo = ({embedId: embedId_result, touchEvent: touchEvent_result, result: result_result} as NativeEmbedTouchInfo) 14186 return value 14187 } 14188 readCallback_NativeEmbedTouchInfo_Void(isSync: boolean = false): ((event: NativeEmbedTouchInfo) => void) { 14189 const _resource: CallbackResource = this.readCallbackResource() 14190 const _call: KPointer = this.readPointer() 14191 const _callSync: KPointer = this.readPointer() 14192 return (event: NativeEmbedTouchInfo): void => { 14193 const _argsSerializer: Serializer = Serializer.hold(); 14194 _argsSerializer.writeInt32(_resource.resourceId); 14195 _argsSerializer.writePointer(_call); 14196 _argsSerializer.writePointer(_callSync); 14197 _argsSerializer.writeNativeEmbedTouchInfo(event); 14198 (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); 14199 _argsSerializer.release(); 14200 return; } 14201 } 14202 readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { 14203 let valueDeserializer: Deserializer = this 14204 const visibility_result: boolean = valueDeserializer.readBoolean() 14205 const embedId_result: string = (valueDeserializer.readString() as string) 14206 let value: NativeEmbedVisibilityInfo = ({visibility: visibility_result, embedId: embedId_result} as NativeEmbedVisibilityInfo) 14207 return value 14208 } 14209 readOnNativeEmbedVisibilityChangeCallback(isSync: boolean = false): OnNativeEmbedVisibilityChangeCallback { 14210 const _resource: CallbackResource = this.readCallbackResource() 14211 const _call: KPointer = this.readPointer() 14212 const _callSync: KPointer = this.readPointer() 14213 return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo): void => { 14214 const _argsSerializer: Serializer = Serializer.hold(); 14215 _argsSerializer.writeInt32(_resource.resourceId); 14216 _argsSerializer.writePointer(_call); 14217 _argsSerializer.writePointer(_callSync); 14218 _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); 14219 (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); 14220 _argsSerializer.release(); 14221 return; } 14222 } 14223 readNativeEmbedDataInfo(): NativeEmbedDataInfo { 14224 let valueDeserializer: Deserializer = this 14225 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14226 let status_buf: NativeEmbedStatus | undefined|undefined 14227 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 14228 { 14229 status_buf = (valueDeserializer.readInt32() as NativeEmbedStatus) 14230 } 14231 const status_result: NativeEmbedStatus | undefined|undefined = status_buf 14232 const surfaceId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14233 let surfaceId_buf: string | undefined|undefined 14234 if ((RuntimeType.UNDEFINED) != (surfaceId_buf_runtimeType)) 14235 { 14236 surfaceId_buf = (valueDeserializer.readString() as string) 14237 } 14238 const surfaceId_result: string | undefined|undefined = surfaceId_buf 14239 const embedId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14240 let embedId_buf: string | undefined|undefined 14241 if ((RuntimeType.UNDEFINED) != (embedId_buf_runtimeType)) 14242 { 14243 embedId_buf = (valueDeserializer.readString() as string) 14244 } 14245 const embedId_result: string | undefined|undefined = embedId_buf 14246 const info_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14247 let info_buf: NativeEmbedInfo | undefined|undefined 14248 if ((RuntimeType.UNDEFINED) != (info_buf_runtimeType)) 14249 { 14250 info_buf = valueDeserializer.readNativeEmbedInfo() 14251 } 14252 const info_result: NativeEmbedInfo | undefined|undefined = info_buf 14253 let value: NativeEmbedDataInfo = ({status: status_result, surfaceId: surfaceId_result, embedId: embedId_result, info: info_result} as NativeEmbedDataInfo) 14254 return value 14255 } 14256 readCallback_NativeEmbedDataInfo_Void(isSync: boolean = false): ((event: NativeEmbedDataInfo) => void) { 14257 const _resource: CallbackResource = this.readCallbackResource() 14258 const _call: KPointer = this.readPointer() 14259 const _callSync: KPointer = this.readPointer() 14260 return (event: NativeEmbedDataInfo): void => { 14261 const _argsSerializer: Serializer = Serializer.hold(); 14262 _argsSerializer.writeInt32(_resource.resourceId); 14263 _argsSerializer.writePointer(_call); 14264 _argsSerializer.writePointer(_callSync); 14265 _argsSerializer.writeNativeEmbedDataInfo(event); 14266 (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); 14267 _argsSerializer.release(); 14268 return; } 14269 } 14270 readScriptItem(): ScriptItem { 14271 let valueDeserializer: Deserializer = this 14272 const script_result: string = (valueDeserializer.readString() as string) 14273 const scriptRules_buf_length: int32 = valueDeserializer.readInt32() 14274 let scriptRules_buf: Array<string> = new Array<string>(scriptRules_buf_length) 14275 for (let scriptRules_buf_i = 0; scriptRules_buf_i < scriptRules_buf_length; scriptRules_buf_i++) { 14276 scriptRules_buf[scriptRules_buf_i] = (valueDeserializer.readString() as string) 14277 } 14278 const scriptRules_result: Array<string> = scriptRules_buf 14279 let value: ScriptItem = ({script: script_result, scriptRules: scriptRules_result} as ScriptItem) 14280 return value 14281 } 14282 readIntelligentTrackingPreventionDetails(): IntelligentTrackingPreventionDetails { 14283 let valueDeserializer: Deserializer = this 14284 const host_result: string = (valueDeserializer.readString() as string) 14285 const trackerHost_result: string = (valueDeserializer.readString() as string) 14286 let value: IntelligentTrackingPreventionDetails = ({host: host_result, trackerHost: trackerHost_result} as IntelligentTrackingPreventionDetails) 14287 return value 14288 } 14289 readOnIntelligentTrackingPreventionCallback(isSync: boolean = false): OnIntelligentTrackingPreventionCallback { 14290 const _resource: CallbackResource = this.readCallbackResource() 14291 const _call: KPointer = this.readPointer() 14292 const _callSync: KPointer = this.readPointer() 14293 return (details: IntelligentTrackingPreventionDetails): void => { 14294 const _argsSerializer: Serializer = Serializer.hold(); 14295 _argsSerializer.writeInt32(_resource.resourceId); 14296 _argsSerializer.writePointer(_call); 14297 _argsSerializer.writePointer(_callSync); 14298 _argsSerializer.writeIntelligentTrackingPreventionDetails(details); 14299 (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); 14300 _argsSerializer.release(); 14301 return; } 14302 } 14303 readLoadCommittedDetails(): LoadCommittedDetails { 14304 let valueDeserializer: Deserializer = this 14305 const isMainFrame_result: boolean = valueDeserializer.readBoolean() 14306 const isSameDocument_result: boolean = valueDeserializer.readBoolean() 14307 const didReplaceEntry_result: boolean = valueDeserializer.readBoolean() 14308 const navigationType_result: WebNavigationType = (valueDeserializer.readInt32() as WebNavigationType) 14309 const url_result: string = (valueDeserializer.readString() as string) 14310 let value: LoadCommittedDetails = ({isMainFrame: isMainFrame_result, isSameDocument: isSameDocument_result, didReplaceEntry: didReplaceEntry_result, navigationType: navigationType_result, url: url_result} as LoadCommittedDetails) 14311 return value 14312 } 14313 readOnNavigationEntryCommittedCallback(isSync: boolean = false): OnNavigationEntryCommittedCallback { 14314 const _resource: CallbackResource = this.readCallbackResource() 14315 const _call: KPointer = this.readPointer() 14316 const _callSync: KPointer = this.readPointer() 14317 return (loadCommittedDetails: LoadCommittedDetails): void => { 14318 const _argsSerializer: Serializer = Serializer.hold(); 14319 _argsSerializer.writeInt32(_resource.resourceId); 14320 _argsSerializer.writePointer(_call); 14321 _argsSerializer.writePointer(_callSync); 14322 _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); 14323 (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); 14324 _argsSerializer.release(); 14325 return; } 14326 } 14327 readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { 14328 const _resource: CallbackResource = this.readCallbackResource() 14329 const _call: KPointer = this.readPointer() 14330 const _callSync: KPointer = this.readPointer() 14331 return (threatType: ThreatType): void => { 14332 const _argsSerializer: Serializer = Serializer.hold(); 14333 _argsSerializer.writeInt32(_resource.resourceId); 14334 _argsSerializer.writePointer(_call); 14335 _argsSerializer.writePointer(_callSync); 14336 _argsSerializer.writeInt32(threatType); 14337 (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); 14338 _argsSerializer.release(); 14339 return; } 14340 } 14341 readOnOverScrollEvent(): OnOverScrollEvent { 14342 let valueDeserializer: Deserializer = this 14343 const xOffset_result: number = (valueDeserializer.readNumber() as number) 14344 const yOffset_result: number = (valueDeserializer.readNumber() as number) 14345 let value: OnOverScrollEvent = ({xOffset: xOffset_result, yOffset: yOffset_result} as OnOverScrollEvent) 14346 return value 14347 } 14348 readCallback_OnOverScrollEvent_Void(isSync: boolean = false): ((parameter: OnOverScrollEvent) => void) { 14349 const _resource: CallbackResource = this.readCallbackResource() 14350 const _call: KPointer = this.readPointer() 14351 const _callSync: KPointer = this.readPointer() 14352 return (parameter: OnOverScrollEvent): void => { 14353 const _argsSerializer: Serializer = Serializer.hold(); 14354 _argsSerializer.writeInt32(_resource.resourceId); 14355 _argsSerializer.writePointer(_call); 14356 _argsSerializer.writePointer(_callSync); 14357 _argsSerializer.writeOnOverScrollEvent(parameter); 14358 (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); 14359 _argsSerializer.release(); 14360 return; } 14361 } 14362 readOnLoadInterceptEvent(): OnLoadInterceptEvent { 14363 let valueDeserializer: Deserializer = this 14364 const data_result: WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14365 let value: OnLoadInterceptEvent = ({data: data_result} as OnLoadInterceptEvent) 14366 return value 14367 } 14368 readCallback_OnLoadInterceptEvent_Boolean(isSync: boolean = false): ((parameter: OnLoadInterceptEvent) => boolean) { 14369 const _resource: CallbackResource = this.readCallbackResource() 14370 const _call: KPointer = this.readPointer() 14371 const _callSync: KPointer = this.readPointer() 14372 return (parameter: OnLoadInterceptEvent): boolean => { 14373 const _argsSerializer: Serializer = Serializer.hold(); 14374 _argsSerializer.writeInt32(_resource.resourceId); 14375 _argsSerializer.writePointer(_call); 14376 _argsSerializer.writePointer(_callSync); 14377 _argsSerializer.writeOnLoadInterceptEvent(parameter); 14378 let _continuationValue: boolean | undefined|undefined ; 14379 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 14380 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14381 (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); 14382 _argsSerializer.release(); 14383 return (_continuationValue as boolean); } 14384 } 14385 readLargestContentfulPaint(): LargestContentfulPaint { 14386 let valueDeserializer: Deserializer = this 14387 const navigationStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14388 let navigationStartTime_buf: number | undefined|undefined 14389 if ((RuntimeType.UNDEFINED) != (navigationStartTime_buf_runtimeType)) 14390 { 14391 navigationStartTime_buf = (valueDeserializer.readNumber() as number) 14392 } 14393 const navigationStartTime_result: number | undefined|undefined = navigationStartTime_buf 14394 const largestImagePaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14395 let largestImagePaintTime_buf: number | undefined|undefined 14396 if ((RuntimeType.UNDEFINED) != (largestImagePaintTime_buf_runtimeType)) 14397 { 14398 largestImagePaintTime_buf = (valueDeserializer.readNumber() as number) 14399 } 14400 const largestImagePaintTime_result: number | undefined|undefined = largestImagePaintTime_buf 14401 const largestTextPaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14402 let largestTextPaintTime_buf: number | undefined|undefined 14403 if ((RuntimeType.UNDEFINED) != (largestTextPaintTime_buf_runtimeType)) 14404 { 14405 largestTextPaintTime_buf = (valueDeserializer.readNumber() as number) 14406 } 14407 const largestTextPaintTime_result: number | undefined|undefined = largestTextPaintTime_buf 14408 const imageBPP_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14409 let imageBPP_buf: number | undefined|undefined 14410 if ((RuntimeType.UNDEFINED) != (imageBPP_buf_runtimeType)) 14411 { 14412 imageBPP_buf = (valueDeserializer.readNumber() as number) 14413 } 14414 const imageBPP_result: number | undefined|undefined = imageBPP_buf 14415 const largestImageLoadStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14416 let largestImageLoadStartTime_buf: number | undefined|undefined 14417 if ((RuntimeType.UNDEFINED) != (largestImageLoadStartTime_buf_runtimeType)) 14418 { 14419 largestImageLoadStartTime_buf = (valueDeserializer.readNumber() as number) 14420 } 14421 const largestImageLoadStartTime_result: number | undefined|undefined = largestImageLoadStartTime_buf 14422 const largestImageLoadEndTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14423 let largestImageLoadEndTime_buf: number | undefined|undefined 14424 if ((RuntimeType.UNDEFINED) != (largestImageLoadEndTime_buf_runtimeType)) 14425 { 14426 largestImageLoadEndTime_buf = (valueDeserializer.readNumber() as number) 14427 } 14428 const largestImageLoadEndTime_result: number | undefined|undefined = largestImageLoadEndTime_buf 14429 let value: LargestContentfulPaint = ({navigationStartTime: navigationStartTime_result, largestImagePaintTime: largestImagePaintTime_result, largestTextPaintTime: largestTextPaintTime_result, imageBPP: imageBPP_result, largestImageLoadStartTime: largestImageLoadStartTime_result, largestImageLoadEndTime: largestImageLoadEndTime_result} as LargestContentfulPaint) 14430 return value 14431 } 14432 readOnLargestContentfulPaintCallback(isSync: boolean = false): OnLargestContentfulPaintCallback { 14433 const _resource: CallbackResource = this.readCallbackResource() 14434 const _call: KPointer = this.readPointer() 14435 const _callSync: KPointer = this.readPointer() 14436 return (largestContentfulPaint: LargestContentfulPaint): void => { 14437 const _argsSerializer: Serializer = Serializer.hold(); 14438 _argsSerializer.writeInt32(_resource.resourceId); 14439 _argsSerializer.writePointer(_call); 14440 _argsSerializer.writePointer(_callSync); 14441 _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); 14442 (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); 14443 _argsSerializer.release(); 14444 return; } 14445 } 14446 readFirstMeaningfulPaint(): FirstMeaningfulPaint { 14447 let valueDeserializer: Deserializer = this 14448 const navigationStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14449 let navigationStartTime_buf: number | undefined|undefined 14450 if ((RuntimeType.UNDEFINED) != (navigationStartTime_buf_runtimeType)) 14451 { 14452 navigationStartTime_buf = (valueDeserializer.readNumber() as number) 14453 } 14454 const navigationStartTime_result: number | undefined|undefined = navigationStartTime_buf 14455 const firstMeaningfulPaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14456 let firstMeaningfulPaintTime_buf: number | undefined|undefined 14457 if ((RuntimeType.UNDEFINED) != (firstMeaningfulPaintTime_buf_runtimeType)) 14458 { 14459 firstMeaningfulPaintTime_buf = (valueDeserializer.readNumber() as number) 14460 } 14461 const firstMeaningfulPaintTime_result: number | undefined|undefined = firstMeaningfulPaintTime_buf 14462 let value: FirstMeaningfulPaint = ({navigationStartTime: navigationStartTime_result, firstMeaningfulPaintTime: firstMeaningfulPaintTime_result} as FirstMeaningfulPaint) 14463 return value 14464 } 14465 readOnFirstMeaningfulPaintCallback(isSync: boolean = false): OnFirstMeaningfulPaintCallback { 14466 const _resource: CallbackResource = this.readCallbackResource() 14467 const _call: KPointer = this.readPointer() 14468 const _callSync: KPointer = this.readPointer() 14469 return (firstMeaningfulPaint: FirstMeaningfulPaint): void => { 14470 const _argsSerializer: Serializer = Serializer.hold(); 14471 _argsSerializer.writeInt32(_resource.resourceId); 14472 _argsSerializer.writePointer(_call); 14473 _argsSerializer.writePointer(_callSync); 14474 _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); 14475 (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); 14476 _argsSerializer.release(); 14477 return; } 14478 } 14479 readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { 14480 let valueDeserializer: Deserializer = this 14481 const navigationStartTick_result: number = (valueDeserializer.readNumber() as number) 14482 const firstContentfulPaintMs_result: number = (valueDeserializer.readNumber() as number) 14483 let value: OnFirstContentfulPaintEvent = ({navigationStartTick: navigationStartTick_result, firstContentfulPaintMs: firstContentfulPaintMs_result} as OnFirstContentfulPaintEvent) 14484 return value 14485 } 14486 readCallback_OnFirstContentfulPaintEvent_Void(isSync: boolean = false): ((parameter: OnFirstContentfulPaintEvent) => void) { 14487 const _resource: CallbackResource = this.readCallbackResource() 14488 const _call: KPointer = this.readPointer() 14489 const _callSync: KPointer = this.readPointer() 14490 return (parameter: OnFirstContentfulPaintEvent): void => { 14491 const _argsSerializer: Serializer = Serializer.hold(); 14492 _argsSerializer.writeInt32(_resource.resourceId); 14493 _argsSerializer.writePointer(_call); 14494 _argsSerializer.writePointer(_callSync); 14495 _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); 14496 (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); 14497 _argsSerializer.release(); 14498 return; } 14499 } 14500 readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { 14501 let valueDeserializer: Deserializer = this 14502 const playing_result: boolean = valueDeserializer.readBoolean() 14503 let value: OnAudioStateChangedEvent = ({playing: playing_result} as OnAudioStateChangedEvent) 14504 return value 14505 } 14506 readCallback_OnAudioStateChangedEvent_Void(isSync: boolean = false): ((parameter: OnAudioStateChangedEvent) => void) { 14507 const _resource: CallbackResource = this.readCallbackResource() 14508 const _call: KPointer = this.readPointer() 14509 const _callSync: KPointer = this.readPointer() 14510 return (parameter: OnAudioStateChangedEvent): void => { 14511 const _argsSerializer: Serializer = Serializer.hold(); 14512 _argsSerializer.writeInt32(_resource.resourceId); 14513 _argsSerializer.writePointer(_call); 14514 _argsSerializer.writePointer(_callSync); 14515 _argsSerializer.writeOnAudioStateChangedEvent(parameter); 14516 (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); 14517 _argsSerializer.release(); 14518 return; } 14519 } 14520 readOnDataResubmittedEvent(): OnDataResubmittedEvent { 14521 let valueDeserializer: Deserializer = this 14522 const handler_result: DataResubmissionHandler = (valueDeserializer.readDataResubmissionHandler() as DataResubmissionHandler) 14523 let value: OnDataResubmittedEvent = ({handler: handler_result} as OnDataResubmittedEvent) 14524 return value 14525 } 14526 readCallback_OnDataResubmittedEvent_Void(isSync: boolean = false): ((parameter: OnDataResubmittedEvent) => void) { 14527 const _resource: CallbackResource = this.readCallbackResource() 14528 const _call: KPointer = this.readPointer() 14529 const _callSync: KPointer = this.readPointer() 14530 return (parameter: OnDataResubmittedEvent): void => { 14531 const _argsSerializer: Serializer = Serializer.hold(); 14532 _argsSerializer.writeInt32(_resource.resourceId); 14533 _argsSerializer.writePointer(_call); 14534 _argsSerializer.writePointer(_callSync); 14535 _argsSerializer.writeOnDataResubmittedEvent(parameter); 14536 (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); 14537 _argsSerializer.release(); 14538 return; } 14539 } 14540 readOnPageVisibleEvent(): OnPageVisibleEvent { 14541 let valueDeserializer: Deserializer = this 14542 const url_result: string = (valueDeserializer.readString() as string) 14543 let value: OnPageVisibleEvent = ({url: url_result} as OnPageVisibleEvent) 14544 return value 14545 } 14546 readCallback_OnPageVisibleEvent_Void(isSync: boolean = false): ((parameter: OnPageVisibleEvent) => void) { 14547 const _resource: CallbackResource = this.readCallbackResource() 14548 const _call: KPointer = this.readPointer() 14549 const _callSync: KPointer = this.readPointer() 14550 return (parameter: OnPageVisibleEvent): void => { 14551 const _argsSerializer: Serializer = Serializer.hold(); 14552 _argsSerializer.writeInt32(_resource.resourceId); 14553 _argsSerializer.writePointer(_call); 14554 _argsSerializer.writePointer(_callSync); 14555 _argsSerializer.writeOnPageVisibleEvent(parameter); 14556 (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); 14557 _argsSerializer.release(); 14558 return; } 14559 } 14560 readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { 14561 let valueDeserializer: Deserializer = this 14562 const favicon_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 14563 let value: OnFaviconReceivedEvent = ({favicon: favicon_result} as OnFaviconReceivedEvent) 14564 return value 14565 } 14566 readCallback_OnFaviconReceivedEvent_Void(isSync: boolean = false): ((parameter: OnFaviconReceivedEvent) => void) { 14567 const _resource: CallbackResource = this.readCallbackResource() 14568 const _call: KPointer = this.readPointer() 14569 const _callSync: KPointer = this.readPointer() 14570 return (parameter: OnFaviconReceivedEvent): void => { 14571 const _argsSerializer: Serializer = Serializer.hold(); 14572 _argsSerializer.writeInt32(_resource.resourceId); 14573 _argsSerializer.writePointer(_call); 14574 _argsSerializer.writePointer(_callSync); 14575 _argsSerializer.writeOnFaviconReceivedEvent(parameter); 14576 (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); 14577 _argsSerializer.release(); 14578 return; } 14579 } 14580 readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { 14581 let valueDeserializer: Deserializer = this 14582 const url_result: string = (valueDeserializer.readString() as string) 14583 const precomposed_result: boolean = valueDeserializer.readBoolean() 14584 let value: OnTouchIconUrlReceivedEvent = ({url: url_result, precomposed: precomposed_result} as OnTouchIconUrlReceivedEvent) 14585 return value 14586 } 14587 readCallback_OnTouchIconUrlReceivedEvent_Void(isSync: boolean = false): ((parameter: OnTouchIconUrlReceivedEvent) => void) { 14588 const _resource: CallbackResource = this.readCallbackResource() 14589 const _call: KPointer = this.readPointer() 14590 const _callSync: KPointer = this.readPointer() 14591 return (parameter: OnTouchIconUrlReceivedEvent): void => { 14592 const _argsSerializer: Serializer = Serializer.hold(); 14593 _argsSerializer.writeInt32(_resource.resourceId); 14594 _argsSerializer.writePointer(_call); 14595 _argsSerializer.writePointer(_callSync); 14596 _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); 14597 (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); 14598 _argsSerializer.release(); 14599 return; } 14600 } 14601 readOnWindowNewEvent(): OnWindowNewEvent { 14602 let valueDeserializer: Deserializer = this 14603 const isAlert_result: boolean = valueDeserializer.readBoolean() 14604 const isUserTrigger_result: boolean = valueDeserializer.readBoolean() 14605 const targetUrl_result: string = (valueDeserializer.readString() as string) 14606 const handler_result: ControllerHandler = (valueDeserializer.readControllerHandler() as ControllerHandler) 14607 let value: OnWindowNewEvent = ({isAlert: isAlert_result, isUserTrigger: isUserTrigger_result, targetUrl: targetUrl_result, handler: handler_result} as OnWindowNewEvent) 14608 return value 14609 } 14610 readCallback_OnWindowNewEvent_Void(isSync: boolean = false): ((parameter: OnWindowNewEvent) => void) { 14611 const _resource: CallbackResource = this.readCallbackResource() 14612 const _call: KPointer = this.readPointer() 14613 const _callSync: KPointer = this.readPointer() 14614 return (parameter: OnWindowNewEvent): void => { 14615 const _argsSerializer: Serializer = Serializer.hold(); 14616 _argsSerializer.writeInt32(_resource.resourceId); 14617 _argsSerializer.writePointer(_call); 14618 _argsSerializer.writePointer(_callSync); 14619 _argsSerializer.writeOnWindowNewEvent(parameter); 14620 (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); 14621 _argsSerializer.release(); 14622 return; } 14623 } 14624 readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { 14625 let valueDeserializer: Deserializer = this 14626 const handler_result: ClientAuthenticationHandler = (valueDeserializer.readClientAuthenticationHandler() as ClientAuthenticationHandler) 14627 const host_result: string = (valueDeserializer.readString() as string) 14628 const port_result: number = (valueDeserializer.readNumber() as number) 14629 const keyTypes_buf_length: int32 = valueDeserializer.readInt32() 14630 let keyTypes_buf: Array<string> = new Array<string>(keyTypes_buf_length) 14631 for (let keyTypes_buf_i = 0; keyTypes_buf_i < keyTypes_buf_length; keyTypes_buf_i++) { 14632 keyTypes_buf[keyTypes_buf_i] = (valueDeserializer.readString() as string) 14633 } 14634 const keyTypes_result: Array<string> = keyTypes_buf 14635 const issuers_buf_length: int32 = valueDeserializer.readInt32() 14636 let issuers_buf: Array<string> = new Array<string>(issuers_buf_length) 14637 for (let issuers_buf_i = 0; issuers_buf_i < issuers_buf_length; issuers_buf_i++) { 14638 issuers_buf[issuers_buf_i] = (valueDeserializer.readString() as string) 14639 } 14640 const issuers_result: Array<string> = issuers_buf 14641 let value: OnClientAuthenticationEvent = ({handler: handler_result, host: host_result, port: port_result, keyTypes: keyTypes_result, issuers: issuers_result} as OnClientAuthenticationEvent) 14642 return value 14643 } 14644 readCallback_OnClientAuthenticationEvent_Void(isSync: boolean = false): ((parameter: OnClientAuthenticationEvent) => void) { 14645 const _resource: CallbackResource = this.readCallbackResource() 14646 const _call: KPointer = this.readPointer() 14647 const _callSync: KPointer = this.readPointer() 14648 return (parameter: OnClientAuthenticationEvent): void => { 14649 const _argsSerializer: Serializer = Serializer.hold(); 14650 _argsSerializer.writeInt32(_resource.resourceId); 14651 _argsSerializer.writePointer(_call); 14652 _argsSerializer.writePointer(_callSync); 14653 _argsSerializer.writeOnClientAuthenticationEvent(parameter); 14654 (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); 14655 _argsSerializer.release(); 14656 return; } 14657 } 14658 readSslErrorEvent(): SslErrorEvent { 14659 let valueDeserializer: Deserializer = this 14660 const handler_result: SslErrorHandler = (valueDeserializer.readSslErrorHandler() as SslErrorHandler) 14661 const error_result: SslError = (valueDeserializer.readInt32() as SslError) 14662 const url_result: string = (valueDeserializer.readString() as string) 14663 const originalUrl_result: string = (valueDeserializer.readString() as string) 14664 const referrer_result: string = (valueDeserializer.readString() as string) 14665 const isFatalError_result: boolean = valueDeserializer.readBoolean() 14666 const isMainFrame_result: boolean = valueDeserializer.readBoolean() 14667 let value: SslErrorEvent = ({handler: handler_result, error: error_result, url: url_result, originalUrl: originalUrl_result, referrer: referrer_result, isFatalError: isFatalError_result, isMainFrame: isMainFrame_result} as SslErrorEvent) 14668 return value 14669 } 14670 readOnSslErrorEventCallback(isSync: boolean = false): OnSslErrorEventCallback { 14671 const _resource: CallbackResource = this.readCallbackResource() 14672 const _call: KPointer = this.readPointer() 14673 const _callSync: KPointer = this.readPointer() 14674 return (sslErrorEvent: SslErrorEvent): void => { 14675 const _argsSerializer: Serializer = Serializer.hold(); 14676 _argsSerializer.writeInt32(_resource.resourceId); 14677 _argsSerializer.writePointer(_call); 14678 _argsSerializer.writePointer(_callSync); 14679 _argsSerializer.writeSslErrorEvent(sslErrorEvent); 14680 (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); 14681 _argsSerializer.release(); 14682 return; } 14683 } 14684 readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { 14685 let valueDeserializer: Deserializer = this 14686 const handler_result: SslErrorHandler = (valueDeserializer.readSslErrorHandler() as SslErrorHandler) 14687 const error_result: SslError = (valueDeserializer.readInt32() as SslError) 14688 const certChainData_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14689 let certChainData_buf: Array<ArrayBuffer> | undefined|undefined 14690 if ((RuntimeType.UNDEFINED) != (certChainData_buf_runtimeType)) 14691 { 14692 const certChainData_buf__length: int32 = valueDeserializer.readInt32() 14693 let certChainData_buf_: Array<ArrayBuffer> = new Array<ArrayBuffer>(certChainData_buf__length) 14694 for (let certChainData_buf__i = 0; certChainData_buf__i < certChainData_buf__length; certChainData_buf__i++) { 14695 certChainData_buf_[certChainData_buf__i] = (valueDeserializer.readBuffer() as ArrayBuffer) 14696 } 14697 certChainData_buf = certChainData_buf_ 14698 } 14699 const certChainData_result: Array<ArrayBuffer> | undefined|undefined = certChainData_buf 14700 let value: OnSslErrorEventReceiveEvent = ({handler: handler_result, error: error_result, certChainData: certChainData_result} as OnSslErrorEventReceiveEvent) 14701 return value 14702 } 14703 readCallback_OnSslErrorEventReceiveEvent_Void(isSync: boolean = false): ((parameter: OnSslErrorEventReceiveEvent) => void) { 14704 const _resource: CallbackResource = this.readCallbackResource() 14705 const _call: KPointer = this.readPointer() 14706 const _callSync: KPointer = this.readPointer() 14707 return (parameter: OnSslErrorEventReceiveEvent): void => { 14708 const _argsSerializer: Serializer = Serializer.hold(); 14709 _argsSerializer.writeInt32(_resource.resourceId); 14710 _argsSerializer.writePointer(_call); 14711 _argsSerializer.writePointer(_callSync); 14712 _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); 14713 (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); 14714 _argsSerializer.release(); 14715 return; } 14716 } 14717 readOnScrollEvent(): OnScrollEvent { 14718 let valueDeserializer: Deserializer = this 14719 const xOffset_result: number = (valueDeserializer.readNumber() as number) 14720 const yOffset_result: number = (valueDeserializer.readNumber() as number) 14721 let value: OnScrollEvent = ({xOffset: xOffset_result, yOffset: yOffset_result} as OnScrollEvent) 14722 return value 14723 } 14724 readCallback_OnScrollEvent_Void(isSync: boolean = false): ((parameter: OnScrollEvent) => void) { 14725 const _resource: CallbackResource = this.readCallbackResource() 14726 const _call: KPointer = this.readPointer() 14727 const _callSync: KPointer = this.readPointer() 14728 return (parameter: OnScrollEvent): void => { 14729 const _argsSerializer: Serializer = Serializer.hold(); 14730 _argsSerializer.writeInt32(_resource.resourceId); 14731 _argsSerializer.writePointer(_call); 14732 _argsSerializer.writePointer(_callSync); 14733 _argsSerializer.writeOnScrollEvent(parameter); 14734 (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); 14735 _argsSerializer.release(); 14736 return; } 14737 } 14738 readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { 14739 let valueDeserializer: Deserializer = this 14740 const activeMatchOrdinal_result: number = (valueDeserializer.readNumber() as number) 14741 const numberOfMatches_result: number = (valueDeserializer.readNumber() as number) 14742 const isDoneCounting_result: boolean = valueDeserializer.readBoolean() 14743 let value: OnSearchResultReceiveEvent = ({activeMatchOrdinal: activeMatchOrdinal_result, numberOfMatches: numberOfMatches_result, isDoneCounting: isDoneCounting_result} as OnSearchResultReceiveEvent) 14744 return value 14745 } 14746 readCallback_OnSearchResultReceiveEvent_Void(isSync: boolean = false): ((parameter: OnSearchResultReceiveEvent) => void) { 14747 const _resource: CallbackResource = this.readCallbackResource() 14748 const _call: KPointer = this.readPointer() 14749 const _callSync: KPointer = this.readPointer() 14750 return (parameter: OnSearchResultReceiveEvent): void => { 14751 const _argsSerializer: Serializer = Serializer.hold(); 14752 _argsSerializer.writeInt32(_resource.resourceId); 14753 _argsSerializer.writePointer(_call); 14754 _argsSerializer.writePointer(_callSync); 14755 _argsSerializer.writeOnSearchResultReceiveEvent(parameter); 14756 (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); 14757 _argsSerializer.release(); 14758 return; } 14759 } 14760 readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { 14761 const _resource: CallbackResource = this.readCallbackResource() 14762 const _call: KPointer = this.readPointer() 14763 const _callSync: KPointer = this.readPointer() 14764 return (): void => { 14765 const _argsSerializer: Serializer = Serializer.hold(); 14766 _argsSerializer.writeInt32(_resource.resourceId); 14767 _argsSerializer.writePointer(_call); 14768 _argsSerializer.writePointer(_callSync); 14769 (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); 14770 _argsSerializer.release(); 14771 return; } 14772 } 14773 readOnContextMenuShowEvent(): OnContextMenuShowEvent { 14774 let valueDeserializer: Deserializer = this 14775 const param_result: WebContextMenuParam = (valueDeserializer.readWebContextMenuParam() as WebContextMenuParam) 14776 const result_result: WebContextMenuResult = (valueDeserializer.readWebContextMenuResult() as WebContextMenuResult) 14777 let value: OnContextMenuShowEvent = ({param: param_result, result: result_result} as OnContextMenuShowEvent) 14778 return value 14779 } 14780 readCallback_OnContextMenuShowEvent_Boolean(isSync: boolean = false): ((parameter: OnContextMenuShowEvent) => boolean) { 14781 const _resource: CallbackResource = this.readCallbackResource() 14782 const _call: KPointer = this.readPointer() 14783 const _callSync: KPointer = this.readPointer() 14784 return (parameter: OnContextMenuShowEvent): boolean => { 14785 const _argsSerializer: Serializer = Serializer.hold(); 14786 _argsSerializer.writeInt32(_resource.resourceId); 14787 _argsSerializer.writePointer(_call); 14788 _argsSerializer.writePointer(_callSync); 14789 _argsSerializer.writeOnContextMenuShowEvent(parameter); 14790 let _continuationValue: boolean | undefined|undefined ; 14791 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 14792 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14793 (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); 14794 _argsSerializer.release(); 14795 return (_continuationValue as boolean); } 14796 } 14797 readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { 14798 let valueDeserializer: Deserializer = this 14799 const handler_result: ScreenCaptureHandler = (valueDeserializer.readScreenCaptureHandler() as ScreenCaptureHandler) 14800 let value: OnScreenCaptureRequestEvent = ({handler: handler_result} as OnScreenCaptureRequestEvent) 14801 return value 14802 } 14803 readCallback_OnScreenCaptureRequestEvent_Void(isSync: boolean = false): ((parameter: OnScreenCaptureRequestEvent) => void) { 14804 const _resource: CallbackResource = this.readCallbackResource() 14805 const _call: KPointer = this.readPointer() 14806 const _callSync: KPointer = this.readPointer() 14807 return (parameter: OnScreenCaptureRequestEvent): void => { 14808 const _argsSerializer: Serializer = Serializer.hold(); 14809 _argsSerializer.writeInt32(_resource.resourceId); 14810 _argsSerializer.writePointer(_call); 14811 _argsSerializer.writePointer(_callSync); 14812 _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); 14813 (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); 14814 _argsSerializer.release(); 14815 return; } 14816 } 14817 readOnPermissionRequestEvent(): OnPermissionRequestEvent { 14818 let valueDeserializer: Deserializer = this 14819 const request_result: PermissionRequest = (valueDeserializer.readPermissionRequest() as PermissionRequest) 14820 let value: OnPermissionRequestEvent = ({request: request_result} as OnPermissionRequestEvent) 14821 return value 14822 } 14823 readCallback_OnPermissionRequestEvent_Void(isSync: boolean = false): ((parameter: OnPermissionRequestEvent) => void) { 14824 const _resource: CallbackResource = this.readCallbackResource() 14825 const _call: KPointer = this.readPointer() 14826 const _callSync: KPointer = this.readPointer() 14827 return (parameter: OnPermissionRequestEvent): void => { 14828 const _argsSerializer: Serializer = Serializer.hold(); 14829 _argsSerializer.writeInt32(_resource.resourceId); 14830 _argsSerializer.writePointer(_call); 14831 _argsSerializer.writePointer(_callSync); 14832 _argsSerializer.writeOnPermissionRequestEvent(parameter); 14833 (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); 14834 _argsSerializer.release(); 14835 return; } 14836 } 14837 readOnInterceptRequestEvent(): OnInterceptRequestEvent { 14838 let valueDeserializer: Deserializer = this 14839 const request_result: WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14840 let value: OnInterceptRequestEvent = ({request: request_result} as OnInterceptRequestEvent) 14841 return value 14842 } 14843 readCallback_OnInterceptRequestEvent_WebResourceResponse(isSync: boolean = false): ((parameter: OnInterceptRequestEvent) => WebResourceResponse) { 14844 const _resource: CallbackResource = this.readCallbackResource() 14845 const _call: KPointer = this.readPointer() 14846 const _callSync: KPointer = this.readPointer() 14847 return (parameter: OnInterceptRequestEvent): WebResourceResponse => { 14848 const _argsSerializer: Serializer = Serializer.hold(); 14849 _argsSerializer.writeInt32(_resource.resourceId); 14850 _argsSerializer.writePointer(_call); 14851 _argsSerializer.writePointer(_callSync); 14852 _argsSerializer.writeOnInterceptRequestEvent(parameter); 14853 let _continuationValue: WebResourceResponse | undefined|undefined ; 14854 const _continuationCallback: ((value: WebResourceResponse) => void) = (value: WebResourceResponse): void => { _continuationValue = value; } 14855 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14856 (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); 14857 _argsSerializer.release(); 14858 return (_continuationValue as WebResourceResponse); } 14859 } 14860 readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { 14861 let valueDeserializer: Deserializer = this 14862 const handler_result: HttpAuthHandler = (valueDeserializer.readHttpAuthHandler() as HttpAuthHandler) 14863 const host_result: string = (valueDeserializer.readString() as string) 14864 const realm_result: string = (valueDeserializer.readString() as string) 14865 let value: OnHttpAuthRequestEvent = ({handler: handler_result, host: host_result, realm: realm_result} as OnHttpAuthRequestEvent) 14866 return value 14867 } 14868 readCallback_OnHttpAuthRequestEvent_Boolean(isSync: boolean = false): ((parameter: OnHttpAuthRequestEvent) => boolean) { 14869 const _resource: CallbackResource = this.readCallbackResource() 14870 const _call: KPointer = this.readPointer() 14871 const _callSync: KPointer = this.readPointer() 14872 return (parameter: OnHttpAuthRequestEvent): boolean => { 14873 const _argsSerializer: Serializer = Serializer.hold(); 14874 _argsSerializer.writeInt32(_resource.resourceId); 14875 _argsSerializer.writePointer(_call); 14876 _argsSerializer.writePointer(_callSync); 14877 _argsSerializer.writeOnHttpAuthRequestEvent(parameter); 14878 let _continuationValue: boolean | undefined|undefined ; 14879 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 14880 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14881 (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); 14882 _argsSerializer.release(); 14883 return (_continuationValue as boolean); } 14884 } 14885 readOnScaleChangeEvent(): OnScaleChangeEvent { 14886 let valueDeserializer: Deserializer = this 14887 const oldScale_result: number = (valueDeserializer.readNumber() as number) 14888 const newScale_result: number = (valueDeserializer.readNumber() as number) 14889 let value: OnScaleChangeEvent = ({oldScale: oldScale_result, newScale: newScale_result} as OnScaleChangeEvent) 14890 return value 14891 } 14892 readCallback_OnScaleChangeEvent_Void(isSync: boolean = false): ((parameter: OnScaleChangeEvent) => void) { 14893 const _resource: CallbackResource = this.readCallbackResource() 14894 const _call: KPointer = this.readPointer() 14895 const _callSync: KPointer = this.readPointer() 14896 return (parameter: OnScaleChangeEvent): void => { 14897 const _argsSerializer: Serializer = Serializer.hold(); 14898 _argsSerializer.writeInt32(_resource.resourceId); 14899 _argsSerializer.writePointer(_call); 14900 _argsSerializer.writePointer(_callSync); 14901 _argsSerializer.writeOnScaleChangeEvent(parameter); 14902 (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); 14903 _argsSerializer.release(); 14904 return; } 14905 } 14906 readFullScreenEnterEvent(): FullScreenEnterEvent { 14907 let valueDeserializer: Deserializer = this 14908 const handler_result: FullScreenExitHandler = (valueDeserializer.readFullScreenExitHandler() as FullScreenExitHandler) 14909 const videoWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14910 let videoWidth_buf: number | undefined|undefined 14911 if ((RuntimeType.UNDEFINED) != (videoWidth_buf_runtimeType)) 14912 { 14913 videoWidth_buf = (valueDeserializer.readNumber() as number) 14914 } 14915 const videoWidth_result: number | undefined|undefined = videoWidth_buf 14916 const videoHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14917 let videoHeight_buf: number | undefined|undefined 14918 if ((RuntimeType.UNDEFINED) != (videoHeight_buf_runtimeType)) 14919 { 14920 videoHeight_buf = (valueDeserializer.readNumber() as number) 14921 } 14922 const videoHeight_result: number | undefined|undefined = videoHeight_buf 14923 let value: FullScreenEnterEvent = ({handler: handler_result, videoWidth: videoWidth_result, videoHeight: videoHeight_result} as FullScreenEnterEvent) 14924 return value 14925 } 14926 readOnFullScreenEnterCallback(isSync: boolean = false): OnFullScreenEnterCallback { 14927 const _resource: CallbackResource = this.readCallbackResource() 14928 const _call: KPointer = this.readPointer() 14929 const _callSync: KPointer = this.readPointer() 14930 return (event: FullScreenEnterEvent): void => { 14931 const _argsSerializer: Serializer = Serializer.hold(); 14932 _argsSerializer.writeInt32(_resource.resourceId); 14933 _argsSerializer.writePointer(_call); 14934 _argsSerializer.writePointer(_callSync); 14935 _argsSerializer.writeFullScreenEnterEvent(event); 14936 (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); 14937 _argsSerializer.release(); 14938 return; } 14939 } 14940 readOnResourceLoadEvent(): OnResourceLoadEvent { 14941 let valueDeserializer: Deserializer = this 14942 const url_result: string = (valueDeserializer.readString() as string) 14943 let value: OnResourceLoadEvent = ({url: url_result} as OnResourceLoadEvent) 14944 return value 14945 } 14946 readCallback_OnResourceLoadEvent_Void(isSync: boolean = false): ((parameter: OnResourceLoadEvent) => void) { 14947 const _resource: CallbackResource = this.readCallbackResource() 14948 const _call: KPointer = this.readPointer() 14949 const _callSync: KPointer = this.readPointer() 14950 return (parameter: OnResourceLoadEvent): void => { 14951 const _argsSerializer: Serializer = Serializer.hold(); 14952 _argsSerializer.writeInt32(_resource.resourceId); 14953 _argsSerializer.writePointer(_call); 14954 _argsSerializer.writePointer(_callSync); 14955 _argsSerializer.writeOnResourceLoadEvent(parameter); 14956 (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); 14957 _argsSerializer.release(); 14958 return; } 14959 } 14960 readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: { callback_: Function, fileSelector: Object }) => void) { 14961 const _resource: CallbackResource = this.readCallbackResource() 14962 const _call: KPointer = this.readPointer() 14963 const _callSync: KPointer = this.readPointer() 14964 return (event?: { callback_: Function, fileSelector: Object } | undefined): void => { 14965 const _argsSerializer: Serializer = Serializer.hold(); 14966 _argsSerializer.writeInt32(_resource.resourceId); 14967 _argsSerializer.writePointer(_call); 14968 _argsSerializer.writePointer(_callSync); 14969 let event_type: int32 = RuntimeType.UNDEFINED; 14970 event_type = runtimeType(event); 14971 _argsSerializer.writeInt8(event_type); 14972 if ((RuntimeType.UNDEFINED) != (event_type)) { 14973 const event_value = event!; 14974 const event_value_callback_ = event_value.callback_; 14975 _argsSerializer.writeFunction(event_value_callback_); 14976 const event_value_fileSelector = event_value.fileSelector; 14977 _argsSerializer.writeCustomObject("Object", event_value_fileSelector); 14978 } 14979 (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); 14980 _argsSerializer.release(); 14981 return; } 14982 } 14983 readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: { detail: Object }) => boolean) { 14984 const _resource: CallbackResource = this.readCallbackResource() 14985 const _call: KPointer = this.readPointer() 14986 const _callSync: KPointer = this.readPointer() 14987 return (event?: { detail: Object } | undefined): boolean => { 14988 const _argsSerializer: Serializer = Serializer.hold(); 14989 _argsSerializer.writeInt32(_resource.resourceId); 14990 _argsSerializer.writePointer(_call); 14991 _argsSerializer.writePointer(_callSync); 14992 let event_type: int32 = RuntimeType.UNDEFINED; 14993 event_type = runtimeType(event); 14994 _argsSerializer.writeInt8(event_type); 14995 if ((RuntimeType.UNDEFINED) != (event_type)) { 14996 const event_value = event!; 14997 const event_value_detail = event_value.detail; 14998 _argsSerializer.writeCustomObject("Object", event_value_detail); 14999 } 15000 let _continuationValue: boolean | undefined|undefined ; 15001 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15002 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15003 (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); 15004 _argsSerializer.release(); 15005 return (_continuationValue as boolean); } 15006 } 15007 readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { 15008 let valueDeserializer: Deserializer = this 15009 const result_result: FileSelectorResult = (valueDeserializer.readFileSelectorResult() as FileSelectorResult) 15010 const fileSelector_result: FileSelectorParam = (valueDeserializer.readFileSelectorParam() as FileSelectorParam) 15011 let value: OnShowFileSelectorEvent = ({result: result_result, fileSelector: fileSelector_result} as OnShowFileSelectorEvent) 15012 return value 15013 } 15014 readCallback_OnShowFileSelectorEvent_Boolean(isSync: boolean = false): ((parameter: OnShowFileSelectorEvent) => boolean) { 15015 const _resource: CallbackResource = this.readCallbackResource() 15016 const _call: KPointer = this.readPointer() 15017 const _callSync: KPointer = this.readPointer() 15018 return (parameter: OnShowFileSelectorEvent): boolean => { 15019 const _argsSerializer: Serializer = Serializer.hold(); 15020 _argsSerializer.writeInt32(_resource.resourceId); 15021 _argsSerializer.writePointer(_call); 15022 _argsSerializer.writePointer(_callSync); 15023 _argsSerializer.writeOnShowFileSelectorEvent(parameter); 15024 let _continuationValue: boolean | undefined|undefined ; 15025 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15026 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15027 (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); 15028 _argsSerializer.release(); 15029 return (_continuationValue as boolean); } 15030 } 15031 readOnRenderExitedEvent(): OnRenderExitedEvent { 15032 let valueDeserializer: Deserializer = this 15033 const renderExitReason_result: RenderExitReason = (valueDeserializer.readInt32() as RenderExitReason) 15034 let value: OnRenderExitedEvent = ({renderExitReason: renderExitReason_result} as OnRenderExitedEvent) 15035 return value 15036 } 15037 readCallback_OnRenderExitedEvent_Void(isSync: boolean = false): ((parameter: OnRenderExitedEvent) => void) { 15038 const _resource: CallbackResource = this.readCallbackResource() 15039 const _call: KPointer = this.readPointer() 15040 const _callSync: KPointer = this.readPointer() 15041 return (parameter: OnRenderExitedEvent): void => { 15042 const _argsSerializer: Serializer = Serializer.hold(); 15043 _argsSerializer.writeInt32(_resource.resourceId); 15044 _argsSerializer.writePointer(_call); 15045 _argsSerializer.writePointer(_callSync); 15046 _argsSerializer.writeOnRenderExitedEvent(parameter); 15047 (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); 15048 _argsSerializer.release(); 15049 return; } 15050 } 15051 readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: { handler: Function, error: Object }) => void) { 15052 const _resource: CallbackResource = this.readCallbackResource() 15053 const _call: KPointer = this.readPointer() 15054 const _callSync: KPointer = this.readPointer() 15055 return (event?: { handler: Function, error: Object } | undefined): void => { 15056 const _argsSerializer: Serializer = Serializer.hold(); 15057 _argsSerializer.writeInt32(_resource.resourceId); 15058 _argsSerializer.writePointer(_call); 15059 _argsSerializer.writePointer(_callSync); 15060 let event_type: int32 = RuntimeType.UNDEFINED; 15061 event_type = runtimeType(event); 15062 _argsSerializer.writeInt8(event_type); 15063 if ((RuntimeType.UNDEFINED) != (event_type)) { 15064 const event_value = event!; 15065 const event_value_handler = event_value.handler; 15066 _argsSerializer.writeFunction(event_value_handler); 15067 const event_value_error = event_value.error; 15068 _argsSerializer.writeCustomObject("Object", event_value_error); 15069 } 15070 (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); 15071 _argsSerializer.release(); 15072 return; } 15073 } 15074 readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: { data: string | WebResourceRequest }) => boolean) { 15075 const _resource: CallbackResource = this.readCallbackResource() 15076 const _call: KPointer = this.readPointer() 15077 const _callSync: KPointer = this.readPointer() 15078 return (event?: { data: string | WebResourceRequest } | undefined): boolean => { 15079 const _argsSerializer: Serializer = Serializer.hold(); 15080 _argsSerializer.writeInt32(_resource.resourceId); 15081 _argsSerializer.writePointer(_call); 15082 _argsSerializer.writePointer(_callSync); 15083 let event_type: int32 = RuntimeType.UNDEFINED; 15084 event_type = runtimeType(event); 15085 _argsSerializer.writeInt8(event_type); 15086 if ((RuntimeType.UNDEFINED) != (event_type)) { 15087 const event_value = event!; 15088 const event_value_data = event_value.data; 15089 let event_value_data_type: int32 = RuntimeType.UNDEFINED; 15090 event_value_data_type = runtimeType(event_value_data); 15091 if (RuntimeType.STRING == event_value_data_type) { 15092 _argsSerializer.writeInt8(0); 15093 const event_value_data_0 = unsafeCast<string>(event_value_data); 15094 _argsSerializer.writeString(event_value_data_0); 15095 } 15096 else if (RuntimeType.OBJECT == event_value_data_type) { 15097 _argsSerializer.writeInt8(1); 15098 const event_value_data_1 = unsafeCast<WebResourceRequest>(event_value_data); 15099 _argsSerializer.writeWebResourceRequest(event_value_data_1); 15100 } 15101 } 15102 let _continuationValue: boolean | undefined|undefined ; 15103 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15104 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15105 (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); 15106 _argsSerializer.release(); 15107 return (_continuationValue as boolean); } 15108 } 15109 readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { 15110 let valueDeserializer: Deserializer = this 15111 const url_result: string = (valueDeserializer.readString() as string) 15112 const isRefreshed_result: boolean = valueDeserializer.readBoolean() 15113 let value: OnRefreshAccessedHistoryEvent = ({url: url_result, isRefreshed: isRefreshed_result} as OnRefreshAccessedHistoryEvent) 15114 return value 15115 } 15116 readCallback_OnRefreshAccessedHistoryEvent_Void(isSync: boolean = false): ((parameter: OnRefreshAccessedHistoryEvent) => void) { 15117 const _resource: CallbackResource = this.readCallbackResource() 15118 const _call: KPointer = this.readPointer() 15119 const _callSync: KPointer = this.readPointer() 15120 return (parameter: OnRefreshAccessedHistoryEvent): void => { 15121 const _argsSerializer: Serializer = Serializer.hold(); 15122 _argsSerializer.writeInt32(_resource.resourceId); 15123 _argsSerializer.writePointer(_call); 15124 _argsSerializer.writePointer(_callSync); 15125 _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); 15126 (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); 15127 _argsSerializer.release(); 15128 return; } 15129 } 15130 readOnDownloadStartEvent(): OnDownloadStartEvent { 15131 let valueDeserializer: Deserializer = this 15132 const url_result: string = (valueDeserializer.readString() as string) 15133 const userAgent_result: string = (valueDeserializer.readString() as string) 15134 const contentDisposition_result: string = (valueDeserializer.readString() as string) 15135 const mimetype_result: string = (valueDeserializer.readString() as string) 15136 const contentLength_result: number = (valueDeserializer.readNumber() as number) 15137 let value: OnDownloadStartEvent = ({url: url_result, userAgent: userAgent_result, contentDisposition: contentDisposition_result, mimetype: mimetype_result, contentLength: contentLength_result} as OnDownloadStartEvent) 15138 return value 15139 } 15140 readCallback_OnDownloadStartEvent_Void(isSync: boolean = false): ((parameter: OnDownloadStartEvent) => void) { 15141 const _resource: CallbackResource = this.readCallbackResource() 15142 const _call: KPointer = this.readPointer() 15143 const _callSync: KPointer = this.readPointer() 15144 return (parameter: OnDownloadStartEvent): void => { 15145 const _argsSerializer: Serializer = Serializer.hold(); 15146 _argsSerializer.writeInt32(_resource.resourceId); 15147 _argsSerializer.writePointer(_call); 15148 _argsSerializer.writePointer(_callSync); 15149 _argsSerializer.writeOnDownloadStartEvent(parameter); 15150 (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); 15151 _argsSerializer.release(); 15152 return; } 15153 } 15154 readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { 15155 let valueDeserializer: Deserializer = this 15156 const request_result: WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 15157 const response_result: WebResourceResponse = (valueDeserializer.readWebResourceResponse() as WebResourceResponse) 15158 let value: OnHttpErrorReceiveEvent = ({request: request_result, response: response_result} as OnHttpErrorReceiveEvent) 15159 return value 15160 } 15161 readCallback_OnHttpErrorReceiveEvent_Void(isSync: boolean = false): ((parameter: OnHttpErrorReceiveEvent) => void) { 15162 const _resource: CallbackResource = this.readCallbackResource() 15163 const _call: KPointer = this.readPointer() 15164 const _callSync: KPointer = this.readPointer() 15165 return (parameter: OnHttpErrorReceiveEvent): void => { 15166 const _argsSerializer: Serializer = Serializer.hold(); 15167 _argsSerializer.writeInt32(_resource.resourceId); 15168 _argsSerializer.writePointer(_call); 15169 _argsSerializer.writePointer(_callSync); 15170 _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); 15171 (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); 15172 _argsSerializer.release(); 15173 return; } 15174 } 15175 readOnErrorReceiveEvent(): OnErrorReceiveEvent { 15176 let valueDeserializer: Deserializer = this 15177 const request_result: WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 15178 const error_result: WebResourceError = (valueDeserializer.readWebResourceError() as WebResourceError) 15179 let value: OnErrorReceiveEvent = ({request: request_result, error: error_result} as OnErrorReceiveEvent) 15180 return value 15181 } 15182 readCallback_OnErrorReceiveEvent_Void(isSync: boolean = false): ((parameter: OnErrorReceiveEvent) => void) { 15183 const _resource: CallbackResource = this.readCallbackResource() 15184 const _call: KPointer = this.readPointer() 15185 const _callSync: KPointer = this.readPointer() 15186 return (parameter: OnErrorReceiveEvent): void => { 15187 const _argsSerializer: Serializer = Serializer.hold(); 15188 _argsSerializer.writeInt32(_resource.resourceId); 15189 _argsSerializer.writePointer(_call); 15190 _argsSerializer.writePointer(_callSync); 15191 _argsSerializer.writeOnErrorReceiveEvent(parameter); 15192 (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); 15193 _argsSerializer.release(); 15194 return; } 15195 } 15196 readOnConsoleEvent(): OnConsoleEvent { 15197 let valueDeserializer: Deserializer = this 15198 const message_result: ConsoleMessage = (valueDeserializer.readConsoleMessage() as ConsoleMessage) 15199 let value: OnConsoleEvent = ({message: message_result} as OnConsoleEvent) 15200 return value 15201 } 15202 readCallback_OnConsoleEvent_Boolean(isSync: boolean = false): ((parameter: OnConsoleEvent) => boolean) { 15203 const _resource: CallbackResource = this.readCallbackResource() 15204 const _call: KPointer = this.readPointer() 15205 const _callSync: KPointer = this.readPointer() 15206 return (parameter: OnConsoleEvent): boolean => { 15207 const _argsSerializer: Serializer = Serializer.hold(); 15208 _argsSerializer.writeInt32(_resource.resourceId); 15209 _argsSerializer.writePointer(_call); 15210 _argsSerializer.writePointer(_callSync); 15211 _argsSerializer.writeOnConsoleEvent(parameter); 15212 let _continuationValue: boolean | undefined|undefined ; 15213 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15214 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15215 (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); 15216 _argsSerializer.release(); 15217 return (_continuationValue as boolean); } 15218 } 15219 readOnPromptEvent(): OnPromptEvent { 15220 let valueDeserializer: Deserializer = this 15221 const url_result: string = (valueDeserializer.readString() as string) 15222 const message_result: string = (valueDeserializer.readString() as string) 15223 const value_result: string = (valueDeserializer.readString() as string) 15224 const result_result: JsResult = (valueDeserializer.readJsResult() as JsResult) 15225 let value: OnPromptEvent = ({url: url_result, message: message_result, value: value_result, result: result_result} as OnPromptEvent) 15226 return value 15227 } 15228 readCallback_OnPromptEvent_Boolean(isSync: boolean = false): ((parameter: OnPromptEvent) => boolean) { 15229 const _resource: CallbackResource = this.readCallbackResource() 15230 const _call: KPointer = this.readPointer() 15231 const _callSync: KPointer = this.readPointer() 15232 return (parameter: OnPromptEvent): boolean => { 15233 const _argsSerializer: Serializer = Serializer.hold(); 15234 _argsSerializer.writeInt32(_resource.resourceId); 15235 _argsSerializer.writePointer(_call); 15236 _argsSerializer.writePointer(_callSync); 15237 _argsSerializer.writeOnPromptEvent(parameter); 15238 let _continuationValue: boolean | undefined|undefined ; 15239 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15240 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15241 (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); 15242 _argsSerializer.release(); 15243 return (_continuationValue as boolean); } 15244 } 15245 readOnConfirmEvent(): OnConfirmEvent { 15246 let valueDeserializer: Deserializer = this 15247 const url_result: string = (valueDeserializer.readString() as string) 15248 const message_result: string = (valueDeserializer.readString() as string) 15249 const result_result: JsResult = (valueDeserializer.readJsResult() as JsResult) 15250 let value: OnConfirmEvent = ({url: url_result, message: message_result, result: result_result} as OnConfirmEvent) 15251 return value 15252 } 15253 readCallback_OnConfirmEvent_Boolean(isSync: boolean = false): ((parameter: OnConfirmEvent) => boolean) { 15254 const _resource: CallbackResource = this.readCallbackResource() 15255 const _call: KPointer = this.readPointer() 15256 const _callSync: KPointer = this.readPointer() 15257 return (parameter: OnConfirmEvent): boolean => { 15258 const _argsSerializer: Serializer = Serializer.hold(); 15259 _argsSerializer.writeInt32(_resource.resourceId); 15260 _argsSerializer.writePointer(_call); 15261 _argsSerializer.writePointer(_callSync); 15262 _argsSerializer.writeOnConfirmEvent(parameter); 15263 let _continuationValue: boolean | undefined|undefined ; 15264 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15265 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15266 (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); 15267 _argsSerializer.release(); 15268 return (_continuationValue as boolean); } 15269 } 15270 readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { 15271 let valueDeserializer: Deserializer = this 15272 const url_result: string = (valueDeserializer.readString() as string) 15273 const message_result: string = (valueDeserializer.readString() as string) 15274 const result_result: JsResult = (valueDeserializer.readJsResult() as JsResult) 15275 let value: OnBeforeUnloadEvent = ({url: url_result, message: message_result, result: result_result} as OnBeforeUnloadEvent) 15276 return value 15277 } 15278 readCallback_OnBeforeUnloadEvent_Boolean(isSync: boolean = false): ((parameter: OnBeforeUnloadEvent) => boolean) { 15279 const _resource: CallbackResource = this.readCallbackResource() 15280 const _call: KPointer = this.readPointer() 15281 const _callSync: KPointer = this.readPointer() 15282 return (parameter: OnBeforeUnloadEvent): boolean => { 15283 const _argsSerializer: Serializer = Serializer.hold(); 15284 _argsSerializer.writeInt32(_resource.resourceId); 15285 _argsSerializer.writePointer(_call); 15286 _argsSerializer.writePointer(_callSync); 15287 _argsSerializer.writeOnBeforeUnloadEvent(parameter); 15288 let _continuationValue: boolean | undefined|undefined ; 15289 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15290 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15291 (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); 15292 _argsSerializer.release(); 15293 return (_continuationValue as boolean); } 15294 } 15295 readOnAlertEvent(): OnAlertEvent { 15296 let valueDeserializer: Deserializer = this 15297 const url_result: string = (valueDeserializer.readString() as string) 15298 const message_result: string = (valueDeserializer.readString() as string) 15299 const result_result: JsResult = (valueDeserializer.readJsResult() as JsResult) 15300 let value: OnAlertEvent = ({url: url_result, message: message_result, result: result_result} as OnAlertEvent) 15301 return value 15302 } 15303 readCallback_OnAlertEvent_Boolean(isSync: boolean = false): ((parameter: OnAlertEvent) => boolean) { 15304 const _resource: CallbackResource = this.readCallbackResource() 15305 const _call: KPointer = this.readPointer() 15306 const _callSync: KPointer = this.readPointer() 15307 return (parameter: OnAlertEvent): boolean => { 15308 const _argsSerializer: Serializer = Serializer.hold(); 15309 _argsSerializer.writeInt32(_resource.resourceId); 15310 _argsSerializer.writePointer(_call); 15311 _argsSerializer.writePointer(_callSync); 15312 _argsSerializer.writeOnAlertEvent(parameter); 15313 let _continuationValue: boolean | undefined|undefined ; 15314 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 15315 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15316 (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); 15317 _argsSerializer.release(); 15318 return (_continuationValue as boolean); } 15319 } 15320 readOnGeolocationShowEvent(): OnGeolocationShowEvent { 15321 let valueDeserializer: Deserializer = this 15322 const origin_result: string = (valueDeserializer.readString() as string) 15323 const geolocation_result: JsGeolocation = (valueDeserializer.readJsGeolocation() as JsGeolocation) 15324 let value: OnGeolocationShowEvent = ({origin: origin_result, geolocation: geolocation_result} as OnGeolocationShowEvent) 15325 return value 15326 } 15327 readCallback_OnGeolocationShowEvent_Void(isSync: boolean = false): ((parameter: OnGeolocationShowEvent) => void) { 15328 const _resource: CallbackResource = this.readCallbackResource() 15329 const _call: KPointer = this.readPointer() 15330 const _callSync: KPointer = this.readPointer() 15331 return (parameter: OnGeolocationShowEvent): void => { 15332 const _argsSerializer: Serializer = Serializer.hold(); 15333 _argsSerializer.writeInt32(_resource.resourceId); 15334 _argsSerializer.writePointer(_call); 15335 _argsSerializer.writePointer(_callSync); 15336 _argsSerializer.writeOnGeolocationShowEvent(parameter); 15337 (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); 15338 _argsSerializer.release(); 15339 return; } 15340 } 15341 readOnTitleReceiveEvent(): OnTitleReceiveEvent { 15342 let valueDeserializer: Deserializer = this 15343 const title_result: string = (valueDeserializer.readString() as string) 15344 let value: OnTitleReceiveEvent = ({title: title_result} as OnTitleReceiveEvent) 15345 return value 15346 } 15347 readCallback_OnTitleReceiveEvent_Void(isSync: boolean = false): ((parameter: OnTitleReceiveEvent) => void) { 15348 const _resource: CallbackResource = this.readCallbackResource() 15349 const _call: KPointer = this.readPointer() 15350 const _callSync: KPointer = this.readPointer() 15351 return (parameter: OnTitleReceiveEvent): void => { 15352 const _argsSerializer: Serializer = Serializer.hold(); 15353 _argsSerializer.writeInt32(_resource.resourceId); 15354 _argsSerializer.writePointer(_call); 15355 _argsSerializer.writePointer(_callSync); 15356 _argsSerializer.writeOnTitleReceiveEvent(parameter); 15357 (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); 15358 _argsSerializer.release(); 15359 return; } 15360 } 15361 readOnProgressChangeEvent(): OnProgressChangeEvent { 15362 let valueDeserializer: Deserializer = this 15363 const newProgress_result: number = (valueDeserializer.readNumber() as number) 15364 let value: OnProgressChangeEvent = ({newProgress: newProgress_result} as OnProgressChangeEvent) 15365 return value 15366 } 15367 readCallback_OnProgressChangeEvent_Void(isSync: boolean = false): ((parameter: OnProgressChangeEvent) => void) { 15368 const _resource: CallbackResource = this.readCallbackResource() 15369 const _call: KPointer = this.readPointer() 15370 const _callSync: KPointer = this.readPointer() 15371 return (parameter: OnProgressChangeEvent): void => { 15372 const _argsSerializer: Serializer = Serializer.hold(); 15373 _argsSerializer.writeInt32(_resource.resourceId); 15374 _argsSerializer.writePointer(_call); 15375 _argsSerializer.writePointer(_callSync); 15376 _argsSerializer.writeOnProgressChangeEvent(parameter); 15377 (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); 15378 _argsSerializer.release(); 15379 return; } 15380 } 15381 readOnPageBeginEvent(): OnPageBeginEvent { 15382 let valueDeserializer: Deserializer = this 15383 const url_result: string = (valueDeserializer.readString() as string) 15384 let value: OnPageBeginEvent = ({url: url_result} as OnPageBeginEvent) 15385 return value 15386 } 15387 readCallback_OnPageBeginEvent_Void(isSync: boolean = false): ((parameter: OnPageBeginEvent) => void) { 15388 const _resource: CallbackResource = this.readCallbackResource() 15389 const _call: KPointer = this.readPointer() 15390 const _callSync: KPointer = this.readPointer() 15391 return (parameter: OnPageBeginEvent): void => { 15392 const _argsSerializer: Serializer = Serializer.hold(); 15393 _argsSerializer.writeInt32(_resource.resourceId); 15394 _argsSerializer.writePointer(_call); 15395 _argsSerializer.writePointer(_callSync); 15396 _argsSerializer.writeOnPageBeginEvent(parameter); 15397 (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); 15398 _argsSerializer.release(); 15399 return; } 15400 } 15401 readOnPageEndEvent(): OnPageEndEvent { 15402 let valueDeserializer: Deserializer = this 15403 const url_result: string = (valueDeserializer.readString() as string) 15404 let value: OnPageEndEvent = ({url: url_result} as OnPageEndEvent) 15405 return value 15406 } 15407 readCallback_OnPageEndEvent_Void(isSync: boolean = false): ((parameter: OnPageEndEvent) => void) { 15408 const _resource: CallbackResource = this.readCallbackResource() 15409 const _call: KPointer = this.readPointer() 15410 const _callSync: KPointer = this.readPointer() 15411 return (parameter: OnPageEndEvent): void => { 15412 const _argsSerializer: Serializer = Serializer.hold(); 15413 _argsSerializer.writeInt32(_resource.resourceId); 15414 _argsSerializer.writePointer(_call); 15415 _argsSerializer.writePointer(_callSync); 15416 _argsSerializer.writeOnPageEndEvent(parameter); 15417 (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); 15418 _argsSerializer.release(); 15419 return; } 15420 } 15421 readWebMediaOptions(): WebMediaOptions { 15422 let valueDeserializer: Deserializer = this 15423 const resumeInterval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15424 let resumeInterval_buf: number | undefined|undefined 15425 if ((RuntimeType.UNDEFINED) != (resumeInterval_buf_runtimeType)) 15426 { 15427 resumeInterval_buf = (valueDeserializer.readNumber() as number) 15428 } 15429 const resumeInterval_result: number | undefined|undefined = resumeInterval_buf 15430 const audioExclusive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15431 let audioExclusive_buf: boolean | undefined|undefined 15432 if ((RuntimeType.UNDEFINED) != (audioExclusive_buf_runtimeType)) 15433 { 15434 audioExclusive_buf = valueDeserializer.readBoolean() 15435 } 15436 const audioExclusive_result: boolean | undefined|undefined = audioExclusive_buf 15437 let value: WebMediaOptions = ({resumeInterval: resumeInterval_result, audioExclusive: audioExclusive_result} as WebMediaOptions) 15438 return value 15439 } 15440 readJavaScriptProxy(): JavaScriptProxy { 15441 let valueDeserializer: Deserializer = this 15442 const object__result: Object = (valueDeserializer.readCustomObject("Object") as Object) 15443 const name_result: string = (valueDeserializer.readString() as string) 15444 const methodList_buf_length: int32 = valueDeserializer.readInt32() 15445 let methodList_buf: Array<string> = new Array<string>(methodList_buf_length) 15446 for (let methodList_buf_i = 0; methodList_buf_i < methodList_buf_length; methodList_buf_i++) { 15447 methodList_buf[methodList_buf_i] = (valueDeserializer.readString() as string) 15448 } 15449 const methodList_result: Array<string> = methodList_buf 15450 const controller_buf_selector: number = valueDeserializer.readInt8() 15451 let controller_buf: WebController | WebviewController | undefined|undefined 15452 if (controller_buf_selector == 0) { 15453 controller_buf = (valueDeserializer.readWebController() as WebController) 15454 } 15455 else if (controller_buf_selector == 1) { 15456 controller_buf = (valueDeserializer.readWebviewController() as WebviewController) 15457 } 15458 else { 15459 throw new Error("One of the branches for controller_buf has to be chosen through deserialisation.") 15460 } 15461 const controller_result: WebController | WebviewController = (controller_buf as WebController | WebviewController) 15462 const asyncMethodList_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15463 let asyncMethodList_buf: Array<string> | undefined|undefined 15464 if ((RuntimeType.UNDEFINED) != (asyncMethodList_buf_runtimeType)) 15465 { 15466 const asyncMethodList_buf__length: int32 = valueDeserializer.readInt32() 15467 let asyncMethodList_buf_: Array<string> = new Array<string>(asyncMethodList_buf__length) 15468 for (let asyncMethodList_buf__i = 0; asyncMethodList_buf__i < asyncMethodList_buf__length; asyncMethodList_buf__i++) { 15469 asyncMethodList_buf_[asyncMethodList_buf__i] = (valueDeserializer.readString() as string) 15470 } 15471 asyncMethodList_buf = asyncMethodList_buf_ 15472 } 15473 const asyncMethodList_result: Array<string> | undefined|undefined = asyncMethodList_buf 15474 const permission_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15475 let permission_buf: string | undefined|undefined 15476 if ((RuntimeType.UNDEFINED) != (permission_buf_runtimeType)) 15477 { 15478 permission_buf = (valueDeserializer.readString() as string) 15479 } 15480 const permission_result: string | undefined|undefined = permission_buf 15481 let value: JavaScriptProxy = ({object_: object__result, name: name_result, methodList: methodList_result, controller: controller_result, asyncMethodList: asyncMethodList_result, permission: permission_result} as JavaScriptProxy) 15482 return value 15483 } 15484 readWebOptions(): WebOptions { 15485 let valueDeserializer: Deserializer = this 15486 const src_buf_selector: number = valueDeserializer.readInt8() 15487 let src_buf: string | Resource | undefined|undefined 15488 if (src_buf_selector == 0) { 15489 src_buf = (valueDeserializer.readString() as string) 15490 } 15491 else if (src_buf_selector == 1) { 15492 src_buf = valueDeserializer.readResource() 15493 } 15494 else { 15495 throw new Error("One of the branches for src_buf has to be chosen through deserialisation.") 15496 } 15497 const src_result: string | Resource = (src_buf as string | Resource) 15498 const controller_buf_selector: number = valueDeserializer.readInt8() 15499 let controller_buf: WebController | WebviewController | undefined|undefined 15500 if (controller_buf_selector == 0) { 15501 controller_buf = (valueDeserializer.readWebController() as WebController) 15502 } 15503 else if (controller_buf_selector == 1) { 15504 controller_buf = (valueDeserializer.readWebviewController() as WebviewController) 15505 } 15506 else { 15507 throw new Error("One of the branches for controller_buf has to be chosen through deserialisation.") 15508 } 15509 const controller_result: WebController | WebviewController = (controller_buf as WebController | WebviewController) 15510 const renderMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15511 let renderMode_buf: RenderMode | undefined|undefined 15512 if ((RuntimeType.UNDEFINED) != (renderMode_buf_runtimeType)) 15513 { 15514 renderMode_buf = (valueDeserializer.readInt32() as RenderMode) 15515 } 15516 const renderMode_result: RenderMode | undefined|undefined = renderMode_buf 15517 const incognitoMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15518 let incognitoMode_buf: boolean | undefined|undefined 15519 if ((RuntimeType.UNDEFINED) != (incognitoMode_buf_runtimeType)) 15520 { 15521 incognitoMode_buf = valueDeserializer.readBoolean() 15522 } 15523 const incognitoMode_result: boolean | undefined|undefined = incognitoMode_buf 15524 const sharedRenderProcessToken_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15525 let sharedRenderProcessToken_buf: string | undefined|undefined 15526 if ((RuntimeType.UNDEFINED) != (sharedRenderProcessToken_buf_runtimeType)) 15527 { 15528 sharedRenderProcessToken_buf = (valueDeserializer.readString() as string) 15529 } 15530 const sharedRenderProcessToken_result: string | undefined|undefined = sharedRenderProcessToken_buf 15531 let value: WebOptions = ({src: src_result, controller: controller_result, renderMode: renderMode_result, incognitoMode: incognitoMode_result, sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) 15532 return value 15533 } 15534 readHeader(): Header { 15535 let valueDeserializer: Deserializer = this 15536 const headerKey_result: string = (valueDeserializer.readString() as string) 15537 const headerValue_result: string = (valueDeserializer.readString() as string) 15538 let value: Header = ({headerKey: headerKey_result, headerValue: headerValue_result} as Header) 15539 return value 15540 } 15541 readPlaybackInfo(): PlaybackInfo { 15542 let valueDeserializer: Deserializer = this 15543 const time_result: number = (valueDeserializer.readNumber() as number) 15544 let value: PlaybackInfo = ({time: time_result} as PlaybackInfo) 15545 return value 15546 } 15547 readCallback_PlaybackInfo_Void(isSync: boolean = false): ((parameter: PlaybackInfo) => void) { 15548 const _resource: CallbackResource = this.readCallbackResource() 15549 const _call: KPointer = this.readPointer() 15550 const _callSync: KPointer = this.readPointer() 15551 return (parameter: PlaybackInfo): void => { 15552 const _argsSerializer: Serializer = Serializer.hold(); 15553 _argsSerializer.writeInt32(_resource.resourceId); 15554 _argsSerializer.writePointer(_call); 15555 _argsSerializer.writePointer(_callSync); 15556 _argsSerializer.writePlaybackInfo(parameter); 15557 (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); 15558 _argsSerializer.release(); 15559 return; } 15560 } 15561 readPreparedInfo(): PreparedInfo { 15562 let valueDeserializer: Deserializer = this 15563 const duration_result: number = (valueDeserializer.readNumber() as number) 15564 let value: PreparedInfo = ({duration: duration_result} as PreparedInfo) 15565 return value 15566 } 15567 readCallback_PreparedInfo_Void(isSync: boolean = false): ((parameter: PreparedInfo) => void) { 15568 const _resource: CallbackResource = this.readCallbackResource() 15569 const _call: KPointer = this.readPointer() 15570 const _callSync: KPointer = this.readPointer() 15571 return (parameter: PreparedInfo): void => { 15572 const _argsSerializer: Serializer = Serializer.hold(); 15573 _argsSerializer.writeInt32(_resource.resourceId); 15574 _argsSerializer.writePointer(_call); 15575 _argsSerializer.writePointer(_callSync); 15576 _argsSerializer.writePreparedInfo(parameter); 15577 (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); 15578 _argsSerializer.release(); 15579 return; } 15580 } 15581 readFullscreenInfo(): FullscreenInfo { 15582 let valueDeserializer: Deserializer = this 15583 const fullscreen_result: boolean = valueDeserializer.readBoolean() 15584 let value: FullscreenInfo = ({fullscreen: fullscreen_result} as FullscreenInfo) 15585 return value 15586 } 15587 readCallback_FullscreenInfo_Void(isSync: boolean = false): ((parameter: FullscreenInfo) => void) { 15588 const _resource: CallbackResource = this.readCallbackResource() 15589 const _call: KPointer = this.readPointer() 15590 const _callSync: KPointer = this.readPointer() 15591 return (parameter: FullscreenInfo): void => { 15592 const _argsSerializer: Serializer = Serializer.hold(); 15593 _argsSerializer.writeInt32(_resource.resourceId); 15594 _argsSerializer.writePointer(_call); 15595 _argsSerializer.writePointer(_callSync); 15596 _argsSerializer.writeFullscreenInfo(parameter); 15597 (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); 15598 _argsSerializer.release(); 15599 return; } 15600 } 15601 readVideoOptions(): VideoOptions { 15602 let valueDeserializer: Deserializer = this 15603 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15604 let src_buf: string | Resource | undefined|undefined 15605 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 15606 { 15607 const src_buf__selector: number = valueDeserializer.readInt8() 15608 let src_buf_: string | Resource | undefined|undefined 15609 if (src_buf__selector == 0) { 15610 src_buf_ = (valueDeserializer.readString() as string) 15611 } 15612 else if (src_buf__selector == 1) { 15613 src_buf_ = valueDeserializer.readResource() 15614 } 15615 else { 15616 throw new Error("One of the branches for src_buf_ has to be chosen through deserialisation.") 15617 } 15618 src_buf = (src_buf_ as string | Resource) 15619 } 15620 const src_result: string | Resource | undefined|undefined = src_buf 15621 const currentProgressRate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15622 let currentProgressRate_buf: number | string | PlaybackSpeed | undefined|undefined 15623 if ((RuntimeType.UNDEFINED) != (currentProgressRate_buf_runtimeType)) 15624 { 15625 const currentProgressRate_buf__selector: number = valueDeserializer.readInt8() 15626 let currentProgressRate_buf_: number | string | PlaybackSpeed | undefined|undefined 15627 if (currentProgressRate_buf__selector == 0) { 15628 currentProgressRate_buf_ = (valueDeserializer.readNumber() as number) 15629 } 15630 else if (currentProgressRate_buf__selector == 1) { 15631 currentProgressRate_buf_ = (valueDeserializer.readString() as string) 15632 } 15633 else if (currentProgressRate_buf__selector == 2) { 15634 currentProgressRate_buf_ = (valueDeserializer.readInt32() as PlaybackSpeed) 15635 } 15636 else { 15637 throw new Error("One of the branches for currentProgressRate_buf_ has to be chosen through deserialisation.") 15638 } 15639 currentProgressRate_buf = (currentProgressRate_buf_ as number | string | PlaybackSpeed) 15640 } 15641 const currentProgressRate_result: number | string | PlaybackSpeed | undefined|undefined = currentProgressRate_buf 15642 const previewUri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15643 let previewUri_buf: string | PixelMap | Resource | undefined|undefined 15644 if ((RuntimeType.UNDEFINED) != (previewUri_buf_runtimeType)) 15645 { 15646 const previewUri_buf__selector: number = valueDeserializer.readInt8() 15647 let previewUri_buf_: string | PixelMap | Resource | undefined|undefined 15648 if (previewUri_buf__selector == 0) { 15649 previewUri_buf_ = (valueDeserializer.readString() as string) 15650 } 15651 else if (previewUri_buf__selector == 1) { 15652 previewUri_buf_ = (valueDeserializer.readPixelMap() as PixelMap) 15653 } 15654 else if (previewUri_buf__selector == 2) { 15655 previewUri_buf_ = valueDeserializer.readResource() 15656 } 15657 else { 15658 throw new Error("One of the branches for previewUri_buf_ has to be chosen through deserialisation.") 15659 } 15660 previewUri_buf = (previewUri_buf_ as string | PixelMap | Resource) 15661 } 15662 const previewUri_result: string | PixelMap | Resource | undefined|undefined = previewUri_buf 15663 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15664 let controller_buf: VideoController | undefined|undefined 15665 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 15666 { 15667 controller_buf = (valueDeserializer.readVideoController() as VideoController) 15668 } 15669 const controller_result: VideoController | undefined|undefined = controller_buf 15670 const imageAIOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15671 let imageAIOptions_buf: ImageAIOptions | undefined|undefined 15672 if ((RuntimeType.UNDEFINED) != (imageAIOptions_buf_runtimeType)) 15673 { 15674 imageAIOptions_buf = valueDeserializer.readImageAIOptions() 15675 } 15676 const imageAIOptions_result: ImageAIOptions | undefined|undefined = imageAIOptions_buf 15677 let value: VideoOptions = ({src: src_result, currentProgressRate: currentProgressRate_result, previewUri: previewUri_result, controller: controller_result, imageAIOptions: imageAIOptions_result} as VideoOptions) 15678 return value 15679 } 15680 readSwitchStyle(): SwitchStyle { 15681 let valueDeserializer: Deserializer = this 15682 const pointRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15683 let pointRadius_buf: number | Resource | undefined|undefined 15684 if ((RuntimeType.UNDEFINED) != (pointRadius_buf_runtimeType)) 15685 { 15686 const pointRadius_buf__selector: number = valueDeserializer.readInt8() 15687 let pointRadius_buf_: number | Resource | undefined|undefined 15688 if (pointRadius_buf__selector == 0) { 15689 pointRadius_buf_ = (valueDeserializer.readNumber() as number) 15690 } 15691 else if (pointRadius_buf__selector == 1) { 15692 pointRadius_buf_ = valueDeserializer.readResource() 15693 } 15694 else { 15695 throw new Error("One of the branches for pointRadius_buf_ has to be chosen through deserialisation.") 15696 } 15697 pointRadius_buf = (pointRadius_buf_ as number | Resource) 15698 } 15699 const pointRadius_result: number | Resource | undefined|undefined = pointRadius_buf 15700 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15701 let unselectedColor_buf: ResourceColor | undefined|undefined 15702 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 15703 { 15704 const unselectedColor_buf__selector: number = valueDeserializer.readInt8() 15705 let unselectedColor_buf_: Color | number | string | Resource | undefined|undefined 15706 if (unselectedColor_buf__selector == 0) { 15707 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 15708 } 15709 else if (unselectedColor_buf__selector == 1) { 15710 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 15711 } 15712 else if (unselectedColor_buf__selector == 2) { 15713 unselectedColor_buf_ = (valueDeserializer.readString() as string) 15714 } 15715 else if (unselectedColor_buf__selector == 3) { 15716 unselectedColor_buf_ = valueDeserializer.readResource() 15717 } 15718 else { 15719 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 15720 } 15721 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 15722 } 15723 const unselectedColor_result: ResourceColor | undefined|undefined = unselectedColor_buf 15724 const pointColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15725 let pointColor_buf: ResourceColor | undefined|undefined 15726 if ((RuntimeType.UNDEFINED) != (pointColor_buf_runtimeType)) 15727 { 15728 const pointColor_buf__selector: number = valueDeserializer.readInt8() 15729 let pointColor_buf_: Color | number | string | Resource | undefined|undefined 15730 if (pointColor_buf__selector == 0) { 15731 pointColor_buf_ = (valueDeserializer.readInt32() as Color) 15732 } 15733 else if (pointColor_buf__selector == 1) { 15734 pointColor_buf_ = (valueDeserializer.readNumber() as number) 15735 } 15736 else if (pointColor_buf__selector == 2) { 15737 pointColor_buf_ = (valueDeserializer.readString() as string) 15738 } 15739 else if (pointColor_buf__selector == 3) { 15740 pointColor_buf_ = valueDeserializer.readResource() 15741 } 15742 else { 15743 throw new Error("One of the branches for pointColor_buf_ has to be chosen through deserialisation.") 15744 } 15745 pointColor_buf = (pointColor_buf_ as Color | number | string | Resource) 15746 } 15747 const pointColor_result: ResourceColor | undefined|undefined = pointColor_buf 15748 const trackBorderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15749 let trackBorderRadius_buf: number | Resource | undefined|undefined 15750 if ((RuntimeType.UNDEFINED) != (trackBorderRadius_buf_runtimeType)) 15751 { 15752 const trackBorderRadius_buf__selector: number = valueDeserializer.readInt8() 15753 let trackBorderRadius_buf_: number | Resource | undefined|undefined 15754 if (trackBorderRadius_buf__selector == 0) { 15755 trackBorderRadius_buf_ = (valueDeserializer.readNumber() as number) 15756 } 15757 else if (trackBorderRadius_buf__selector == 1) { 15758 trackBorderRadius_buf_ = valueDeserializer.readResource() 15759 } 15760 else { 15761 throw new Error("One of the branches for trackBorderRadius_buf_ has to be chosen through deserialisation.") 15762 } 15763 trackBorderRadius_buf = (trackBorderRadius_buf_ as number | Resource) 15764 } 15765 const trackBorderRadius_result: number | Resource | undefined|undefined = trackBorderRadius_buf 15766 let value: SwitchStyle = ({pointRadius: pointRadius_result, unselectedColor: unselectedColor_result, pointColor: pointColor_result, trackBorderRadius: trackBorderRadius_result} as SwitchStyle) 15767 return value 15768 } 15769 readToggleOptions(): ToggleOptions { 15770 let valueDeserializer: Deserializer = this 15771 const type_result: ToggleType = (valueDeserializer.readInt32() as ToggleType) 15772 const isOn_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15773 let isOn_buf: boolean | undefined|undefined 15774 if ((RuntimeType.UNDEFINED) != (isOn_buf_runtimeType)) 15775 { 15776 isOn_buf = valueDeserializer.readBoolean() 15777 } 15778 const isOn_result: boolean | undefined|undefined = isOn_buf 15779 let value: ToggleOptions = ({type: type_result, isOn: isOn_result} as ToggleOptions) 15780 return value 15781 } 15782 readTimePickerResult(): TimePickerResult { 15783 let valueDeserializer: Deserializer = this 15784 const hour_result: number = (valueDeserializer.readNumber() as number) 15785 const minute_result: number = (valueDeserializer.readNumber() as number) 15786 const second_result: number = (valueDeserializer.readNumber() as number) 15787 let value: TimePickerResult = ({hour: hour_result, minute: minute_result, second: second_result} as TimePickerResult) 15788 return value 15789 } 15790 readTimePickerOptions(): TimePickerOptions { 15791 let valueDeserializer: Deserializer = this 15792 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15793 let selected_buf: Date | undefined|undefined 15794 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 15795 { 15796 selected_buf = new Date(valueDeserializer.readInt64()) 15797 } 15798 const selected_result: Date | undefined|undefined = selected_buf 15799 const format_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15800 let format_buf: TimePickerFormat | undefined|undefined 15801 if ((RuntimeType.UNDEFINED) != (format_buf_runtimeType)) 15802 { 15803 format_buf = (valueDeserializer.readInt32() as TimePickerFormat) 15804 } 15805 const format_result: TimePickerFormat | undefined|undefined = format_buf 15806 let value: TimePickerOptions = ({selected: selected_result, format: format_result} as TimePickerOptions) 15807 return value 15808 } 15809 readTextTimerOptions(): TextTimerOptions { 15810 let valueDeserializer: Deserializer = this 15811 const isCountDown_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15812 let isCountDown_buf: boolean | undefined|undefined 15813 if ((RuntimeType.UNDEFINED) != (isCountDown_buf_runtimeType)) 15814 { 15815 isCountDown_buf = valueDeserializer.readBoolean() 15816 } 15817 const isCountDown_result: boolean | undefined|undefined = isCountDown_buf 15818 const count_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15819 let count_buf: number | undefined|undefined 15820 if ((RuntimeType.UNDEFINED) != (count_buf_runtimeType)) 15821 { 15822 count_buf = (valueDeserializer.readNumber() as number) 15823 } 15824 const count_result: number | undefined|undefined = count_buf 15825 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15826 let controller_buf: TextTimerController | undefined|undefined 15827 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 15828 { 15829 controller_buf = (valueDeserializer.readTextTimerController() as TextTimerController) 15830 } 15831 const controller_result: TextTimerController | undefined|undefined = controller_buf 15832 let value: TextTimerOptions = ({isCountDown: isCountDown_result, count: count_result, controller: controller_result} as TextTimerOptions) 15833 return value 15834 } 15835 readTextPickerResult(): TextPickerResult { 15836 let valueDeserializer: Deserializer = this 15837 const value_buf_selector: number = valueDeserializer.readInt8() 15838 let value_buf: string | Array<string> | undefined|undefined 15839 if (value_buf_selector == 0) { 15840 value_buf = (valueDeserializer.readString() as string) 15841 } 15842 else if (value_buf_selector == 1) { 15843 const value_buf_u_length: int32 = valueDeserializer.readInt32() 15844 let value_buf_u: Array<string> = new Array<string>(value_buf_u_length) 15845 for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { 15846 value_buf_u[value_buf_u_i] = (valueDeserializer.readString() as string) 15847 } 15848 value_buf = value_buf_u 15849 } 15850 else { 15851 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 15852 } 15853 const value_result: string | Array<string> = (value_buf as string | Array<string>) 15854 const index_buf_selector: number = valueDeserializer.readInt8() 15855 let index_buf: number | Array<number> | undefined|undefined 15856 if (index_buf_selector == 0) { 15857 index_buf = (valueDeserializer.readNumber() as number) 15858 } 15859 else if (index_buf_selector == 1) { 15860 const index_buf_u_length: int32 = valueDeserializer.readInt32() 15861 let index_buf_u: Array<number> = new Array<number>(index_buf_u_length) 15862 for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { 15863 index_buf_u[index_buf_u_i] = (valueDeserializer.readNumber() as number) 15864 } 15865 index_buf = index_buf_u 15866 } 15867 else { 15868 throw new Error("One of the branches for index_buf has to be chosen through deserialisation.") 15869 } 15870 const index_result: number | Array<number> = (index_buf as number | Array<number>) 15871 let value: TextPickerResult = ({value: value_result, index: index_result} as TextPickerResult) 15872 return value 15873 } 15874 readType_TextPickerAttribute_onChange_callback(isSync: boolean = false): ((value: string | Array<string>, index: number | Array<number>) => void) { 15875 const _resource: CallbackResource = this.readCallbackResource() 15876 const _call: KPointer = this.readPointer() 15877 const _callSync: KPointer = this.readPointer() 15878 return (value: string | Array<string>, index: number | Array<number>): void => { 15879 const _argsSerializer: Serializer = Serializer.hold(); 15880 _argsSerializer.writeInt32(_resource.resourceId); 15881 _argsSerializer.writePointer(_call); 15882 _argsSerializer.writePointer(_callSync); 15883 let value_type: int32 = RuntimeType.UNDEFINED; 15884 value_type = runtimeType(value); 15885 if (RuntimeType.STRING == value_type) { 15886 _argsSerializer.writeInt8(0); 15887 const value_0 = unsafeCast<string>(value); 15888 _argsSerializer.writeString(value_0); 15889 } 15890 else if (RuntimeType.OBJECT == value_type) { 15891 _argsSerializer.writeInt8(1); 15892 const value_1 = unsafeCast<Array<string>>(value); 15893 _argsSerializer.writeInt32(value_1.length); 15894 for (let i = 0; i < value_1.length; i++) { 15895 const value_1_element: string = value_1[i]; 15896 _argsSerializer.writeString(value_1_element); 15897 } 15898 } 15899 let index_type: int32 = RuntimeType.UNDEFINED; 15900 index_type = runtimeType(index); 15901 if (RuntimeType.NUMBER == index_type) { 15902 _argsSerializer.writeInt8(0); 15903 const index_0 = unsafeCast<number>(index); 15904 _argsSerializer.writeNumber(index_0); 15905 } 15906 else if (RuntimeType.OBJECT == index_type) { 15907 _argsSerializer.writeInt8(1); 15908 const index_1 = unsafeCast<Array<number>>(index); 15909 _argsSerializer.writeInt32(index_1.length); 15910 for (let i = 0; i < index_1.length; i++) { 15911 const index_1_element: number = index_1[i]; 15912 _argsSerializer.writeNumber(index_1_element); 15913 } 15914 } 15915 (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); 15916 _argsSerializer.release(); 15917 return; } 15918 } 15919 readCallback_String_Number_Void(isSync: boolean = false): ((value: string, index: number) => void) { 15920 const _resource: CallbackResource = this.readCallbackResource() 15921 const _call: KPointer = this.readPointer() 15922 const _callSync: KPointer = this.readPointer() 15923 return (value: string, index: number): void => { 15924 const _argsSerializer: Serializer = Serializer.hold(); 15925 _argsSerializer.writeInt32(_resource.resourceId); 15926 _argsSerializer.writePointer(_call); 15927 _argsSerializer.writePointer(_callSync); 15928 _argsSerializer.writeString(value); 15929 _argsSerializer.writeNumber(index); 15930 (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); 15931 _argsSerializer.release(); 15932 return; } 15933 } 15934 readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { 15935 let valueDeserializer: Deserializer = this 15936 const text_buf_selector: number = valueDeserializer.readInt8() 15937 let text_buf: string | Resource | undefined|undefined 15938 if (text_buf_selector == 0) { 15939 text_buf = (valueDeserializer.readString() as string) 15940 } 15941 else if (text_buf_selector == 1) { 15942 text_buf = valueDeserializer.readResource() 15943 } 15944 else { 15945 throw new Error("One of the branches for text_buf has to be chosen through deserialisation.") 15946 } 15947 const text_result: string | Resource = (text_buf as string | Resource) 15948 const children_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15949 let children_buf: Array<TextCascadePickerRangeContent> | undefined|undefined 15950 if ((RuntimeType.UNDEFINED) != (children_buf_runtimeType)) 15951 { 15952 const children_buf__length: int32 = valueDeserializer.readInt32() 15953 let children_buf_: Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(children_buf__length) 15954 for (let children_buf__i = 0; children_buf__i < children_buf__length; children_buf__i++) { 15955 children_buf_[children_buf__i] = valueDeserializer.readTextCascadePickerRangeContent() 15956 } 15957 children_buf = children_buf_ 15958 } 15959 const children_result: Array<TextCascadePickerRangeContent> | undefined|undefined = children_buf 15960 let value: TextCascadePickerRangeContent = ({text: text_result, children: children_result} as TextCascadePickerRangeContent) 15961 return value 15962 } 15963 readTextPickerRangeContent(): TextPickerRangeContent { 15964 let valueDeserializer: Deserializer = this 15965 const icon_buf_selector: number = valueDeserializer.readInt8() 15966 let icon_buf: string | Resource | undefined|undefined 15967 if (icon_buf_selector == 0) { 15968 icon_buf = (valueDeserializer.readString() as string) 15969 } 15970 else if (icon_buf_selector == 1) { 15971 icon_buf = valueDeserializer.readResource() 15972 } 15973 else { 15974 throw new Error("One of the branches for icon_buf has to be chosen through deserialisation.") 15975 } 15976 const icon_result: string | Resource = (icon_buf as string | Resource) 15977 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15978 let text_buf: string | Resource | undefined|undefined 15979 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 15980 { 15981 const text_buf__selector: number = valueDeserializer.readInt8() 15982 let text_buf_: string | Resource | undefined|undefined 15983 if (text_buf__selector == 0) { 15984 text_buf_ = (valueDeserializer.readString() as string) 15985 } 15986 else if (text_buf__selector == 1) { 15987 text_buf_ = valueDeserializer.readResource() 15988 } 15989 else { 15990 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 15991 } 15992 text_buf = (text_buf_ as string | Resource) 15993 } 15994 const text_result: string | Resource | undefined|undefined = text_buf 15995 let value: TextPickerRangeContent = ({icon: icon_result, text: text_result} as TextPickerRangeContent) 15996 return value 15997 } 15998 readTextPickerOptions(): TextPickerOptions { 15999 let valueDeserializer: Deserializer = this 16000 const range_buf_selector: number = valueDeserializer.readInt8() 16001 let range_buf: Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> | undefined|undefined 16002 if (range_buf_selector == 0) { 16003 const range_buf_u_length: int32 = valueDeserializer.readInt32() 16004 let range_buf_u: Array<string> = new Array<string>(range_buf_u_length) 16005 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16006 range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) 16007 } 16008 range_buf = range_buf_u 16009 } 16010 else if (range_buf_selector == 1) { 16011 const range_buf_u_length: int32 = valueDeserializer.readInt32() 16012 let range_buf_u: Array<Array<string>> = new Array<Array<string>>(range_buf_u_length) 16013 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16014 const range_buf_u_buf_length: int32 = valueDeserializer.readInt32() 16015 let range_buf_u_buf: Array<string> = new Array<string>(range_buf_u_buf_length) 16016 for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { 16017 range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) 16018 } 16019 range_buf_u[range_buf_u_i] = range_buf_u_buf 16020 } 16021 range_buf = range_buf_u 16022 } 16023 else if (range_buf_selector == 2) { 16024 range_buf = valueDeserializer.readResource() 16025 } 16026 else if (range_buf_selector == 3) { 16027 const range_buf_u_length: int32 = valueDeserializer.readInt32() 16028 let range_buf_u: Array<TextPickerRangeContent> = new Array<TextPickerRangeContent>(range_buf_u_length) 16029 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16030 range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() 16031 } 16032 range_buf = range_buf_u 16033 } 16034 else if (range_buf_selector == 4) { 16035 const range_buf_u_length: int32 = valueDeserializer.readInt32() 16036 let range_buf_u: Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(range_buf_u_length) 16037 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16038 range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() 16039 } 16040 range_buf = range_buf_u 16041 } 16042 else { 16043 throw new Error("One of the branches for range_buf has to be chosen through deserialisation.") 16044 } 16045 const range_result: Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> = (range_buf as Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent>) 16046 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16047 let value_buf: string | Array<string> | undefined|undefined 16048 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 16049 { 16050 const value_buf__selector: number = valueDeserializer.readInt8() 16051 let value_buf_: string | Array<string> | undefined|undefined 16052 if (value_buf__selector == 0) { 16053 value_buf_ = (valueDeserializer.readString() as string) 16054 } 16055 else if (value_buf__selector == 1) { 16056 const value_buf__u_length: int32 = valueDeserializer.readInt32() 16057 let value_buf__u: Array<string> = new Array<string>(value_buf__u_length) 16058 for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { 16059 value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) 16060 } 16061 value_buf_ = value_buf__u 16062 } 16063 else { 16064 throw new Error("One of the branches for value_buf_ has to be chosen through deserialisation.") 16065 } 16066 value_buf = (value_buf_ as string | Array<string>) 16067 } 16068 const value_result: string | Array<string> | undefined|undefined = value_buf 16069 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16070 let selected_buf: number | Array<number> | undefined|undefined 16071 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 16072 { 16073 const selected_buf__selector: number = valueDeserializer.readInt8() 16074 let selected_buf_: number | Array<number> | undefined|undefined 16075 if (selected_buf__selector == 0) { 16076 selected_buf_ = (valueDeserializer.readNumber() as number) 16077 } 16078 else if (selected_buf__selector == 1) { 16079 const selected_buf__u_length: int32 = valueDeserializer.readInt32() 16080 let selected_buf__u: Array<number> = new Array<number>(selected_buf__u_length) 16081 for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { 16082 selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) 16083 } 16084 selected_buf_ = selected_buf__u 16085 } 16086 else { 16087 throw new Error("One of the branches for selected_buf_ has to be chosen through deserialisation.") 16088 } 16089 selected_buf = (selected_buf_ as number | Array<number>) 16090 } 16091 const selected_result: number | Array<number> | undefined|undefined = selected_buf 16092 let value: TextPickerOptions = ({range: range_result, value: value_result, selected: selected_result} as TextPickerOptions) 16093 return value 16094 } 16095 readPasswordIcon(): PasswordIcon { 16096 let valueDeserializer: Deserializer = this 16097 const onIconSrc_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16098 let onIconSrc_buf: string | Resource | undefined|undefined 16099 if ((RuntimeType.UNDEFINED) != (onIconSrc_buf_runtimeType)) 16100 { 16101 const onIconSrc_buf__selector: number = valueDeserializer.readInt8() 16102 let onIconSrc_buf_: string | Resource | undefined|undefined 16103 if (onIconSrc_buf__selector == 0) { 16104 onIconSrc_buf_ = (valueDeserializer.readString() as string) 16105 } 16106 else if (onIconSrc_buf__selector == 1) { 16107 onIconSrc_buf_ = valueDeserializer.readResource() 16108 } 16109 else { 16110 throw new Error("One of the branches for onIconSrc_buf_ has to be chosen through deserialisation.") 16111 } 16112 onIconSrc_buf = (onIconSrc_buf_ as string | Resource) 16113 } 16114 const onIconSrc_result: string | Resource | undefined|undefined = onIconSrc_buf 16115 const offIconSrc_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16116 let offIconSrc_buf: string | Resource | undefined|undefined 16117 if ((RuntimeType.UNDEFINED) != (offIconSrc_buf_runtimeType)) 16118 { 16119 const offIconSrc_buf__selector: number = valueDeserializer.readInt8() 16120 let offIconSrc_buf_: string | Resource | undefined|undefined 16121 if (offIconSrc_buf__selector == 0) { 16122 offIconSrc_buf_ = (valueDeserializer.readString() as string) 16123 } 16124 else if (offIconSrc_buf__selector == 1) { 16125 offIconSrc_buf_ = valueDeserializer.readResource() 16126 } 16127 else { 16128 throw new Error("One of the branches for offIconSrc_buf_ has to be chosen through deserialisation.") 16129 } 16130 offIconSrc_buf = (offIconSrc_buf_ as string | Resource) 16131 } 16132 const offIconSrc_result: string | Resource | undefined|undefined = offIconSrc_buf 16133 let value: PasswordIcon = ({onIconSrc: onIconSrc_result, offIconSrc: offIconSrc_result} as PasswordIcon) 16134 return value 16135 } 16136 readOnSubmitCallback(isSync: boolean = false): OnSubmitCallback { 16137 const _resource: CallbackResource = this.readCallbackResource() 16138 const _call: KPointer = this.readPointer() 16139 const _callSync: KPointer = this.readPointer() 16140 return (enterKey: EnterKeyType, event: SubmitEvent): void => { 16141 const _argsSerializer: Serializer = Serializer.hold(); 16142 _argsSerializer.writeInt32(_resource.resourceId); 16143 _argsSerializer.writePointer(_call); 16144 _argsSerializer.writePointer(_callSync); 16145 _argsSerializer.writeInt32(enterKey); 16146 _argsSerializer.writeSubmitEvent(event); 16147 (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); 16148 _argsSerializer.release(); 16149 return; } 16150 } 16151 readTextInputOptions(): TextInputOptions { 16152 let valueDeserializer: Deserializer = this 16153 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16154 let placeholder_buf: ResourceStr | undefined|undefined 16155 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 16156 { 16157 const placeholder_buf__selector: number = valueDeserializer.readInt8() 16158 let placeholder_buf_: string | Resource | undefined|undefined 16159 if (placeholder_buf__selector == 0) { 16160 placeholder_buf_ = (valueDeserializer.readString() as string) 16161 } 16162 else if (placeholder_buf__selector == 1) { 16163 placeholder_buf_ = valueDeserializer.readResource() 16164 } 16165 else { 16166 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 16167 } 16168 placeholder_buf = (placeholder_buf_ as string | Resource) 16169 } 16170 const placeholder_result: ResourceStr | undefined|undefined = placeholder_buf 16171 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16172 let text_buf: ResourceStr | undefined|undefined 16173 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 16174 { 16175 const text_buf__selector: number = valueDeserializer.readInt8() 16176 let text_buf_: string | Resource | undefined|undefined 16177 if (text_buf__selector == 0) { 16178 text_buf_ = (valueDeserializer.readString() as string) 16179 } 16180 else if (text_buf__selector == 1) { 16181 text_buf_ = valueDeserializer.readResource() 16182 } 16183 else { 16184 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 16185 } 16186 text_buf = (text_buf_ as string | Resource) 16187 } 16188 const text_result: ResourceStr | undefined|undefined = text_buf 16189 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16190 let controller_buf: TextInputController | undefined|undefined 16191 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16192 { 16193 controller_buf = (valueDeserializer.readTextInputController() as TextInputController) 16194 } 16195 const controller_result: TextInputController | undefined|undefined = controller_buf 16196 let value: TextInputOptions = ({placeholder: placeholder_result, text: text_result, controller: controller_result} as TextInputOptions) 16197 return value 16198 } 16199 readTextBox(): TextBox { 16200 let valueDeserializer: Deserializer = this 16201 const _TextBoxStub_result: string = (valueDeserializer.readString() as string) 16202 let value: TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) 16203 return value 16204 } 16205 readStyledStringController(): StyledStringController { 16206 let valueDeserializer: Deserializer = this 16207 let ptr: KPointer = valueDeserializer.readPointer() 16208 return StyledStringControllerInternal.fromPtr(ptr) 16209 } 16210 readTextEditControllerEx(): TextEditControllerEx { 16211 let valueDeserializer: Deserializer = this 16212 let ptr: KPointer = valueDeserializer.readPointer() 16213 return TextEditControllerExInternal.fromPtr(ptr) 16214 } 16215 readTextBaseController(): TextBaseController { 16216 let valueDeserializer: Deserializer = this 16217 let ptr: KPointer = valueDeserializer.readPointer() 16218 return TextBaseControllerInternal.fromPtr(ptr) 16219 } 16220 readTextClockOptions(): TextClockOptions { 16221 let valueDeserializer: Deserializer = this 16222 const timeZoneOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16223 let timeZoneOffset_buf: number | undefined|undefined 16224 if ((RuntimeType.UNDEFINED) != (timeZoneOffset_buf_runtimeType)) 16225 { 16226 timeZoneOffset_buf = (valueDeserializer.readNumber() as number) 16227 } 16228 const timeZoneOffset_result: number | undefined|undefined = timeZoneOffset_buf 16229 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16230 let controller_buf: TextClockController | undefined|undefined 16231 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16232 { 16233 controller_buf = (valueDeserializer.readTextClockController() as TextClockController) 16234 } 16235 const controller_result: TextClockController | undefined|undefined = controller_buf 16236 let value: TextClockOptions = ({timeZoneOffset: timeZoneOffset_result, controller: controller_result} as TextClockOptions) 16237 return value 16238 } 16239 readCallback_String_PasteEvent_Void(isSync: boolean = false): ((value: string, event: PasteEvent) => void) { 16240 const _resource: CallbackResource = this.readCallbackResource() 16241 const _call: KPointer = this.readPointer() 16242 const _callSync: KPointer = this.readPointer() 16243 return (value: string, event: PasteEvent): void => { 16244 const _argsSerializer: Serializer = Serializer.hold(); 16245 _argsSerializer.writeInt32(_resource.resourceId); 16246 _argsSerializer.writePointer(_call); 16247 _argsSerializer.writePointer(_callSync); 16248 _argsSerializer.writeString(value); 16249 _argsSerializer.writePasteEvent(event); 16250 (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); 16251 _argsSerializer.release(); 16252 return; } 16253 } 16254 readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { 16255 const _resource: CallbackResource = this.readCallbackResource() 16256 const _call: KPointer = this.readPointer() 16257 const _callSync: KPointer = this.readPointer() 16258 return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined): void => { 16259 const _argsSerializer: Serializer = Serializer.hold(); 16260 _argsSerializer.writeInt32(_resource.resourceId); 16261 _argsSerializer.writePointer(_call); 16262 _argsSerializer.writePointer(_callSync); 16263 _argsSerializer.writeInt32(enterKeyType); 16264 let event_type: int32 = RuntimeType.UNDEFINED; 16265 event_type = runtimeType(event); 16266 _argsSerializer.writeInt8(event_type); 16267 if ((RuntimeType.UNDEFINED) != (event_type)) { 16268 const event_value = event!; 16269 _argsSerializer.writeSubmitEvent(event_value); 16270 } 16271 (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); 16272 _argsSerializer.release(); 16273 return; } 16274 } 16275 readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { 16276 const _resource: CallbackResource = this.readCallbackResource() 16277 const _call: KPointer = this.readPointer() 16278 const _callSync: KPointer = this.readPointer() 16279 return (enterKey: EnterKeyType): void => { 16280 const _argsSerializer: Serializer = Serializer.hold(); 16281 _argsSerializer.writeInt32(_resource.resourceId); 16282 _argsSerializer.writePointer(_call); 16283 _argsSerializer.writePointer(_callSync); 16284 _argsSerializer.writeInt32(enterKey); 16285 (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); 16286 _argsSerializer.release(); 16287 return; } 16288 } 16289 readTextAreaOptions(): TextAreaOptions { 16290 let valueDeserializer: Deserializer = this 16291 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16292 let placeholder_buf: ResourceStr | undefined|undefined 16293 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 16294 { 16295 const placeholder_buf__selector: number = valueDeserializer.readInt8() 16296 let placeholder_buf_: string | Resource | undefined|undefined 16297 if (placeholder_buf__selector == 0) { 16298 placeholder_buf_ = (valueDeserializer.readString() as string) 16299 } 16300 else if (placeholder_buf__selector == 1) { 16301 placeholder_buf_ = valueDeserializer.readResource() 16302 } 16303 else { 16304 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 16305 } 16306 placeholder_buf = (placeholder_buf_ as string | Resource) 16307 } 16308 const placeholder_result: ResourceStr | undefined|undefined = placeholder_buf 16309 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16310 let text_buf: ResourceStr | undefined|undefined 16311 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 16312 { 16313 const text_buf__selector: number = valueDeserializer.readInt8() 16314 let text_buf_: string | Resource | undefined|undefined 16315 if (text_buf__selector == 0) { 16316 text_buf_ = (valueDeserializer.readString() as string) 16317 } 16318 else if (text_buf__selector == 1) { 16319 text_buf_ = valueDeserializer.readResource() 16320 } 16321 else { 16322 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 16323 } 16324 text_buf = (text_buf_ as string | Resource) 16325 } 16326 const text_result: ResourceStr | undefined|undefined = text_buf 16327 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16328 let controller_buf: TextAreaController | undefined|undefined 16329 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16330 { 16331 controller_buf = (valueDeserializer.readTextAreaController() as TextAreaController) 16332 } 16333 const controller_result: TextAreaController | undefined|undefined = controller_buf 16334 let value: TextAreaOptions = ({placeholder: placeholder_result, text: text_result, controller: controller_result} as TextAreaOptions) 16335 return value 16336 } 16337 readTextOverflowOptions(): TextOverflowOptions { 16338 let valueDeserializer: Deserializer = this 16339 const overflow_result: TextOverflow = (valueDeserializer.readInt32() as TextOverflow) 16340 let value: TextOverflowOptions = ({overflow: overflow_result} as TextOverflowOptions) 16341 return value 16342 } 16343 readTextOptions(): TextOptions { 16344 let valueDeserializer: Deserializer = this 16345 const controller_result: TextController = (valueDeserializer.readTextController() as TextController) 16346 let value: TextOptions = ({controller: controller_result} as TextOptions) 16347 return value 16348 } 16349 readOnTabsContentWillChangeCallback(isSync: boolean = false): OnTabsContentWillChangeCallback { 16350 const _resource: CallbackResource = this.readCallbackResource() 16351 const _call: KPointer = this.readPointer() 16352 const _callSync: KPointer = this.readPointer() 16353 return (currentIndex: number, comingIndex: number): boolean => { 16354 const _argsSerializer: Serializer = Serializer.hold(); 16355 _argsSerializer.writeInt32(_resource.resourceId); 16356 _argsSerializer.writePointer(_call); 16357 _argsSerializer.writePointer(_callSync); 16358 _argsSerializer.writeNumber(currentIndex); 16359 _argsSerializer.writeNumber(comingIndex); 16360 let _continuationValue: boolean | undefined|undefined ; 16361 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 16362 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16363 (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); 16364 _argsSerializer.release(); 16365 return (_continuationValue as boolean); } 16366 } 16367 readTabContentTransitionProxy(): TabContentTransitionProxy { 16368 let valueDeserializer: Deserializer = this 16369 let ptr: KPointer = valueDeserializer.readPointer() 16370 return TabContentTransitionProxyInternal.fromPtr(ptr) 16371 } 16372 readTabsCustomContentTransitionCallback(isSync: boolean = false): TabsCustomContentTransitionCallback { 16373 const _resource: CallbackResource = this.readCallbackResource() 16374 const _call: KPointer = this.readPointer() 16375 const _callSync: KPointer = this.readPointer() 16376 return (from: number, to: number): TabContentAnimatedTransition | undefined => { 16377 const _argsSerializer: Serializer = Serializer.hold(); 16378 _argsSerializer.writeInt32(_resource.resourceId); 16379 _argsSerializer.writePointer(_call); 16380 _argsSerializer.writePointer(_callSync); 16381 _argsSerializer.writeNumber(from); 16382 _argsSerializer.writeNumber(to); 16383 let _continuationValue: TabContentAnimatedTransition | undefined|undefined ; 16384 const _continuationCallback: ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined): void => { _continuationValue = value; } 16385 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16386 (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); 16387 _argsSerializer.release(); 16388 return (_continuationValue as TabContentAnimatedTransition); } 16389 } 16390 readBarGridColumnOptions(): BarGridColumnOptions { 16391 let valueDeserializer: Deserializer = this 16392 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16393 let sm_buf: number | undefined|undefined 16394 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 16395 { 16396 sm_buf = (valueDeserializer.readNumber() as number) 16397 } 16398 const sm_result: number | undefined|undefined = sm_buf 16399 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16400 let md_buf: number | undefined|undefined 16401 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 16402 { 16403 md_buf = (valueDeserializer.readNumber() as number) 16404 } 16405 const md_result: number | undefined|undefined = md_buf 16406 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16407 let lg_buf: number | undefined|undefined 16408 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 16409 { 16410 lg_buf = (valueDeserializer.readNumber() as number) 16411 } 16412 const lg_result: number | undefined|undefined = lg_buf 16413 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16414 let margin_buf: Dimension | undefined|undefined 16415 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 16416 { 16417 margin_buf = (valueDeserializer.readLength() as Dimension) 16418 } 16419 const margin_result: Dimension | undefined|undefined = margin_buf 16420 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16421 let gutter_buf: Dimension | undefined|undefined 16422 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 16423 { 16424 gutter_buf = (valueDeserializer.readLength() as Dimension) 16425 } 16426 const gutter_result: Dimension | undefined|undefined = gutter_buf 16427 let value: BarGridColumnOptions = ({sm: sm_result, md: md_result, lg: lg_result, margin: margin_result, gutter: gutter_result} as BarGridColumnOptions) 16428 return value 16429 } 16430 readOnTabsGestureSwipeCallback(isSync: boolean = false): OnTabsGestureSwipeCallback { 16431 const _resource: CallbackResource = this.readCallbackResource() 16432 const _call: KPointer = this.readPointer() 16433 const _callSync: KPointer = this.readPointer() 16434 return (index: number, extraInfo: TabsAnimationEvent): void => { 16435 const _argsSerializer: Serializer = Serializer.hold(); 16436 _argsSerializer.writeInt32(_resource.resourceId); 16437 _argsSerializer.writePointer(_call); 16438 _argsSerializer.writePointer(_callSync); 16439 _argsSerializer.writeNumber(index); 16440 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16441 (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); 16442 _argsSerializer.release(); 16443 return; } 16444 } 16445 readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { 16446 const _resource: CallbackResource = this.readCallbackResource() 16447 const _call: KPointer = this.readPointer() 16448 const _callSync: KPointer = this.readPointer() 16449 return (index: number, extraInfo: TabsAnimationEvent): void => { 16450 const _argsSerializer: Serializer = Serializer.hold(); 16451 _argsSerializer.writeInt32(_resource.resourceId); 16452 _argsSerializer.writePointer(_call); 16453 _argsSerializer.writePointer(_callSync); 16454 _argsSerializer.writeNumber(index); 16455 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16456 (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); 16457 _argsSerializer.release(); 16458 return; } 16459 } 16460 readTabsAnimationEvent(): TabsAnimationEvent { 16461 let valueDeserializer: Deserializer = this 16462 const currentOffset_result: number = (valueDeserializer.readNumber() as number) 16463 const targetOffset_result: number = (valueDeserializer.readNumber() as number) 16464 const velocity_result: number = (valueDeserializer.readNumber() as number) 16465 let value: TabsAnimationEvent = ({currentOffset: currentOffset_result, targetOffset: targetOffset_result, velocity: velocity_result} as TabsAnimationEvent) 16466 return value 16467 } 16468 readOnTabsAnimationStartCallback(isSync: boolean = false): OnTabsAnimationStartCallback { 16469 const _resource: CallbackResource = this.readCallbackResource() 16470 const _call: KPointer = this.readPointer() 16471 const _callSync: KPointer = this.readPointer() 16472 return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent): void => { 16473 const _argsSerializer: Serializer = Serializer.hold(); 16474 _argsSerializer.writeInt32(_resource.resourceId); 16475 _argsSerializer.writePointer(_call); 16476 _argsSerializer.writePointer(_callSync); 16477 _argsSerializer.writeNumber(index); 16478 _argsSerializer.writeNumber(targetIndex); 16479 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16480 (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); 16481 _argsSerializer.release(); 16482 return; } 16483 } 16484 readTabsOptions(): TabsOptions { 16485 let valueDeserializer: Deserializer = this 16486 const barPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16487 let barPosition_buf: BarPosition | undefined|undefined 16488 if ((RuntimeType.UNDEFINED) != (barPosition_buf_runtimeType)) 16489 { 16490 barPosition_buf = (valueDeserializer.readInt32() as BarPosition) 16491 } 16492 const barPosition_result: BarPosition | undefined|undefined = barPosition_buf 16493 const index_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16494 let index_buf: number | undefined|undefined 16495 if ((RuntimeType.UNDEFINED) != (index_buf_runtimeType)) 16496 { 16497 index_buf = (valueDeserializer.readNumber() as number) 16498 } 16499 const index_result: number | undefined|undefined = index_buf 16500 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16501 let controller_buf: TabsController | undefined|undefined 16502 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16503 { 16504 controller_buf = (valueDeserializer.readTabsController() as TabsController) 16505 } 16506 const controller_result: TabsController | undefined|undefined = controller_buf 16507 let value: TabsOptions = ({barPosition: barPosition_result, index: index_result, controller: controller_result} as TabsOptions) 16508 return value 16509 } 16510 readBounceSymbolEffect(): BounceSymbolEffect { 16511 let valueDeserializer: Deserializer = this 16512 let ptr: KPointer = valueDeserializer.readPointer() 16513 return BounceSymbolEffectInternal.fromPtr(ptr) 16514 } 16515 readDisappearSymbolEffect(): DisappearSymbolEffect { 16516 let valueDeserializer: Deserializer = this 16517 let ptr: KPointer = valueDeserializer.readPointer() 16518 return DisappearSymbolEffectInternal.fromPtr(ptr) 16519 } 16520 readAppearSymbolEffect(): AppearSymbolEffect { 16521 let valueDeserializer: Deserializer = this 16522 let ptr: KPointer = valueDeserializer.readPointer() 16523 return AppearSymbolEffectInternal.fromPtr(ptr) 16524 } 16525 readHierarchicalSymbolEffect(): HierarchicalSymbolEffect { 16526 let valueDeserializer: Deserializer = this 16527 let ptr: KPointer = valueDeserializer.readPointer() 16528 return HierarchicalSymbolEffectInternal.fromPtr(ptr) 16529 } 16530 readContentDidScrollCallback(isSync: boolean = false): ContentDidScrollCallback { 16531 const _resource: CallbackResource = this.readCallbackResource() 16532 const _call: KPointer = this.readPointer() 16533 const _callSync: KPointer = this.readPointer() 16534 return (selectedIndex: number, index: number, position: number, mainAxisLength: number): void => { 16535 const _argsSerializer: Serializer = Serializer.hold(); 16536 _argsSerializer.writeInt32(_resource.resourceId); 16537 _argsSerializer.writePointer(_call); 16538 _argsSerializer.writePointer(_callSync); 16539 _argsSerializer.writeNumber(selectedIndex); 16540 _argsSerializer.writeNumber(index); 16541 _argsSerializer.writeNumber(position); 16542 _argsSerializer.writeNumber(mainAxisLength); 16543 (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); 16544 _argsSerializer.release(); 16545 return; } 16546 } 16547 readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { 16548 let valueDeserializer: Deserializer = this 16549 let ptr: KPointer = valueDeserializer.readPointer() 16550 return SwiperContentTransitionProxyInternal.fromPtr(ptr) 16551 } 16552 readSwiperContentAnimatedTransition(): SwiperContentAnimatedTransition { 16553 let valueDeserializer: Deserializer = this 16554 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16555 let timeout_buf: number | undefined|undefined 16556 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 16557 { 16558 timeout_buf = (valueDeserializer.readNumber() as number) 16559 } 16560 const timeout_result: number | undefined|undefined = timeout_buf 16561 const transition_result: ((parameter: SwiperContentTransitionProxy) => void) = valueDeserializer.readCallback_SwiperContentTransitionProxy_Void() 16562 let value: SwiperContentAnimatedTransition = ({timeout: timeout_result, transition: transition_result} as SwiperContentAnimatedTransition) 16563 return value 16564 } 16565 readOnSwiperGestureSwipeCallback(isSync: boolean = false): OnSwiperGestureSwipeCallback { 16566 const _resource: CallbackResource = this.readCallbackResource() 16567 const _call: KPointer = this.readPointer() 16568 const _callSync: KPointer = this.readPointer() 16569 return (index: number, extraInfo: SwiperAnimationEvent): void => { 16570 const _argsSerializer: Serializer = Serializer.hold(); 16571 _argsSerializer.writeInt32(_resource.resourceId); 16572 _argsSerializer.writePointer(_call); 16573 _argsSerializer.writePointer(_callSync); 16574 _argsSerializer.writeNumber(index); 16575 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16576 (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); 16577 _argsSerializer.release(); 16578 return; } 16579 } 16580 readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { 16581 const _resource: CallbackResource = this.readCallbackResource() 16582 const _call: KPointer = this.readPointer() 16583 const _callSync: KPointer = this.readPointer() 16584 return (index: number, extraInfo: SwiperAnimationEvent): void => { 16585 const _argsSerializer: Serializer = Serializer.hold(); 16586 _argsSerializer.writeInt32(_resource.resourceId); 16587 _argsSerializer.writePointer(_call); 16588 _argsSerializer.writePointer(_callSync); 16589 _argsSerializer.writeNumber(index); 16590 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16591 (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); 16592 _argsSerializer.release(); 16593 return; } 16594 } 16595 readSwiperAnimationEvent(): SwiperAnimationEvent { 16596 let valueDeserializer: Deserializer = this 16597 const currentOffset_result: number = (valueDeserializer.readNumber() as number) 16598 const targetOffset_result: number = (valueDeserializer.readNumber() as number) 16599 const velocity_result: number = (valueDeserializer.readNumber() as number) 16600 let value: SwiperAnimationEvent = ({currentOffset: currentOffset_result, targetOffset: targetOffset_result, velocity: velocity_result} as SwiperAnimationEvent) 16601 return value 16602 } 16603 readOnSwiperAnimationStartCallback(isSync: boolean = false): OnSwiperAnimationStartCallback { 16604 const _resource: CallbackResource = this.readCallbackResource() 16605 const _call: KPointer = this.readPointer() 16606 const _callSync: KPointer = this.readPointer() 16607 return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent): void => { 16608 const _argsSerializer: Serializer = Serializer.hold(); 16609 _argsSerializer.writeInt32(_resource.resourceId); 16610 _argsSerializer.writePointer(_call); 16611 _argsSerializer.writePointer(_callSync); 16612 _argsSerializer.writeNumber(index); 16613 _argsSerializer.writeNumber(targetIndex); 16614 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16615 (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); 16616 _argsSerializer.release(); 16617 return; } 16618 } 16619 readIndicatorComponentController(): IndicatorComponentController { 16620 let valueDeserializer: Deserializer = this 16621 let ptr: KPointer = valueDeserializer.readPointer() 16622 return IndicatorComponentControllerInternal.fromPtr(ptr) 16623 } 16624 readSwiperController(): SwiperController { 16625 let valueDeserializer: Deserializer = this 16626 let ptr: KPointer = valueDeserializer.readPointer() 16627 return SwiperControllerInternal.fromPtr(ptr) 16628 } 16629 readStackOptions(): StackOptions { 16630 let valueDeserializer: Deserializer = this 16631 const alignContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16632 let alignContent_buf: Alignment | undefined|undefined 16633 if ((RuntimeType.UNDEFINED) != (alignContent_buf_runtimeType)) 16634 { 16635 alignContent_buf = (valueDeserializer.readInt32() as Alignment) 16636 } 16637 const alignContent_result: Alignment | undefined|undefined = alignContent_buf 16638 let value: StackOptions = ({alignContent: alignContent_result} as StackOptions) 16639 return value 16640 } 16641 readSlideRange(): SlideRange { 16642 let valueDeserializer: Deserializer = this 16643 const from_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16644 let from_buf: number | undefined|undefined 16645 if ((RuntimeType.UNDEFINED) != (from_buf_runtimeType)) 16646 { 16647 from_buf = (valueDeserializer.readNumber() as number) 16648 } 16649 const from_result: number | undefined|undefined = from_buf 16650 const to_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16651 let to_buf: number | undefined|undefined 16652 if ((RuntimeType.UNDEFINED) != (to_buf_runtimeType)) 16653 { 16654 to_buf = (valueDeserializer.readNumber() as number) 16655 } 16656 const to_result: number | undefined|undefined = to_buf 16657 let value: SlideRange = ({from: from_result, to: to_result} as SlideRange) 16658 return value 16659 } 16660 readSliderBlockStyle(): SliderBlockStyle { 16661 let valueDeserializer: Deserializer = this 16662 const type_result: SliderBlockType = (valueDeserializer.readInt32() as SliderBlockType) 16663 const image_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16664 let image_buf: ResourceStr | undefined|undefined 16665 if ((RuntimeType.UNDEFINED) != (image_buf_runtimeType)) 16666 { 16667 const image_buf__selector: number = valueDeserializer.readInt8() 16668 let image_buf_: string | Resource | undefined|undefined 16669 if (image_buf__selector == 0) { 16670 image_buf_ = (valueDeserializer.readString() as string) 16671 } 16672 else if (image_buf__selector == 1) { 16673 image_buf_ = valueDeserializer.readResource() 16674 } 16675 else { 16676 throw new Error("One of the branches for image_buf_ has to be chosen through deserialisation.") 16677 } 16678 image_buf = (image_buf_ as string | Resource) 16679 } 16680 const image_result: ResourceStr | undefined|undefined = image_buf 16681 const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16682 let shape_buf: string | undefined|undefined 16683 if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) 16684 { 16685 shape_buf = (valueDeserializer.readString() as string) 16686 } 16687 const shape_result: string | undefined|undefined = shape_buf 16688 let value: SliderBlockStyle = ({type: type_result, image: image_result, shape: shape_result} as SliderBlockStyle) 16689 return value 16690 } 16691 readCallback_Number_SliderChangeMode_Void(isSync: boolean = false): ((value: number, mode: SliderChangeMode) => void) { 16692 const _resource: CallbackResource = this.readCallbackResource() 16693 const _call: KPointer = this.readPointer() 16694 const _callSync: KPointer = this.readPointer() 16695 return (value: number, mode: SliderChangeMode): void => { 16696 const _argsSerializer: Serializer = Serializer.hold(); 16697 _argsSerializer.writeInt32(_resource.resourceId); 16698 _argsSerializer.writePointer(_call); 16699 _argsSerializer.writePointer(_callSync); 16700 _argsSerializer.writeNumber(value); 16701 _argsSerializer.writeInt32(mode); 16702 (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); 16703 _argsSerializer.release(); 16704 return; } 16705 } 16706 readSliderOptions(): SliderOptions { 16707 let valueDeserializer: Deserializer = this 16708 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16709 let value_buf: number | undefined|undefined 16710 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 16711 { 16712 value_buf = (valueDeserializer.readNumber() as number) 16713 } 16714 const value_result: number | undefined|undefined = value_buf 16715 const min_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16716 let min_buf: number | undefined|undefined 16717 if ((RuntimeType.UNDEFINED) != (min_buf_runtimeType)) 16718 { 16719 min_buf = (valueDeserializer.readNumber() as number) 16720 } 16721 const min_result: number | undefined|undefined = min_buf 16722 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16723 let max_buf: number | undefined|undefined 16724 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 16725 { 16726 max_buf = (valueDeserializer.readNumber() as number) 16727 } 16728 const max_result: number | undefined|undefined = max_buf 16729 const step_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16730 let step_buf: number | undefined|undefined 16731 if ((RuntimeType.UNDEFINED) != (step_buf_runtimeType)) 16732 { 16733 step_buf = (valueDeserializer.readNumber() as number) 16734 } 16735 const step_result: number | undefined|undefined = step_buf 16736 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16737 let style_buf: SliderStyle | undefined|undefined 16738 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 16739 { 16740 style_buf = (valueDeserializer.readInt32() as SliderStyle) 16741 } 16742 const style_result: SliderStyle | undefined|undefined = style_buf 16743 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16744 let direction_buf: Axis | undefined|undefined 16745 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 16746 { 16747 direction_buf = (valueDeserializer.readInt32() as Axis) 16748 } 16749 const direction_result: Axis | undefined|undefined = direction_buf 16750 const reverse_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16751 let reverse_buf: boolean | undefined|undefined 16752 if ((RuntimeType.UNDEFINED) != (reverse_buf_runtimeType)) 16753 { 16754 reverse_buf = valueDeserializer.readBoolean() 16755 } 16756 const reverse_result: boolean | undefined|undefined = reverse_buf 16757 let value: SliderOptions = ({value: value_result, min: min_result, max: max_result, step: step_result, style: style_result, direction: direction_result, reverse: reverse_result} as SliderOptions) 16758 return value 16759 } 16760 readViewportRect(): ViewportRect { 16761 let valueDeserializer: Deserializer = this 16762 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16763 let x_buf: number | string | undefined|undefined 16764 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 16765 { 16766 const x_buf__selector: number = valueDeserializer.readInt8() 16767 let x_buf_: number | string | undefined|undefined 16768 if (x_buf__selector == 0) { 16769 x_buf_ = (valueDeserializer.readNumber() as number) 16770 } 16771 else if (x_buf__selector == 1) { 16772 x_buf_ = (valueDeserializer.readString() as string) 16773 } 16774 else { 16775 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 16776 } 16777 x_buf = (x_buf_ as number | string) 16778 } 16779 const x_result: number | string | undefined|undefined = x_buf 16780 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16781 let y_buf: number | string | undefined|undefined 16782 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 16783 { 16784 const y_buf__selector: number = valueDeserializer.readInt8() 16785 let y_buf_: number | string | undefined|undefined 16786 if (y_buf__selector == 0) { 16787 y_buf_ = (valueDeserializer.readNumber() as number) 16788 } 16789 else if (y_buf__selector == 1) { 16790 y_buf_ = (valueDeserializer.readString() as string) 16791 } 16792 else { 16793 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 16794 } 16795 y_buf = (y_buf_ as number | string) 16796 } 16797 const y_result: number | string | undefined|undefined = y_buf 16798 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16799 let width_buf: number | string | undefined|undefined 16800 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 16801 { 16802 const width_buf__selector: number = valueDeserializer.readInt8() 16803 let width_buf_: number | string | undefined|undefined 16804 if (width_buf__selector == 0) { 16805 width_buf_ = (valueDeserializer.readNumber() as number) 16806 } 16807 else if (width_buf__selector == 1) { 16808 width_buf_ = (valueDeserializer.readString() as string) 16809 } 16810 else { 16811 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 16812 } 16813 width_buf = (width_buf_ as number | string) 16814 } 16815 const width_result: number | string | undefined|undefined = width_buf 16816 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16817 let height_buf: number | string | undefined|undefined 16818 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 16819 { 16820 const height_buf__selector: number = valueDeserializer.readInt8() 16821 let height_buf_: number | string | undefined|undefined 16822 if (height_buf__selector == 0) { 16823 height_buf_ = (valueDeserializer.readNumber() as number) 16824 } 16825 else if (height_buf__selector == 1) { 16826 height_buf_ = (valueDeserializer.readString() as string) 16827 } 16828 else { 16829 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 16830 } 16831 height_buf = (height_buf_ as number | string) 16832 } 16833 const height_result: number | string | undefined|undefined = height_buf 16834 let value: ViewportRect = ({x: x_result, y: y_result, width: width_result, height: height_result} as ViewportRect) 16835 return value 16836 } 16837 readCallback_Number_String_Void(isSync: boolean = false): ((index: number, value: string) => void) { 16838 const _resource: CallbackResource = this.readCallbackResource() 16839 const _call: KPointer = this.readPointer() 16840 const _callSync: KPointer = this.readPointer() 16841 return (index: number, value: string): void => { 16842 const _argsSerializer: Serializer = Serializer.hold(); 16843 _argsSerializer.writeInt32(_resource.resourceId); 16844 _argsSerializer.writePointer(_call); 16845 _argsSerializer.writePointer(_callSync); 16846 _argsSerializer.writeNumber(index); 16847 _argsSerializer.writeString(value); 16848 (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); 16849 _argsSerializer.release(); 16850 return; } 16851 } 16852 readSelectOption(): SelectOption { 16853 let valueDeserializer: Deserializer = this 16854 const value_buf_selector: number = valueDeserializer.readInt8() 16855 let value_buf: string | Resource | undefined|undefined 16856 if (value_buf_selector == 0) { 16857 value_buf = (valueDeserializer.readString() as string) 16858 } 16859 else if (value_buf_selector == 1) { 16860 value_buf = valueDeserializer.readResource() 16861 } 16862 else { 16863 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 16864 } 16865 const value_result: ResourceStr = (value_buf as string | Resource) 16866 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16867 let icon_buf: ResourceStr | undefined|undefined 16868 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 16869 { 16870 const icon_buf__selector: number = valueDeserializer.readInt8() 16871 let icon_buf_: string | Resource | undefined|undefined 16872 if (icon_buf__selector == 0) { 16873 icon_buf_ = (valueDeserializer.readString() as string) 16874 } 16875 else if (icon_buf__selector == 1) { 16876 icon_buf_ = valueDeserializer.readResource() 16877 } 16878 else { 16879 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 16880 } 16881 icon_buf = (icon_buf_ as string | Resource) 16882 } 16883 const icon_result: ResourceStr | undefined|undefined = icon_buf 16884 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16885 let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined 16886 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 16887 { 16888 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 16889 } 16890 const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf 16891 let value: SelectOption = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result} as SelectOption) 16892 return value 16893 } 16894 readCallback_DeleteValue_Void(isSync: boolean = false): ((parameter: DeleteValue) => void) { 16895 const _resource: CallbackResource = this.readCallbackResource() 16896 const _call: KPointer = this.readPointer() 16897 const _callSync: KPointer = this.readPointer() 16898 return (parameter: DeleteValue): void => { 16899 const _argsSerializer: Serializer = Serializer.hold(); 16900 _argsSerializer.writeInt32(_resource.resourceId); 16901 _argsSerializer.writePointer(_call); 16902 _argsSerializer.writePointer(_callSync); 16903 _argsSerializer.writeDeleteValue(parameter); 16904 (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); 16905 _argsSerializer.release(); 16906 return; } 16907 } 16908 readDeleteValue(): DeleteValue { 16909 let valueDeserializer: Deserializer = this 16910 const deleteOffset_result: number = (valueDeserializer.readNumber() as number) 16911 const direction_result: TextDeleteDirection = (valueDeserializer.readInt32() as TextDeleteDirection) 16912 const deleteValue_result: string = (valueDeserializer.readString() as string) 16913 let value: DeleteValue = ({deleteOffset: deleteOffset_result, direction: direction_result, deleteValue: deleteValue_result} as DeleteValue) 16914 return value 16915 } 16916 readCallback_DeleteValue_Boolean(isSync: boolean = false): ((parameter: DeleteValue) => boolean) { 16917 const _resource: CallbackResource = this.readCallbackResource() 16918 const _call: KPointer = this.readPointer() 16919 const _callSync: KPointer = this.readPointer() 16920 return (parameter: DeleteValue): boolean => { 16921 const _argsSerializer: Serializer = Serializer.hold(); 16922 _argsSerializer.writeInt32(_resource.resourceId); 16923 _argsSerializer.writePointer(_call); 16924 _argsSerializer.writePointer(_callSync); 16925 _argsSerializer.writeDeleteValue(parameter); 16926 let _continuationValue: boolean | undefined|undefined ; 16927 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 16928 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16929 (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); 16930 _argsSerializer.release(); 16931 return (_continuationValue as boolean); } 16932 } 16933 readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { 16934 const _resource: CallbackResource = this.readCallbackResource() 16935 const _call: KPointer = this.readPointer() 16936 const _callSync: KPointer = this.readPointer() 16937 return (parameter: InsertValue): void => { 16938 const _argsSerializer: Serializer = Serializer.hold(); 16939 _argsSerializer.writeInt32(_resource.resourceId); 16940 _argsSerializer.writePointer(_call); 16941 _argsSerializer.writePointer(_callSync); 16942 _argsSerializer.writeInsertValue(parameter); 16943 (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); 16944 _argsSerializer.release(); 16945 return; } 16946 } 16947 readInsertValue(): InsertValue { 16948 let valueDeserializer: Deserializer = this 16949 const insertOffset_result: number = (valueDeserializer.readNumber() as number) 16950 const insertValue_result: string = (valueDeserializer.readString() as string) 16951 let value: InsertValue = ({insertOffset: insertOffset_result, insertValue: insertValue_result} as InsertValue) 16952 return value 16953 } 16954 readCallback_InsertValue_Boolean(isSync: boolean = false): ((parameter: InsertValue) => boolean) { 16955 const _resource: CallbackResource = this.readCallbackResource() 16956 const _call: KPointer = this.readPointer() 16957 const _callSync: KPointer = this.readPointer() 16958 return (parameter: InsertValue): boolean => { 16959 const _argsSerializer: Serializer = Serializer.hold(); 16960 _argsSerializer.writeInt32(_resource.resourceId); 16961 _argsSerializer.writePointer(_call); 16962 _argsSerializer.writePointer(_callSync); 16963 _argsSerializer.writeInsertValue(parameter); 16964 let _continuationValue: boolean | undefined|undefined ; 16965 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 16966 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16967 (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); 16968 _argsSerializer.release(); 16969 return (_continuationValue as boolean); } 16970 } 16971 readTextDecorationOptions(): TextDecorationOptions { 16972 let valueDeserializer: Deserializer = this 16973 const type_result: TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 16974 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16975 let color_buf: ResourceColor | undefined|undefined 16976 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 16977 { 16978 const color_buf__selector: number = valueDeserializer.readInt8() 16979 let color_buf_: Color | number | string | Resource | undefined|undefined 16980 if (color_buf__selector == 0) { 16981 color_buf_ = (valueDeserializer.readInt32() as Color) 16982 } 16983 else if (color_buf__selector == 1) { 16984 color_buf_ = (valueDeserializer.readNumber() as number) 16985 } 16986 else if (color_buf__selector == 2) { 16987 color_buf_ = (valueDeserializer.readString() as string) 16988 } 16989 else if (color_buf__selector == 3) { 16990 color_buf_ = valueDeserializer.readResource() 16991 } 16992 else { 16993 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 16994 } 16995 color_buf = (color_buf_ as Color | number | string | Resource) 16996 } 16997 const color_result: ResourceColor | undefined|undefined = color_buf 16998 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16999 let style_buf: TextDecorationStyle | undefined|undefined 17000 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 17001 { 17002 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 17003 } 17004 const style_result: TextDecorationStyle | undefined|undefined = style_buf 17005 let value: TextDecorationOptions = ({type: type_result, color: color_result, style: style_result} as TextDecorationOptions) 17006 return value 17007 } 17008 readOnPasteCallback(isSync: boolean = false): OnPasteCallback { 17009 const _resource: CallbackResource = this.readCallbackResource() 17010 const _call: KPointer = this.readPointer() 17011 const _callSync: KPointer = this.readPointer() 17012 return (content: string, event: PasteEvent): void => { 17013 const _argsSerializer: Serializer = Serializer.hold(); 17014 _argsSerializer.writeInt32(_resource.resourceId); 17015 _argsSerializer.writePointer(_call); 17016 _argsSerializer.writePointer(_callSync); 17017 _argsSerializer.writeString(content); 17018 _argsSerializer.writePasteEvent(event); 17019 (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); 17020 _argsSerializer.release(); 17021 return; } 17022 } 17023 readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { 17024 const _resource: CallbackResource = this.readCallbackResource() 17025 const _call: KPointer = this.readPointer() 17026 const _callSync: KPointer = this.readPointer() 17027 return (totalOffsetX: number, totalOffsetY: number): void => { 17028 const _argsSerializer: Serializer = Serializer.hold(); 17029 _argsSerializer.writeInt32(_resource.resourceId); 17030 _argsSerializer.writePointer(_call); 17031 _argsSerializer.writePointer(_callSync); 17032 _argsSerializer.writeNumber(totalOffsetX); 17033 _argsSerializer.writeNumber(totalOffsetY); 17034 (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); 17035 _argsSerializer.release(); 17036 return; } 17037 } 17038 readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { 17039 const _resource: CallbackResource = this.readCallbackResource() 17040 const _call: KPointer = this.readPointer() 17041 const _callSync: KPointer = this.readPointer() 17042 return (selectionStart: number, selectionEnd: number): void => { 17043 const _argsSerializer: Serializer = Serializer.hold(); 17044 _argsSerializer.writeInt32(_resource.resourceId); 17045 _argsSerializer.writePointer(_call); 17046 _argsSerializer.writePointer(_callSync); 17047 _argsSerializer.writeNumber(selectionStart); 17048 _argsSerializer.writeNumber(selectionEnd); 17049 (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); 17050 _argsSerializer.release(); 17051 return; } 17052 } 17053 readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { 17054 const _resource: CallbackResource = this.readCallbackResource() 17055 const _call: KPointer = this.readPointer() 17056 const _callSync: KPointer = this.readPointer() 17057 return (value: string, previewText?: PreviewText | undefined): void => { 17058 const _argsSerializer: Serializer = Serializer.hold(); 17059 _argsSerializer.writeInt32(_resource.resourceId); 17060 _argsSerializer.writePointer(_call); 17061 _argsSerializer.writePointer(_callSync); 17062 _argsSerializer.writeString(value); 17063 let previewText_type: int32 = RuntimeType.UNDEFINED; 17064 previewText_type = runtimeType(previewText); 17065 _argsSerializer.writeInt8(previewText_type); 17066 if ((RuntimeType.UNDEFINED) != (previewText_type)) { 17067 const previewText_value = previewText!; 17068 _argsSerializer.writePreviewText(previewText_value); 17069 } 17070 (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); 17071 _argsSerializer.release(); 17072 return; } 17073 } 17074 readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { 17075 const _resource: CallbackResource = this.readCallbackResource() 17076 const _call: KPointer = this.readPointer() 17077 const _callSync: KPointer = this.readPointer() 17078 return (searchContent: string, event?: SubmitEvent | undefined): void => { 17079 const _argsSerializer: Serializer = Serializer.hold(); 17080 _argsSerializer.writeInt32(_resource.resourceId); 17081 _argsSerializer.writePointer(_call); 17082 _argsSerializer.writePointer(_callSync); 17083 _argsSerializer.writeString(searchContent); 17084 let event_type: int32 = RuntimeType.UNDEFINED; 17085 event_type = runtimeType(event); 17086 _argsSerializer.writeInt8(event_type); 17087 if ((RuntimeType.UNDEFINED) != (event_type)) { 17088 const event_value = event!; 17089 _argsSerializer.writeSubmitEvent(event_value); 17090 } 17091 (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); 17092 _argsSerializer.release(); 17093 return; } 17094 } 17095 readCaretStyle(): CaretStyle { 17096 let valueDeserializer: Deserializer = this 17097 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17098 let width_buf: Length | undefined|undefined 17099 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 17100 { 17101 width_buf = (valueDeserializer.readLength() as Length) 17102 } 17103 const width_result: Length | undefined|undefined = width_buf 17104 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17105 let color_buf: ResourceColor | undefined|undefined 17106 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 17107 { 17108 const color_buf__selector: number = valueDeserializer.readInt8() 17109 let color_buf_: Color | number | string | Resource | undefined|undefined 17110 if (color_buf__selector == 0) { 17111 color_buf_ = (valueDeserializer.readInt32() as Color) 17112 } 17113 else if (color_buf__selector == 1) { 17114 color_buf_ = (valueDeserializer.readNumber() as number) 17115 } 17116 else if (color_buf__selector == 2) { 17117 color_buf_ = (valueDeserializer.readString() as string) 17118 } 17119 else if (color_buf__selector == 3) { 17120 color_buf_ = valueDeserializer.readResource() 17121 } 17122 else { 17123 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 17124 } 17125 color_buf = (color_buf_ as Color | number | string | Resource) 17126 } 17127 const color_result: ResourceColor | undefined|undefined = color_buf 17128 let value: CaretStyle = ({width: width_result, color: color_result} as CaretStyle) 17129 return value 17130 } 17131 readSearchOptions(): SearchOptions { 17132 let valueDeserializer: Deserializer = this 17133 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17134 let value_buf: string | undefined|undefined 17135 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 17136 { 17137 value_buf = (valueDeserializer.readString() as string) 17138 } 17139 const value_result: string | undefined|undefined = value_buf 17140 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17141 let placeholder_buf: ResourceStr | undefined|undefined 17142 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 17143 { 17144 const placeholder_buf__selector: number = valueDeserializer.readInt8() 17145 let placeholder_buf_: string | Resource | undefined|undefined 17146 if (placeholder_buf__selector == 0) { 17147 placeholder_buf_ = (valueDeserializer.readString() as string) 17148 } 17149 else if (placeholder_buf__selector == 1) { 17150 placeholder_buf_ = valueDeserializer.readResource() 17151 } 17152 else { 17153 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 17154 } 17155 placeholder_buf = (placeholder_buf_ as string | Resource) 17156 } 17157 const placeholder_result: ResourceStr | undefined|undefined = placeholder_buf 17158 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17159 let icon_buf: string | undefined|undefined 17160 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 17161 { 17162 icon_buf = (valueDeserializer.readString() as string) 17163 } 17164 const icon_result: string | undefined|undefined = icon_buf 17165 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17166 let controller_buf: SearchController | undefined|undefined 17167 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 17168 { 17169 controller_buf = (valueDeserializer.readSearchController() as SearchController) 17170 } 17171 const controller_result: SearchController | undefined|undefined = controller_buf 17172 let value: SearchOptions = ({value: value_result, placeholder: placeholder_result, icon: icon_result, controller: controller_result} as SearchOptions) 17173 return value 17174 } 17175 readScrollBarOptions(): ScrollBarOptions { 17176 let valueDeserializer: Deserializer = this 17177 const scroller_result: Scroller = (valueDeserializer.readScroller() as Scroller) 17178 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17179 let direction_buf: ScrollBarDirection | undefined|undefined 17180 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 17181 { 17182 direction_buf = (valueDeserializer.readInt32() as ScrollBarDirection) 17183 } 17184 const direction_result: ScrollBarDirection | undefined|undefined = direction_buf 17185 const state_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17186 let state_buf: BarState | undefined|undefined 17187 if ((RuntimeType.UNDEFINED) != (state_buf_runtimeType)) 17188 { 17189 state_buf = (valueDeserializer.readInt32() as BarState) 17190 } 17191 const state_result: BarState | undefined|undefined = state_buf 17192 let value: ScrollBarOptions = ({scroller: scroller_result, direction: direction_result, state: state_result} as ScrollBarOptions) 17193 return value 17194 } 17195 readOffsetOptions(): OffsetOptions { 17196 let valueDeserializer: Deserializer = this 17197 const xOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17198 let xOffset_buf: Dimension | undefined|undefined 17199 if ((RuntimeType.UNDEFINED) != (xOffset_buf_runtimeType)) 17200 { 17201 xOffset_buf = (valueDeserializer.readLength() as Dimension) 17202 } 17203 const xOffset_result: Dimension | undefined|undefined = xOffset_buf 17204 const yOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17205 let yOffset_buf: Dimension | undefined|undefined 17206 if ((RuntimeType.UNDEFINED) != (yOffset_buf_runtimeType)) 17207 { 17208 yOffset_buf = (valueDeserializer.readLength() as Dimension) 17209 } 17210 const yOffset_result: Dimension | undefined|undefined = yOffset_buf 17211 let value: OffsetOptions = ({xOffset: xOffset_result, yOffset: yOffset_result} as OffsetOptions) 17212 return value 17213 } 17214 readScrollSnapOptions(): ScrollSnapOptions { 17215 let valueDeserializer: Deserializer = this 17216 const snapAlign_result: ScrollSnapAlign = (valueDeserializer.readInt32() as ScrollSnapAlign) 17217 const snapPagination_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17218 let snapPagination_buf: Dimension | Array<Dimension> | undefined|undefined 17219 if ((RuntimeType.UNDEFINED) != (snapPagination_buf_runtimeType)) 17220 { 17221 const snapPagination_buf__selector: number = valueDeserializer.readInt8() 17222 let snapPagination_buf_: Dimension | Array<Dimension> | undefined|undefined 17223 if (snapPagination_buf__selector == 0) { 17224 snapPagination_buf_ = (valueDeserializer.readLength() as Dimension) 17225 } 17226 else if (snapPagination_buf__selector == 1) { 17227 const snapPagination_buf__u_length: int32 = valueDeserializer.readInt32() 17228 let snapPagination_buf__u: Array<Dimension> = new Array<Dimension>(snapPagination_buf__u_length) 17229 for (let snapPagination_buf__u_i = 0; snapPagination_buf__u_i < snapPagination_buf__u_length; snapPagination_buf__u_i++) { 17230 snapPagination_buf__u[snapPagination_buf__u_i] = (valueDeserializer.readLength() as Dimension) 17231 } 17232 snapPagination_buf_ = snapPagination_buf__u 17233 } 17234 else { 17235 throw new Error("One of the branches for snapPagination_buf_ has to be chosen through deserialisation.") 17236 } 17237 snapPagination_buf = (snapPagination_buf_ as Dimension | Array<Dimension>) 17238 } 17239 const snapPagination_result: Dimension | Array<Dimension> | undefined|undefined = snapPagination_buf 17240 const enableSnapToStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17241 let enableSnapToStart_buf: boolean | undefined|undefined 17242 if ((RuntimeType.UNDEFINED) != (enableSnapToStart_buf_runtimeType)) 17243 { 17244 enableSnapToStart_buf = valueDeserializer.readBoolean() 17245 } 17246 const enableSnapToStart_result: boolean | undefined|undefined = enableSnapToStart_buf 17247 const enableSnapToEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17248 let enableSnapToEnd_buf: boolean | undefined|undefined 17249 if ((RuntimeType.UNDEFINED) != (enableSnapToEnd_buf_runtimeType)) 17250 { 17251 enableSnapToEnd_buf = valueDeserializer.readBoolean() 17252 } 17253 const enableSnapToEnd_result: boolean | undefined|undefined = enableSnapToEnd_buf 17254 let value: ScrollSnapOptions = ({snapAlign: snapAlign_result, snapPagination: snapPagination_result, enableSnapToStart: enableSnapToStart_result, enableSnapToEnd: enableSnapToEnd_result} as ScrollSnapOptions) 17255 return value 17256 } 17257 readOnScrollFrameBeginHandlerResult(): OnScrollFrameBeginHandlerResult { 17258 let valueDeserializer: Deserializer = this 17259 const offsetRemain_result: number = (valueDeserializer.readNumber() as number) 17260 let value: OnScrollFrameBeginHandlerResult = ({offsetRemain: offsetRemain_result} as OnScrollFrameBeginHandlerResult) 17261 return value 17262 } 17263 readOnScrollFrameBeginCallback(isSync: boolean = false): OnScrollFrameBeginCallback { 17264 const _resource: CallbackResource = this.readCallbackResource() 17265 const _call: KPointer = this.readPointer() 17266 const _callSync: KPointer = this.readPointer() 17267 return (offset: number, state: ScrollState): OnScrollFrameBeginHandlerResult => { 17268 const _argsSerializer: Serializer = Serializer.hold(); 17269 _argsSerializer.writeInt32(_resource.resourceId); 17270 _argsSerializer.writePointer(_call); 17271 _argsSerializer.writePointer(_callSync); 17272 _argsSerializer.writeNumber(offset); 17273 _argsSerializer.writeInt32(state); 17274 let _continuationValue: OnScrollFrameBeginHandlerResult | undefined|undefined ; 17275 const _continuationCallback: ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult): void => { _continuationValue = value; } 17276 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17277 (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); 17278 _argsSerializer.release(); 17279 return (_continuationValue as OnScrollFrameBeginHandlerResult); } 17280 } 17281 readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { 17282 const _resource: CallbackResource = this.readCallbackResource() 17283 const _call: KPointer = this.readPointer() 17284 const _callSync: KPointer = this.readPointer() 17285 return (side: Edge): void => { 17286 const _argsSerializer: Serializer = Serializer.hold(); 17287 _argsSerializer.writeInt32(_resource.resourceId); 17288 _argsSerializer.writePointer(_call); 17289 _argsSerializer.writePointer(_callSync); 17290 _argsSerializer.writeInt32(side); 17291 (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); 17292 _argsSerializer.release(); 17293 return; } 17294 } 17295 readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent, result: SaveButtonOnClickResult) => void) { 17296 const _resource: CallbackResource = this.readCallbackResource() 17297 const _call: KPointer = this.readPointer() 17298 const _callSync: KPointer = this.readPointer() 17299 return (event: ClickEvent, result: SaveButtonOnClickResult): void => { 17300 const _argsSerializer: Serializer = Serializer.hold(); 17301 _argsSerializer.writeInt32(_resource.resourceId); 17302 _argsSerializer.writePointer(_call); 17303 _argsSerializer.writePointer(_callSync); 17304 _argsSerializer.writeClickEvent(event); 17305 _argsSerializer.writeInt32(result); 17306 (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); 17307 _argsSerializer.release(); 17308 return; } 17309 } 17310 readSaveButtonOptions(): SaveButtonOptions { 17311 let valueDeserializer: Deserializer = this 17312 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17313 let icon_buf: SaveIconStyle | undefined|undefined 17314 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 17315 { 17316 icon_buf = (valueDeserializer.readInt32() as SaveIconStyle) 17317 } 17318 const icon_result: SaveIconStyle | undefined|undefined = icon_buf 17319 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17320 let text_buf: SaveDescription | undefined|undefined 17321 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 17322 { 17323 text_buf = (valueDeserializer.readInt32() as SaveDescription) 17324 } 17325 const text_result: SaveDescription | undefined|undefined = text_buf 17326 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17327 let buttonType_buf: ButtonType | undefined|undefined 17328 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 17329 { 17330 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 17331 } 17332 const buttonType_result: ButtonType | undefined|undefined = buttonType_buf 17333 let value: SaveButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as SaveButtonOptions) 17334 return value 17335 } 17336 readRowOptions(): RowOptions { 17337 let valueDeserializer: Deserializer = this 17338 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17339 let space_buf: string | number | undefined|undefined 17340 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 17341 { 17342 const space_buf__selector: number = valueDeserializer.readInt8() 17343 let space_buf_: string | number | undefined|undefined 17344 if (space_buf__selector == 0) { 17345 space_buf_ = (valueDeserializer.readString() as string) 17346 } 17347 else if (space_buf__selector == 1) { 17348 space_buf_ = (valueDeserializer.readNumber() as number) 17349 } 17350 else { 17351 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 17352 } 17353 space_buf = (space_buf_ as string | number) 17354 } 17355 const space_result: string | number | undefined|undefined = space_buf 17356 let value: RowOptions = ({space: space_result} as RowOptions) 17357 return value 17358 } 17359 readRootSceneSession(): RootSceneSession { 17360 let value: RootSceneSession = ({} as RootSceneSession) 17361 return value 17362 } 17363 readRichEditorStyledStringOptions(): RichEditorStyledStringOptions { 17364 let valueDeserializer: Deserializer = this 17365 const controller_result: RichEditorStyledStringController = (valueDeserializer.readRichEditorStyledStringController() as RichEditorStyledStringController) 17366 let value: RichEditorStyledStringOptions = ({controller: controller_result} as RichEditorStyledStringOptions) 17367 return value 17368 } 17369 readRichEditorOptions(): RichEditorOptions { 17370 let valueDeserializer: Deserializer = this 17371 const controller_result: RichEditorController = (valueDeserializer.readRichEditorController() as RichEditorController) 17372 let value: RichEditorOptions = ({controller: controller_result} as RichEditorOptions) 17373 return value 17374 } 17375 readEditMenuOptions(): EditMenuOptions { 17376 let valueDeserializer: Deserializer = this 17377 let ptr: KPointer = valueDeserializer.readPointer() 17378 return EditMenuOptionsInternal.fromPtr(ptr) 17379 } 17380 readCopyEvent(): CopyEvent { 17381 let valueDeserializer: Deserializer = this 17382 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17383 let preventDefault_buf: (() => void) | undefined|undefined 17384 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17385 { 17386 preventDefault_buf = valueDeserializer.readCallback_Void() 17387 } 17388 const preventDefault_result: (() => void) | undefined|undefined = preventDefault_buf 17389 let value: CopyEvent = ({preventDefault: preventDefault_result} as CopyEvent) 17390 return value 17391 } 17392 readCallback_CopyEvent_Void(isSync: boolean = false): ((parameter: CopyEvent) => void) { 17393 const _resource: CallbackResource = this.readCallbackResource() 17394 const _call: KPointer = this.readPointer() 17395 const _callSync: KPointer = this.readPointer() 17396 return (parameter: CopyEvent): void => { 17397 const _argsSerializer: Serializer = Serializer.hold(); 17398 _argsSerializer.writeInt32(_resource.resourceId); 17399 _argsSerializer.writePointer(_call); 17400 _argsSerializer.writePointer(_callSync); 17401 _argsSerializer.writeCopyEvent(parameter); 17402 (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); 17403 _argsSerializer.release(); 17404 return; } 17405 } 17406 readCutEvent(): CutEvent { 17407 let valueDeserializer: Deserializer = this 17408 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17409 let preventDefault_buf: (() => void) | undefined|undefined 17410 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17411 { 17412 preventDefault_buf = valueDeserializer.readCallback_Void() 17413 } 17414 const preventDefault_result: (() => void) | undefined|undefined = preventDefault_buf 17415 let value: CutEvent = ({preventDefault: preventDefault_result} as CutEvent) 17416 return value 17417 } 17418 readCallback_CutEvent_Void(isSync: boolean = false): ((parameter: CutEvent) => void) { 17419 const _resource: CallbackResource = this.readCallbackResource() 17420 const _call: KPointer = this.readPointer() 17421 const _callSync: KPointer = this.readPointer() 17422 return (parameter: CutEvent): void => { 17423 const _argsSerializer: Serializer = Serializer.hold(); 17424 _argsSerializer.writeInt32(_resource.resourceId); 17425 _argsSerializer.writePointer(_call); 17426 _argsSerializer.writePointer(_callSync); 17427 _argsSerializer.writeCutEvent(parameter); 17428 (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); 17429 _argsSerializer.release(); 17430 return; } 17431 } 17432 readRichEditorChangeValue(): RichEditorChangeValue { 17433 let valueDeserializer: Deserializer = this 17434 const rangeBefore_result: TextRange = valueDeserializer.readTextRange() 17435 const replacedSpans_buf_length: int32 = valueDeserializer.readInt32() 17436 let replacedSpans_buf: Array<RichEditorTextSpanResult> = new Array<RichEditorTextSpanResult>(replacedSpans_buf_length) 17437 for (let replacedSpans_buf_i = 0; replacedSpans_buf_i < replacedSpans_buf_length; replacedSpans_buf_i++) { 17438 replacedSpans_buf[replacedSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() 17439 } 17440 const replacedSpans_result: Array<RichEditorTextSpanResult> = replacedSpans_buf 17441 const replacedImageSpans_buf_length: int32 = valueDeserializer.readInt32() 17442 let replacedImageSpans_buf: Array<RichEditorImageSpanResult> = new Array<RichEditorImageSpanResult>(replacedImageSpans_buf_length) 17443 for (let replacedImageSpans_buf_i = 0; replacedImageSpans_buf_i < replacedImageSpans_buf_length; replacedImageSpans_buf_i++) { 17444 replacedImageSpans_buf[replacedImageSpans_buf_i] = valueDeserializer.readRichEditorImageSpanResult() 17445 } 17446 const replacedImageSpans_result: Array<RichEditorImageSpanResult> = replacedImageSpans_buf 17447 const replacedSymbolSpans_buf_length: int32 = valueDeserializer.readInt32() 17448 let replacedSymbolSpans_buf: Array<RichEditorTextSpanResult> = new Array<RichEditorTextSpanResult>(replacedSymbolSpans_buf_length) 17449 for (let replacedSymbolSpans_buf_i = 0; replacedSymbolSpans_buf_i < replacedSymbolSpans_buf_length; replacedSymbolSpans_buf_i++) { 17450 replacedSymbolSpans_buf[replacedSymbolSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() 17451 } 17452 const replacedSymbolSpans_result: Array<RichEditorTextSpanResult> = replacedSymbolSpans_buf 17453 let value: RichEditorChangeValue = ({rangeBefore: rangeBefore_result, replacedSpans: replacedSpans_result, replacedImageSpans: replacedImageSpans_result, replacedSymbolSpans: replacedSymbolSpans_result} as RichEditorChangeValue) 17454 return value 17455 } 17456 readCallback_RichEditorChangeValue_Boolean(isSync: boolean = false): ((parameter: RichEditorChangeValue) => boolean) { 17457 const _resource: CallbackResource = this.readCallbackResource() 17458 const _call: KPointer = this.readPointer() 17459 const _callSync: KPointer = this.readPointer() 17460 return (parameter: RichEditorChangeValue): boolean => { 17461 const _argsSerializer: Serializer = Serializer.hold(); 17462 _argsSerializer.writeInt32(_resource.resourceId); 17463 _argsSerializer.writePointer(_call); 17464 _argsSerializer.writePointer(_callSync); 17465 _argsSerializer.writeRichEditorChangeValue(parameter); 17466 let _continuationValue: boolean | undefined|undefined ; 17467 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 17468 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17469 (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); 17470 _argsSerializer.release(); 17471 return (_continuationValue as boolean); } 17472 } 17473 readSubmitEvent(): SubmitEvent { 17474 let valueDeserializer: Deserializer = this 17475 let ptr: KPointer = valueDeserializer.readPointer() 17476 return SubmitEventInternal.fromPtr(ptr) 17477 } 17478 readSubmitCallback(isSync: boolean = false): SubmitCallback { 17479 const _resource: CallbackResource = this.readCallbackResource() 17480 const _call: KPointer = this.readPointer() 17481 const _callSync: KPointer = this.readPointer() 17482 return (enterKey: EnterKeyType, event: SubmitEvent): void => { 17483 const _argsSerializer: Serializer = Serializer.hold(); 17484 _argsSerializer.writeInt32(_resource.resourceId); 17485 _argsSerializer.writePointer(_call); 17486 _argsSerializer.writePointer(_callSync); 17487 _argsSerializer.writeInt32(enterKey); 17488 _argsSerializer.writeSubmitEvent(event); 17489 (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); 17490 _argsSerializer.release(); 17491 return; } 17492 } 17493 readTextDataDetectorConfig(): TextDataDetectorConfig { 17494 let valueDeserializer: Deserializer = this 17495 const types_buf_length: int32 = valueDeserializer.readInt32() 17496 let types_buf: Array<TextDataDetectorType> = new Array<TextDataDetectorType>(types_buf_length) 17497 for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { 17498 types_buf[types_buf_i] = (valueDeserializer.readInt32() as TextDataDetectorType) 17499 } 17500 const types_result: Array<TextDataDetectorType> = types_buf 17501 const onDetectResultUpdate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17502 let onDetectResultUpdate_buf: ((breakpoints: string) => void) | undefined|undefined 17503 if ((RuntimeType.UNDEFINED) != (onDetectResultUpdate_buf_runtimeType)) 17504 { 17505 onDetectResultUpdate_buf = valueDeserializer.readCallback_String_Void() 17506 } 17507 const onDetectResultUpdate_result: ((breakpoints: string) => void) | undefined|undefined = onDetectResultUpdate_buf 17508 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17509 let color_buf: ResourceColor | undefined|undefined 17510 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 17511 { 17512 const color_buf__selector: number = valueDeserializer.readInt8() 17513 let color_buf_: Color | number | string | Resource | undefined|undefined 17514 if (color_buf__selector == 0) { 17515 color_buf_ = (valueDeserializer.readInt32() as Color) 17516 } 17517 else if (color_buf__selector == 1) { 17518 color_buf_ = (valueDeserializer.readNumber() as number) 17519 } 17520 else if (color_buf__selector == 2) { 17521 color_buf_ = (valueDeserializer.readString() as string) 17522 } 17523 else if (color_buf__selector == 3) { 17524 color_buf_ = valueDeserializer.readResource() 17525 } 17526 else { 17527 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 17528 } 17529 color_buf = (color_buf_ as Color | number | string | Resource) 17530 } 17531 const color_result: ResourceColor | undefined|undefined = color_buf 17532 const decoration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17533 let decoration_buf: DecorationStyleInterface | undefined|undefined 17534 if ((RuntimeType.UNDEFINED) != (decoration_buf_runtimeType)) 17535 { 17536 decoration_buf = valueDeserializer.readDecorationStyleInterface() 17537 } 17538 const decoration_result: DecorationStyleInterface | undefined|undefined = decoration_buf 17539 let value: TextDataDetectorConfig = ({types: types_result, onDetectResultUpdate: onDetectResultUpdate_result, color: color_result, decoration: decoration_result} as TextDataDetectorConfig) 17540 return value 17541 } 17542 readPasteEvent(): PasteEvent { 17543 let valueDeserializer: Deserializer = this 17544 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17545 let preventDefault_buf: (() => void) | undefined|undefined 17546 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17547 { 17548 preventDefault_buf = valueDeserializer.readCallback_Void() 17549 } 17550 const preventDefault_result: (() => void) | undefined|undefined = preventDefault_buf 17551 let value: PasteEvent = ({preventDefault: preventDefault_result} as PasteEvent) 17552 return value 17553 } 17554 readPasteEventCallback(isSync: boolean = false): PasteEventCallback { 17555 const _resource: CallbackResource = this.readCallbackResource() 17556 const _call: KPointer = this.readPointer() 17557 const _callSync: KPointer = this.readPointer() 17558 return (event?: PasteEvent | undefined): void => { 17559 const _argsSerializer: Serializer = Serializer.hold(); 17560 _argsSerializer.writeInt32(_resource.resourceId); 17561 _argsSerializer.writePointer(_call); 17562 _argsSerializer.writePointer(_callSync); 17563 let event_type: int32 = RuntimeType.UNDEFINED; 17564 event_type = runtimeType(event); 17565 _argsSerializer.writeInt8(event_type); 17566 if ((RuntimeType.UNDEFINED) != (event_type)) { 17567 const event_value = event!; 17568 _argsSerializer.writePasteEvent(event_value); 17569 } 17570 (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); 17571 _argsSerializer.release(); 17572 return; } 17573 } 17574 readRichEditorDeleteValue(): RichEditorDeleteValue { 17575 let valueDeserializer: Deserializer = this 17576 const offset_result: number = (valueDeserializer.readNumber() as number) 17577 const direction_result: RichEditorDeleteDirection = (valueDeserializer.readInt32() as RichEditorDeleteDirection) 17578 const length_result: number = (valueDeserializer.readNumber() as number) 17579 const richEditorDeleteSpans_buf_length: int32 = valueDeserializer.readInt32() 17580 let richEditorDeleteSpans_buf: Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = new Array<RichEditorTextSpanResult | RichEditorImageSpanResult>(richEditorDeleteSpans_buf_length) 17581 for (let richEditorDeleteSpans_buf_i = 0; richEditorDeleteSpans_buf_i < richEditorDeleteSpans_buf_length; richEditorDeleteSpans_buf_i++) { 17582 const richEditorDeleteSpans_buf_buf_selector: number = valueDeserializer.readInt8() 17583 let richEditorDeleteSpans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined 17584 if (richEditorDeleteSpans_buf_buf_selector == 0) { 17585 richEditorDeleteSpans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() 17586 } 17587 else if (richEditorDeleteSpans_buf_buf_selector == 1) { 17588 richEditorDeleteSpans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() 17589 } 17590 else { 17591 throw new Error("One of the branches for richEditorDeleteSpans_buf_buf has to be chosen through deserialisation.") 17592 } 17593 richEditorDeleteSpans_buf[richEditorDeleteSpans_buf_i] = (richEditorDeleteSpans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) 17594 } 17595 const richEditorDeleteSpans_result: Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = richEditorDeleteSpans_buf 17596 let value: RichEditorDeleteValue = ({offset: offset_result, direction: direction_result, length: length_result, richEditorDeleteSpans: richEditorDeleteSpans_result} as RichEditorDeleteValue) 17597 return value 17598 } 17599 readCallback_RichEditorDeleteValue_Boolean(isSync: boolean = false): ((parameter: RichEditorDeleteValue) => boolean) { 17600 const _resource: CallbackResource = this.readCallbackResource() 17601 const _call: KPointer = this.readPointer() 17602 const _callSync: KPointer = this.readPointer() 17603 return (parameter: RichEditorDeleteValue): boolean => { 17604 const _argsSerializer: Serializer = Serializer.hold(); 17605 _argsSerializer.writeInt32(_resource.resourceId); 17606 _argsSerializer.writePointer(_call); 17607 _argsSerializer.writePointer(_callSync); 17608 _argsSerializer.writeRichEditorDeleteValue(parameter); 17609 let _continuationValue: boolean | undefined|undefined ; 17610 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 17611 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17612 (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); 17613 _argsSerializer.release(); 17614 return (_continuationValue as boolean); } 17615 } 17616 readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { 17617 const _resource: CallbackResource = this.readCallbackResource() 17618 const _call: KPointer = this.readPointer() 17619 const _callSync: KPointer = this.readPointer() 17620 return (parameter: TextRange): void => { 17621 const _argsSerializer: Serializer = Serializer.hold(); 17622 _argsSerializer.writeInt32(_resource.resourceId); 17623 _argsSerializer.writePointer(_call); 17624 _argsSerializer.writePointer(_callSync); 17625 _argsSerializer.writeTextRange(parameter); 17626 (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); 17627 _argsSerializer.release(); 17628 return; } 17629 } 17630 readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { 17631 const _resource: CallbackResource = this.readCallbackResource() 17632 const _call: KPointer = this.readPointer() 17633 const _callSync: KPointer = this.readPointer() 17634 return (parameter: RichEditorTextSpanResult): void => { 17635 const _argsSerializer: Serializer = Serializer.hold(); 17636 _argsSerializer.writeInt32(_resource.resourceId); 17637 _argsSerializer.writePointer(_call); 17638 _argsSerializer.writePointer(_callSync); 17639 _argsSerializer.writeRichEditorTextSpanResult(parameter); 17640 (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); 17641 _argsSerializer.release(); 17642 return; } 17643 } 17644 readRichEditorInsertValue(): RichEditorInsertValue { 17645 let valueDeserializer: Deserializer = this 17646 const insertOffset_result: number = (valueDeserializer.readNumber() as number) 17647 const insertValue_result: string = (valueDeserializer.readString() as string) 17648 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17649 let previewText_buf: string | undefined|undefined 17650 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 17651 { 17652 previewText_buf = (valueDeserializer.readString() as string) 17653 } 17654 const previewText_result: string | undefined|undefined = previewText_buf 17655 let value: RichEditorInsertValue = ({insertOffset: insertOffset_result, insertValue: insertValue_result, previewText: previewText_result} as RichEditorInsertValue) 17656 return value 17657 } 17658 readCallback_RichEditorInsertValue_Boolean(isSync: boolean = false): ((parameter: RichEditorInsertValue) => boolean) { 17659 const _resource: CallbackResource = this.readCallbackResource() 17660 const _call: KPointer = this.readPointer() 17661 const _callSync: KPointer = this.readPointer() 17662 return (parameter: RichEditorInsertValue): boolean => { 17663 const _argsSerializer: Serializer = Serializer.hold(); 17664 _argsSerializer.writeInt32(_resource.resourceId); 17665 _argsSerializer.writePointer(_call); 17666 _argsSerializer.writePointer(_callSync); 17667 _argsSerializer.writeRichEditorInsertValue(parameter); 17668 let _continuationValue: boolean | undefined|undefined ; 17669 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 17670 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17671 (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); 17672 _argsSerializer.release(); 17673 return (_continuationValue as boolean); } 17674 } 17675 readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { 17676 const _resource: CallbackResource = this.readCallbackResource() 17677 const _call: KPointer = this.readPointer() 17678 const _callSync: KPointer = this.readPointer() 17679 return (parameter: RichEditorRange): void => { 17680 const _argsSerializer: Serializer = Serializer.hold(); 17681 _argsSerializer.writeInt32(_resource.resourceId); 17682 _argsSerializer.writePointer(_call); 17683 _argsSerializer.writePointer(_callSync); 17684 _argsSerializer.writeRichEditorRange(parameter); 17685 (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); 17686 _argsSerializer.release(); 17687 return; } 17688 } 17689 readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { 17690 const _resource: CallbackResource = this.readCallbackResource() 17691 const _call: KPointer = this.readPointer() 17692 const _callSync: KPointer = this.readPointer() 17693 return (parameter: RichEditorSelection): void => { 17694 const _argsSerializer: Serializer = Serializer.hold(); 17695 _argsSerializer.writeInt32(_resource.resourceId); 17696 _argsSerializer.writePointer(_call); 17697 _argsSerializer.writePointer(_callSync); 17698 _argsSerializer.writeRichEditorSelection(parameter); 17699 (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); 17700 _argsSerializer.release(); 17701 return; } 17702 } 17703 readStyledStringChangeValue(): StyledStringChangeValue { 17704 let valueDeserializer: Deserializer = this 17705 const range_result: TextRange = valueDeserializer.readTextRange() 17706 const replacementString_result: StyledString = (valueDeserializer.readStyledString() as StyledString) 17707 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17708 let previewText_buf: StyledString | undefined|undefined 17709 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 17710 { 17711 previewText_buf = (valueDeserializer.readStyledString() as StyledString) 17712 } 17713 const previewText_result: StyledString | undefined|undefined = previewText_buf 17714 let value: StyledStringChangeValue = ({range: range_result, replacementString: replacementString_result, previewText: previewText_result} as StyledStringChangeValue) 17715 return value 17716 } 17717 readRichEditorParagraphResult(): RichEditorParagraphResult { 17718 let valueDeserializer: Deserializer = this 17719 const style_result: RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() 17720 const range_buf_value0: number = (valueDeserializer.readNumber() as number) 17721 const range_buf_value1: number = (valueDeserializer.readNumber() as number) 17722 const range_result: [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) 17723 let value: RichEditorParagraphResult = ({style: style_result, range: range_result} as RichEditorParagraphResult) 17724 return value 17725 } 17726 readRichEditorBaseController(): RichEditorBaseController { 17727 let valueDeserializer: Deserializer = this 17728 let ptr: KPointer = valueDeserializer.readPointer() 17729 return RichEditorBaseControllerInternal.fromPtr(ptr) 17730 } 17731 readLocalizedBarrierStyle(): LocalizedBarrierStyle { 17732 let valueDeserializer: Deserializer = this 17733 const id_result: string = (valueDeserializer.readString() as string) 17734 const localizedDirection_result: LocalizedBarrierDirection = (valueDeserializer.readInt32() as LocalizedBarrierDirection) 17735 const referencedId_buf_length: int32 = valueDeserializer.readInt32() 17736 let referencedId_buf: Array<string> = new Array<string>(referencedId_buf_length) 17737 for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { 17738 referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) 17739 } 17740 const referencedId_result: Array<string> = referencedId_buf 17741 let value: LocalizedBarrierStyle = ({id: id_result, localizedDirection: localizedDirection_result, referencedId: referencedId_result} as LocalizedBarrierStyle) 17742 return value 17743 } 17744 readBarrierStyle(): BarrierStyle { 17745 let valueDeserializer: Deserializer = this 17746 const id_result: string = (valueDeserializer.readString() as string) 17747 const direction_result: BarrierDirection = (valueDeserializer.readInt32() as BarrierDirection) 17748 const referencedId_buf_length: int32 = valueDeserializer.readInt32() 17749 let referencedId_buf: Array<string> = new Array<string>(referencedId_buf_length) 17750 for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { 17751 referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) 17752 } 17753 const referencedId_result: Array<string> = referencedId_buf 17754 let value: BarrierStyle = ({id: id_result, direction: direction_result, referencedId: referencedId_result} as BarrierStyle) 17755 return value 17756 } 17757 readGuideLineStyle(): GuideLineStyle { 17758 let valueDeserializer: Deserializer = this 17759 const id_result: string = (valueDeserializer.readString() as string) 17760 const direction_result: Axis = (valueDeserializer.readInt32() as Axis) 17761 const position_result: GuideLinePosition = valueDeserializer.readGuideLinePosition() 17762 let value: GuideLineStyle = ({id: id_result, direction: direction_result, position: position_result} as GuideLineStyle) 17763 return value 17764 } 17765 readCallback_RefreshStatus_Void(isSync: boolean = false): ((state: RefreshStatus) => void) { 17766 const _resource: CallbackResource = this.readCallbackResource() 17767 const _call: KPointer = this.readPointer() 17768 const _callSync: KPointer = this.readPointer() 17769 return (state: RefreshStatus): void => { 17770 const _argsSerializer: Serializer = Serializer.hold(); 17771 _argsSerializer.writeInt32(_resource.resourceId); 17772 _argsSerializer.writePointer(_call); 17773 _argsSerializer.writePointer(_callSync); 17774 _argsSerializer.writeInt32(state); 17775 (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); 17776 _argsSerializer.release(); 17777 return; } 17778 } 17779 readRefreshOptions(): RefreshOptions { 17780 let valueDeserializer: Deserializer = this 17781 const refreshing_result: boolean = valueDeserializer.readBoolean() 17782 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17783 let offset_buf: number | string | undefined|undefined 17784 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 17785 { 17786 const offset_buf__selector: number = valueDeserializer.readInt8() 17787 let offset_buf_: number | string | undefined|undefined 17788 if (offset_buf__selector == 0) { 17789 offset_buf_ = (valueDeserializer.readNumber() as number) 17790 } 17791 else if (offset_buf__selector == 1) { 17792 offset_buf_ = (valueDeserializer.readString() as string) 17793 } 17794 else { 17795 throw new Error("One of the branches for offset_buf_ has to be chosen through deserialisation.") 17796 } 17797 offset_buf = (offset_buf_ as number | string) 17798 } 17799 const offset_result: number | string | undefined|undefined = offset_buf 17800 const friction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17801 let friction_buf: number | string | undefined|undefined 17802 if ((RuntimeType.UNDEFINED) != (friction_buf_runtimeType)) 17803 { 17804 const friction_buf__selector: number = valueDeserializer.readInt8() 17805 let friction_buf_: number | string | undefined|undefined 17806 if (friction_buf__selector == 0) { 17807 friction_buf_ = (valueDeserializer.readNumber() as number) 17808 } 17809 else if (friction_buf__selector == 1) { 17810 friction_buf_ = (valueDeserializer.readString() as string) 17811 } 17812 else { 17813 throw new Error("One of the branches for friction_buf_ has to be chosen through deserialisation.") 17814 } 17815 friction_buf = (friction_buf_ as number | string) 17816 } 17817 const friction_result: number | string | undefined|undefined = friction_buf 17818 const promptText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17819 let promptText_buf: ResourceStr | undefined|undefined 17820 if ((RuntimeType.UNDEFINED) != (promptText_buf_runtimeType)) 17821 { 17822 const promptText_buf__selector: number = valueDeserializer.readInt8() 17823 let promptText_buf_: string | Resource | undefined|undefined 17824 if (promptText_buf__selector == 0) { 17825 promptText_buf_ = (valueDeserializer.readString() as string) 17826 } 17827 else if (promptText_buf__selector == 1) { 17828 promptText_buf_ = valueDeserializer.readResource() 17829 } 17830 else { 17831 throw new Error("One of the branches for promptText_buf_ has to be chosen through deserialisation.") 17832 } 17833 promptText_buf = (promptText_buf_ as string | Resource) 17834 } 17835 const promptText_result: ResourceStr | undefined|undefined = promptText_buf 17836 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17837 let builder_buf: CustomBuilder | undefined|undefined 17838 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 17839 { 17840 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 17841 } 17842 const builder_result: CustomBuilder | undefined|undefined = builder_buf 17843 const refreshingContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17844 let refreshingContent_buf: ComponentContent | undefined|undefined 17845 if ((RuntimeType.UNDEFINED) != (refreshingContent_buf_runtimeType)) 17846 { 17847 refreshingContent_buf = valueDeserializer.readComponentContent() 17848 } 17849 const refreshingContent_result: ComponentContent | undefined|undefined = refreshingContent_buf 17850 let value: RefreshOptions = ({refreshing: refreshing_result, offset: offset_result, friction: friction_result, promptText: promptText_result, builder: builder_result, refreshingContent: refreshingContent_result} as RefreshOptions) 17851 return value 17852 } 17853 readStarStyleOptions(): StarStyleOptions { 17854 let valueDeserializer: Deserializer = this 17855 const backgroundUri_result: string = (valueDeserializer.readString() as string) 17856 const foregroundUri_result: string = (valueDeserializer.readString() as string) 17857 const secondaryUri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17858 let secondaryUri_buf: string | undefined|undefined 17859 if ((RuntimeType.UNDEFINED) != (secondaryUri_buf_runtimeType)) 17860 { 17861 secondaryUri_buf = (valueDeserializer.readString() as string) 17862 } 17863 const secondaryUri_result: string | undefined|undefined = secondaryUri_buf 17864 let value: StarStyleOptions = ({backgroundUri: backgroundUri_result, foregroundUri: foregroundUri_result, secondaryUri: secondaryUri_result} as StarStyleOptions) 17865 return value 17866 } 17867 readRatingOptions(): RatingOptions { 17868 let valueDeserializer: Deserializer = this 17869 const rating_result: number = (valueDeserializer.readNumber() as number) 17870 const indicator_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17871 let indicator_buf: boolean | undefined|undefined 17872 if ((RuntimeType.UNDEFINED) != (indicator_buf_runtimeType)) 17873 { 17874 indicator_buf = valueDeserializer.readBoolean() 17875 } 17876 const indicator_result: boolean | undefined|undefined = indicator_buf 17877 let value: RatingOptions = ({rating: rating_result, indicator: indicator_result} as RatingOptions) 17878 return value 17879 } 17880 readRadioStyle(): RadioStyle { 17881 let valueDeserializer: Deserializer = this 17882 const checkedBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17883 let checkedBackgroundColor_buf: ResourceColor | undefined|undefined 17884 if ((RuntimeType.UNDEFINED) != (checkedBackgroundColor_buf_runtimeType)) 17885 { 17886 const checkedBackgroundColor_buf__selector: number = valueDeserializer.readInt8() 17887 let checkedBackgroundColor_buf_: Color | number | string | Resource | undefined|undefined 17888 if (checkedBackgroundColor_buf__selector == 0) { 17889 checkedBackgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 17890 } 17891 else if (checkedBackgroundColor_buf__selector == 1) { 17892 checkedBackgroundColor_buf_ = (valueDeserializer.readNumber() as number) 17893 } 17894 else if (checkedBackgroundColor_buf__selector == 2) { 17895 checkedBackgroundColor_buf_ = (valueDeserializer.readString() as string) 17896 } 17897 else if (checkedBackgroundColor_buf__selector == 3) { 17898 checkedBackgroundColor_buf_ = valueDeserializer.readResource() 17899 } 17900 else { 17901 throw new Error("One of the branches for checkedBackgroundColor_buf_ has to be chosen through deserialisation.") 17902 } 17903 checkedBackgroundColor_buf = (checkedBackgroundColor_buf_ as Color | number | string | Resource) 17904 } 17905 const checkedBackgroundColor_result: ResourceColor | undefined|undefined = checkedBackgroundColor_buf 17906 const uncheckedBorderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17907 let uncheckedBorderColor_buf: ResourceColor | undefined|undefined 17908 if ((RuntimeType.UNDEFINED) != (uncheckedBorderColor_buf_runtimeType)) 17909 { 17910 const uncheckedBorderColor_buf__selector: number = valueDeserializer.readInt8() 17911 let uncheckedBorderColor_buf_: Color | number | string | Resource | undefined|undefined 17912 if (uncheckedBorderColor_buf__selector == 0) { 17913 uncheckedBorderColor_buf_ = (valueDeserializer.readInt32() as Color) 17914 } 17915 else if (uncheckedBorderColor_buf__selector == 1) { 17916 uncheckedBorderColor_buf_ = (valueDeserializer.readNumber() as number) 17917 } 17918 else if (uncheckedBorderColor_buf__selector == 2) { 17919 uncheckedBorderColor_buf_ = (valueDeserializer.readString() as string) 17920 } 17921 else if (uncheckedBorderColor_buf__selector == 3) { 17922 uncheckedBorderColor_buf_ = valueDeserializer.readResource() 17923 } 17924 else { 17925 throw new Error("One of the branches for uncheckedBorderColor_buf_ has to be chosen through deserialisation.") 17926 } 17927 uncheckedBorderColor_buf = (uncheckedBorderColor_buf_ as Color | number | string | Resource) 17928 } 17929 const uncheckedBorderColor_result: ResourceColor | undefined|undefined = uncheckedBorderColor_buf 17930 const indicatorColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17931 let indicatorColor_buf: ResourceColor | undefined|undefined 17932 if ((RuntimeType.UNDEFINED) != (indicatorColor_buf_runtimeType)) 17933 { 17934 const indicatorColor_buf__selector: number = valueDeserializer.readInt8() 17935 let indicatorColor_buf_: Color | number | string | Resource | undefined|undefined 17936 if (indicatorColor_buf__selector == 0) { 17937 indicatorColor_buf_ = (valueDeserializer.readInt32() as Color) 17938 } 17939 else if (indicatorColor_buf__selector == 1) { 17940 indicatorColor_buf_ = (valueDeserializer.readNumber() as number) 17941 } 17942 else if (indicatorColor_buf__selector == 2) { 17943 indicatorColor_buf_ = (valueDeserializer.readString() as string) 17944 } 17945 else if (indicatorColor_buf__selector == 3) { 17946 indicatorColor_buf_ = valueDeserializer.readResource() 17947 } 17948 else { 17949 throw new Error("One of the branches for indicatorColor_buf_ has to be chosen through deserialisation.") 17950 } 17951 indicatorColor_buf = (indicatorColor_buf_ as Color | number | string | Resource) 17952 } 17953 const indicatorColor_result: ResourceColor | undefined|undefined = indicatorColor_buf 17954 let value: RadioStyle = ({checkedBackgroundColor: checkedBackgroundColor_result, uncheckedBorderColor: uncheckedBorderColor_result, indicatorColor: indicatorColor_result} as RadioStyle) 17955 return value 17956 } 17957 readRadioOptions(): RadioOptions { 17958 let valueDeserializer: Deserializer = this 17959 const group_result: string = (valueDeserializer.readString() as string) 17960 const value_result: string = (valueDeserializer.readString() as string) 17961 const indicatorType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17962 let indicatorType_buf: RadioIndicatorType | undefined|undefined 17963 if ((RuntimeType.UNDEFINED) != (indicatorType_buf_runtimeType)) 17964 { 17965 indicatorType_buf = (valueDeserializer.readInt32() as RadioIndicatorType) 17966 } 17967 const indicatorType_result: RadioIndicatorType | undefined|undefined = indicatorType_buf 17968 const indicatorBuilder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17969 let indicatorBuilder_buf: CustomBuilder | undefined|undefined 17970 if ((RuntimeType.UNDEFINED) != (indicatorBuilder_buf_runtimeType)) 17971 { 17972 indicatorBuilder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 17973 } 17974 const indicatorBuilder_result: CustomBuilder | undefined|undefined = indicatorBuilder_buf 17975 let value: RadioOptions = ({group: group_result, value: value_result, indicatorType: indicatorType_result, indicatorBuilder: indicatorBuilder_result} as RadioOptions) 17976 return value 17977 } 17978 readProgressOptions(): ProgressOptions { 17979 let valueDeserializer: Deserializer = this 17980 const value_result: number = (valueDeserializer.readNumber() as number) 17981 const total_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17982 let total_buf: number | undefined|undefined 17983 if ((RuntimeType.UNDEFINED) != (total_buf_runtimeType)) 17984 { 17985 total_buf = (valueDeserializer.readNumber() as number) 17986 } 17987 const total_result: number | undefined|undefined = total_buf 17988 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17989 let style_buf: ProgressStyle | undefined|undefined 17990 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 17991 { 17992 style_buf = (valueDeserializer.readInt32() as ProgressStyle) 17993 } 17994 const style_result: ProgressStyle | undefined|undefined = style_buf 17995 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17996 let type_buf: ProgressType | undefined|undefined 17997 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 17998 { 17999 type_buf = (valueDeserializer.readInt32() as ProgressType) 18000 } 18001 const type_result: ProgressType | undefined|undefined = type_buf 18002 let value: ProgressOptions = ({value: value_result, total: total_result, style: style_result, type: type_result} as ProgressOptions) 18003 return value 18004 } 18005 readPolylineOptions(): PolylineOptions { 18006 let valueDeserializer: Deserializer = this 18007 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18008 let width_buf: string | number | undefined|undefined 18009 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18010 { 18011 const width_buf__selector: number = valueDeserializer.readInt8() 18012 let width_buf_: string | number | undefined|undefined 18013 if (width_buf__selector == 0) { 18014 width_buf_ = (valueDeserializer.readString() as string) 18015 } 18016 else if (width_buf__selector == 1) { 18017 width_buf_ = (valueDeserializer.readNumber() as number) 18018 } 18019 else { 18020 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18021 } 18022 width_buf = (width_buf_ as string | number) 18023 } 18024 const width_result: string | number | undefined|undefined = width_buf 18025 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18026 let height_buf: string | number | undefined|undefined 18027 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18028 { 18029 const height_buf__selector: number = valueDeserializer.readInt8() 18030 let height_buf_: string | number | undefined|undefined 18031 if (height_buf__selector == 0) { 18032 height_buf_ = (valueDeserializer.readString() as string) 18033 } 18034 else if (height_buf__selector == 1) { 18035 height_buf_ = (valueDeserializer.readNumber() as number) 18036 } 18037 else { 18038 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18039 } 18040 height_buf = (height_buf_ as string | number) 18041 } 18042 const height_result: string | number | undefined|undefined = height_buf 18043 let value: PolylineOptions = ({width: width_result, height: height_result} as PolylineOptions) 18044 return value 18045 } 18046 readPoint(): Point { 18047 let valueDeserializer: Deserializer = this 18048 const x_result: number = (valueDeserializer.readNumber() as number) 18049 const y_result: number = (valueDeserializer.readNumber() as number) 18050 let value: Point = ({x: x_result, y: y_result} as Point) 18051 return value 18052 } 18053 readPolygonOptions(): PolygonOptions { 18054 let valueDeserializer: Deserializer = this 18055 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18056 let width_buf: string | number | undefined|undefined 18057 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18058 { 18059 const width_buf__selector: number = valueDeserializer.readInt8() 18060 let width_buf_: string | number | undefined|undefined 18061 if (width_buf__selector == 0) { 18062 width_buf_ = (valueDeserializer.readString() as string) 18063 } 18064 else if (width_buf__selector == 1) { 18065 width_buf_ = (valueDeserializer.readNumber() as number) 18066 } 18067 else { 18068 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18069 } 18070 width_buf = (width_buf_ as string | number) 18071 } 18072 const width_result: string | number | undefined|undefined = width_buf 18073 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18074 let height_buf: string | number | undefined|undefined 18075 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18076 { 18077 const height_buf__selector: number = valueDeserializer.readInt8() 18078 let height_buf_: string | number | undefined|undefined 18079 if (height_buf__selector == 0) { 18080 height_buf_ = (valueDeserializer.readString() as string) 18081 } 18082 else if (height_buf__selector == 1) { 18083 height_buf_ = (valueDeserializer.readNumber() as number) 18084 } 18085 else { 18086 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18087 } 18088 height_buf = (height_buf_ as string | number) 18089 } 18090 const height_result: string | number | undefined|undefined = height_buf 18091 let value: PolygonOptions = ({width: width_result, height: height_result} as PolygonOptions) 18092 return value 18093 } 18094 readPluginErrorData(): PluginErrorData { 18095 let valueDeserializer: Deserializer = this 18096 const errcode_result: number = (valueDeserializer.readNumber() as number) 18097 const msg_result: string = (valueDeserializer.readString() as string) 18098 let value: PluginErrorData = ({errcode: errcode_result, msg: msg_result} as PluginErrorData) 18099 return value 18100 } 18101 readPluginErrorCallback(isSync: boolean = false): PluginErrorCallback { 18102 const _resource: CallbackResource = this.readCallbackResource() 18103 const _call: KPointer = this.readPointer() 18104 const _callSync: KPointer = this.readPointer() 18105 return (info: PluginErrorData): void => { 18106 const _argsSerializer: Serializer = Serializer.hold(); 18107 _argsSerializer.writeInt32(_resource.resourceId); 18108 _argsSerializer.writePointer(_call); 18109 _argsSerializer.writePointer(_callSync); 18110 _argsSerializer.writePluginErrorData(info); 18111 (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); 18112 _argsSerializer.release(); 18113 return; } 18114 } 18115 readPluginComponentOptions(): PluginComponentOptions { 18116 let valueDeserializer: Deserializer = this 18117 const template_result: PluginComponentTemplate = valueDeserializer.readPluginComponentTemplate() 18118 const data_result: string = (valueDeserializer.readString() as string) 18119 let value: PluginComponentOptions = ({template: template_result, data: data_result} as PluginComponentOptions) 18120 return value 18121 } 18122 readCallback_Array_Number_Void(isSync: boolean = false): ((input: Array<number>) => void) { 18123 const _resource: CallbackResource = this.readCallbackResource() 18124 const _call: KPointer = this.readPointer() 18125 const _callSync: KPointer = this.readPointer() 18126 return (input: Array<number>): void => { 18127 const _argsSerializer: Serializer = Serializer.hold(); 18128 _argsSerializer.writeInt32(_resource.resourceId); 18129 _argsSerializer.writePointer(_call); 18130 _argsSerializer.writePointer(_callSync); 18131 _argsSerializer.writeInt32(input.length); 18132 for (let i = 0; i < input.length; i++) { 18133 const input_element: number = input[i]; 18134 _argsSerializer.writeNumber(input_element); 18135 } 18136 (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); 18137 _argsSerializer.release(); 18138 return; } 18139 } 18140 readPatternLockController(): PatternLockController { 18141 let valueDeserializer: Deserializer = this 18142 let ptr: KPointer = valueDeserializer.readPointer() 18143 return PatternLockControllerInternal.fromPtr(ptr) 18144 } 18145 readPathOptions(): PathOptions { 18146 let valueDeserializer: Deserializer = this 18147 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18148 let width_buf: number | string | undefined|undefined 18149 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18150 { 18151 const width_buf__selector: number = valueDeserializer.readInt8() 18152 let width_buf_: number | string | undefined|undefined 18153 if (width_buf__selector == 0) { 18154 width_buf_ = (valueDeserializer.readNumber() as number) 18155 } 18156 else if (width_buf__selector == 1) { 18157 width_buf_ = (valueDeserializer.readString() as string) 18158 } 18159 else { 18160 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18161 } 18162 width_buf = (width_buf_ as number | string) 18163 } 18164 const width_result: number | string | undefined|undefined = width_buf 18165 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18166 let height_buf: number | string | undefined|undefined 18167 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18168 { 18169 const height_buf__selector: number = valueDeserializer.readInt8() 18170 let height_buf_: number | string | undefined|undefined 18171 if (height_buf__selector == 0) { 18172 height_buf_ = (valueDeserializer.readNumber() as number) 18173 } 18174 else if (height_buf__selector == 1) { 18175 height_buf_ = (valueDeserializer.readString() as string) 18176 } 18177 else { 18178 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18179 } 18180 height_buf = (height_buf_ as number | string) 18181 } 18182 const height_result: number | string | undefined|undefined = height_buf 18183 const commands_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18184 let commands_buf: string | undefined|undefined 18185 if ((RuntimeType.UNDEFINED) != (commands_buf_runtimeType)) 18186 { 18187 commands_buf = (valueDeserializer.readString() as string) 18188 } 18189 const commands_result: string | undefined|undefined = commands_buf 18190 let value: PathOptions = ({width: width_result, height: height_result, commands: commands_result} as PathOptions) 18191 return value 18192 } 18193 readCallback_ClickEvent_PasteButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent, result: PasteButtonOnClickResult) => void) { 18194 const _resource: CallbackResource = this.readCallbackResource() 18195 const _call: KPointer = this.readPointer() 18196 const _callSync: KPointer = this.readPointer() 18197 return (event: ClickEvent, result: PasteButtonOnClickResult): void => { 18198 const _argsSerializer: Serializer = Serializer.hold(); 18199 _argsSerializer.writeInt32(_resource.resourceId); 18200 _argsSerializer.writePointer(_call); 18201 _argsSerializer.writePointer(_callSync); 18202 _argsSerializer.writeClickEvent(event); 18203 _argsSerializer.writeInt32(result); 18204 (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); 18205 _argsSerializer.release(); 18206 return; } 18207 } 18208 readPasteButtonOptions(): PasteButtonOptions { 18209 let valueDeserializer: Deserializer = this 18210 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18211 let icon_buf: PasteIconStyle | undefined|undefined 18212 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18213 { 18214 icon_buf = (valueDeserializer.readInt32() as PasteIconStyle) 18215 } 18216 const icon_result: PasteIconStyle | undefined|undefined = icon_buf 18217 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18218 let text_buf: PasteDescription | undefined|undefined 18219 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 18220 { 18221 text_buf = (valueDeserializer.readInt32() as PasteDescription) 18222 } 18223 const text_result: PasteDescription | undefined|undefined = text_buf 18224 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18225 let buttonType_buf: ButtonType | undefined|undefined 18226 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 18227 { 18228 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 18229 } 18230 const buttonType_result: ButtonType | undefined|undefined = buttonType_buf 18231 let value: PasteButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as PasteButtonOptions) 18232 return value 18233 } 18234 readCallback_Number_Number_PanelMode_Void(isSync: boolean = false): ((width: number, height: number, mode: PanelMode) => void) { 18235 const _resource: CallbackResource = this.readCallbackResource() 18236 const _call: KPointer = this.readPointer() 18237 const _callSync: KPointer = this.readPointer() 18238 return (width: number, height: number, mode: PanelMode): void => { 18239 const _argsSerializer: Serializer = Serializer.hold(); 18240 _argsSerializer.writeInt32(_resource.resourceId); 18241 _argsSerializer.writePointer(_call); 18242 _argsSerializer.writePointer(_callSync); 18243 _argsSerializer.writeNumber(width); 18244 _argsSerializer.writeNumber(height); 18245 _argsSerializer.writeInt32(mode); 18246 (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); 18247 _argsSerializer.release(); 18248 return; } 18249 } 18250 readNodeController(): NodeController { 18251 let value: NodeController = ({} as NodeController) 18252 return value 18253 } 18254 readNavigationTransitionProxy(): NavigationTransitionProxy { 18255 let valueDeserializer: Deserializer = this 18256 let ptr: KPointer = valueDeserializer.readPointer() 18257 return NavigationTransitionProxyInternal.fromPtr(ptr) 18258 } 18259 readRouteInfo(): RouteInfo { 18260 let valueDeserializer: Deserializer = this 18261 const name_result: string = (valueDeserializer.readString() as string) 18262 const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18263 let param_buf: unknown | undefined|undefined 18264 if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) 18265 { 18266 param_buf = (valueDeserializer.readCustomObject("Any") as Object) 18267 } 18268 const param_result: unknown | undefined|undefined = param_buf 18269 let value: RouteInfo = ({name: name_result, param: param_result} as RouteInfo) 18270 return value 18271 } 18272 readToolbarItem(): ToolbarItem { 18273 let valueDeserializer: Deserializer = this 18274 const value_buf_selector: number = valueDeserializer.readInt8() 18275 let value_buf: string | Resource | undefined|undefined 18276 if (value_buf_selector == 0) { 18277 value_buf = (valueDeserializer.readString() as string) 18278 } 18279 else if (value_buf_selector == 1) { 18280 value_buf = valueDeserializer.readResource() 18281 } 18282 else { 18283 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 18284 } 18285 const value_result: ResourceStr = (value_buf as string | Resource) 18286 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18287 let icon_buf: ResourceStr | undefined|undefined 18288 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18289 { 18290 const icon_buf__selector: number = valueDeserializer.readInt8() 18291 let icon_buf_: string | Resource | undefined|undefined 18292 if (icon_buf__selector == 0) { 18293 icon_buf_ = (valueDeserializer.readString() as string) 18294 } 18295 else if (icon_buf__selector == 1) { 18296 icon_buf_ = valueDeserializer.readResource() 18297 } 18298 else { 18299 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 18300 } 18301 icon_buf = (icon_buf_ as string | Resource) 18302 } 18303 const icon_result: ResourceStr | undefined|undefined = icon_buf 18304 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18305 let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined 18306 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 18307 { 18308 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18309 } 18310 const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf 18311 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18312 let action_buf: (() => void) | undefined|undefined 18313 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 18314 { 18315 action_buf = valueDeserializer.readCallback_Void() 18316 } 18317 const action_result: (() => void) | undefined|undefined = action_buf 18318 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18319 let status_buf: ToolbarItemStatus | undefined|undefined 18320 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 18321 { 18322 status_buf = (valueDeserializer.readInt32() as ToolbarItemStatus) 18323 } 18324 const status_result: ToolbarItemStatus | undefined|undefined = status_buf 18325 const activeIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18326 let activeIcon_buf: ResourceStr | undefined|undefined 18327 if ((RuntimeType.UNDEFINED) != (activeIcon_buf_runtimeType)) 18328 { 18329 const activeIcon_buf__selector: number = valueDeserializer.readInt8() 18330 let activeIcon_buf_: string | Resource | undefined|undefined 18331 if (activeIcon_buf__selector == 0) { 18332 activeIcon_buf_ = (valueDeserializer.readString() as string) 18333 } 18334 else if (activeIcon_buf__selector == 1) { 18335 activeIcon_buf_ = valueDeserializer.readResource() 18336 } 18337 else { 18338 throw new Error("One of the branches for activeIcon_buf_ has to be chosen through deserialisation.") 18339 } 18340 activeIcon_buf = (activeIcon_buf_ as string | Resource) 18341 } 18342 const activeIcon_result: ResourceStr | undefined|undefined = activeIcon_buf 18343 const activeSymbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18344 let activeSymbolIcon_buf: SymbolGlyphModifier | undefined|undefined 18345 if ((RuntimeType.UNDEFINED) != (activeSymbolIcon_buf_runtimeType)) 18346 { 18347 activeSymbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18348 } 18349 const activeSymbolIcon_result: SymbolGlyphModifier | undefined|undefined = activeSymbolIcon_buf 18350 let value: ToolbarItem = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, action: action_result, status: status_result, activeIcon: activeIcon_result, activeSymbolIcon: activeSymbolIcon_result} as ToolbarItem) 18351 return value 18352 } 18353 readCallback_NavDestinationContext_Void(isSync: boolean = false): ((parameter: NavDestinationContext) => void) { 18354 const _resource: CallbackResource = this.readCallbackResource() 18355 const _call: KPointer = this.readPointer() 18356 const _callSync: KPointer = this.readPointer() 18357 return (parameter: NavDestinationContext): void => { 18358 const _argsSerializer: Serializer = Serializer.hold(); 18359 _argsSerializer.writeInt32(_resource.resourceId); 18360 _argsSerializer.writePointer(_call); 18361 _argsSerializer.writePointer(_callSync); 18362 _argsSerializer.writeNavDestinationContext(parameter); 18363 (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); 18364 _argsSerializer.release(); 18365 return; } 18366 } 18367 readNavigationMenuItem(): NavigationMenuItem { 18368 let valueDeserializer: Deserializer = this 18369 const value_buf_selector: number = valueDeserializer.readInt8() 18370 let value_buf: string | Resource | undefined|undefined 18371 if (value_buf_selector == 0) { 18372 value_buf = (valueDeserializer.readString() as string) 18373 } 18374 else if (value_buf_selector == 1) { 18375 value_buf = valueDeserializer.readResource() 18376 } 18377 else { 18378 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 18379 } 18380 const value_result: string | Resource = (value_buf as string | Resource) 18381 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18382 let icon_buf: string | Resource | undefined|undefined 18383 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18384 { 18385 const icon_buf__selector: number = valueDeserializer.readInt8() 18386 let icon_buf_: string | Resource | undefined|undefined 18387 if (icon_buf__selector == 0) { 18388 icon_buf_ = (valueDeserializer.readString() as string) 18389 } 18390 else if (icon_buf__selector == 1) { 18391 icon_buf_ = valueDeserializer.readResource() 18392 } 18393 else { 18394 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 18395 } 18396 icon_buf = (icon_buf_ as string | Resource) 18397 } 18398 const icon_result: string | Resource | undefined|undefined = icon_buf 18399 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18400 let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined 18401 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 18402 { 18403 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18404 } 18405 const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf 18406 const isEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18407 let isEnabled_buf: boolean | undefined|undefined 18408 if ((RuntimeType.UNDEFINED) != (isEnabled_buf_runtimeType)) 18409 { 18410 isEnabled_buf = valueDeserializer.readBoolean() 18411 } 18412 const isEnabled_result: boolean | undefined|undefined = isEnabled_buf 18413 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18414 let action_buf: (() => void) | undefined|undefined 18415 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 18416 { 18417 action_buf = valueDeserializer.readCallback_Void() 18418 } 18419 const action_result: (() => void) | undefined|undefined = action_buf 18420 let value: NavigationMenuItem = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, isEnabled: isEnabled_result, action: action_result} as NavigationMenuItem) 18421 return value 18422 } 18423 readCallback_Boolean(isSync: boolean = false): (() => boolean) { 18424 const _resource: CallbackResource = this.readCallbackResource() 18425 const _call: KPointer = this.readPointer() 18426 const _callSync: KPointer = this.readPointer() 18427 return (): boolean => { 18428 const _argsSerializer: Serializer = Serializer.hold(); 18429 _argsSerializer.writeInt32(_resource.resourceId); 18430 _argsSerializer.writePointer(_call); 18431 _argsSerializer.writePointer(_callSync); 18432 let _continuationValue: boolean | undefined|undefined ; 18433 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 18434 _argsSerializer.holdAndWriteCallback(_continuationCallback); 18435 (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); 18436 _argsSerializer.release(); 18437 return (_continuationValue as boolean); } 18438 } 18439 readPopInfo(): PopInfo { 18440 let valueDeserializer: Deserializer = this 18441 const info_result: NavPathInfo = (valueDeserializer.readNavPathInfo() as NavPathInfo) 18442 const result_result: Object = (valueDeserializer.readCustomObject("Object") as Object) 18443 let value: PopInfo = ({info: info_result, result: result_result} as PopInfo) 18444 return value 18445 } 18446 readMenuItemGroupOptions(): MenuItemGroupOptions { 18447 let valueDeserializer: Deserializer = this 18448 const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18449 let header_buf: ResourceStr | CustomBuilder | undefined|undefined 18450 if ((RuntimeType.UNDEFINED) != (header_buf_runtimeType)) 18451 { 18452 const header_buf__selector: number = valueDeserializer.readInt8() 18453 let header_buf_: ResourceStr | CustomBuilder | undefined|undefined 18454 if (header_buf__selector == 0) { 18455 const header_buf__u_selector: number = valueDeserializer.readInt8() 18456 let header_buf__u: string | Resource | undefined|undefined 18457 if (header_buf__u_selector == 0) { 18458 header_buf__u = (valueDeserializer.readString() as string) 18459 } 18460 else if (header_buf__u_selector == 1) { 18461 header_buf__u = valueDeserializer.readResource() 18462 } 18463 else { 18464 throw new Error("One of the branches for header_buf__u has to be chosen through deserialisation.") 18465 } 18466 header_buf_ = (header_buf__u as string | Resource) 18467 } 18468 else if (header_buf__selector == 1) { 18469 header_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18470 } 18471 else { 18472 throw new Error("One of the branches for header_buf_ has to be chosen through deserialisation.") 18473 } 18474 header_buf = (header_buf_ as ResourceStr | CustomBuilder) 18475 } 18476 const header_result: ResourceStr | CustomBuilder | undefined|undefined = header_buf 18477 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18478 let footer_buf: ResourceStr | CustomBuilder | undefined|undefined 18479 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 18480 { 18481 const footer_buf__selector: number = valueDeserializer.readInt8() 18482 let footer_buf_: ResourceStr | CustomBuilder | undefined|undefined 18483 if (footer_buf__selector == 0) { 18484 const footer_buf__u_selector: number = valueDeserializer.readInt8() 18485 let footer_buf__u: string | Resource | undefined|undefined 18486 if (footer_buf__u_selector == 0) { 18487 footer_buf__u = (valueDeserializer.readString() as string) 18488 } 18489 else if (footer_buf__u_selector == 1) { 18490 footer_buf__u = valueDeserializer.readResource() 18491 } 18492 else { 18493 throw new Error("One of the branches for footer_buf__u has to be chosen through deserialisation.") 18494 } 18495 footer_buf_ = (footer_buf__u as string | Resource) 18496 } 18497 else if (footer_buf__selector == 1) { 18498 footer_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18499 } 18500 else { 18501 throw new Error("One of the branches for footer_buf_ has to be chosen through deserialisation.") 18502 } 18503 footer_buf = (footer_buf_ as ResourceStr | CustomBuilder) 18504 } 18505 const footer_result: ResourceStr | CustomBuilder | undefined|undefined = footer_buf 18506 let value: MenuItemGroupOptions = ({header: header_result, footer: footer_result} as MenuItemGroupOptions) 18507 return value 18508 } 18509 readMarqueeOptions(): MarqueeOptions { 18510 let valueDeserializer: Deserializer = this 18511 const start_result: boolean = valueDeserializer.readBoolean() 18512 const step_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18513 let step_buf: number | undefined|undefined 18514 if ((RuntimeType.UNDEFINED) != (step_buf_runtimeType)) 18515 { 18516 step_buf = (valueDeserializer.readNumber() as number) 18517 } 18518 const step_result: number | undefined|undefined = step_buf 18519 const loop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18520 let loop_buf: number | undefined|undefined 18521 if ((RuntimeType.UNDEFINED) != (loop_buf_runtimeType)) 18522 { 18523 loop_buf = (valueDeserializer.readNumber() as number) 18524 } 18525 const loop_result: number | undefined|undefined = loop_buf 18526 const fromStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18527 let fromStart_buf: boolean | undefined|undefined 18528 if ((RuntimeType.UNDEFINED) != (fromStart_buf_runtimeType)) 18529 { 18530 fromStart_buf = valueDeserializer.readBoolean() 18531 } 18532 const fromStart_result: boolean | undefined|undefined = fromStart_buf 18533 const src_result: string = (valueDeserializer.readString() as string) 18534 let value: MarqueeOptions = ({start: start_result, step: step_result, loop: loop_result, fromStart: fromStart_result, src: src_result} as MarqueeOptions) 18535 return value 18536 } 18537 readCallback_ClickEvent_LocationButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent, result: LocationButtonOnClickResult) => void) { 18538 const _resource: CallbackResource = this.readCallbackResource() 18539 const _call: KPointer = this.readPointer() 18540 const _callSync: KPointer = this.readPointer() 18541 return (event: ClickEvent, result: LocationButtonOnClickResult): void => { 18542 const _argsSerializer: Serializer = Serializer.hold(); 18543 _argsSerializer.writeInt32(_resource.resourceId); 18544 _argsSerializer.writePointer(_call); 18545 _argsSerializer.writePointer(_callSync); 18546 _argsSerializer.writeClickEvent(event); 18547 _argsSerializer.writeInt32(result); 18548 (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); 18549 _argsSerializer.release(); 18550 return; } 18551 } 18552 readLocationButtonOptions(): LocationButtonOptions { 18553 let valueDeserializer: Deserializer = this 18554 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18555 let icon_buf: LocationIconStyle | undefined|undefined 18556 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18557 { 18558 icon_buf = (valueDeserializer.readInt32() as LocationIconStyle) 18559 } 18560 const icon_result: LocationIconStyle | undefined|undefined = icon_buf 18561 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18562 let text_buf: LocationDescription | undefined|undefined 18563 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 18564 { 18565 text_buf = (valueDeserializer.readInt32() as LocationDescription) 18566 } 18567 const text_result: LocationDescription | undefined|undefined = text_buf 18568 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18569 let buttonType_buf: ButtonType | undefined|undefined 18570 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 18571 { 18572 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 18573 } 18574 const buttonType_result: ButtonType | undefined|undefined = buttonType_buf 18575 let value: LocationButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as LocationButtonOptions) 18576 return value 18577 } 18578 readListItemGroupOptions(): ListItemGroupOptions { 18579 let valueDeserializer: Deserializer = this 18580 const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18581 let header_buf: CustomBuilder | undefined|undefined 18582 if ((RuntimeType.UNDEFINED) != (header_buf_runtimeType)) 18583 { 18584 header_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18585 } 18586 const header_result: CustomBuilder | undefined|undefined = header_buf 18587 const headerComponent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18588 let headerComponent_buf: ComponentContent | undefined|undefined 18589 if ((RuntimeType.UNDEFINED) != (headerComponent_buf_runtimeType)) 18590 { 18591 headerComponent_buf = valueDeserializer.readComponentContent() 18592 } 18593 const headerComponent_result: ComponentContent | undefined|undefined = headerComponent_buf 18594 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18595 let footer_buf: CustomBuilder | undefined|undefined 18596 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 18597 { 18598 footer_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18599 } 18600 const footer_result: CustomBuilder | undefined|undefined = footer_buf 18601 const footerComponent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18602 let footerComponent_buf: ComponentContent | undefined|undefined 18603 if ((RuntimeType.UNDEFINED) != (footerComponent_buf_runtimeType)) 18604 { 18605 footerComponent_buf = valueDeserializer.readComponentContent() 18606 } 18607 const footerComponent_result: ComponentContent | undefined|undefined = footerComponent_buf 18608 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18609 let space_buf: number | string | undefined|undefined 18610 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 18611 { 18612 const space_buf__selector: number = valueDeserializer.readInt8() 18613 let space_buf_: number | string | undefined|undefined 18614 if (space_buf__selector == 0) { 18615 space_buf_ = (valueDeserializer.readNumber() as number) 18616 } 18617 else if (space_buf__selector == 1) { 18618 space_buf_ = (valueDeserializer.readString() as string) 18619 } 18620 else { 18621 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 18622 } 18623 space_buf = (space_buf_ as number | string) 18624 } 18625 const space_result: number | string | undefined|undefined = space_buf 18626 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18627 let style_buf: ListItemGroupStyle | undefined|undefined 18628 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 18629 { 18630 style_buf = (valueDeserializer.readInt32() as ListItemGroupStyle) 18631 } 18632 const style_result: ListItemGroupStyle | undefined|undefined = style_buf 18633 let value: ListItemGroupOptions = ({header: header_result, headerComponent: headerComponent_result, footer: footer_result, footerComponent: footerComponent_result, space: space_result, style: style_result} as ListItemGroupOptions) 18634 return value 18635 } 18636 readSwipeActionOptions(): SwipeActionOptions { 18637 let valueDeserializer: Deserializer = this 18638 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18639 let start_buf: CustomBuilder | SwipeActionItem | undefined|undefined 18640 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 18641 { 18642 const start_buf__selector: number = valueDeserializer.readInt8() 18643 let start_buf_: CustomBuilder | SwipeActionItem | undefined|undefined 18644 if (start_buf__selector == 0) { 18645 start_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18646 } 18647 else if (start_buf__selector == 1) { 18648 start_buf_ = valueDeserializer.readSwipeActionItem() 18649 } 18650 else { 18651 throw new Error("One of the branches for start_buf_ has to be chosen through deserialisation.") 18652 } 18653 start_buf = (start_buf_ as CustomBuilder | SwipeActionItem) 18654 } 18655 const start_result: CustomBuilder | SwipeActionItem | undefined|undefined = start_buf 18656 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18657 let end_buf: CustomBuilder | SwipeActionItem | undefined|undefined 18658 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 18659 { 18660 const end_buf__selector: number = valueDeserializer.readInt8() 18661 let end_buf_: CustomBuilder | SwipeActionItem | undefined|undefined 18662 if (end_buf__selector == 0) { 18663 end_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18664 } 18665 else if (end_buf__selector == 1) { 18666 end_buf_ = valueDeserializer.readSwipeActionItem() 18667 } 18668 else { 18669 throw new Error("One of the branches for end_buf_ has to be chosen through deserialisation.") 18670 } 18671 end_buf = (end_buf_ as CustomBuilder | SwipeActionItem) 18672 } 18673 const end_result: CustomBuilder | SwipeActionItem | undefined|undefined = end_buf 18674 const edgeEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18675 let edgeEffect_buf: SwipeEdgeEffect | undefined|undefined 18676 if ((RuntimeType.UNDEFINED) != (edgeEffect_buf_runtimeType)) 18677 { 18678 edgeEffect_buf = (valueDeserializer.readInt32() as SwipeEdgeEffect) 18679 } 18680 const edgeEffect_result: SwipeEdgeEffect | undefined|undefined = edgeEffect_buf 18681 const onOffsetChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18682 let onOffsetChange_buf: ((index: number) => void) | undefined|undefined 18683 if ((RuntimeType.UNDEFINED) != (onOffsetChange_buf_runtimeType)) 18684 { 18685 onOffsetChange_buf = valueDeserializer.readCallback_Number_Void() 18686 } 18687 const onOffsetChange_result: ((index: number) => void) | undefined|undefined = onOffsetChange_buf 18688 let value: SwipeActionOptions = ({start: start_result, end: end_result, edgeEffect: edgeEffect_result, onOffsetChange: onOffsetChange_result} as SwipeActionOptions) 18689 return value 18690 } 18691 readListItemOptions(): ListItemOptions { 18692 let valueDeserializer: Deserializer = this 18693 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18694 let style_buf: ListItemStyle | undefined|undefined 18695 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 18696 { 18697 style_buf = (valueDeserializer.readInt32() as ListItemStyle) 18698 } 18699 const style_result: ListItemStyle | undefined|undefined = style_buf 18700 let value: ListItemOptions = ({style: style_result} as ListItemOptions) 18701 return value 18702 } 18703 readCallback_Number_Number_Boolean(isSync: boolean = false): ((from: number, to: number) => boolean) { 18704 const _resource: CallbackResource = this.readCallbackResource() 18705 const _call: KPointer = this.readPointer() 18706 const _callSync: KPointer = this.readPointer() 18707 return (from: number, to: number): boolean => { 18708 const _argsSerializer: Serializer = Serializer.hold(); 18709 _argsSerializer.writeInt32(_resource.resourceId); 18710 _argsSerializer.writePointer(_call); 18711 _argsSerializer.writePointer(_callSync); 18712 _argsSerializer.writeNumber(from); 18713 _argsSerializer.writeNumber(to); 18714 let _continuationValue: boolean | undefined|undefined ; 18715 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 18716 _argsSerializer.holdAndWriteCallback(_continuationCallback); 18717 (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); 18718 _argsSerializer.release(); 18719 return (_continuationValue as boolean); } 18720 } 18721 readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { 18722 const _resource: CallbackResource = this.readCallbackResource() 18723 const _call: KPointer = this.readPointer() 18724 const _callSync: KPointer = this.readPointer() 18725 return (index: number): boolean => { 18726 const _argsSerializer: Serializer = Serializer.hold(); 18727 _argsSerializer.writeInt32(_resource.resourceId); 18728 _argsSerializer.writePointer(_call); 18729 _argsSerializer.writePointer(_callSync); 18730 _argsSerializer.writeNumber(index); 18731 let _continuationValue: boolean | undefined|undefined ; 18732 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 18733 _argsSerializer.holdAndWriteCallback(_continuationCallback); 18734 (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); 18735 _argsSerializer.release(); 18736 return (_continuationValue as boolean); } 18737 } 18738 readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { 18739 const _resource: CallbackResource = this.readCallbackResource() 18740 const _call: KPointer = this.readPointer() 18741 const _callSync: KPointer = this.readPointer() 18742 return (start: VisibleListContentInfo, end: VisibleListContentInfo): void => { 18743 const _argsSerializer: Serializer = Serializer.hold(); 18744 _argsSerializer.writeInt32(_resource.resourceId); 18745 _argsSerializer.writePointer(_call); 18746 _argsSerializer.writePointer(_callSync); 18747 _argsSerializer.writeVisibleListContentInfo(start); 18748 _argsSerializer.writeVisibleListContentInfo(end); 18749 (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); 18750 _argsSerializer.release(); 18751 return; } 18752 } 18753 readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number, end: number, center: number) => void) { 18754 const _resource: CallbackResource = this.readCallbackResource() 18755 const _call: KPointer = this.readPointer() 18756 const _callSync: KPointer = this.readPointer() 18757 return (start: number, end: number, center: number): void => { 18758 const _argsSerializer: Serializer = Serializer.hold(); 18759 _argsSerializer.writeInt32(_resource.resourceId); 18760 _argsSerializer.writePointer(_call); 18761 _argsSerializer.writePointer(_callSync); 18762 _argsSerializer.writeNumber(start); 18763 _argsSerializer.writeNumber(end); 18764 _argsSerializer.writeNumber(center); 18765 (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); 18766 _argsSerializer.release(); 18767 return; } 18768 } 18769 readChainAnimationOptions(): ChainAnimationOptions { 18770 let valueDeserializer: Deserializer = this 18771 const minSpace_result: Length = (valueDeserializer.readLength() as Length) 18772 const maxSpace_result: Length = (valueDeserializer.readLength() as Length) 18773 const conductivity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18774 let conductivity_buf: number | undefined|undefined 18775 if ((RuntimeType.UNDEFINED) != (conductivity_buf_runtimeType)) 18776 { 18777 conductivity_buf = (valueDeserializer.readNumber() as number) 18778 } 18779 const conductivity_result: number | undefined|undefined = conductivity_buf 18780 const intensity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18781 let intensity_buf: number | undefined|undefined 18782 if ((RuntimeType.UNDEFINED) != (intensity_buf_runtimeType)) 18783 { 18784 intensity_buf = (valueDeserializer.readNumber() as number) 18785 } 18786 const intensity_result: number | undefined|undefined = intensity_buf 18787 const edgeEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18788 let edgeEffect_buf: ChainEdgeEffect | undefined|undefined 18789 if ((RuntimeType.UNDEFINED) != (edgeEffect_buf_runtimeType)) 18790 { 18791 edgeEffect_buf = (valueDeserializer.readInt32() as ChainEdgeEffect) 18792 } 18793 const edgeEffect_result: ChainEdgeEffect | undefined|undefined = edgeEffect_buf 18794 const stiffness_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18795 let stiffness_buf: number | undefined|undefined 18796 if ((RuntimeType.UNDEFINED) != (stiffness_buf_runtimeType)) 18797 { 18798 stiffness_buf = (valueDeserializer.readNumber() as number) 18799 } 18800 const stiffness_result: number | undefined|undefined = stiffness_buf 18801 const damping_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18802 let damping_buf: number | undefined|undefined 18803 if ((RuntimeType.UNDEFINED) != (damping_buf_runtimeType)) 18804 { 18805 damping_buf = (valueDeserializer.readNumber() as number) 18806 } 18807 const damping_result: number | undefined|undefined = damping_buf 18808 let value: ChainAnimationOptions = ({minSpace: minSpace_result, maxSpace: maxSpace_result, conductivity: conductivity_result, intensity: intensity_result, edgeEffect: edgeEffect_result, stiffness: stiffness_result, damping: damping_result} as ChainAnimationOptions) 18809 return value 18810 } 18811 readListOptions(): ListOptions { 18812 let valueDeserializer: Deserializer = this 18813 const initialIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18814 let initialIndex_buf: number | undefined|undefined 18815 if ((RuntimeType.UNDEFINED) != (initialIndex_buf_runtimeType)) 18816 { 18817 initialIndex_buf = (valueDeserializer.readNumber() as number) 18818 } 18819 const initialIndex_result: number | undefined|undefined = initialIndex_buf 18820 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18821 let space_buf: number | string | undefined|undefined 18822 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 18823 { 18824 const space_buf__selector: number = valueDeserializer.readInt8() 18825 let space_buf_: number | string | undefined|undefined 18826 if (space_buf__selector == 0) { 18827 space_buf_ = (valueDeserializer.readNumber() as number) 18828 } 18829 else if (space_buf__selector == 1) { 18830 space_buf_ = (valueDeserializer.readString() as string) 18831 } 18832 else { 18833 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 18834 } 18835 space_buf = (space_buf_ as number | string) 18836 } 18837 const space_result: number | string | undefined|undefined = space_buf 18838 const scroller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18839 let scroller_buf: Scroller | undefined|undefined 18840 if ((RuntimeType.UNDEFINED) != (scroller_buf_runtimeType)) 18841 { 18842 scroller_buf = (valueDeserializer.readScroller() as Scroller) 18843 } 18844 const scroller_result: Scroller | undefined|undefined = scroller_buf 18845 let value: ListOptions = ({initialIndex: initialIndex_result, space: space_result, scroller: scroller_result} as ListOptions) 18846 return value 18847 } 18848 readListScroller(): ListScroller { 18849 let valueDeserializer: Deserializer = this 18850 let ptr: KPointer = valueDeserializer.readPointer() 18851 return ListScrollerInternal.fromPtr(ptr) 18852 } 18853 readLineOptions(): LineOptions { 18854 let valueDeserializer: Deserializer = this 18855 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18856 let width_buf: string | number | undefined|undefined 18857 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18858 { 18859 const width_buf__selector: number = valueDeserializer.readInt8() 18860 let width_buf_: string | number | undefined|undefined 18861 if (width_buf__selector == 0) { 18862 width_buf_ = (valueDeserializer.readString() as string) 18863 } 18864 else if (width_buf__selector == 1) { 18865 width_buf_ = (valueDeserializer.readNumber() as number) 18866 } 18867 else { 18868 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18869 } 18870 width_buf = (width_buf_ as string | number) 18871 } 18872 const width_result: string | number | undefined|undefined = width_buf 18873 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18874 let height_buf: string | number | undefined|undefined 18875 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18876 { 18877 const height_buf__selector: number = valueDeserializer.readInt8() 18878 let height_buf_: string | number | undefined|undefined 18879 if (height_buf__selector == 0) { 18880 height_buf_ = (valueDeserializer.readString() as string) 18881 } 18882 else if (height_buf__selector == 1) { 18883 height_buf_ = (valueDeserializer.readNumber() as number) 18884 } 18885 else { 18886 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18887 } 18888 height_buf = (height_buf_ as string | number) 18889 } 18890 const height_result: string | number | undefined|undefined = height_buf 18891 let value: LineOptions = ({width: width_result, height: height_result} as LineOptions) 18892 return value 18893 } 18894 readImageLoadResult(): ImageLoadResult { 18895 let valueDeserializer: Deserializer = this 18896 const width_result: number = (valueDeserializer.readNumber() as number) 18897 const height_result: number = (valueDeserializer.readNumber() as number) 18898 const componentWidth_result: number = (valueDeserializer.readNumber() as number) 18899 const componentHeight_result: number = (valueDeserializer.readNumber() as number) 18900 const loadingStatus_result: number = (valueDeserializer.readNumber() as number) 18901 const contentWidth_result: number = (valueDeserializer.readNumber() as number) 18902 const contentHeight_result: number = (valueDeserializer.readNumber() as number) 18903 const contentOffsetX_result: number = (valueDeserializer.readNumber() as number) 18904 const contentOffsetY_result: number = (valueDeserializer.readNumber() as number) 18905 let value: ImageLoadResult = ({width: width_result, height: height_result, componentWidth: componentWidth_result, componentHeight: componentHeight_result, loadingStatus: loadingStatus_result, contentWidth: contentWidth_result, contentHeight: contentHeight_result, contentOffsetX: contentOffsetX_result, contentOffsetY: contentOffsetY_result} as ImageLoadResult) 18906 return value 18907 } 18908 readImageCompleteCallback(isSync: boolean = false): ImageCompleteCallback { 18909 const _resource: CallbackResource = this.readCallbackResource() 18910 const _call: KPointer = this.readPointer() 18911 const _callSync: KPointer = this.readPointer() 18912 return (result: ImageLoadResult): void => { 18913 const _argsSerializer: Serializer = Serializer.hold(); 18914 _argsSerializer.writeInt32(_resource.resourceId); 18915 _argsSerializer.writePointer(_call); 18916 _argsSerializer.writePointer(_callSync); 18917 _argsSerializer.writeImageLoadResult(result); 18918 (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); 18919 _argsSerializer.release(); 18920 return; } 18921 } 18922 readImageFrameInfo(): ImageFrameInfo { 18923 let valueDeserializer: Deserializer = this 18924 const src_buf_selector: number = valueDeserializer.readInt8() 18925 let src_buf: string | Resource | PixelMap | undefined|undefined 18926 if (src_buf_selector == 0) { 18927 src_buf = (valueDeserializer.readString() as string) 18928 } 18929 else if (src_buf_selector == 1) { 18930 src_buf = valueDeserializer.readResource() 18931 } 18932 else if (src_buf_selector == 2) { 18933 src_buf = (valueDeserializer.readPixelMap() as PixelMap) 18934 } 18935 else { 18936 throw new Error("One of the branches for src_buf has to be chosen through deserialisation.") 18937 } 18938 const src_result: string | Resource | PixelMap = (src_buf as string | Resource | PixelMap) 18939 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18940 let width_buf: number | string | undefined|undefined 18941 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18942 { 18943 const width_buf__selector: number = valueDeserializer.readInt8() 18944 let width_buf_: number | string | undefined|undefined 18945 if (width_buf__selector == 0) { 18946 width_buf_ = (valueDeserializer.readNumber() as number) 18947 } 18948 else if (width_buf__selector == 1) { 18949 width_buf_ = (valueDeserializer.readString() as string) 18950 } 18951 else { 18952 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18953 } 18954 width_buf = (width_buf_ as number | string) 18955 } 18956 const width_result: number | string | undefined|undefined = width_buf 18957 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18958 let height_buf: number | string | undefined|undefined 18959 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18960 { 18961 const height_buf__selector: number = valueDeserializer.readInt8() 18962 let height_buf_: number | string | undefined|undefined 18963 if (height_buf__selector == 0) { 18964 height_buf_ = (valueDeserializer.readNumber() as number) 18965 } 18966 else if (height_buf__selector == 1) { 18967 height_buf_ = (valueDeserializer.readString() as string) 18968 } 18969 else { 18970 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18971 } 18972 height_buf = (height_buf_ as number | string) 18973 } 18974 const height_result: number | string | undefined|undefined = height_buf 18975 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18976 let top_buf: number | string | undefined|undefined 18977 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 18978 { 18979 const top_buf__selector: number = valueDeserializer.readInt8() 18980 let top_buf_: number | string | undefined|undefined 18981 if (top_buf__selector == 0) { 18982 top_buf_ = (valueDeserializer.readNumber() as number) 18983 } 18984 else if (top_buf__selector == 1) { 18985 top_buf_ = (valueDeserializer.readString() as string) 18986 } 18987 else { 18988 throw new Error("One of the branches for top_buf_ has to be chosen through deserialisation.") 18989 } 18990 top_buf = (top_buf_ as number | string) 18991 } 18992 const top_result: number | string | undefined|undefined = top_buf 18993 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18994 let left_buf: number | string | undefined|undefined 18995 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 18996 { 18997 const left_buf__selector: number = valueDeserializer.readInt8() 18998 let left_buf_: number | string | undefined|undefined 18999 if (left_buf__selector == 0) { 19000 left_buf_ = (valueDeserializer.readNumber() as number) 19001 } 19002 else if (left_buf__selector == 1) { 19003 left_buf_ = (valueDeserializer.readString() as string) 19004 } 19005 else { 19006 throw new Error("One of the branches for left_buf_ has to be chosen through deserialisation.") 19007 } 19008 left_buf = (left_buf_ as number | string) 19009 } 19010 const left_result: number | string | undefined|undefined = left_buf 19011 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19012 let duration_buf: number | undefined|undefined 19013 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 19014 { 19015 duration_buf = (valueDeserializer.readNumber() as number) 19016 } 19017 const duration_result: number | undefined|undefined = duration_buf 19018 let value: ImageFrameInfo = ({src: src_result, width: width_result, height: height_result, top: top_result, left: left_result, duration: duration_result} as ImageFrameInfo) 19019 return value 19020 } 19021 readResolutionQuality(): ResolutionQuality { 19022 let valueDeserializer: Deserializer = this 19023 const _ResolutionQualityStub_result: string = (valueDeserializer.readString() as string) 19024 let value: ResolutionQuality = ({_ResolutionQualityStub: _ResolutionQualityStub_result} as ResolutionQuality) 19025 return value 19026 } 19027 readImageError(): ImageError { 19028 let valueDeserializer: Deserializer = this 19029 const componentWidth_result: number = (valueDeserializer.readNumber() as number) 19030 const componentHeight_result: number = (valueDeserializer.readNumber() as number) 19031 const message_result: string = (valueDeserializer.readString() as string) 19032 let value: ImageError = ({componentWidth: componentWidth_result, componentHeight: componentHeight_result, message: message_result} as ImageError) 19033 return value 19034 } 19035 readImageErrorCallback(isSync: boolean = false): ImageErrorCallback { 19036 const _resource: CallbackResource = this.readCallbackResource() 19037 const _call: KPointer = this.readPointer() 19038 const _callSync: KPointer = this.readPointer() 19039 return (error: ImageError): void => { 19040 const _argsSerializer: Serializer = Serializer.hold(); 19041 _argsSerializer.writeInt32(_resource.resourceId); 19042 _argsSerializer.writePointer(_call); 19043 _argsSerializer.writePointer(_callSync); 19044 _argsSerializer.writeImageError(error); 19045 (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); 19046 _argsSerializer.release(); 19047 return; } 19048 } 19049 readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void) { 19050 const _resource: CallbackResource = this.readCallbackResource() 19051 const _call: KPointer = this.readPointer() 19052 const _callSync: KPointer = this.readPointer() 19053 return (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined): void => { 19054 const _argsSerializer: Serializer = Serializer.hold(); 19055 _argsSerializer.writeInt32(_resource.resourceId); 19056 _argsSerializer.writePointer(_call); 19057 _argsSerializer.writePointer(_callSync); 19058 let event_type: int32 = RuntimeType.UNDEFINED; 19059 event_type = runtimeType(event); 19060 _argsSerializer.writeInt8(event_type); 19061 if ((RuntimeType.UNDEFINED) != (event_type)) { 19062 const event_value = event!; 19063 const event_value_width = event_value.width; 19064 _argsSerializer.writeNumber(event_value_width); 19065 const event_value_height = event_value.height; 19066 _argsSerializer.writeNumber(event_value_height); 19067 const event_value_componentWidth = event_value.componentWidth; 19068 _argsSerializer.writeNumber(event_value_componentWidth); 19069 const event_value_componentHeight = event_value.componentHeight; 19070 _argsSerializer.writeNumber(event_value_componentHeight); 19071 const event_value_loadingStatus = event_value.loadingStatus; 19072 _argsSerializer.writeNumber(event_value_loadingStatus); 19073 const event_value_contentWidth = event_value.contentWidth; 19074 _argsSerializer.writeNumber(event_value_contentWidth); 19075 const event_value_contentHeight = event_value.contentHeight; 19076 _argsSerializer.writeNumber(event_value_contentHeight); 19077 const event_value_contentOffsetX = event_value.contentOffsetX; 19078 _argsSerializer.writeNumber(event_value_contentOffsetX); 19079 const event_value_contentOffsetY = event_value.contentOffsetY; 19080 _argsSerializer.writeNumber(event_value_contentOffsetY); 19081 } 19082 (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); 19083 _argsSerializer.release(); 19084 return; } 19085 } 19086 readImageSourceSize(): ImageSourceSize { 19087 let valueDeserializer: Deserializer = this 19088 const width_result: number = (valueDeserializer.readNumber() as number) 19089 const height_result: number = (valueDeserializer.readNumber() as number) 19090 let value: ImageSourceSize = ({width: width_result, height: height_result} as ImageSourceSize) 19091 return value 19092 } 19093 readGridRowOptions(): GridRowOptions { 19094 let valueDeserializer: Deserializer = this 19095 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19096 let gutter_buf: Length | GutterOption | undefined|undefined 19097 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 19098 { 19099 const gutter_buf__selector: number = valueDeserializer.readInt8() 19100 let gutter_buf_: Length | GutterOption | undefined|undefined 19101 if (gutter_buf__selector == 0) { 19102 gutter_buf_ = (valueDeserializer.readLength() as Length) 19103 } 19104 else if (gutter_buf__selector == 1) { 19105 gutter_buf_ = valueDeserializer.readGutterOption() 19106 } 19107 else { 19108 throw new Error("One of the branches for gutter_buf_ has to be chosen through deserialisation.") 19109 } 19110 gutter_buf = (gutter_buf_ as Length | GutterOption) 19111 } 19112 const gutter_result: Length | GutterOption | undefined|undefined = gutter_buf 19113 const columns_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19114 let columns_buf: number | GridRowColumnOption | undefined|undefined 19115 if ((RuntimeType.UNDEFINED) != (columns_buf_runtimeType)) 19116 { 19117 const columns_buf__selector: number = valueDeserializer.readInt8() 19118 let columns_buf_: number | GridRowColumnOption | undefined|undefined 19119 if (columns_buf__selector == 0) { 19120 columns_buf_ = (valueDeserializer.readNumber() as number) 19121 } 19122 else if (columns_buf__selector == 1) { 19123 columns_buf_ = valueDeserializer.readGridRowColumnOption() 19124 } 19125 else { 19126 throw new Error("One of the branches for columns_buf_ has to be chosen through deserialisation.") 19127 } 19128 columns_buf = (columns_buf_ as number | GridRowColumnOption) 19129 } 19130 const columns_result: number | GridRowColumnOption | undefined|undefined = columns_buf 19131 const breakpoints_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19132 let breakpoints_buf: BreakPoints | undefined|undefined 19133 if ((RuntimeType.UNDEFINED) != (breakpoints_buf_runtimeType)) 19134 { 19135 breakpoints_buf = valueDeserializer.readBreakPoints() 19136 } 19137 const breakpoints_result: BreakPoints | undefined|undefined = breakpoints_buf 19138 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19139 let direction_buf: GridRowDirection | undefined|undefined 19140 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 19141 { 19142 direction_buf = (valueDeserializer.readInt32() as GridRowDirection) 19143 } 19144 const direction_result: GridRowDirection | undefined|undefined = direction_buf 19145 let value: GridRowOptions = ({gutter: gutter_result, columns: columns_result, breakpoints: breakpoints_result, direction: direction_result} as GridRowOptions) 19146 return value 19147 } 19148 readGridContainerOptions(): GridContainerOptions { 19149 let valueDeserializer: Deserializer = this 19150 const columns_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19151 let columns_buf: number | string | undefined|undefined 19152 if ((RuntimeType.UNDEFINED) != (columns_buf_runtimeType)) 19153 { 19154 const columns_buf__selector: number = valueDeserializer.readInt8() 19155 let columns_buf_: number | string | undefined|undefined 19156 if (columns_buf__selector == 0) { 19157 columns_buf_ = (valueDeserializer.readNumber() as number) 19158 } 19159 else if (columns_buf__selector == 1) { 19160 columns_buf_ = (valueDeserializer.readString() as string) 19161 } 19162 else { 19163 throw new Error("One of the branches for columns_buf_ has to be chosen through deserialisation.") 19164 } 19165 columns_buf = (columns_buf_ as number | string) 19166 } 19167 const columns_result: number | string | undefined|undefined = columns_buf 19168 const sizeType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19169 let sizeType_buf: SizeType | undefined|undefined 19170 if ((RuntimeType.UNDEFINED) != (sizeType_buf_runtimeType)) 19171 { 19172 sizeType_buf = (valueDeserializer.readInt32() as SizeType) 19173 } 19174 const sizeType_result: SizeType | undefined|undefined = sizeType_buf 19175 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19176 let gutter_buf: number | string | undefined|undefined 19177 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 19178 { 19179 const gutter_buf__selector: number = valueDeserializer.readInt8() 19180 let gutter_buf_: number | string | undefined|undefined 19181 if (gutter_buf__selector == 0) { 19182 gutter_buf_ = (valueDeserializer.readNumber() as number) 19183 } 19184 else if (gutter_buf__selector == 1) { 19185 gutter_buf_ = (valueDeserializer.readString() as string) 19186 } 19187 else { 19188 throw new Error("One of the branches for gutter_buf_ has to be chosen through deserialisation.") 19189 } 19190 gutter_buf = (gutter_buf_ as number | string) 19191 } 19192 const gutter_result: number | string | undefined|undefined = gutter_buf 19193 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19194 let margin_buf: number | string | undefined|undefined 19195 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 19196 { 19197 const margin_buf__selector: number = valueDeserializer.readInt8() 19198 let margin_buf_: number | string | undefined|undefined 19199 if (margin_buf__selector == 0) { 19200 margin_buf_ = (valueDeserializer.readNumber() as number) 19201 } 19202 else if (margin_buf__selector == 1) { 19203 margin_buf_ = (valueDeserializer.readString() as string) 19204 } 19205 else { 19206 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 19207 } 19208 margin_buf = (margin_buf_ as number | string) 19209 } 19210 const margin_result: number | string | undefined|undefined = margin_buf 19211 let value: GridContainerOptions = ({columns: columns_result, sizeType: sizeType_result, gutter: gutter_result, margin: margin_result} as GridContainerOptions) 19212 return value 19213 } 19214 readGridColOptions(): GridColOptions { 19215 let valueDeserializer: Deserializer = this 19216 const span_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19217 let span_buf: number | GridColColumnOption | undefined|undefined 19218 if ((RuntimeType.UNDEFINED) != (span_buf_runtimeType)) 19219 { 19220 const span_buf__selector: number = valueDeserializer.readInt8() 19221 let span_buf_: number | GridColColumnOption | undefined|undefined 19222 if (span_buf__selector == 0) { 19223 span_buf_ = (valueDeserializer.readNumber() as number) 19224 } 19225 else if (span_buf__selector == 1) { 19226 span_buf_ = valueDeserializer.readGridColColumnOption() 19227 } 19228 else { 19229 throw new Error("One of the branches for span_buf_ has to be chosen through deserialisation.") 19230 } 19231 span_buf = (span_buf_ as number | GridColColumnOption) 19232 } 19233 const span_result: number | GridColColumnOption | undefined|undefined = span_buf 19234 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19235 let offset_buf: number | GridColColumnOption | undefined|undefined 19236 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 19237 { 19238 const offset_buf__selector: number = valueDeserializer.readInt8() 19239 let offset_buf_: number | GridColColumnOption | undefined|undefined 19240 if (offset_buf__selector == 0) { 19241 offset_buf_ = (valueDeserializer.readNumber() as number) 19242 } 19243 else if (offset_buf__selector == 1) { 19244 offset_buf_ = valueDeserializer.readGridColColumnOption() 19245 } 19246 else { 19247 throw new Error("One of the branches for offset_buf_ has to be chosen through deserialisation.") 19248 } 19249 offset_buf = (offset_buf_ as number | GridColColumnOption) 19250 } 19251 const offset_result: number | GridColColumnOption | undefined|undefined = offset_buf 19252 const order_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19253 let order_buf: number | GridColColumnOption | undefined|undefined 19254 if ((RuntimeType.UNDEFINED) != (order_buf_runtimeType)) 19255 { 19256 const order_buf__selector: number = valueDeserializer.readInt8() 19257 let order_buf_: number | GridColColumnOption | undefined|undefined 19258 if (order_buf__selector == 0) { 19259 order_buf_ = (valueDeserializer.readNumber() as number) 19260 } 19261 else if (order_buf__selector == 1) { 19262 order_buf_ = valueDeserializer.readGridColColumnOption() 19263 } 19264 else { 19265 throw new Error("One of the branches for order_buf_ has to be chosen through deserialisation.") 19266 } 19267 order_buf = (order_buf_ as number | GridColColumnOption) 19268 } 19269 const order_result: number | GridColColumnOption | undefined|undefined = order_buf 19270 let value: GridColOptions = ({span: span_result, offset: offset_result, order: order_result} as GridColOptions) 19271 return value 19272 } 19273 readGridItemOptions(): GridItemOptions { 19274 let valueDeserializer: Deserializer = this 19275 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19276 let style_buf: GridItemStyle | undefined|undefined 19277 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 19278 { 19279 style_buf = (valueDeserializer.readInt32() as GridItemStyle) 19280 } 19281 const style_result: GridItemStyle | undefined|undefined = style_buf 19282 let value: GridItemOptions = ({style: style_result} as GridItemOptions) 19283 return value 19284 } 19285 readCallback_Number_ScrollState_Literal_Number_offsetRemain(isSync: boolean = false): ((offset: number, state: ScrollState) => { offsetRemain: number }) { 19286 const _resource: CallbackResource = this.readCallbackResource() 19287 const _call: KPointer = this.readPointer() 19288 const _callSync: KPointer = this.readPointer() 19289 return (offset: number, state: ScrollState): { offsetRemain: number } => { 19290 const _argsSerializer: Serializer = Serializer.hold(); 19291 _argsSerializer.writeInt32(_resource.resourceId); 19292 _argsSerializer.writePointer(_call); 19293 _argsSerializer.writePointer(_callSync); 19294 _argsSerializer.writeNumber(offset); 19295 _argsSerializer.writeInt32(state); 19296 let _continuationValue: { offsetRemain: number } | undefined|undefined ; 19297 const _continuationCallback: ((value: { offsetRemain: number }) => void) = (value: { offsetRemain: number }): void => { _continuationValue = value; } 19298 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19299 (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); 19300 _argsSerializer.release(); 19301 return (_continuationValue as { offsetRemain: number }); } 19302 } 19303 readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) { 19304 const _resource: CallbackResource = this.readCallbackResource() 19305 const _call: KPointer = this.readPointer() 19306 const _callSync: KPointer = this.readPointer() 19307 return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean): void => { 19308 const _argsSerializer: Serializer = Serializer.hold(); 19309 _argsSerializer.writeInt32(_resource.resourceId); 19310 _argsSerializer.writePointer(_call); 19311 _argsSerializer.writePointer(_callSync); 19312 _argsSerializer.writeItemDragInfo(event); 19313 _argsSerializer.writeNumber(itemIndex); 19314 _argsSerializer.writeNumber(insertIndex); 19315 _argsSerializer.writeBoolean(isSuccess); 19316 (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); 19317 _argsSerializer.release(); 19318 return; } 19319 } 19320 readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number) => void) { 19321 const _resource: CallbackResource = this.readCallbackResource() 19322 const _call: KPointer = this.readPointer() 19323 const _callSync: KPointer = this.readPointer() 19324 return (event: ItemDragInfo, itemIndex: number): void => { 19325 const _argsSerializer: Serializer = Serializer.hold(); 19326 _argsSerializer.writeInt32(_resource.resourceId); 19327 _argsSerializer.writePointer(_call); 19328 _argsSerializer.writePointer(_callSync); 19329 _argsSerializer.writeItemDragInfo(event); 19330 _argsSerializer.writeNumber(itemIndex); 19331 (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); 19332 _argsSerializer.release(); 19333 return; } 19334 } 19335 readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) { 19336 const _resource: CallbackResource = this.readCallbackResource() 19337 const _call: KPointer = this.readPointer() 19338 const _callSync: KPointer = this.readPointer() 19339 return (event: ItemDragInfo, itemIndex: number, insertIndex: number): void => { 19340 const _argsSerializer: Serializer = Serializer.hold(); 19341 _argsSerializer.writeInt32(_resource.resourceId); 19342 _argsSerializer.writePointer(_call); 19343 _argsSerializer.writePointer(_callSync); 19344 _argsSerializer.writeItemDragInfo(event); 19345 _argsSerializer.writeNumber(itemIndex); 19346 _argsSerializer.writeNumber(insertIndex); 19347 (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); 19348 _argsSerializer.release(); 19349 return; } 19350 } 19351 readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { 19352 const _resource: CallbackResource = this.readCallbackResource() 19353 const _call: KPointer = this.readPointer() 19354 const _callSync: KPointer = this.readPointer() 19355 return (event: ItemDragInfo): void => { 19356 const _argsSerializer: Serializer = Serializer.hold(); 19357 _argsSerializer.writeInt32(_resource.resourceId); 19358 _argsSerializer.writePointer(_call); 19359 _argsSerializer.writePointer(_callSync); 19360 _argsSerializer.writeItemDragInfo(event); 19361 (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); 19362 _argsSerializer.release(); 19363 return; } 19364 } 19365 readItemDragInfo(): ItemDragInfo { 19366 let valueDeserializer: Deserializer = this 19367 const x_result: number = (valueDeserializer.readNumber() as number) 19368 const y_result: number = (valueDeserializer.readNumber() as number) 19369 let value: ItemDragInfo = ({x: x_result, y: y_result} as ItemDragInfo) 19370 return value 19371 } 19372 readonItemDragStart_event_type(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number) => CustomBuilder) { 19373 const _resource: CallbackResource = this.readCallbackResource() 19374 const _call: KPointer = this.readPointer() 19375 const _callSync: KPointer = this.readPointer() 19376 return (event: ItemDragInfo, itemIndex: number): CustomBuilder => { 19377 const _argsSerializer: Serializer = Serializer.hold(); 19378 _argsSerializer.writeInt32(_resource.resourceId); 19379 _argsSerializer.writePointer(_call); 19380 _argsSerializer.writePointer(_callSync); 19381 _argsSerializer.writeItemDragInfo(event); 19382 _argsSerializer.writeNumber(itemIndex); 19383 let _continuationValue: CustomBuilder | undefined|undefined ; 19384 const _continuationCallback: ((value: CustomBuilder) => void) = (value: CustomBuilder): void => { _continuationValue = value; } 19385 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19386 (isSync) ? (InteropNativeModule._CallCallbackSync(1340995650, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1340995650, _argsSerializer.asArray(), _argsSerializer.length())); 19387 _argsSerializer.release(); 19388 return (_continuationValue as CustomBuilder); } 19389 } 19390 readComputedBarAttribute(): ComputedBarAttribute { 19391 let valueDeserializer: Deserializer = this 19392 const totalOffset_result: number = (valueDeserializer.readNumber() as number) 19393 const totalLength_result: number = (valueDeserializer.readNumber() as number) 19394 let value: ComputedBarAttribute = ({totalOffset: totalOffset_result, totalLength: totalLength_result} as ComputedBarAttribute) 19395 return value 19396 } 19397 readCallback_Number_Number_ComputedBarAttribute(isSync: boolean = false): ((index: number, offset: number) => ComputedBarAttribute) { 19398 const _resource: CallbackResource = this.readCallbackResource() 19399 const _call: KPointer = this.readPointer() 19400 const _callSync: KPointer = this.readPointer() 19401 return (index: number, offset: number): ComputedBarAttribute => { 19402 const _argsSerializer: Serializer = Serializer.hold(); 19403 _argsSerializer.writeInt32(_resource.resourceId); 19404 _argsSerializer.writePointer(_call); 19405 _argsSerializer.writePointer(_callSync); 19406 _argsSerializer.writeNumber(index); 19407 _argsSerializer.writeNumber(offset); 19408 let _continuationValue: ComputedBarAttribute | undefined|undefined ; 19409 const _continuationCallback: ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute): void => { _continuationValue = value; } 19410 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19411 (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); 19412 _argsSerializer.release(); 19413 return (_continuationValue as ComputedBarAttribute); } 19414 } 19415 readGridLayoutOptions(): GridLayoutOptions { 19416 let valueDeserializer: Deserializer = this 19417 const regularSize_buf_value0: number = (valueDeserializer.readNumber() as number) 19418 const regularSize_buf_value1: number = (valueDeserializer.readNumber() as number) 19419 const regularSize_result: [ number, number ] = ([regularSize_buf_value0, regularSize_buf_value1] as [ number, number ]) 19420 const irregularIndexes_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19421 let irregularIndexes_buf: Array<number> | undefined|undefined 19422 if ((RuntimeType.UNDEFINED) != (irregularIndexes_buf_runtimeType)) 19423 { 19424 const irregularIndexes_buf__length: int32 = valueDeserializer.readInt32() 19425 let irregularIndexes_buf_: Array<number> = new Array<number>(irregularIndexes_buf__length) 19426 for (let irregularIndexes_buf__i = 0; irregularIndexes_buf__i < irregularIndexes_buf__length; irregularIndexes_buf__i++) { 19427 irregularIndexes_buf_[irregularIndexes_buf__i] = (valueDeserializer.readNumber() as number) 19428 } 19429 irregularIndexes_buf = irregularIndexes_buf_ 19430 } 19431 const irregularIndexes_result: Array<number> | undefined|undefined = irregularIndexes_buf 19432 const onGetIrregularSizeByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19433 let onGetIrregularSizeByIndex_buf: ((index: number) => [ number, number ]) | undefined|undefined 19434 if ((RuntimeType.UNDEFINED) != (onGetIrregularSizeByIndex_buf_runtimeType)) 19435 { 19436 onGetIrregularSizeByIndex_buf = valueDeserializer.readCallback_Number_Tuple_Number_Number() 19437 } 19438 const onGetIrregularSizeByIndex_result: ((index: number) => [ number, number ]) | undefined|undefined = onGetIrregularSizeByIndex_buf 19439 const onGetRectByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19440 let onGetRectByIndex_buf: ((index: number) => [ number, number, number, number ]) | undefined|undefined 19441 if ((RuntimeType.UNDEFINED) != (onGetRectByIndex_buf_runtimeType)) 19442 { 19443 onGetRectByIndex_buf = valueDeserializer.readCallback_Number_Tuple_Number_Number_Number_Number() 19444 } 19445 const onGetRectByIndex_result: ((index: number) => [ number, number, number, number ]) | undefined|undefined = onGetRectByIndex_buf 19446 let value: GridLayoutOptions = ({regularSize: regularSize_result, irregularIndexes: irregularIndexes_result, onGetIrregularSizeByIndex: onGetIrregularSizeByIndex_result, onGetRectByIndex: onGetRectByIndex_result} as GridLayoutOptions) 19447 return value 19448 } 19449 readPanRecognizer(): PanRecognizer { 19450 let valueDeserializer: Deserializer = this 19451 let ptr: KPointer = valueDeserializer.readPointer() 19452 return PanRecognizerInternal.fromPtr(ptr) 19453 } 19454 readScrollableTargetInfo(): ScrollableTargetInfo { 19455 let valueDeserializer: Deserializer = this 19456 let ptr: KPointer = valueDeserializer.readPointer() 19457 return ScrollableTargetInfoInternal.fromPtr(ptr) 19458 } 19459 readTapGestureParameters(): TapGestureParameters { 19460 let valueDeserializer: Deserializer = this 19461 const count_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19462 let count_buf: number | undefined|undefined 19463 if ((RuntimeType.UNDEFINED) != (count_buf_runtimeType)) 19464 { 19465 count_buf = (valueDeserializer.readNumber() as number) 19466 } 19467 const count_result: number | undefined|undefined = count_buf 19468 const fingers_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19469 let fingers_buf: number | undefined|undefined 19470 if ((RuntimeType.UNDEFINED) != (fingers_buf_runtimeType)) 19471 { 19472 fingers_buf = (valueDeserializer.readNumber() as number) 19473 } 19474 const fingers_result: number | undefined|undefined = fingers_buf 19475 const distanceThreshold_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19476 let distanceThreshold_buf: number | undefined|undefined 19477 if ((RuntimeType.UNDEFINED) != (distanceThreshold_buf_runtimeType)) 19478 { 19479 distanceThreshold_buf = (valueDeserializer.readNumber() as number) 19480 } 19481 const distanceThreshold_result: number | undefined|undefined = distanceThreshold_buf 19482 let value: TapGestureParameters = ({count: count_result, fingers: fingers_result, distanceThreshold: distanceThreshold_result} as TapGestureParameters) 19483 return value 19484 } 19485 readGestureEvent(): GestureEvent { 19486 let valueDeserializer: Deserializer = this 19487 let ptr: KPointer = valueDeserializer.readPointer() 19488 return GestureEventInternal.fromPtr(ptr) 19489 } 19490 readSwipeGestureEvent(): SwipeGestureEvent { 19491 let valueDeserializer: Deserializer = this 19492 let ptr: KPointer = valueDeserializer.readPointer() 19493 return SwipeGestureEventInternal.fromPtr(ptr) 19494 } 19495 readRotationGestureEvent(): RotationGestureEvent { 19496 let valueDeserializer: Deserializer = this 19497 let ptr: KPointer = valueDeserializer.readPointer() 19498 return RotationGestureEventInternal.fromPtr(ptr) 19499 } 19500 readPinchGestureEvent(): PinchGestureEvent { 19501 let valueDeserializer: Deserializer = this 19502 let ptr: KPointer = valueDeserializer.readPointer() 19503 return PinchGestureEventInternal.fromPtr(ptr) 19504 } 19505 readPanGestureEvent(): PanGestureEvent { 19506 let valueDeserializer: Deserializer = this 19507 let ptr: KPointer = valueDeserializer.readPointer() 19508 return PanGestureEventInternal.fromPtr(ptr) 19509 } 19510 readLongPressGestureEvent(): LongPressGestureEvent { 19511 let valueDeserializer: Deserializer = this 19512 let ptr: KPointer = valueDeserializer.readPointer() 19513 return LongPressGestureEventInternal.fromPtr(ptr) 19514 } 19515 readTapGestureEvent(): TapGestureEvent { 19516 let valueDeserializer: Deserializer = this 19517 let ptr: KPointer = valueDeserializer.readPointer() 19518 return TapGestureEventInternal.fromPtr(ptr) 19519 } 19520 readGaugeIndicatorOptions(): GaugeIndicatorOptions { 19521 let valueDeserializer: Deserializer = this 19522 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19523 let icon_buf: ResourceStr | undefined|undefined 19524 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 19525 { 19526 const icon_buf__selector: number = valueDeserializer.readInt8() 19527 let icon_buf_: string | Resource | undefined|undefined 19528 if (icon_buf__selector == 0) { 19529 icon_buf_ = (valueDeserializer.readString() as string) 19530 } 19531 else if (icon_buf__selector == 1) { 19532 icon_buf_ = valueDeserializer.readResource() 19533 } 19534 else { 19535 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 19536 } 19537 icon_buf = (icon_buf_ as string | Resource) 19538 } 19539 const icon_result: ResourceStr | undefined|undefined = icon_buf 19540 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19541 let space_buf: Dimension | undefined|undefined 19542 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 19543 { 19544 space_buf = (valueDeserializer.readLength() as Dimension) 19545 } 19546 const space_result: Dimension | undefined|undefined = space_buf 19547 let value: GaugeIndicatorOptions = ({icon: icon_result, space: space_result} as GaugeIndicatorOptions) 19548 return value 19549 } 19550 readGaugeShadowOptions(): GaugeShadowOptions { 19551 let valueDeserializer: Deserializer = this 19552 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19553 let radius_buf: number | Resource | undefined|undefined 19554 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 19555 { 19556 const radius_buf__selector: number = valueDeserializer.readInt8() 19557 let radius_buf_: number | Resource | undefined|undefined 19558 if (radius_buf__selector == 0) { 19559 radius_buf_ = (valueDeserializer.readNumber() as number) 19560 } 19561 else if (radius_buf__selector == 1) { 19562 radius_buf_ = valueDeserializer.readResource() 19563 } 19564 else { 19565 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 19566 } 19567 radius_buf = (radius_buf_ as number | Resource) 19568 } 19569 const radius_result: number | Resource | undefined|undefined = radius_buf 19570 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19571 let offsetX_buf: number | Resource | undefined|undefined 19572 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 19573 { 19574 const offsetX_buf__selector: number = valueDeserializer.readInt8() 19575 let offsetX_buf_: number | Resource | undefined|undefined 19576 if (offsetX_buf__selector == 0) { 19577 offsetX_buf_ = (valueDeserializer.readNumber() as number) 19578 } 19579 else if (offsetX_buf__selector == 1) { 19580 offsetX_buf_ = valueDeserializer.readResource() 19581 } 19582 else { 19583 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 19584 } 19585 offsetX_buf = (offsetX_buf_ as number | Resource) 19586 } 19587 const offsetX_result: number | Resource | undefined|undefined = offsetX_buf 19588 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19589 let offsetY_buf: number | Resource | undefined|undefined 19590 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 19591 { 19592 const offsetY_buf__selector: number = valueDeserializer.readInt8() 19593 let offsetY_buf_: number | Resource | undefined|undefined 19594 if (offsetY_buf__selector == 0) { 19595 offsetY_buf_ = (valueDeserializer.readNumber() as number) 19596 } 19597 else if (offsetY_buf__selector == 1) { 19598 offsetY_buf_ = valueDeserializer.readResource() 19599 } 19600 else { 19601 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 19602 } 19603 offsetY_buf = (offsetY_buf_ as number | Resource) 19604 } 19605 const offsetY_result: number | Resource | undefined|undefined = offsetY_buf 19606 let value: GaugeShadowOptions = ({radius: radius_result, offsetX: offsetX_result, offsetY: offsetY_result} as GaugeShadowOptions) 19607 return value 19608 } 19609 readGaugeOptions(): GaugeOptions { 19610 let valueDeserializer: Deserializer = this 19611 const value_result: number = (valueDeserializer.readNumber() as number) 19612 const min_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19613 let min_buf: number | undefined|undefined 19614 if ((RuntimeType.UNDEFINED) != (min_buf_runtimeType)) 19615 { 19616 min_buf = (valueDeserializer.readNumber() as number) 19617 } 19618 const min_result: number | undefined|undefined = min_buf 19619 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19620 let max_buf: number | undefined|undefined 19621 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 19622 { 19623 max_buf = (valueDeserializer.readNumber() as number) 19624 } 19625 const max_result: number | undefined|undefined = max_buf 19626 let value: GaugeOptions = ({value: value_result, min: min_result, max: max_result} as GaugeOptions) 19627 return value 19628 } 19629 readFormLinkOptions(): FormLinkOptions { 19630 let valueDeserializer: Deserializer = this 19631 const action_result: string = (valueDeserializer.readString() as string) 19632 const moduleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19633 let moduleName_buf: string | undefined|undefined 19634 if ((RuntimeType.UNDEFINED) != (moduleName_buf_runtimeType)) 19635 { 19636 moduleName_buf = (valueDeserializer.readString() as string) 19637 } 19638 const moduleName_result: string | undefined|undefined = moduleName_buf 19639 const bundleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19640 let bundleName_buf: string | undefined|undefined 19641 if ((RuntimeType.UNDEFINED) != (bundleName_buf_runtimeType)) 19642 { 19643 bundleName_buf = (valueDeserializer.readString() as string) 19644 } 19645 const bundleName_result: string | undefined|undefined = bundleName_buf 19646 const abilityName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19647 let abilityName_buf: string | undefined|undefined 19648 if ((RuntimeType.UNDEFINED) != (abilityName_buf_runtimeType)) 19649 { 19650 abilityName_buf = (valueDeserializer.readString() as string) 19651 } 19652 const abilityName_result: string | undefined|undefined = abilityName_buf 19653 const uri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19654 let uri_buf: string | undefined|undefined 19655 if ((RuntimeType.UNDEFINED) != (uri_buf_runtimeType)) 19656 { 19657 uri_buf = (valueDeserializer.readString() as string) 19658 } 19659 const uri_result: string | undefined|undefined = uri_buf 19660 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19661 let params_buf: Object | undefined|undefined 19662 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 19663 { 19664 params_buf = (valueDeserializer.readCustomObject("Object") as Object) 19665 } 19666 const params_result: Object | undefined|undefined = params_buf 19667 let value: FormLinkOptions = ({action: action_result, moduleName: moduleName_result, bundleName: bundleName_result, abilityName: abilityName_result, uri: uri_result, params: params_result} as FormLinkOptions) 19668 return value 19669 } 19670 readCallback_Any_Void(isSync: boolean = false): ((info: any) => void) { 19671 const _resource: CallbackResource = this.readCallbackResource() 19672 const _call: KPointer = this.readPointer() 19673 const _callSync: KPointer = this.readPointer() 19674 return (info: any): void => { 19675 const _argsSerializer: Serializer = Serializer.hold(); 19676 _argsSerializer.writeInt32(_resource.resourceId); 19677 _argsSerializer.writePointer(_call); 19678 _argsSerializer.writePointer(_callSync); 19679 _argsSerializer.writeCustomObject("Any", info); 19680 (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); 19681 _argsSerializer.release(); 19682 return; } 19683 } 19684 readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: { errcode: number, msg: string }) => void) { 19685 const _resource: CallbackResource = this.readCallbackResource() 19686 const _call: KPointer = this.readPointer() 19687 const _callSync: KPointer = this.readPointer() 19688 return (info: { errcode: number, msg: string }): void => { 19689 const _argsSerializer: Serializer = Serializer.hold(); 19690 _argsSerializer.writeInt32(_resource.resourceId); 19691 _argsSerializer.writePointer(_call); 19692 _argsSerializer.writePointer(_callSync); 19693 const info_errcode = info.errcode; 19694 _argsSerializer.writeNumber(info_errcode); 19695 const info_msg = info.msg; 19696 _argsSerializer.writeString(info_msg); 19697 (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); 19698 _argsSerializer.release(); 19699 return; } 19700 } 19701 readFormCallbackInfo(): FormCallbackInfo { 19702 let valueDeserializer: Deserializer = this 19703 const id_result: number = (valueDeserializer.readNumber() as number) 19704 const idString_result: string = (valueDeserializer.readString() as string) 19705 let value: FormCallbackInfo = ({id: id_result, idString: idString_result} as FormCallbackInfo) 19706 return value 19707 } 19708 readCallback_FormCallbackInfo_Void(isSync: boolean = false): ((parameter: FormCallbackInfo) => void) { 19709 const _resource: CallbackResource = this.readCallbackResource() 19710 const _call: KPointer = this.readPointer() 19711 const _callSync: KPointer = this.readPointer() 19712 return (parameter: FormCallbackInfo): void => { 19713 const _argsSerializer: Serializer = Serializer.hold(); 19714 _argsSerializer.writeInt32(_resource.resourceId); 19715 _argsSerializer.writePointer(_call); 19716 _argsSerializer.writePointer(_callSync); 19717 _argsSerializer.writeFormCallbackInfo(parameter); 19718 (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); 19719 _argsSerializer.release(); 19720 return; } 19721 } 19722 readFormInfo(): FormInfo { 19723 let valueDeserializer: Deserializer = this 19724 const id_buf_selector: number = valueDeserializer.readInt8() 19725 let id_buf: number | string | undefined|undefined 19726 if (id_buf_selector == 0) { 19727 id_buf = (valueDeserializer.readNumber() as number) 19728 } 19729 else if (id_buf_selector == 1) { 19730 id_buf = (valueDeserializer.readString() as string) 19731 } 19732 else { 19733 throw new Error("One of the branches for id_buf has to be chosen through deserialisation.") 19734 } 19735 const id_result: number | string = (id_buf as number | string) 19736 const name_result: string = (valueDeserializer.readString() as string) 19737 const bundle_result: string = (valueDeserializer.readString() as string) 19738 const ability_result: string = (valueDeserializer.readString() as string) 19739 const module_result: string = (valueDeserializer.readString() as string) 19740 const dimension_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19741 let dimension_buf: FormDimension | undefined|undefined 19742 if ((RuntimeType.UNDEFINED) != (dimension_buf_runtimeType)) 19743 { 19744 dimension_buf = (valueDeserializer.readInt32() as FormDimension) 19745 } 19746 const dimension_result: FormDimension | undefined|undefined = dimension_buf 19747 const temporary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19748 let temporary_buf: boolean | undefined|undefined 19749 if ((RuntimeType.UNDEFINED) != (temporary_buf_runtimeType)) 19750 { 19751 temporary_buf = valueDeserializer.readBoolean() 19752 } 19753 const temporary_result: boolean | undefined|undefined = temporary_buf 19754 const want_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19755 let want_buf: Want | undefined|undefined 19756 if ((RuntimeType.UNDEFINED) != (want_buf_runtimeType)) 19757 { 19758 want_buf = valueDeserializer.readWant() 19759 } 19760 const want_result: Want | undefined|undefined = want_buf 19761 const renderingMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19762 let renderingMode_buf: FormRenderingMode | undefined|undefined 19763 if ((RuntimeType.UNDEFINED) != (renderingMode_buf_runtimeType)) 19764 { 19765 renderingMode_buf = (valueDeserializer.readInt32() as FormRenderingMode) 19766 } 19767 const renderingMode_result: FormRenderingMode | undefined|undefined = renderingMode_buf 19768 const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19769 let shape_buf: FormShape | undefined|undefined 19770 if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) 19771 { 19772 shape_buf = (valueDeserializer.readInt32() as FormShape) 19773 } 19774 const shape_result: FormShape | undefined|undefined = shape_buf 19775 let value: FormInfo = ({id: id_result, name: name_result, bundle: bundle_result, ability: ability_result, module: module_result, dimension: dimension_result, temporary: temporary_result, want: want_result, renderingMode: renderingMode_result, shape: shape_result} as FormInfo) 19776 return value 19777 } 19778 readHoverEventParam(): HoverEventParam { 19779 let valueDeserializer: Deserializer = this 19780 const foldStatus_result: FoldStatus = (valueDeserializer.readInt32() as FoldStatus) 19781 const isHoverMode_result: boolean = valueDeserializer.readBoolean() 19782 const appRotation_result: AppRotation = (valueDeserializer.readInt32() as AppRotation) 19783 const windowStatusType_result: WindowStatusType = valueDeserializer.readWindowStatusType() 19784 let value: HoverEventParam = ({foldStatus: foldStatus_result, isHoverMode: isHoverMode_result, appRotation: appRotation_result, windowStatusType: windowStatusType_result} as HoverEventParam) 19785 return value 19786 } 19787 readOnHoverStatusChangeCallback(isSync: boolean = false): OnHoverStatusChangeCallback { 19788 const _resource: CallbackResource = this.readCallbackResource() 19789 const _call: KPointer = this.readPointer() 19790 const _callSync: KPointer = this.readPointer() 19791 return (param: HoverEventParam): void => { 19792 const _argsSerializer: Serializer = Serializer.hold(); 19793 _argsSerializer.writeInt32(_resource.resourceId); 19794 _argsSerializer.writePointer(_call); 19795 _argsSerializer.writePointer(_callSync); 19796 _argsSerializer.writeHoverEventParam(param); 19797 (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); 19798 _argsSerializer.release(); 19799 return; } 19800 } 19801 readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { 19802 let valueDeserializer: Deserializer = this 19803 const foldStatus_result: FoldStatus = (valueDeserializer.readInt32() as FoldStatus) 19804 let value: OnFoldStatusChangeInfo = ({foldStatus: foldStatus_result} as OnFoldStatusChangeInfo) 19805 return value 19806 } 19807 readOnFoldStatusChangeCallback(isSync: boolean = false): OnFoldStatusChangeCallback { 19808 const _resource: CallbackResource = this.readCallbackResource() 19809 const _call: KPointer = this.readPointer() 19810 const _callSync: KPointer = this.readPointer() 19811 return (event: OnFoldStatusChangeInfo): void => { 19812 const _argsSerializer: Serializer = Serializer.hold(); 19813 _argsSerializer.writeInt32(_resource.resourceId); 19814 _argsSerializer.writePointer(_call); 19815 _argsSerializer.writePointer(_callSync); 19816 _argsSerializer.writeOnFoldStatusChangeInfo(event); 19817 (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); 19818 _argsSerializer.release(); 19819 return; } 19820 } 19821 readFolderStackOptions(): FolderStackOptions { 19822 let valueDeserializer: Deserializer = this 19823 const upperItems_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19824 let upperItems_buf: Array<string> | undefined|undefined 19825 if ((RuntimeType.UNDEFINED) != (upperItems_buf_runtimeType)) 19826 { 19827 const upperItems_buf__length: int32 = valueDeserializer.readInt32() 19828 let upperItems_buf_: Array<string> = new Array<string>(upperItems_buf__length) 19829 for (let upperItems_buf__i = 0; upperItems_buf__i < upperItems_buf__length; upperItems_buf__i++) { 19830 upperItems_buf_[upperItems_buf__i] = (valueDeserializer.readString() as string) 19831 } 19832 upperItems_buf = upperItems_buf_ 19833 } 19834 const upperItems_result: Array<string> | undefined|undefined = upperItems_buf 19835 let value: FolderStackOptions = ({upperItems: upperItems_result} as FolderStackOptions) 19836 return value 19837 } 19838 readFlexOptions(): FlexOptions { 19839 let valueDeserializer: Deserializer = this 19840 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19841 let direction_buf: FlexDirection | undefined|undefined 19842 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 19843 { 19844 direction_buf = (valueDeserializer.readInt32() as FlexDirection) 19845 } 19846 const direction_result: FlexDirection | undefined|undefined = direction_buf 19847 const wrap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19848 let wrap_buf: FlexWrap | undefined|undefined 19849 if ((RuntimeType.UNDEFINED) != (wrap_buf_runtimeType)) 19850 { 19851 wrap_buf = (valueDeserializer.readInt32() as FlexWrap) 19852 } 19853 const wrap_result: FlexWrap | undefined|undefined = wrap_buf 19854 const justifyContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19855 let justifyContent_buf: FlexAlign | undefined|undefined 19856 if ((RuntimeType.UNDEFINED) != (justifyContent_buf_runtimeType)) 19857 { 19858 justifyContent_buf = (valueDeserializer.readInt32() as FlexAlign) 19859 } 19860 const justifyContent_result: FlexAlign | undefined|undefined = justifyContent_buf 19861 const alignItems_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19862 let alignItems_buf: ItemAlign | undefined|undefined 19863 if ((RuntimeType.UNDEFINED) != (alignItems_buf_runtimeType)) 19864 { 19865 alignItems_buf = (valueDeserializer.readInt32() as ItemAlign) 19866 } 19867 const alignItems_result: ItemAlign | undefined|undefined = alignItems_buf 19868 const alignContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19869 let alignContent_buf: FlexAlign | undefined|undefined 19870 if ((RuntimeType.UNDEFINED) != (alignContent_buf_runtimeType)) 19871 { 19872 alignContent_buf = (valueDeserializer.readInt32() as FlexAlign) 19873 } 19874 const alignContent_result: FlexAlign | undefined|undefined = alignContent_buf 19875 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19876 let space_buf: FlexSpaceOptions | undefined|undefined 19877 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 19878 { 19879 space_buf = valueDeserializer.readFlexSpaceOptions() 19880 } 19881 const space_result: FlexSpaceOptions | undefined|undefined = space_buf 19882 let value: FlexOptions = ({direction: direction_result, wrap: wrap_result, justifyContent: justifyContent_result, alignItems: alignItems_result, alignContent: alignContent_result, space: space_result} as FlexOptions) 19883 return value 19884 } 19885 readBusinessError(): BusinessError { 19886 let valueDeserializer: Deserializer = this 19887 const name_result: string = (valueDeserializer.readString() as string) 19888 const message_result: string = (valueDeserializer.readString() as string) 19889 const stack_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19890 let stack_buf: string | undefined|undefined 19891 if ((RuntimeType.UNDEFINED) != (stack_buf_runtimeType)) 19892 { 19893 stack_buf = (valueDeserializer.readString() as string) 19894 } 19895 const stack_result: string | undefined|undefined = stack_buf 19896 const code_result: number = (valueDeserializer.readNumber() as number) 19897 let value: BusinessError = ({name: name_result, message: message_result, stack: stack_result, code: code_result} as BusinessError) 19898 return value 19899 } 19900 readErrorCallback(isSync: boolean = false): ErrorCallback { 19901 const _resource: CallbackResource = this.readCallbackResource() 19902 const _call: KPointer = this.readPointer() 19903 const _callSync: KPointer = this.readPointer() 19904 return (err: BusinessError): void => { 19905 const _argsSerializer: Serializer = Serializer.hold(); 19906 _argsSerializer.writeInt32(_resource.resourceId); 19907 _argsSerializer.writePointer(_call); 19908 _argsSerializer.writePointer(_callSync); 19909 _argsSerializer.writeBusinessError(err); 19910 (isSync) ? (InteropNativeModule._CallCallbackSync(-1936519453, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1936519453, _argsSerializer.asArray(), _argsSerializer.length())); 19911 _argsSerializer.release(); 19912 return; } 19913 } 19914 readTerminationInfo(): TerminationInfo { 19915 let valueDeserializer: Deserializer = this 19916 const code_result: number = (valueDeserializer.readNumber() as number) 19917 const want_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19918 let want_buf: Want | undefined|undefined 19919 if ((RuntimeType.UNDEFINED) != (want_buf_runtimeType)) 19920 { 19921 want_buf = valueDeserializer.readWant() 19922 } 19923 const want_result: Want | undefined|undefined = want_buf 19924 let value: TerminationInfo = ({code: code_result, want: want_result} as TerminationInfo) 19925 return value 19926 } 19927 readCallback_TerminationInfo_Void(isSync: boolean = false): ((parameter: TerminationInfo) => void) { 19928 const _resource: CallbackResource = this.readCallbackResource() 19929 const _call: KPointer = this.readPointer() 19930 const _callSync: KPointer = this.readPointer() 19931 return (parameter: TerminationInfo): void => { 19932 const _argsSerializer: Serializer = Serializer.hold(); 19933 _argsSerializer.writeInt32(_resource.resourceId); 19934 _argsSerializer.writePointer(_call); 19935 _argsSerializer.writePointer(_callSync); 19936 _argsSerializer.writeTerminationInfo(parameter); 19937 (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); 19938 _argsSerializer.release(); 19939 return; } 19940 } 19941 readEllipseOptions(): EllipseOptions { 19942 let valueDeserializer: Deserializer = this 19943 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19944 let width_buf: string | number | undefined|undefined 19945 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 19946 { 19947 const width_buf__selector: number = valueDeserializer.readInt8() 19948 let width_buf_: string | number | undefined|undefined 19949 if (width_buf__selector == 0) { 19950 width_buf_ = (valueDeserializer.readString() as string) 19951 } 19952 else if (width_buf__selector == 1) { 19953 width_buf_ = (valueDeserializer.readNumber() as number) 19954 } 19955 else { 19956 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 19957 } 19958 width_buf = (width_buf_ as string | number) 19959 } 19960 const width_result: string | number | undefined|undefined = width_buf 19961 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19962 let height_buf: string | number | undefined|undefined 19963 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 19964 { 19965 const height_buf__selector: number = valueDeserializer.readInt8() 19966 let height_buf_: string | number | undefined|undefined 19967 if (height_buf__selector == 0) { 19968 height_buf_ = (valueDeserializer.readString() as string) 19969 } 19970 else if (height_buf__selector == 1) { 19971 height_buf_ = (valueDeserializer.readNumber() as number) 19972 } 19973 else { 19974 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 19975 } 19976 height_buf = (height_buf_ as string | number) 19977 } 19978 const height_result: string | number | undefined|undefined = height_buf 19979 let value: EllipseOptions = ({width: width_result, height: height_result} as EllipseOptions) 19980 return value 19981 } 19982 readDatePickerResult(): DatePickerResult { 19983 let valueDeserializer: Deserializer = this 19984 const year_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19985 let year_buf: number | undefined|undefined 19986 if ((RuntimeType.UNDEFINED) != (year_buf_runtimeType)) 19987 { 19988 year_buf = (valueDeserializer.readNumber() as number) 19989 } 19990 const year_result: number | undefined|undefined = year_buf 19991 const month_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19992 let month_buf: number | undefined|undefined 19993 if ((RuntimeType.UNDEFINED) != (month_buf_runtimeType)) 19994 { 19995 month_buf = (valueDeserializer.readNumber() as number) 19996 } 19997 const month_result: number | undefined|undefined = month_buf 19998 const day_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19999 let day_buf: number | undefined|undefined 20000 if ((RuntimeType.UNDEFINED) != (day_buf_runtimeType)) 20001 { 20002 day_buf = (valueDeserializer.readNumber() as number) 20003 } 20004 const day_result: number | undefined|undefined = day_buf 20005 let value: DatePickerResult = ({year: year_result, month: month_result, day: day_result} as DatePickerResult) 20006 return value 20007 } 20008 readDatePickerOptions(): DatePickerOptions { 20009 let valueDeserializer: Deserializer = this 20010 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20011 let start_buf: Date | undefined|undefined 20012 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 20013 { 20014 start_buf = new Date(valueDeserializer.readInt64()) 20015 } 20016 const start_result: Date | undefined|undefined = start_buf 20017 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20018 let end_buf: Date | undefined|undefined 20019 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 20020 { 20021 end_buf = new Date(valueDeserializer.readInt64()) 20022 } 20023 const end_result: Date | undefined|undefined = end_buf 20024 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20025 let selected_buf: Date | undefined|undefined 20026 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 20027 { 20028 selected_buf = new Date(valueDeserializer.readInt64()) 20029 } 20030 const selected_result: Date | undefined|undefined = selected_buf 20031 let value: DatePickerOptions = ({start: start_result, end: end_result, selected: selected_result} as DatePickerOptions) 20032 return value 20033 } 20034 readDataPanelShadowOptions(): DataPanelShadowOptions { 20035 let valueDeserializer: Deserializer = this 20036 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20037 let radius_buf: number | Resource | undefined|undefined 20038 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 20039 { 20040 const radius_buf__selector: number = valueDeserializer.readInt8() 20041 let radius_buf_: number | Resource | undefined|undefined 20042 if (radius_buf__selector == 0) { 20043 radius_buf_ = (valueDeserializer.readNumber() as number) 20044 } 20045 else if (radius_buf__selector == 1) { 20046 radius_buf_ = valueDeserializer.readResource() 20047 } 20048 else { 20049 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 20050 } 20051 radius_buf = (radius_buf_ as number | Resource) 20052 } 20053 const radius_result: number | Resource | undefined|undefined = radius_buf 20054 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20055 let offsetX_buf: number | Resource | undefined|undefined 20056 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 20057 { 20058 const offsetX_buf__selector: number = valueDeserializer.readInt8() 20059 let offsetX_buf_: number | Resource | undefined|undefined 20060 if (offsetX_buf__selector == 0) { 20061 offsetX_buf_ = (valueDeserializer.readNumber() as number) 20062 } 20063 else if (offsetX_buf__selector == 1) { 20064 offsetX_buf_ = valueDeserializer.readResource() 20065 } 20066 else { 20067 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 20068 } 20069 offsetX_buf = (offsetX_buf_ as number | Resource) 20070 } 20071 const offsetX_result: number | Resource | undefined|undefined = offsetX_buf 20072 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20073 let offsetY_buf: number | Resource | undefined|undefined 20074 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 20075 { 20076 const offsetY_buf__selector: number = valueDeserializer.readInt8() 20077 let offsetY_buf_: number | Resource | undefined|undefined 20078 if (offsetY_buf__selector == 0) { 20079 offsetY_buf_ = (valueDeserializer.readNumber() as number) 20080 } 20081 else if (offsetY_buf__selector == 1) { 20082 offsetY_buf_ = valueDeserializer.readResource() 20083 } 20084 else { 20085 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 20086 } 20087 offsetY_buf = (offsetY_buf_ as number | Resource) 20088 } 20089 const offsetY_result: number | Resource | undefined|undefined = offsetY_buf 20090 const colors_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20091 let colors_buf: Array<ResourceColor | LinearGradient> | undefined|undefined 20092 if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) 20093 { 20094 const colors_buf__length: int32 = valueDeserializer.readInt32() 20095 let colors_buf_: Array<ResourceColor | LinearGradient> = new Array<ResourceColor | LinearGradient>(colors_buf__length) 20096 for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { 20097 const colors_buf__buf_selector: number = valueDeserializer.readInt8() 20098 let colors_buf__buf: ResourceColor | LinearGradient | undefined|undefined 20099 if (colors_buf__buf_selector == 0) { 20100 const colors_buf__buf_u_selector: number = valueDeserializer.readInt8() 20101 let colors_buf__buf_u: Color | number | string | Resource | undefined|undefined 20102 if (colors_buf__buf_u_selector == 0) { 20103 colors_buf__buf_u = (valueDeserializer.readInt32() as Color) 20104 } 20105 else if (colors_buf__buf_u_selector == 1) { 20106 colors_buf__buf_u = (valueDeserializer.readNumber() as number) 20107 } 20108 else if (colors_buf__buf_u_selector == 2) { 20109 colors_buf__buf_u = (valueDeserializer.readString() as string) 20110 } 20111 else if (colors_buf__buf_u_selector == 3) { 20112 colors_buf__buf_u = valueDeserializer.readResource() 20113 } 20114 else { 20115 throw new Error("One of the branches for colors_buf__buf_u has to be chosen through deserialisation.") 20116 } 20117 colors_buf__buf = (colors_buf__buf_u as Color | number | string | Resource) 20118 } 20119 else if (colors_buf__buf_selector == 1) { 20120 colors_buf__buf = (valueDeserializer.readLinearGradient() as LinearGradient) 20121 } 20122 else { 20123 throw new Error("One of the branches for colors_buf__buf has to be chosen through deserialisation.") 20124 } 20125 colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient) 20126 } 20127 colors_buf = colors_buf_ 20128 } 20129 const colors_result: Array<ResourceColor | LinearGradient> | undefined|undefined = colors_buf 20130 let value: DataPanelShadowOptions = ({radius: radius_result, offsetX: offsetX_result, offsetY: offsetY_result, colors: colors_result} as DataPanelShadowOptions) 20131 return value 20132 } 20133 readDataPanelOptions(): DataPanelOptions { 20134 let valueDeserializer: Deserializer = this 20135 const values_buf_length: int32 = valueDeserializer.readInt32() 20136 let values_buf: Array<number> = new Array<number>(values_buf_length) 20137 for (let values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { 20138 values_buf[values_buf_i] = (valueDeserializer.readNumber() as number) 20139 } 20140 const values_result: Array<number> = values_buf 20141 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20142 let max_buf: number | undefined|undefined 20143 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 20144 { 20145 max_buf = (valueDeserializer.readNumber() as number) 20146 } 20147 const max_result: number | undefined|undefined = max_buf 20148 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20149 let type_buf: DataPanelType | undefined|undefined 20150 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 20151 { 20152 type_buf = (valueDeserializer.readInt32() as DataPanelType) 20153 } 20154 const type_result: DataPanelType | undefined|undefined = type_buf 20155 let value: DataPanelOptions = ({values: values_result, max: max_result, type: type_result} as DataPanelOptions) 20156 return value 20157 } 20158 readColorStop(): ColorStop { 20159 let valueDeserializer: Deserializer = this 20160 const color_buf_selector: number = valueDeserializer.readInt8() 20161 let color_buf: Color | number | string | Resource | undefined|undefined 20162 if (color_buf_selector == 0) { 20163 color_buf = (valueDeserializer.readInt32() as Color) 20164 } 20165 else if (color_buf_selector == 1) { 20166 color_buf = (valueDeserializer.readNumber() as number) 20167 } 20168 else if (color_buf_selector == 2) { 20169 color_buf = (valueDeserializer.readString() as string) 20170 } 20171 else if (color_buf_selector == 3) { 20172 color_buf = valueDeserializer.readResource() 20173 } 20174 else { 20175 throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") 20176 } 20177 const color_result: ResourceColor = (color_buf as Color | number | string | Resource) 20178 const offset_result: Length = (valueDeserializer.readLength() as Length) 20179 let value: ColorStop = ({color: color_result, offset: offset_result} as ColorStop) 20180 return value 20181 } 20182 readCustomDialogControllerOptions(): CustomDialogControllerOptions { 20183 let valueDeserializer: Deserializer = this 20184 const builder_result: any = (valueDeserializer.readCustomObject("Any") as Object) 20185 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20186 let cancel_buf: (() => void) | undefined|undefined 20187 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 20188 { 20189 cancel_buf = valueDeserializer.readCallback_Void() 20190 } 20191 const cancel_result: (() => void) | undefined|undefined = cancel_buf 20192 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20193 let autoCancel_buf: boolean | undefined|undefined 20194 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 20195 { 20196 autoCancel_buf = valueDeserializer.readBoolean() 20197 } 20198 const autoCancel_result: boolean | undefined|undefined = autoCancel_buf 20199 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20200 let alignment_buf: DialogAlignment | undefined|undefined 20201 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 20202 { 20203 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 20204 } 20205 const alignment_result: DialogAlignment | undefined|undefined = alignment_buf 20206 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20207 let offset_buf: Offset | undefined|undefined 20208 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 20209 { 20210 const offset_buf__dx: Length = (valueDeserializer.readLength() as Length) 20211 const offset_buf__dy: Length = (valueDeserializer.readLength() as Length) 20212 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 20213 } 20214 const offset_result: Offset | undefined|undefined = offset_buf 20215 const customStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20216 let customStyle_buf: boolean | undefined|undefined 20217 if ((RuntimeType.UNDEFINED) != (customStyle_buf_runtimeType)) 20218 { 20219 customStyle_buf = valueDeserializer.readBoolean() 20220 } 20221 const customStyle_result: boolean | undefined|undefined = customStyle_buf 20222 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20223 let gridCount_buf: number | undefined|undefined 20224 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 20225 { 20226 gridCount_buf = (valueDeserializer.readNumber() as number) 20227 } 20228 const gridCount_result: number | undefined|undefined = gridCount_buf 20229 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20230 let maskColor_buf: ResourceColor | undefined|undefined 20231 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 20232 { 20233 const maskColor_buf__selector: number = valueDeserializer.readInt8() 20234 let maskColor_buf_: Color | number | string | Resource | undefined|undefined 20235 if (maskColor_buf__selector == 0) { 20236 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 20237 } 20238 else if (maskColor_buf__selector == 1) { 20239 maskColor_buf_ = (valueDeserializer.readNumber() as number) 20240 } 20241 else if (maskColor_buf__selector == 2) { 20242 maskColor_buf_ = (valueDeserializer.readString() as string) 20243 } 20244 else if (maskColor_buf__selector == 3) { 20245 maskColor_buf_ = valueDeserializer.readResource() 20246 } 20247 else { 20248 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 20249 } 20250 maskColor_buf = (maskColor_buf_ as Color | number | string | Resource) 20251 } 20252 const maskColor_result: ResourceColor | undefined|undefined = maskColor_buf 20253 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20254 let maskRect_buf: Rectangle | undefined|undefined 20255 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 20256 { 20257 maskRect_buf = valueDeserializer.readRectangle() 20258 } 20259 const maskRect_result: Rectangle | undefined|undefined = maskRect_buf 20260 const openAnimation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20261 let openAnimation_buf: AnimateParam | undefined|undefined 20262 if ((RuntimeType.UNDEFINED) != (openAnimation_buf_runtimeType)) 20263 { 20264 openAnimation_buf = valueDeserializer.readAnimateParam() 20265 } 20266 const openAnimation_result: AnimateParam | undefined|undefined = openAnimation_buf 20267 const closeAnimation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20268 let closeAnimation_buf: AnimateParam | undefined|undefined 20269 if ((RuntimeType.UNDEFINED) != (closeAnimation_buf_runtimeType)) 20270 { 20271 closeAnimation_buf = valueDeserializer.readAnimateParam() 20272 } 20273 const closeAnimation_result: AnimateParam | undefined|undefined = closeAnimation_buf 20274 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20275 let showInSubWindow_buf: boolean | undefined|undefined 20276 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 20277 { 20278 showInSubWindow_buf = valueDeserializer.readBoolean() 20279 } 20280 const showInSubWindow_result: boolean | undefined|undefined = showInSubWindow_buf 20281 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20282 let backgroundColor_buf: ResourceColor | undefined|undefined 20283 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 20284 { 20285 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 20286 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 20287 if (backgroundColor_buf__selector == 0) { 20288 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 20289 } 20290 else if (backgroundColor_buf__selector == 1) { 20291 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 20292 } 20293 else if (backgroundColor_buf__selector == 2) { 20294 backgroundColor_buf_ = (valueDeserializer.readString() as string) 20295 } 20296 else if (backgroundColor_buf__selector == 3) { 20297 backgroundColor_buf_ = valueDeserializer.readResource() 20298 } 20299 else { 20300 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 20301 } 20302 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 20303 } 20304 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 20305 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20306 let cornerRadius_buf: Dimension | BorderRadiuses | undefined|undefined 20307 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 20308 { 20309 const cornerRadius_buf__selector: number = valueDeserializer.readInt8() 20310 let cornerRadius_buf_: Dimension | BorderRadiuses | undefined|undefined 20311 if (cornerRadius_buf__selector == 0) { 20312 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 20313 } 20314 else if (cornerRadius_buf__selector == 1) { 20315 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20316 let cornerRadius_buf__u_topLeft_buf: Length | undefined|undefined 20317 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 20318 { 20319 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 20320 } 20321 const cornerRadius_buf__u_topLeft: undefined | Length = cornerRadius_buf__u_topLeft_buf 20322 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20323 let cornerRadius_buf__u_topRight_buf: Length | undefined|undefined 20324 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 20325 { 20326 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 20327 } 20328 const cornerRadius_buf__u_topRight: undefined | Length = cornerRadius_buf__u_topRight_buf 20329 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20330 let cornerRadius_buf__u_bottomLeft_buf: Length | undefined|undefined 20331 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 20332 { 20333 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 20334 } 20335 const cornerRadius_buf__u_bottomLeft: undefined | Length = cornerRadius_buf__u_bottomLeft_buf 20336 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20337 let cornerRadius_buf__u_bottomRight_buf: Length | undefined|undefined 20338 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 20339 { 20340 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 20341 } 20342 const cornerRadius_buf__u_bottomRight: undefined | Length = cornerRadius_buf__u_bottomRight_buf 20343 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 20344 } 20345 else { 20346 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 20347 } 20348 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses) 20349 } 20350 const cornerRadius_result: Dimension | BorderRadiuses | undefined|undefined = cornerRadius_buf 20351 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20352 let isModal_buf: boolean | undefined|undefined 20353 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 20354 { 20355 isModal_buf = valueDeserializer.readBoolean() 20356 } 20357 const isModal_result: boolean | undefined|undefined = isModal_buf 20358 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20359 let onWillDismiss_buf: ((parameter: DismissDialogAction) => void) | undefined|undefined 20360 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 20361 { 20362 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 20363 } 20364 const onWillDismiss_result: ((parameter: DismissDialogAction) => void) | undefined|undefined = onWillDismiss_buf 20365 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20366 let width_buf: Dimension | undefined|undefined 20367 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 20368 { 20369 width_buf = (valueDeserializer.readLength() as Dimension) 20370 } 20371 const width_result: Dimension | undefined|undefined = width_buf 20372 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20373 let height_buf: Dimension | undefined|undefined 20374 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 20375 { 20376 height_buf = (valueDeserializer.readLength() as Dimension) 20377 } 20378 const height_result: Dimension | undefined|undefined = height_buf 20379 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20380 let borderWidth_buf: Dimension | EdgeWidths | undefined|undefined 20381 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 20382 { 20383 const borderWidth_buf__selector: number = valueDeserializer.readInt8() 20384 let borderWidth_buf_: Dimension | EdgeWidths | undefined|undefined 20385 if (borderWidth_buf__selector == 0) { 20386 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 20387 } 20388 else if (borderWidth_buf__selector == 1) { 20389 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20390 let borderWidth_buf__u_top_buf: Length | undefined|undefined 20391 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 20392 { 20393 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 20394 } 20395 const borderWidth_buf__u_top: undefined | Length = borderWidth_buf__u_top_buf 20396 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20397 let borderWidth_buf__u_right_buf: Length | undefined|undefined 20398 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 20399 { 20400 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 20401 } 20402 const borderWidth_buf__u_right: undefined | Length = borderWidth_buf__u_right_buf 20403 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20404 let borderWidth_buf__u_bottom_buf: Length | undefined|undefined 20405 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 20406 { 20407 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 20408 } 20409 const borderWidth_buf__u_bottom: undefined | Length = borderWidth_buf__u_bottom_buf 20410 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20411 let borderWidth_buf__u_left_buf: Length | undefined|undefined 20412 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 20413 { 20414 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 20415 } 20416 const borderWidth_buf__u_left: undefined | Length = borderWidth_buf__u_left_buf 20417 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 20418 } 20419 else { 20420 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 20421 } 20422 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths) 20423 } 20424 const borderWidth_result: Dimension | EdgeWidths | undefined|undefined = borderWidth_buf 20425 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20426 let borderColor_buf: ResourceColor | EdgeColors | undefined|undefined 20427 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 20428 { 20429 const borderColor_buf__selector: number = valueDeserializer.readInt8() 20430 let borderColor_buf_: ResourceColor | EdgeColors | undefined|undefined 20431 if (borderColor_buf__selector == 0) { 20432 const borderColor_buf__u_selector: number = valueDeserializer.readInt8() 20433 let borderColor_buf__u: Color | number | string | Resource | undefined|undefined 20434 if (borderColor_buf__u_selector == 0) { 20435 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 20436 } 20437 else if (borderColor_buf__u_selector == 1) { 20438 borderColor_buf__u = (valueDeserializer.readNumber() as number) 20439 } 20440 else if (borderColor_buf__u_selector == 2) { 20441 borderColor_buf__u = (valueDeserializer.readString() as string) 20442 } 20443 else if (borderColor_buf__u_selector == 3) { 20444 borderColor_buf__u = valueDeserializer.readResource() 20445 } 20446 else { 20447 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 20448 } 20449 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 20450 } 20451 else if (borderColor_buf__selector == 1) { 20452 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20453 let borderColor_buf__u_top_buf: ResourceColor | undefined|undefined 20454 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 20455 { 20456 const borderColor_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 20457 let borderColor_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 20458 if (borderColor_buf__u_top_buf__selector == 0) { 20459 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 20460 } 20461 else if (borderColor_buf__u_top_buf__selector == 1) { 20462 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 20463 } 20464 else if (borderColor_buf__u_top_buf__selector == 2) { 20465 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 20466 } 20467 else if (borderColor_buf__u_top_buf__selector == 3) { 20468 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 20469 } 20470 else { 20471 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 20472 } 20473 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 20474 } 20475 const borderColor_buf__u_top: undefined | ResourceColor = borderColor_buf__u_top_buf 20476 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20477 let borderColor_buf__u_right_buf: ResourceColor | undefined|undefined 20478 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 20479 { 20480 const borderColor_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 20481 let borderColor_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 20482 if (borderColor_buf__u_right_buf__selector == 0) { 20483 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 20484 } 20485 else if (borderColor_buf__u_right_buf__selector == 1) { 20486 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 20487 } 20488 else if (borderColor_buf__u_right_buf__selector == 2) { 20489 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 20490 } 20491 else if (borderColor_buf__u_right_buf__selector == 3) { 20492 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 20493 } 20494 else { 20495 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 20496 } 20497 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 20498 } 20499 const borderColor_buf__u_right: undefined | ResourceColor = borderColor_buf__u_right_buf 20500 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20501 let borderColor_buf__u_bottom_buf: ResourceColor | undefined|undefined 20502 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 20503 { 20504 const borderColor_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 20505 let borderColor_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 20506 if (borderColor_buf__u_bottom_buf__selector == 0) { 20507 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 20508 } 20509 else if (borderColor_buf__u_bottom_buf__selector == 1) { 20510 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 20511 } 20512 else if (borderColor_buf__u_bottom_buf__selector == 2) { 20513 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 20514 } 20515 else if (borderColor_buf__u_bottom_buf__selector == 3) { 20516 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 20517 } 20518 else { 20519 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 20520 } 20521 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 20522 } 20523 const borderColor_buf__u_bottom: undefined | ResourceColor = borderColor_buf__u_bottom_buf 20524 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20525 let borderColor_buf__u_left_buf: ResourceColor | undefined|undefined 20526 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 20527 { 20528 const borderColor_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 20529 let borderColor_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 20530 if (borderColor_buf__u_left_buf__selector == 0) { 20531 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 20532 } 20533 else if (borderColor_buf__u_left_buf__selector == 1) { 20534 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 20535 } 20536 else if (borderColor_buf__u_left_buf__selector == 2) { 20537 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 20538 } 20539 else if (borderColor_buf__u_left_buf__selector == 3) { 20540 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 20541 } 20542 else { 20543 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 20544 } 20545 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 20546 } 20547 const borderColor_buf__u_left: undefined | ResourceColor = borderColor_buf__u_left_buf 20548 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 20549 } 20550 else { 20551 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 20552 } 20553 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors) 20554 } 20555 const borderColor_result: ResourceColor | EdgeColors | undefined|undefined = borderColor_buf 20556 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20557 let borderStyle_buf: BorderStyle | EdgeStyles | undefined|undefined 20558 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 20559 { 20560 const borderStyle_buf__selector: number = valueDeserializer.readInt8() 20561 let borderStyle_buf_: BorderStyle | EdgeStyles | undefined|undefined 20562 if (borderStyle_buf__selector == 0) { 20563 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 20564 } 20565 else if (borderStyle_buf__selector == 1) { 20566 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20567 let borderStyle_buf__u_top_buf: BorderStyle | undefined|undefined 20568 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 20569 { 20570 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 20571 } 20572 const borderStyle_buf__u_top: undefined | BorderStyle = borderStyle_buf__u_top_buf 20573 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20574 let borderStyle_buf__u_right_buf: BorderStyle | undefined|undefined 20575 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 20576 { 20577 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 20578 } 20579 const borderStyle_buf__u_right: undefined | BorderStyle = borderStyle_buf__u_right_buf 20580 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20581 let borderStyle_buf__u_bottom_buf: BorderStyle | undefined|undefined 20582 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 20583 { 20584 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 20585 } 20586 const borderStyle_buf__u_bottom: undefined | BorderStyle = borderStyle_buf__u_bottom_buf 20587 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20588 let borderStyle_buf__u_left_buf: BorderStyle | undefined|undefined 20589 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 20590 { 20591 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 20592 } 20593 const borderStyle_buf__u_left: undefined | BorderStyle = borderStyle_buf__u_left_buf 20594 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 20595 } 20596 else { 20597 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 20598 } 20599 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 20600 } 20601 const borderStyle_result: BorderStyle | EdgeStyles | undefined|undefined = borderStyle_buf 20602 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20603 let shadow_buf: ShadowOptions | ShadowStyle | undefined|undefined 20604 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 20605 { 20606 const shadow_buf__selector: number = valueDeserializer.readInt8() 20607 let shadow_buf_: ShadowOptions | ShadowStyle | undefined|undefined 20608 if (shadow_buf__selector == 0) { 20609 shadow_buf_ = valueDeserializer.readShadowOptions() 20610 } 20611 else if (shadow_buf__selector == 1) { 20612 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 20613 } 20614 else { 20615 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 20616 } 20617 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 20618 } 20619 const shadow_result: ShadowOptions | ShadowStyle | undefined|undefined = shadow_buf 20620 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20621 let backgroundBlurStyle_buf: BlurStyle | undefined|undefined 20622 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 20623 { 20624 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 20625 } 20626 const backgroundBlurStyle_result: BlurStyle | undefined|undefined = backgroundBlurStyle_buf 20627 const keyboardAvoidMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20628 let keyboardAvoidMode_buf: KeyboardAvoidMode | undefined|undefined 20629 if ((RuntimeType.UNDEFINED) != (keyboardAvoidMode_buf_runtimeType)) 20630 { 20631 keyboardAvoidMode_buf = (valueDeserializer.readInt32() as KeyboardAvoidMode) 20632 } 20633 const keyboardAvoidMode_result: KeyboardAvoidMode | undefined|undefined = keyboardAvoidMode_buf 20634 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20635 let enableHoverMode_buf: boolean | undefined|undefined 20636 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 20637 { 20638 enableHoverMode_buf = valueDeserializer.readBoolean() 20639 } 20640 const enableHoverMode_result: boolean | undefined|undefined = enableHoverMode_buf 20641 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20642 let hoverModeArea_buf: HoverModeAreaType | undefined|undefined 20643 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 20644 { 20645 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 20646 } 20647 const hoverModeArea_result: HoverModeAreaType | undefined|undefined = hoverModeArea_buf 20648 let value: CustomDialogControllerOptions = ({builder: builder_result, cancel: cancel_result, autoCancel: autoCancel_result, alignment: alignment_result, offset: offset_result, customStyle: customStyle_result, gridCount: gridCount_result, maskColor: maskColor_result, maskRect: maskRect_result, openAnimation: openAnimation_result, closeAnimation: closeAnimation_result, showInSubWindow: showInSubWindow_result, backgroundColor: backgroundColor_result, cornerRadius: cornerRadius_result, isModal: isModal_result, onWillDismiss: onWillDismiss_result, width: width_result, height: height_result, borderWidth: borderWidth_result, borderColor: borderColor_result, borderStyle: borderStyle_result, shadow: shadow_result, backgroundBlurStyle: backgroundBlurStyle_result, keyboardAvoidMode: keyboardAvoidMode_result, enableHoverMode: enableHoverMode_result, hoverModeArea: hoverModeArea_result} as CustomDialogControllerOptions) 20649 return value 20650 } 20651 readCustomDialogController(): CustomDialogController { 20652 let valueDeserializer: Deserializer = this 20653 let ptr: KPointer = valueDeserializer.readPointer() 20654 return CustomDialogControllerInternal.fromPtr(ptr) 20655 } 20656 readSceneOptions(): SceneOptions { 20657 let valueDeserializer: Deserializer = this 20658 const scene_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20659 let scene_buf: ResourceStr | Scene | undefined|undefined 20660 if ((RuntimeType.UNDEFINED) != (scene_buf_runtimeType)) 20661 { 20662 const scene_buf__selector: number = valueDeserializer.readInt8() 20663 let scene_buf_: ResourceStr | Scene | undefined|undefined 20664 if (scene_buf__selector == 0) { 20665 const scene_buf__u_selector: number = valueDeserializer.readInt8() 20666 let scene_buf__u: string | Resource | undefined|undefined 20667 if (scene_buf__u_selector == 0) { 20668 scene_buf__u = (valueDeserializer.readString() as string) 20669 } 20670 else if (scene_buf__u_selector == 1) { 20671 scene_buf__u = valueDeserializer.readResource() 20672 } 20673 else { 20674 throw new Error("One of the branches for scene_buf__u has to be chosen through deserialisation.") 20675 } 20676 scene_buf_ = (scene_buf__u as string | Resource) 20677 } 20678 else if (scene_buf__selector == 1) { 20679 scene_buf_ = valueDeserializer.readScene() 20680 } 20681 else { 20682 throw new Error("One of the branches for scene_buf_ has to be chosen through deserialisation.") 20683 } 20684 scene_buf = (scene_buf_ as ResourceStr | Scene) 20685 } 20686 const scene_result: ResourceStr | Scene | undefined|undefined = scene_buf 20687 const modelType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20688 let modelType_buf: ModelType | undefined|undefined 20689 if ((RuntimeType.UNDEFINED) != (modelType_buf_runtimeType)) 20690 { 20691 modelType_buf = (valueDeserializer.readInt32() as ModelType) 20692 } 20693 const modelType_result: ModelType | undefined|undefined = modelType_buf 20694 let value: SceneOptions = ({scene: scene_result, modelType: modelType_result} as SceneOptions) 20695 return value 20696 } 20697 readUICommonEvent(): UICommonEvent { 20698 let valueDeserializer: Deserializer = this 20699 let ptr: KPointer = valueDeserializer.readPointer() 20700 return UICommonEventInternal.fromPtr(ptr) 20701 } 20702 readChildrenMainSize(): ChildrenMainSize { 20703 let valueDeserializer: Deserializer = this 20704 let ptr: KPointer = valueDeserializer.readPointer() 20705 return ChildrenMainSizeInternal.fromPtr(ptr) 20706 } 20707 readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { 20708 const _resource: CallbackResource = this.readCallbackResource() 20709 const _call: KPointer = this.readPointer() 20710 const _callSync: KPointer = this.readPointer() 20711 return (xOffset: number, yOffset: number, scrollState: ScrollState): void => { 20712 const _argsSerializer: Serializer = Serializer.hold(); 20713 _argsSerializer.writeInt32(_resource.resourceId); 20714 _argsSerializer.writePointer(_call); 20715 _argsSerializer.writePointer(_callSync); 20716 _argsSerializer.writeNumber(xOffset); 20717 _argsSerializer.writeNumber(yOffset); 20718 _argsSerializer.writeInt32(scrollState); 20719 (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); 20720 _argsSerializer.release(); 20721 return; } 20722 } 20723 readCallback_Number_Number_Void(isSync: boolean = false): ((first: number, last: number) => void) { 20724 const _resource: CallbackResource = this.readCallbackResource() 20725 const _call: KPointer = this.readPointer() 20726 const _callSync: KPointer = this.readPointer() 20727 return (first: number, last: number): void => { 20728 const _argsSerializer: Serializer = Serializer.hold(); 20729 _argsSerializer.writeInt32(_resource.resourceId); 20730 _argsSerializer.writePointer(_call); 20731 _argsSerializer.writePointer(_callSync); 20732 _argsSerializer.writeNumber(first); 20733 _argsSerializer.writeNumber(last); 20734 (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); 20735 _argsSerializer.release(); 20736 return; } 20737 } 20738 readTextContentControllerBase(): TextContentControllerBase { 20739 let valueDeserializer: Deserializer = this 20740 let ptr: KPointer = valueDeserializer.readPointer() 20741 return TextContentControllerBaseInternal.fromPtr(ptr) 20742 } 20743 readView(): View { 20744 let valueDeserializer: Deserializer = this 20745 let ptr: KPointer = valueDeserializer.readPointer() 20746 return ViewInternal.fromPtr(ptr) 20747 } 20748 readMeasurable(): Measurable { 20749 let valueDeserializer: Deserializer = this 20750 let ptr: KPointer = valueDeserializer.readPointer() 20751 return MeasurableInternal.fromPtr(ptr) 20752 } 20753 readSpringBackAction(): SpringBackAction { 20754 let valueDeserializer: Deserializer = this 20755 const springBack_result: (() => void) = valueDeserializer.readCallback_Void() 20756 let value: SpringBackAction = ({springBack: springBack_result} as SpringBackAction) 20757 return value 20758 } 20759 readDismissSheetAction(): DismissSheetAction { 20760 let valueDeserializer: Deserializer = this 20761 const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() 20762 const reason_result: DismissReason = (valueDeserializer.readInt32() as DismissReason) 20763 let value: DismissSheetAction = ({dismiss: dismiss_result, reason: reason_result} as DismissSheetAction) 20764 return value 20765 } 20766 readSheetDismiss(): SheetDismiss { 20767 let valueDeserializer: Deserializer = this 20768 const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() 20769 let value: SheetDismiss = ({dismiss: dismiss_result} as SheetDismiss) 20770 return value 20771 } 20772 readDismissContentCoverAction(): DismissContentCoverAction { 20773 let valueDeserializer: Deserializer = this 20774 const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() 20775 const reason_result: DismissReason = (valueDeserializer.readInt32() as DismissReason) 20776 let value: DismissContentCoverAction = ({dismiss: dismiss_result, reason: reason_result} as DismissContentCoverAction) 20777 return value 20778 } 20779 readMenuElement(): MenuElement { 20780 let valueDeserializer: Deserializer = this 20781 const value_buf_selector: number = valueDeserializer.readInt8() 20782 let value_buf: string | Resource | undefined|undefined 20783 if (value_buf_selector == 0) { 20784 value_buf = (valueDeserializer.readString() as string) 20785 } 20786 else if (value_buf_selector == 1) { 20787 value_buf = valueDeserializer.readResource() 20788 } 20789 else { 20790 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 20791 } 20792 const value_result: ResourceStr = (value_buf as string | Resource) 20793 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20794 let icon_buf: ResourceStr | undefined|undefined 20795 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 20796 { 20797 const icon_buf__selector: number = valueDeserializer.readInt8() 20798 let icon_buf_: string | Resource | undefined|undefined 20799 if (icon_buf__selector == 0) { 20800 icon_buf_ = (valueDeserializer.readString() as string) 20801 } 20802 else if (icon_buf__selector == 1) { 20803 icon_buf_ = valueDeserializer.readResource() 20804 } 20805 else { 20806 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 20807 } 20808 icon_buf = (icon_buf_ as string | Resource) 20809 } 20810 const icon_result: ResourceStr | undefined|undefined = icon_buf 20811 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20812 let symbolIcon_buf: SymbolGlyphModifier | undefined|undefined 20813 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 20814 { 20815 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 20816 } 20817 const symbolIcon_result: SymbolGlyphModifier | undefined|undefined = symbolIcon_buf 20818 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20819 let enabled_buf: boolean | undefined|undefined 20820 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 20821 { 20822 enabled_buf = valueDeserializer.readBoolean() 20823 } 20824 const enabled_result: boolean | undefined|undefined = enabled_buf 20825 const action_result: (() => void) = valueDeserializer.readCallback_Void() 20826 let value: MenuElement = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, enabled: enabled_result, action: action_result} as MenuElement) 20827 return value 20828 } 20829 readDismissPopupAction(): DismissPopupAction { 20830 let valueDeserializer: Deserializer = this 20831 const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() 20832 const reason_result: DismissReason = (valueDeserializer.readInt32() as DismissReason) 20833 let value: DismissPopupAction = ({dismiss: dismiss_result, reason: reason_result} as DismissPopupAction) 20834 return value 20835 } 20836 readCallback_TouchEvent_HitTestMode(isSync: boolean = false): ((parameter: TouchEvent) => HitTestMode) { 20837 const _resource: CallbackResource = this.readCallbackResource() 20838 const _call: KPointer = this.readPointer() 20839 const _callSync: KPointer = this.readPointer() 20840 return (parameter: TouchEvent): HitTestMode => { 20841 const _argsSerializer: Serializer = Serializer.hold(); 20842 _argsSerializer.writeInt32(_resource.resourceId); 20843 _argsSerializer.writePointer(_call); 20844 _argsSerializer.writePointer(_callSync); 20845 _argsSerializer.writeTouchEvent(parameter); 20846 let _continuationValue: HitTestMode | undefined|undefined ; 20847 const _continuationCallback: ((value: HitTestMode) => void) = (value: HitTestMode): void => { _continuationValue = value; } 20848 _argsSerializer.holdAndWriteCallback(_continuationCallback); 20849 (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); 20850 _argsSerializer.release(); 20851 return (_continuationValue as HitTestMode); } 20852 } 20853 readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { 20854 const _resource: CallbackResource = this.readCallbackResource() 20855 const _call: KPointer = this.readPointer() 20856 const _callSync: KPointer = this.readPointer() 20857 return (current: GestureRecognizer, others: Array<GestureRecognizer>): GestureRecognizer => { 20858 const _argsSerializer: Serializer = Serializer.hold(); 20859 _argsSerializer.writeInt32(_resource.resourceId); 20860 _argsSerializer.writePointer(_call); 20861 _argsSerializer.writePointer(_callSync); 20862 _argsSerializer.writeGestureRecognizer(current); 20863 _argsSerializer.writeInt32(others.length); 20864 for (let i = 0; i < others.length; i++) { 20865 const others_element: GestureRecognizer = others[i]; 20866 _argsSerializer.writeGestureRecognizer(others_element); 20867 } 20868 let _continuationValue: GestureRecognizer | undefined|undefined ; 20869 const _continuationCallback: ((value: GestureRecognizer) => void) = (value: GestureRecognizer): void => { _continuationValue = value; } 20870 _argsSerializer.holdAndWriteCallback(_continuationCallback); 20871 (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); 20872 _argsSerializer.release(); 20873 return (_continuationValue as GestureRecognizer); } 20874 } 20875 readGestureRecognizer(): GestureRecognizer { 20876 let valueDeserializer: Deserializer = this 20877 let ptr: KPointer = valueDeserializer.readPointer() 20878 return GestureRecognizerInternal.fromPtr(ptr) 20879 } 20880 readFingerInfo(): FingerInfo { 20881 let valueDeserializer: Deserializer = this 20882 const id_result: number = (valueDeserializer.readNumber() as number) 20883 const globalX_result: number = (valueDeserializer.readNumber() as number) 20884 const globalY_result: number = (valueDeserializer.readNumber() as number) 20885 const localX_result: number = (valueDeserializer.readNumber() as number) 20886 const localY_result: number = (valueDeserializer.readNumber() as number) 20887 const displayX_result: number = (valueDeserializer.readNumber() as number) 20888 const displayY_result: number = (valueDeserializer.readNumber() as number) 20889 let value: FingerInfo = ({id: id_result, globalX: globalX_result, globalY: globalY_result, localX: localX_result, localY: localY_result, displayX: displayX_result, displayY: displayY_result} as FingerInfo) 20890 return value 20891 } 20892 readBaseGestureEvent(): BaseGestureEvent { 20893 let valueDeserializer: Deserializer = this 20894 let ptr: KPointer = valueDeserializer.readPointer() 20895 return BaseGestureEventInternal.fromPtr(ptr) 20896 } 20897 readGestureInfo(): GestureInfo { 20898 let valueDeserializer: Deserializer = this 20899 const tag_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20900 let tag_buf: string | undefined|undefined 20901 if ((RuntimeType.UNDEFINED) != (tag_buf_runtimeType)) 20902 { 20903 tag_buf = (valueDeserializer.readString() as string) 20904 } 20905 const tag_result: string | undefined|undefined = tag_buf 20906 const type_result: GestureControl.GestureType = (valueDeserializer.readInt32() as GestureControl.GestureType) 20907 const isSystemGesture_result: boolean = valueDeserializer.readBoolean() 20908 let value: GestureInfo = ({tag: tag_result, type: type_result, isSystemGesture: isSystemGesture_result} as GestureInfo) 20909 return value 20910 } 20911 readCallback_GestureInfo_BaseGestureEvent_GestureJudgeResult(isSync: boolean = false): ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) { 20912 const _resource: CallbackResource = this.readCallbackResource() 20913 const _call: KPointer = this.readPointer() 20914 const _callSync: KPointer = this.readPointer() 20915 return (gestureInfo: GestureInfo, event: BaseGestureEvent): GestureJudgeResult => { 20916 const _argsSerializer: Serializer = Serializer.hold(); 20917 _argsSerializer.writeInt32(_resource.resourceId); 20918 _argsSerializer.writePointer(_call); 20919 _argsSerializer.writePointer(_callSync); 20920 _argsSerializer.writeGestureInfo(gestureInfo); 20921 _argsSerializer.writeBaseGestureEvent(event); 20922 let _continuationValue: GestureJudgeResult | undefined|undefined ; 20923 const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } 20924 _argsSerializer.holdAndWriteCallback(_continuationCallback); 20925 (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); 20926 _argsSerializer.release(); 20927 return (_continuationValue as GestureJudgeResult); } 20928 } 20929 readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { 20930 let valueDeserializer: Deserializer = this 20931 const rate_result: number = (valueDeserializer.readNumber() as number) 20932 const lightUpDegree_result: number = (valueDeserializer.readNumber() as number) 20933 let value: BackgroundBrightnessOptions = ({rate: rate_result, lightUpDegree: lightUpDegree_result} as BackgroundBrightnessOptions) 20934 return value 20935 } 20936 readGestureModifier(): GestureModifier { 20937 let valueDeserializer: Deserializer = this 20938 let ptr: KPointer = valueDeserializer.readPointer() 20939 return GestureModifierInternal.fromPtr(ptr) 20940 } 20941 readPixelStretchEffectOptions(): PixelStretchEffectOptions { 20942 let valueDeserializer: Deserializer = this 20943 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20944 let top_buf: Length | undefined|undefined 20945 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 20946 { 20947 top_buf = (valueDeserializer.readLength() as Length) 20948 } 20949 const top_result: Length | undefined|undefined = top_buf 20950 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20951 let bottom_buf: Length | undefined|undefined 20952 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 20953 { 20954 bottom_buf = (valueDeserializer.readLength() as Length) 20955 } 20956 const bottom_result: Length | undefined|undefined = bottom_buf 20957 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20958 let left_buf: Length | undefined|undefined 20959 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 20960 { 20961 left_buf = (valueDeserializer.readLength() as Length) 20962 } 20963 const left_result: Length | undefined|undefined = left_buf 20964 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20965 let right_buf: Length | undefined|undefined 20966 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 20967 { 20968 right_buf = (valueDeserializer.readLength() as Length) 20969 } 20970 const right_result: Length | undefined|undefined = right_buf 20971 let value: PixelStretchEffectOptions = ({top: top_result, bottom: bottom_result, left: left_result, right: right_result} as PixelStretchEffectOptions) 20972 return value 20973 } 20974 readStateStyles(): StateStyles { 20975 let valueDeserializer: Deserializer = this 20976 const normal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20977 let normal_buf: any | undefined|undefined 20978 if ((RuntimeType.UNDEFINED) != (normal_buf_runtimeType)) 20979 { 20980 normal_buf = (valueDeserializer.readCustomObject("Any") as Object) 20981 } 20982 const normal_result: any | undefined|undefined = normal_buf 20983 const pressed_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20984 let pressed_buf: any | undefined|undefined 20985 if ((RuntimeType.UNDEFINED) != (pressed_buf_runtimeType)) 20986 { 20987 pressed_buf = (valueDeserializer.readCustomObject("Any") as Object) 20988 } 20989 const pressed_result: any | undefined|undefined = pressed_buf 20990 const disabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20991 let disabled_buf: any | undefined|undefined 20992 if ((RuntimeType.UNDEFINED) != (disabled_buf_runtimeType)) 20993 { 20994 disabled_buf = (valueDeserializer.readCustomObject("Any") as Object) 20995 } 20996 const disabled_result: any | undefined|undefined = disabled_buf 20997 const focused_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20998 let focused_buf: any | undefined|undefined 20999 if ((RuntimeType.UNDEFINED) != (focused_buf_runtimeType)) 21000 { 21001 focused_buf = (valueDeserializer.readCustomObject("Any") as Object) 21002 } 21003 const focused_result: any | undefined|undefined = focused_buf 21004 const clicked_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21005 let clicked_buf: any | undefined|undefined 21006 if ((RuntimeType.UNDEFINED) != (clicked_buf_runtimeType)) 21007 { 21008 clicked_buf = (valueDeserializer.readCustomObject("Any") as Object) 21009 } 21010 const clicked_result: any | undefined|undefined = clicked_buf 21011 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21012 let selected_buf: Object | undefined|undefined 21013 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 21014 { 21015 selected_buf = (valueDeserializer.readCustomObject("Object") as Object) 21016 } 21017 const selected_result: Object | undefined|undefined = selected_buf 21018 let value: StateStyles = ({normal: normal_result, pressed: pressed_result, disabled: disabled_result, focused: focused_result, clicked: clicked_result, selected: selected_result} as StateStyles) 21019 return value 21020 } 21021 readCallback_PreDragStatus_Void(isSync: boolean = false): ((parameter: PreDragStatus) => void) { 21022 const _resource: CallbackResource = this.readCallbackResource() 21023 const _call: KPointer = this.readPointer() 21024 const _callSync: KPointer = this.readPointer() 21025 return (parameter: PreDragStatus): void => { 21026 const _argsSerializer: Serializer = Serializer.hold(); 21027 _argsSerializer.writeInt32(_resource.resourceId); 21028 _argsSerializer.writePointer(_call); 21029 _argsSerializer.writePointer(_callSync); 21030 _argsSerializer.writeInt32(parameter); 21031 (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); 21032 _argsSerializer.release(); 21033 return; } 21034 } 21035 readUniformDataType(): UniformDataType { 21036 let valueDeserializer: Deserializer = this 21037 const _UniformDataTypeStub_result: string = (valueDeserializer.readString() as string) 21038 let value: UniformDataType = ({_UniformDataTypeStub: _UniformDataTypeStub_result} as UniformDataType) 21039 return value 21040 } 21041 readCallback_DragEvent_String_Void(isSync: boolean = false): ((event: DragEvent, extraParams?: string) => void) { 21042 const _resource: CallbackResource = this.readCallbackResource() 21043 const _call: KPointer = this.readPointer() 21044 const _callSync: KPointer = this.readPointer() 21045 return (event: DragEvent, extraParams?: string | undefined): void => { 21046 const _argsSerializer: Serializer = Serializer.hold(); 21047 _argsSerializer.writeInt32(_resource.resourceId); 21048 _argsSerializer.writePointer(_call); 21049 _argsSerializer.writePointer(_callSync); 21050 _argsSerializer.writeDragEvent(event); 21051 let extraParams_type: int32 = RuntimeType.UNDEFINED; 21052 extraParams_type = runtimeType(extraParams); 21053 _argsSerializer.writeInt8(extraParams_type); 21054 if ((RuntimeType.UNDEFINED) != (extraParams_type)) { 21055 const extraParams_value = extraParams!; 21056 _argsSerializer.writeString(extraParams_value); 21057 } 21058 (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); 21059 _argsSerializer.release(); 21060 return; } 21061 } 21062 readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo) { 21063 const _resource: CallbackResource = this.readCallbackResource() 21064 const _call: KPointer = this.readPointer() 21065 const _callSync: KPointer = this.readPointer() 21066 return (event: DragEvent, extraParams?: string | undefined): CustomBuilder | DragItemInfo => { 21067 const _argsSerializer: Serializer = Serializer.hold(); 21068 _argsSerializer.writeInt32(_resource.resourceId); 21069 _argsSerializer.writePointer(_call); 21070 _argsSerializer.writePointer(_callSync); 21071 _argsSerializer.writeDragEvent(event); 21072 let extraParams_type: int32 = RuntimeType.UNDEFINED; 21073 extraParams_type = runtimeType(extraParams); 21074 _argsSerializer.writeInt8(extraParams_type); 21075 if ((RuntimeType.UNDEFINED) != (extraParams_type)) { 21076 const extraParams_value = extraParams!; 21077 _argsSerializer.writeString(extraParams_value); 21078 } 21079 let _continuationValue: CustomBuilder | DragItemInfo | undefined|undefined ; 21080 const _continuationCallback: ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo): void => { _continuationValue = value; } 21081 _argsSerializer.holdAndWriteCallback(_continuationCallback); 21082 (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); 21083 _argsSerializer.release(); 21084 return (_continuationValue as CustomBuilder | DragItemInfo); } 21085 } 21086 readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { 21087 let valueDeserializer: Deserializer = this 21088 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21089 let start_buf: LocalizedHorizontalAlignParam | undefined|undefined 21090 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 21091 { 21092 start_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21093 } 21094 const start_result: LocalizedHorizontalAlignParam | undefined|undefined = start_buf 21095 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21096 let end_buf: LocalizedHorizontalAlignParam | undefined|undefined 21097 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 21098 { 21099 end_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21100 } 21101 const end_result: LocalizedHorizontalAlignParam | undefined|undefined = end_buf 21102 const middle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21103 let middle_buf: LocalizedHorizontalAlignParam | undefined|undefined 21104 if ((RuntimeType.UNDEFINED) != (middle_buf_runtimeType)) 21105 { 21106 middle_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21107 } 21108 const middle_result: LocalizedHorizontalAlignParam | undefined|undefined = middle_buf 21109 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21110 let top_buf: LocalizedVerticalAlignParam | undefined|undefined 21111 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 21112 { 21113 top_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21114 } 21115 const top_result: LocalizedVerticalAlignParam | undefined|undefined = top_buf 21116 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21117 let bottom_buf: LocalizedVerticalAlignParam | undefined|undefined 21118 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 21119 { 21120 bottom_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21121 } 21122 const bottom_result: LocalizedVerticalAlignParam | undefined|undefined = bottom_buf 21123 const center_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21124 let center_buf: LocalizedVerticalAlignParam | undefined|undefined 21125 if ((RuntimeType.UNDEFINED) != (center_buf_runtimeType)) 21126 { 21127 center_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21128 } 21129 const center_result: LocalizedVerticalAlignParam | undefined|undefined = center_buf 21130 const bias_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21131 let bias_buf: Bias | undefined|undefined 21132 if ((RuntimeType.UNDEFINED) != (bias_buf_runtimeType)) 21133 { 21134 bias_buf = valueDeserializer.readBias() 21135 } 21136 const bias_result: Bias | undefined|undefined = bias_buf 21137 let value: LocalizedAlignRuleOptions = ({start: start_result, end: end_result, middle: middle_result, top: top_result, bottom: bottom_result, center: center_result, bias: bias_result} as LocalizedAlignRuleOptions) 21138 return value 21139 } 21140 readAlignRuleOption(): AlignRuleOption { 21141 let valueDeserializer: Deserializer = this 21142 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21143 let left_buf: { anchor: string, align: HorizontalAlign } | undefined|undefined 21144 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 21145 { 21146 const left_buf__anchor: string = (valueDeserializer.readString() as string) 21147 const left_buf__align: HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21148 left_buf = ({anchor: left_buf__anchor, align: left_buf__align} as { anchor: string, align: HorizontalAlign }) 21149 } 21150 const left_result: { anchor: string, align: HorizontalAlign } | undefined|undefined = left_buf 21151 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21152 let right_buf: { anchor: string, align: HorizontalAlign } | undefined|undefined 21153 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 21154 { 21155 const right_buf__anchor: string = (valueDeserializer.readString() as string) 21156 const right_buf__align: HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21157 right_buf = ({anchor: right_buf__anchor, align: right_buf__align} as { anchor: string, align: HorizontalAlign }) 21158 } 21159 const right_result: { anchor: string, align: HorizontalAlign } | undefined|undefined = right_buf 21160 const middle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21161 let middle_buf: { anchor: string, align: HorizontalAlign } | undefined|undefined 21162 if ((RuntimeType.UNDEFINED) != (middle_buf_runtimeType)) 21163 { 21164 const middle_buf__anchor: string = (valueDeserializer.readString() as string) 21165 const middle_buf__align: HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21166 middle_buf = ({anchor: middle_buf__anchor, align: middle_buf__align} as { anchor: string, align: HorizontalAlign }) 21167 } 21168 const middle_result: { anchor: string, align: HorizontalAlign } | undefined|undefined = middle_buf 21169 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21170 let top_buf: { anchor: string, align: VerticalAlign } | undefined|undefined 21171 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 21172 { 21173 const top_buf__anchor: string = (valueDeserializer.readString() as string) 21174 const top_buf__align: VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21175 top_buf = ({anchor: top_buf__anchor, align: top_buf__align} as { anchor: string, align: VerticalAlign }) 21176 } 21177 const top_result: { anchor: string, align: VerticalAlign } | undefined|undefined = top_buf 21178 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21179 let bottom_buf: { anchor: string, align: VerticalAlign } | undefined|undefined 21180 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 21181 { 21182 const bottom_buf__anchor: string = (valueDeserializer.readString() as string) 21183 const bottom_buf__align: VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21184 bottom_buf = ({anchor: bottom_buf__anchor, align: bottom_buf__align} as { anchor: string, align: VerticalAlign }) 21185 } 21186 const bottom_result: { anchor: string, align: VerticalAlign } | undefined|undefined = bottom_buf 21187 const center_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21188 let center_buf: { anchor: string, align: VerticalAlign } | undefined|undefined 21189 if ((RuntimeType.UNDEFINED) != (center_buf_runtimeType)) 21190 { 21191 const center_buf__anchor: string = (valueDeserializer.readString() as string) 21192 const center_buf__align: VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21193 center_buf = ({anchor: center_buf__anchor, align: center_buf__align} as { anchor: string, align: VerticalAlign }) 21194 } 21195 const center_result: { anchor: string, align: VerticalAlign } | undefined|undefined = center_buf 21196 const bias_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21197 let bias_buf: Bias | undefined|undefined 21198 if ((RuntimeType.UNDEFINED) != (bias_buf_runtimeType)) 21199 { 21200 bias_buf = valueDeserializer.readBias() 21201 } 21202 const bias_result: Bias | undefined|undefined = bias_buf 21203 let value: AlignRuleOption = ({left: left_result, right: right_result, middle: middle_result, top: top_result, bottom: bottom_result, center: center_result, bias: bias_result} as AlignRuleOption) 21204 return value 21205 } 21206 readCallback_Area_Area_Void(isSync: boolean = false): ((oldValue: Area, newValue: Area) => void) { 21207 const _resource: CallbackResource = this.readCallbackResource() 21208 const _call: KPointer = this.readPointer() 21209 const _callSync: KPointer = this.readPointer() 21210 return (oldValue: Area, newValue: Area): void => { 21211 const _argsSerializer: Serializer = Serializer.hold(); 21212 _argsSerializer.writeInt32(_resource.resourceId); 21213 _argsSerializer.writePointer(_call); 21214 _argsSerializer.writePointer(_callSync); 21215 _argsSerializer.writeArea(oldValue); 21216 _argsSerializer.writeArea(newValue); 21217 (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); 21218 _argsSerializer.release(); 21219 return; } 21220 } 21221 readMotionBlurOptions(): MotionBlurOptions { 21222 let valueDeserializer: Deserializer = this 21223 const radius_result: number = (valueDeserializer.readNumber() as number) 21224 const anchor_result: MotionBlurAnchor = valueDeserializer.readMotionBlurAnchor() 21225 let value: MotionBlurOptions = ({radius: radius_result, anchor: anchor_result} as MotionBlurOptions) 21226 return value 21227 } 21228 readFocusBoxStyle(): FocusBoxStyle { 21229 let valueDeserializer: Deserializer = this 21230 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21231 let margin_buf: LengthMetrics | undefined|undefined 21232 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 21233 { 21234 margin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 21235 } 21236 const margin_result: LengthMetrics | undefined|undefined = margin_buf 21237 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21238 let strokeColor_buf: ColorMetrics | undefined|undefined 21239 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 21240 { 21241 strokeColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 21242 } 21243 const strokeColor_result: ColorMetrics | undefined|undefined = strokeColor_buf 21244 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21245 let strokeWidth_buf: LengthMetrics | undefined|undefined 21246 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 21247 { 21248 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 21249 } 21250 const strokeWidth_result: LengthMetrics | undefined|undefined = strokeWidth_buf 21251 let value: FocusBoxStyle = ({margin: margin_result, strokeColor: strokeColor_result, strokeWidth: strokeWidth_result} as FocusBoxStyle) 21252 return value 21253 } 21254 readCallback_KeyEvent_Boolean(isSync: boolean = false): ((parameter: KeyEvent) => boolean) { 21255 const _resource: CallbackResource = this.readCallbackResource() 21256 const _call: KPointer = this.readPointer() 21257 const _callSync: KPointer = this.readPointer() 21258 return (parameter: KeyEvent): boolean => { 21259 const _argsSerializer: Serializer = Serializer.hold(); 21260 _argsSerializer.writeInt32(_resource.resourceId); 21261 _argsSerializer.writePointer(_call); 21262 _argsSerializer.writePointer(_callSync); 21263 _argsSerializer.writeKeyEvent(parameter); 21264 let _continuationValue: boolean | undefined|undefined ; 21265 const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } 21266 _argsSerializer.holdAndWriteCallback(_continuationCallback); 21267 (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); 21268 _argsSerializer.release(); 21269 return (_continuationValue as boolean); } 21270 } 21271 readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { 21272 const _resource: CallbackResource = this.readCallbackResource() 21273 const _call: KPointer = this.readPointer() 21274 const _callSync: KPointer = this.readPointer() 21275 return (isHover: boolean, event: AccessibilityHoverEvent): void => { 21276 const _argsSerializer: Serializer = Serializer.hold(); 21277 _argsSerializer.writeInt32(_resource.resourceId); 21278 _argsSerializer.writePointer(_call); 21279 _argsSerializer.writePointer(_callSync); 21280 _argsSerializer.writeBoolean(isHover); 21281 _argsSerializer.writeAccessibilityHoverEvent(event); 21282 (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); 21283 _argsSerializer.release(); 21284 return; } 21285 } 21286 readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean, event: HoverEvent) => void) { 21287 const _resource: CallbackResource = this.readCallbackResource() 21288 const _call: KPointer = this.readPointer() 21289 const _callSync: KPointer = this.readPointer() 21290 return (isHover: boolean, event: HoverEvent): void => { 21291 const _argsSerializer: Serializer = Serializer.hold(); 21292 _argsSerializer.writeInt32(_resource.resourceId); 21293 _argsSerializer.writePointer(_call); 21294 _argsSerializer.writePointer(_callSync); 21295 _argsSerializer.writeBoolean(isHover); 21296 _argsSerializer.writeHoverEvent(event); 21297 (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); 21298 _argsSerializer.release(); 21299 return; } 21300 } 21301 readOutlineOptions(): OutlineOptions { 21302 let valueDeserializer: Deserializer = this 21303 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21304 let width_buf: EdgeOutlineWidths | Dimension | undefined|undefined 21305 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21306 { 21307 const width_buf__selector: number = valueDeserializer.readInt8() 21308 let width_buf_: EdgeOutlineWidths | Dimension | undefined|undefined 21309 if (width_buf__selector == 0) { 21310 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21311 let width_buf__u_top_buf: Dimension | undefined|undefined 21312 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21313 { 21314 width_buf__u_top_buf = (valueDeserializer.readLength() as Dimension) 21315 } 21316 const width_buf__u_top: undefined | Dimension = width_buf__u_top_buf 21317 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21318 let width_buf__u_right_buf: Dimension | undefined|undefined 21319 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21320 { 21321 width_buf__u_right_buf = (valueDeserializer.readLength() as Dimension) 21322 } 21323 const width_buf__u_right: undefined | Dimension = width_buf__u_right_buf 21324 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21325 let width_buf__u_bottom_buf: Dimension | undefined|undefined 21326 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21327 { 21328 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Dimension) 21329 } 21330 const width_buf__u_bottom: undefined | Dimension = width_buf__u_bottom_buf 21331 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21332 let width_buf__u_left_buf: Dimension | undefined|undefined 21333 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21334 { 21335 width_buf__u_left_buf = (valueDeserializer.readLength() as Dimension) 21336 } 21337 const width_buf__u_left: undefined | Dimension = width_buf__u_left_buf 21338 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeOutlineWidths) 21339 } 21340 else if (width_buf__selector == 1) { 21341 width_buf_ = (valueDeserializer.readLength() as Dimension) 21342 } 21343 else { 21344 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21345 } 21346 width_buf = (width_buf_ as EdgeOutlineWidths | Dimension) 21347 } 21348 const width_result: EdgeOutlineWidths | Dimension | undefined|undefined = width_buf 21349 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21350 let color_buf: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined 21351 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 21352 { 21353 const color_buf__selector: number = valueDeserializer.readInt8() 21354 let color_buf_: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined 21355 if (color_buf__selector == 0) { 21356 const color_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21357 let color_buf__u_top_buf: ResourceColor | undefined|undefined 21358 if ((RuntimeType.UNDEFINED) != (color_buf__u_top_buf_runtimeType)) 21359 { 21360 const color_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 21361 let color_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 21362 if (color_buf__u_top_buf__selector == 0) { 21363 color_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 21364 } 21365 else if (color_buf__u_top_buf__selector == 1) { 21366 color_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 21367 } 21368 else if (color_buf__u_top_buf__selector == 2) { 21369 color_buf__u_top_buf_ = (valueDeserializer.readString() as string) 21370 } 21371 else if (color_buf__u_top_buf__selector == 3) { 21372 color_buf__u_top_buf_ = valueDeserializer.readResource() 21373 } 21374 else { 21375 throw new Error("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation.") 21376 } 21377 color_buf__u_top_buf = (color_buf__u_top_buf_ as Color | number | string | Resource) 21378 } 21379 const color_buf__u_top: undefined | ResourceColor = color_buf__u_top_buf 21380 const color_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21381 let color_buf__u_right_buf: ResourceColor | undefined|undefined 21382 if ((RuntimeType.UNDEFINED) != (color_buf__u_right_buf_runtimeType)) 21383 { 21384 const color_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 21385 let color_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 21386 if (color_buf__u_right_buf__selector == 0) { 21387 color_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 21388 } 21389 else if (color_buf__u_right_buf__selector == 1) { 21390 color_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 21391 } 21392 else if (color_buf__u_right_buf__selector == 2) { 21393 color_buf__u_right_buf_ = (valueDeserializer.readString() as string) 21394 } 21395 else if (color_buf__u_right_buf__selector == 3) { 21396 color_buf__u_right_buf_ = valueDeserializer.readResource() 21397 } 21398 else { 21399 throw new Error("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation.") 21400 } 21401 color_buf__u_right_buf = (color_buf__u_right_buf_ as Color | number | string | Resource) 21402 } 21403 const color_buf__u_right: undefined | ResourceColor = color_buf__u_right_buf 21404 const color_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21405 let color_buf__u_bottom_buf: ResourceColor | undefined|undefined 21406 if ((RuntimeType.UNDEFINED) != (color_buf__u_bottom_buf_runtimeType)) 21407 { 21408 const color_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 21409 let color_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 21410 if (color_buf__u_bottom_buf__selector == 0) { 21411 color_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 21412 } 21413 else if (color_buf__u_bottom_buf__selector == 1) { 21414 color_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 21415 } 21416 else if (color_buf__u_bottom_buf__selector == 2) { 21417 color_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 21418 } 21419 else if (color_buf__u_bottom_buf__selector == 3) { 21420 color_buf__u_bottom_buf_ = valueDeserializer.readResource() 21421 } 21422 else { 21423 throw new Error("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation.") 21424 } 21425 color_buf__u_bottom_buf = (color_buf__u_bottom_buf_ as Color | number | string | Resource) 21426 } 21427 const color_buf__u_bottom: undefined | ResourceColor = color_buf__u_bottom_buf 21428 const color_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21429 let color_buf__u_left_buf: ResourceColor | undefined|undefined 21430 if ((RuntimeType.UNDEFINED) != (color_buf__u_left_buf_runtimeType)) 21431 { 21432 const color_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 21433 let color_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 21434 if (color_buf__u_left_buf__selector == 0) { 21435 color_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 21436 } 21437 else if (color_buf__u_left_buf__selector == 1) { 21438 color_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 21439 } 21440 else if (color_buf__u_left_buf__selector == 2) { 21441 color_buf__u_left_buf_ = (valueDeserializer.readString() as string) 21442 } 21443 else if (color_buf__u_left_buf__selector == 3) { 21444 color_buf__u_left_buf_ = valueDeserializer.readResource() 21445 } 21446 else { 21447 throw new Error("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation.") 21448 } 21449 color_buf__u_left_buf = (color_buf__u_left_buf_ as Color | number | string | Resource) 21450 } 21451 const color_buf__u_left: undefined | ResourceColor = color_buf__u_left_buf 21452 color_buf_ = ({top: color_buf__u_top, right: color_buf__u_right, bottom: color_buf__u_bottom, left: color_buf__u_left} as EdgeColors) 21453 } 21454 else if (color_buf__selector == 1) { 21455 const color_buf__u_selector: number = valueDeserializer.readInt8() 21456 let color_buf__u: Color | number | string | Resource | undefined|undefined 21457 if (color_buf__u_selector == 0) { 21458 color_buf__u = (valueDeserializer.readInt32() as Color) 21459 } 21460 else if (color_buf__u_selector == 1) { 21461 color_buf__u = (valueDeserializer.readNumber() as number) 21462 } 21463 else if (color_buf__u_selector == 2) { 21464 color_buf__u = (valueDeserializer.readString() as string) 21465 } 21466 else if (color_buf__u_selector == 3) { 21467 color_buf__u = valueDeserializer.readResource() 21468 } 21469 else { 21470 throw new Error("One of the branches for color_buf__u has to be chosen through deserialisation.") 21471 } 21472 color_buf_ = (color_buf__u as Color | number | string | Resource) 21473 } 21474 else if (color_buf__selector == 2) { 21475 color_buf_ = valueDeserializer.readLocalizedEdgeColors() 21476 } 21477 else { 21478 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 21479 } 21480 color_buf = (color_buf_ as EdgeColors | ResourceColor | LocalizedEdgeColors) 21481 } 21482 const color_result: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined = color_buf 21483 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21484 let radius_buf: OutlineRadiuses | Dimension | undefined|undefined 21485 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 21486 { 21487 const radius_buf__selector: number = valueDeserializer.readInt8() 21488 let radius_buf_: OutlineRadiuses | Dimension | undefined|undefined 21489 if (radius_buf__selector == 0) { 21490 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21491 let radius_buf__u_topLeft_buf: Dimension | undefined|undefined 21492 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 21493 { 21494 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Dimension) 21495 } 21496 const radius_buf__u_topLeft: undefined | Dimension = radius_buf__u_topLeft_buf 21497 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21498 let radius_buf__u_topRight_buf: Dimension | undefined|undefined 21499 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 21500 { 21501 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Dimension) 21502 } 21503 const radius_buf__u_topRight: undefined | Dimension = radius_buf__u_topRight_buf 21504 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21505 let radius_buf__u_bottomLeft_buf: Dimension | undefined|undefined 21506 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 21507 { 21508 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Dimension) 21509 } 21510 const radius_buf__u_bottomLeft: undefined | Dimension = radius_buf__u_bottomLeft_buf 21511 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21512 let radius_buf__u_bottomRight_buf: Dimension | undefined|undefined 21513 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 21514 { 21515 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Dimension) 21516 } 21517 const radius_buf__u_bottomRight: undefined | Dimension = radius_buf__u_bottomRight_buf 21518 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as OutlineRadiuses) 21519 } 21520 else if (radius_buf__selector == 1) { 21521 radius_buf_ = (valueDeserializer.readLength() as Dimension) 21522 } 21523 else { 21524 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 21525 } 21526 radius_buf = (radius_buf_ as OutlineRadiuses | Dimension) 21527 } 21528 const radius_result: OutlineRadiuses | Dimension | undefined|undefined = radius_buf 21529 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21530 let style_buf: EdgeOutlineStyles | OutlineStyle | undefined|undefined 21531 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 21532 { 21533 const style_buf__selector: number = valueDeserializer.readInt8() 21534 let style_buf_: EdgeOutlineStyles | OutlineStyle | undefined|undefined 21535 if (style_buf__selector == 0) { 21536 const style_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21537 let style_buf__u_top_buf: OutlineStyle | undefined|undefined 21538 if ((RuntimeType.UNDEFINED) != (style_buf__u_top_buf_runtimeType)) 21539 { 21540 style_buf__u_top_buf = (valueDeserializer.readInt32() as OutlineStyle) 21541 } 21542 const style_buf__u_top: undefined | OutlineStyle = style_buf__u_top_buf 21543 const style_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21544 let style_buf__u_right_buf: OutlineStyle | undefined|undefined 21545 if ((RuntimeType.UNDEFINED) != (style_buf__u_right_buf_runtimeType)) 21546 { 21547 style_buf__u_right_buf = (valueDeserializer.readInt32() as OutlineStyle) 21548 } 21549 const style_buf__u_right: undefined | OutlineStyle = style_buf__u_right_buf 21550 const style_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21551 let style_buf__u_bottom_buf: OutlineStyle | undefined|undefined 21552 if ((RuntimeType.UNDEFINED) != (style_buf__u_bottom_buf_runtimeType)) 21553 { 21554 style_buf__u_bottom_buf = (valueDeserializer.readInt32() as OutlineStyle) 21555 } 21556 const style_buf__u_bottom: undefined | OutlineStyle = style_buf__u_bottom_buf 21557 const style_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21558 let style_buf__u_left_buf: OutlineStyle | undefined|undefined 21559 if ((RuntimeType.UNDEFINED) != (style_buf__u_left_buf_runtimeType)) 21560 { 21561 style_buf__u_left_buf = (valueDeserializer.readInt32() as OutlineStyle) 21562 } 21563 const style_buf__u_left: undefined | OutlineStyle = style_buf__u_left_buf 21564 style_buf_ = ({top: style_buf__u_top, right: style_buf__u_right, bottom: style_buf__u_bottom, left: style_buf__u_left} as EdgeOutlineStyles) 21565 } 21566 else if (style_buf__selector == 1) { 21567 style_buf_ = (valueDeserializer.readInt32() as OutlineStyle) 21568 } 21569 else { 21570 throw new Error("One of the branches for style_buf_ has to be chosen through deserialisation.") 21571 } 21572 style_buf = (style_buf_ as EdgeOutlineStyles | OutlineStyle) 21573 } 21574 const style_result: EdgeOutlineStyles | OutlineStyle | undefined|undefined = style_buf 21575 let value: OutlineOptions = ({width: width_result, color: color_result, radius: radius_result, style: style_result} as OutlineOptions) 21576 return value 21577 } 21578 readBorderImageOption(): BorderImageOption { 21579 let valueDeserializer: Deserializer = this 21580 const slice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21581 let slice_buf: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21582 if ((RuntimeType.UNDEFINED) != (slice_buf_runtimeType)) 21583 { 21584 const slice_buf__selector: number = valueDeserializer.readInt8() 21585 let slice_buf_: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21586 if (slice_buf__selector == 0) { 21587 slice_buf_ = (valueDeserializer.readLength() as Length) 21588 } 21589 else if (slice_buf__selector == 1) { 21590 const slice_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21591 let slice_buf__u_top_buf: Length | undefined|undefined 21592 if ((RuntimeType.UNDEFINED) != (slice_buf__u_top_buf_runtimeType)) 21593 { 21594 slice_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21595 } 21596 const slice_buf__u_top: undefined | Length = slice_buf__u_top_buf 21597 const slice_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21598 let slice_buf__u_right_buf: Length | undefined|undefined 21599 if ((RuntimeType.UNDEFINED) != (slice_buf__u_right_buf_runtimeType)) 21600 { 21601 slice_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21602 } 21603 const slice_buf__u_right: undefined | Length = slice_buf__u_right_buf 21604 const slice_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21605 let slice_buf__u_bottom_buf: Length | undefined|undefined 21606 if ((RuntimeType.UNDEFINED) != (slice_buf__u_bottom_buf_runtimeType)) 21607 { 21608 slice_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21609 } 21610 const slice_buf__u_bottom: undefined | Length = slice_buf__u_bottom_buf 21611 const slice_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21612 let slice_buf__u_left_buf: Length | undefined|undefined 21613 if ((RuntimeType.UNDEFINED) != (slice_buf__u_left_buf_runtimeType)) 21614 { 21615 slice_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21616 } 21617 const slice_buf__u_left: undefined | Length = slice_buf__u_left_buf 21618 slice_buf_ = ({top: slice_buf__u_top, right: slice_buf__u_right, bottom: slice_buf__u_bottom, left: slice_buf__u_left} as EdgeWidths) 21619 } 21620 else if (slice_buf__selector == 2) { 21621 slice_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21622 } 21623 else { 21624 throw new Error("One of the branches for slice_buf_ has to be chosen through deserialisation.") 21625 } 21626 slice_buf = (slice_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21627 } 21628 const slice_result: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = slice_buf 21629 const repeat_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21630 let repeat_buf: RepeatMode | undefined|undefined 21631 if ((RuntimeType.UNDEFINED) != (repeat_buf_runtimeType)) 21632 { 21633 repeat_buf = (valueDeserializer.readInt32() as RepeatMode) 21634 } 21635 const repeat_result: RepeatMode | undefined|undefined = repeat_buf 21636 const source_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21637 let source_buf: string | Resource | LinearGradient_common | undefined|undefined 21638 if ((RuntimeType.UNDEFINED) != (source_buf_runtimeType)) 21639 { 21640 const source_buf__selector: number = valueDeserializer.readInt8() 21641 let source_buf_: string | Resource | LinearGradient_common | undefined|undefined 21642 if (source_buf__selector == 0) { 21643 source_buf_ = (valueDeserializer.readString() as string) 21644 } 21645 else if (source_buf__selector == 1) { 21646 source_buf_ = valueDeserializer.readResource() 21647 } 21648 else if (source_buf__selector == 2) { 21649 source_buf_ = valueDeserializer.readLinearGradient_common() 21650 } 21651 else { 21652 throw new Error("One of the branches for source_buf_ has to be chosen through deserialisation.") 21653 } 21654 source_buf = (source_buf_ as string | Resource | LinearGradient_common) 21655 } 21656 const source_result: string | Resource | LinearGradient_common | undefined|undefined = source_buf 21657 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21658 let width_buf: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21659 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21660 { 21661 const width_buf__selector: number = valueDeserializer.readInt8() 21662 let width_buf_: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21663 if (width_buf__selector == 0) { 21664 width_buf_ = (valueDeserializer.readLength() as Length) 21665 } 21666 else if (width_buf__selector == 1) { 21667 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21668 let width_buf__u_top_buf: Length | undefined|undefined 21669 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21670 { 21671 width_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21672 } 21673 const width_buf__u_top: undefined | Length = width_buf__u_top_buf 21674 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21675 let width_buf__u_right_buf: Length | undefined|undefined 21676 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21677 { 21678 width_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21679 } 21680 const width_buf__u_right: undefined | Length = width_buf__u_right_buf 21681 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21682 let width_buf__u_bottom_buf: Length | undefined|undefined 21683 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21684 { 21685 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21686 } 21687 const width_buf__u_bottom: undefined | Length = width_buf__u_bottom_buf 21688 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21689 let width_buf__u_left_buf: Length | undefined|undefined 21690 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21691 { 21692 width_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21693 } 21694 const width_buf__u_left: undefined | Length = width_buf__u_left_buf 21695 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeWidths) 21696 } 21697 else if (width_buf__selector == 2) { 21698 width_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21699 } 21700 else { 21701 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21702 } 21703 width_buf = (width_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21704 } 21705 const width_result: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = width_buf 21706 const outset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21707 let outset_buf: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21708 if ((RuntimeType.UNDEFINED) != (outset_buf_runtimeType)) 21709 { 21710 const outset_buf__selector: number = valueDeserializer.readInt8() 21711 let outset_buf_: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined 21712 if (outset_buf__selector == 0) { 21713 outset_buf_ = (valueDeserializer.readLength() as Length) 21714 } 21715 else if (outset_buf__selector == 1) { 21716 const outset_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21717 let outset_buf__u_top_buf: Length | undefined|undefined 21718 if ((RuntimeType.UNDEFINED) != (outset_buf__u_top_buf_runtimeType)) 21719 { 21720 outset_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21721 } 21722 const outset_buf__u_top: undefined | Length = outset_buf__u_top_buf 21723 const outset_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21724 let outset_buf__u_right_buf: Length | undefined|undefined 21725 if ((RuntimeType.UNDEFINED) != (outset_buf__u_right_buf_runtimeType)) 21726 { 21727 outset_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21728 } 21729 const outset_buf__u_right: undefined | Length = outset_buf__u_right_buf 21730 const outset_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21731 let outset_buf__u_bottom_buf: Length | undefined|undefined 21732 if ((RuntimeType.UNDEFINED) != (outset_buf__u_bottom_buf_runtimeType)) 21733 { 21734 outset_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21735 } 21736 const outset_buf__u_bottom: undefined | Length = outset_buf__u_bottom_buf 21737 const outset_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21738 let outset_buf__u_left_buf: Length | undefined|undefined 21739 if ((RuntimeType.UNDEFINED) != (outset_buf__u_left_buf_runtimeType)) 21740 { 21741 outset_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21742 } 21743 const outset_buf__u_left: undefined | Length = outset_buf__u_left_buf 21744 outset_buf_ = ({top: outset_buf__u_top, right: outset_buf__u_right, bottom: outset_buf__u_bottom, left: outset_buf__u_left} as EdgeWidths) 21745 } 21746 else if (outset_buf__selector == 2) { 21747 outset_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21748 } 21749 else { 21750 throw new Error("One of the branches for outset_buf_ has to be chosen through deserialisation.") 21751 } 21752 outset_buf = (outset_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21753 } 21754 const outset_result: Length | EdgeWidths | LocalizedEdgeWidths | undefined|undefined = outset_buf 21755 const fill_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21756 let fill_buf: boolean | undefined|undefined 21757 if ((RuntimeType.UNDEFINED) != (fill_buf_runtimeType)) 21758 { 21759 fill_buf = valueDeserializer.readBoolean() 21760 } 21761 const fill_result: boolean | undefined|undefined = fill_buf 21762 let value: BorderImageOption = ({slice: slice_result, repeat: repeat_result, source: source_result, width: width_result, outset: outset_result, fill: fill_result} as BorderImageOption) 21763 return value 21764 } 21765 readBorderOptions(): BorderOptions { 21766 let valueDeserializer: Deserializer = this 21767 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21768 let width_buf: EdgeWidths | Length | LocalizedEdgeWidths | undefined|undefined 21769 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21770 { 21771 const width_buf__selector: number = valueDeserializer.readInt8() 21772 let width_buf_: EdgeWidths | Length | LocalizedEdgeWidths | undefined|undefined 21773 if (width_buf__selector == 0) { 21774 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21775 let width_buf__u_top_buf: Length | undefined|undefined 21776 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21777 { 21778 width_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21779 } 21780 const width_buf__u_top: undefined | Length = width_buf__u_top_buf 21781 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21782 let width_buf__u_right_buf: Length | undefined|undefined 21783 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21784 { 21785 width_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21786 } 21787 const width_buf__u_right: undefined | Length = width_buf__u_right_buf 21788 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21789 let width_buf__u_bottom_buf: Length | undefined|undefined 21790 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21791 { 21792 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21793 } 21794 const width_buf__u_bottom: undefined | Length = width_buf__u_bottom_buf 21795 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21796 let width_buf__u_left_buf: Length | undefined|undefined 21797 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21798 { 21799 width_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21800 } 21801 const width_buf__u_left: undefined | Length = width_buf__u_left_buf 21802 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeWidths) 21803 } 21804 else if (width_buf__selector == 1) { 21805 width_buf_ = (valueDeserializer.readLength() as Length) 21806 } 21807 else if (width_buf__selector == 2) { 21808 width_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21809 } 21810 else { 21811 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21812 } 21813 width_buf = (width_buf_ as EdgeWidths | Length | LocalizedEdgeWidths) 21814 } 21815 const width_result: EdgeWidths | Length | LocalizedEdgeWidths | undefined|undefined = width_buf 21816 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21817 let color_buf: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined 21818 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 21819 { 21820 const color_buf__selector: number = valueDeserializer.readInt8() 21821 let color_buf_: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined 21822 if (color_buf__selector == 0) { 21823 const color_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21824 let color_buf__u_top_buf: ResourceColor | undefined|undefined 21825 if ((RuntimeType.UNDEFINED) != (color_buf__u_top_buf_runtimeType)) 21826 { 21827 const color_buf__u_top_buf__selector: number = valueDeserializer.readInt8() 21828 let color_buf__u_top_buf_: Color | number | string | Resource | undefined|undefined 21829 if (color_buf__u_top_buf__selector == 0) { 21830 color_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 21831 } 21832 else if (color_buf__u_top_buf__selector == 1) { 21833 color_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 21834 } 21835 else if (color_buf__u_top_buf__selector == 2) { 21836 color_buf__u_top_buf_ = (valueDeserializer.readString() as string) 21837 } 21838 else if (color_buf__u_top_buf__selector == 3) { 21839 color_buf__u_top_buf_ = valueDeserializer.readResource() 21840 } 21841 else { 21842 throw new Error("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation.") 21843 } 21844 color_buf__u_top_buf = (color_buf__u_top_buf_ as Color | number | string | Resource) 21845 } 21846 const color_buf__u_top: undefined | ResourceColor = color_buf__u_top_buf 21847 const color_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21848 let color_buf__u_right_buf: ResourceColor | undefined|undefined 21849 if ((RuntimeType.UNDEFINED) != (color_buf__u_right_buf_runtimeType)) 21850 { 21851 const color_buf__u_right_buf__selector: number = valueDeserializer.readInt8() 21852 let color_buf__u_right_buf_: Color | number | string | Resource | undefined|undefined 21853 if (color_buf__u_right_buf__selector == 0) { 21854 color_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 21855 } 21856 else if (color_buf__u_right_buf__selector == 1) { 21857 color_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 21858 } 21859 else if (color_buf__u_right_buf__selector == 2) { 21860 color_buf__u_right_buf_ = (valueDeserializer.readString() as string) 21861 } 21862 else if (color_buf__u_right_buf__selector == 3) { 21863 color_buf__u_right_buf_ = valueDeserializer.readResource() 21864 } 21865 else { 21866 throw new Error("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation.") 21867 } 21868 color_buf__u_right_buf = (color_buf__u_right_buf_ as Color | number | string | Resource) 21869 } 21870 const color_buf__u_right: undefined | ResourceColor = color_buf__u_right_buf 21871 const color_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21872 let color_buf__u_bottom_buf: ResourceColor | undefined|undefined 21873 if ((RuntimeType.UNDEFINED) != (color_buf__u_bottom_buf_runtimeType)) 21874 { 21875 const color_buf__u_bottom_buf__selector: number = valueDeserializer.readInt8() 21876 let color_buf__u_bottom_buf_: Color | number | string | Resource | undefined|undefined 21877 if (color_buf__u_bottom_buf__selector == 0) { 21878 color_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 21879 } 21880 else if (color_buf__u_bottom_buf__selector == 1) { 21881 color_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 21882 } 21883 else if (color_buf__u_bottom_buf__selector == 2) { 21884 color_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 21885 } 21886 else if (color_buf__u_bottom_buf__selector == 3) { 21887 color_buf__u_bottom_buf_ = valueDeserializer.readResource() 21888 } 21889 else { 21890 throw new Error("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation.") 21891 } 21892 color_buf__u_bottom_buf = (color_buf__u_bottom_buf_ as Color | number | string | Resource) 21893 } 21894 const color_buf__u_bottom: undefined | ResourceColor = color_buf__u_bottom_buf 21895 const color_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21896 let color_buf__u_left_buf: ResourceColor | undefined|undefined 21897 if ((RuntimeType.UNDEFINED) != (color_buf__u_left_buf_runtimeType)) 21898 { 21899 const color_buf__u_left_buf__selector: number = valueDeserializer.readInt8() 21900 let color_buf__u_left_buf_: Color | number | string | Resource | undefined|undefined 21901 if (color_buf__u_left_buf__selector == 0) { 21902 color_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 21903 } 21904 else if (color_buf__u_left_buf__selector == 1) { 21905 color_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 21906 } 21907 else if (color_buf__u_left_buf__selector == 2) { 21908 color_buf__u_left_buf_ = (valueDeserializer.readString() as string) 21909 } 21910 else if (color_buf__u_left_buf__selector == 3) { 21911 color_buf__u_left_buf_ = valueDeserializer.readResource() 21912 } 21913 else { 21914 throw new Error("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation.") 21915 } 21916 color_buf__u_left_buf = (color_buf__u_left_buf_ as Color | number | string | Resource) 21917 } 21918 const color_buf__u_left: undefined | ResourceColor = color_buf__u_left_buf 21919 color_buf_ = ({top: color_buf__u_top, right: color_buf__u_right, bottom: color_buf__u_bottom, left: color_buf__u_left} as EdgeColors) 21920 } 21921 else if (color_buf__selector == 1) { 21922 const color_buf__u_selector: number = valueDeserializer.readInt8() 21923 let color_buf__u: Color | number | string | Resource | undefined|undefined 21924 if (color_buf__u_selector == 0) { 21925 color_buf__u = (valueDeserializer.readInt32() as Color) 21926 } 21927 else if (color_buf__u_selector == 1) { 21928 color_buf__u = (valueDeserializer.readNumber() as number) 21929 } 21930 else if (color_buf__u_selector == 2) { 21931 color_buf__u = (valueDeserializer.readString() as string) 21932 } 21933 else if (color_buf__u_selector == 3) { 21934 color_buf__u = valueDeserializer.readResource() 21935 } 21936 else { 21937 throw new Error("One of the branches for color_buf__u has to be chosen through deserialisation.") 21938 } 21939 color_buf_ = (color_buf__u as Color | number | string | Resource) 21940 } 21941 else if (color_buf__selector == 2) { 21942 color_buf_ = valueDeserializer.readLocalizedEdgeColors() 21943 } 21944 else { 21945 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 21946 } 21947 color_buf = (color_buf_ as EdgeColors | ResourceColor | LocalizedEdgeColors) 21948 } 21949 const color_result: EdgeColors | ResourceColor | LocalizedEdgeColors | undefined|undefined = color_buf 21950 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21951 let radius_buf: BorderRadiuses | Length | LocalizedBorderRadiuses | undefined|undefined 21952 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 21953 { 21954 const radius_buf__selector: number = valueDeserializer.readInt8() 21955 let radius_buf_: BorderRadiuses | Length | LocalizedBorderRadiuses | undefined|undefined 21956 if (radius_buf__selector == 0) { 21957 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21958 let radius_buf__u_topLeft_buf: Length | undefined|undefined 21959 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 21960 { 21961 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 21962 } 21963 const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf 21964 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21965 let radius_buf__u_topRight_buf: Length | undefined|undefined 21966 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 21967 { 21968 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 21969 } 21970 const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf 21971 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21972 let radius_buf__u_bottomLeft_buf: Length | undefined|undefined 21973 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 21974 { 21975 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 21976 } 21977 const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf 21978 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21979 let radius_buf__u_bottomRight_buf: Length | undefined|undefined 21980 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 21981 { 21982 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 21983 } 21984 const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf 21985 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) 21986 } 21987 else if (radius_buf__selector == 1) { 21988 radius_buf_ = (valueDeserializer.readLength() as Length) 21989 } 21990 else if (radius_buf__selector == 2) { 21991 radius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 21992 } 21993 else { 21994 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 21995 } 21996 radius_buf = (radius_buf_ as BorderRadiuses | Length | LocalizedBorderRadiuses) 21997 } 21998 const radius_result: BorderRadiuses | Length | LocalizedBorderRadiuses | undefined|undefined = radius_buf 21999 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22000 let style_buf: EdgeStyles | BorderStyle | undefined|undefined 22001 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 22002 { 22003 const style_buf__selector: number = valueDeserializer.readInt8() 22004 let style_buf_: EdgeStyles | BorderStyle | undefined|undefined 22005 if (style_buf__selector == 0) { 22006 const style_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22007 let style_buf__u_top_buf: BorderStyle | undefined|undefined 22008 if ((RuntimeType.UNDEFINED) != (style_buf__u_top_buf_runtimeType)) 22009 { 22010 style_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 22011 } 22012 const style_buf__u_top: undefined | BorderStyle = style_buf__u_top_buf 22013 const style_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22014 let style_buf__u_right_buf: BorderStyle | undefined|undefined 22015 if ((RuntimeType.UNDEFINED) != (style_buf__u_right_buf_runtimeType)) 22016 { 22017 style_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 22018 } 22019 const style_buf__u_right: undefined | BorderStyle = style_buf__u_right_buf 22020 const style_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22021 let style_buf__u_bottom_buf: BorderStyle | undefined|undefined 22022 if ((RuntimeType.UNDEFINED) != (style_buf__u_bottom_buf_runtimeType)) 22023 { 22024 style_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 22025 } 22026 const style_buf__u_bottom: undefined | BorderStyle = style_buf__u_bottom_buf 22027 const style_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22028 let style_buf__u_left_buf: BorderStyle | undefined|undefined 22029 if ((RuntimeType.UNDEFINED) != (style_buf__u_left_buf_runtimeType)) 22030 { 22031 style_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 22032 } 22033 const style_buf__u_left: undefined | BorderStyle = style_buf__u_left_buf 22034 style_buf_ = ({top: style_buf__u_top, right: style_buf__u_right, bottom: style_buf__u_bottom, left: style_buf__u_left} as EdgeStyles) 22035 } 22036 else if (style_buf__selector == 1) { 22037 style_buf_ = (valueDeserializer.readInt32() as BorderStyle) 22038 } 22039 else { 22040 throw new Error("One of the branches for style_buf_ has to be chosen through deserialisation.") 22041 } 22042 style_buf = (style_buf_ as EdgeStyles | BorderStyle) 22043 } 22044 const style_result: EdgeStyles | BorderStyle | undefined|undefined = style_buf 22045 const dashGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22046 let dashGap_buf: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined 22047 if ((RuntimeType.UNDEFINED) != (dashGap_buf_runtimeType)) 22048 { 22049 const dashGap_buf__selector: number = valueDeserializer.readInt8() 22050 let dashGap_buf_: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined 22051 if (dashGap_buf__selector == 0) { 22052 const dashGap_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22053 let dashGap_buf__u_top_buf: Length | undefined|undefined 22054 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_top_buf_runtimeType)) 22055 { 22056 dashGap_buf__u_top_buf = (valueDeserializer.readLength() as Length) 22057 } 22058 const dashGap_buf__u_top: undefined | Length = dashGap_buf__u_top_buf 22059 const dashGap_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22060 let dashGap_buf__u_right_buf: Length | undefined|undefined 22061 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_right_buf_runtimeType)) 22062 { 22063 dashGap_buf__u_right_buf = (valueDeserializer.readLength() as Length) 22064 } 22065 const dashGap_buf__u_right: undefined | Length = dashGap_buf__u_right_buf 22066 const dashGap_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22067 let dashGap_buf__u_bottom_buf: Length | undefined|undefined 22068 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_bottom_buf_runtimeType)) 22069 { 22070 dashGap_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 22071 } 22072 const dashGap_buf__u_bottom: undefined | Length = dashGap_buf__u_bottom_buf 22073 const dashGap_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22074 let dashGap_buf__u_left_buf: Length | undefined|undefined 22075 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_left_buf_runtimeType)) 22076 { 22077 dashGap_buf__u_left_buf = (valueDeserializer.readLength() as Length) 22078 } 22079 const dashGap_buf__u_left: undefined | Length = dashGap_buf__u_left_buf 22080 dashGap_buf_ = ({top: dashGap_buf__u_top, right: dashGap_buf__u_right, bottom: dashGap_buf__u_bottom, left: dashGap_buf__u_left} as EdgeWidths) 22081 } 22082 else if (dashGap_buf__selector == 1) { 22083 dashGap_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 22084 } 22085 else if (dashGap_buf__selector == 2) { 22086 dashGap_buf_ = valueDeserializer.readLocalizedEdgeWidths() 22087 } 22088 else { 22089 throw new Error("One of the branches for dashGap_buf_ has to be chosen through deserialisation.") 22090 } 22091 dashGap_buf = (dashGap_buf_ as EdgeWidths | LengthMetrics | LocalizedEdgeWidths) 22092 } 22093 const dashGap_result: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined = dashGap_buf 22094 const dashWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22095 let dashWidth_buf: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined 22096 if ((RuntimeType.UNDEFINED) != (dashWidth_buf_runtimeType)) 22097 { 22098 const dashWidth_buf__selector: number = valueDeserializer.readInt8() 22099 let dashWidth_buf_: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined 22100 if (dashWidth_buf__selector == 0) { 22101 const dashWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22102 let dashWidth_buf__u_top_buf: Length | undefined|undefined 22103 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_top_buf_runtimeType)) 22104 { 22105 dashWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 22106 } 22107 const dashWidth_buf__u_top: undefined | Length = dashWidth_buf__u_top_buf 22108 const dashWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22109 let dashWidth_buf__u_right_buf: Length | undefined|undefined 22110 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_right_buf_runtimeType)) 22111 { 22112 dashWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 22113 } 22114 const dashWidth_buf__u_right: undefined | Length = dashWidth_buf__u_right_buf 22115 const dashWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22116 let dashWidth_buf__u_bottom_buf: Length | undefined|undefined 22117 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_bottom_buf_runtimeType)) 22118 { 22119 dashWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 22120 } 22121 const dashWidth_buf__u_bottom: undefined | Length = dashWidth_buf__u_bottom_buf 22122 const dashWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22123 let dashWidth_buf__u_left_buf: Length | undefined|undefined 22124 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_left_buf_runtimeType)) 22125 { 22126 dashWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 22127 } 22128 const dashWidth_buf__u_left: undefined | Length = dashWidth_buf__u_left_buf 22129 dashWidth_buf_ = ({top: dashWidth_buf__u_top, right: dashWidth_buf__u_right, bottom: dashWidth_buf__u_bottom, left: dashWidth_buf__u_left} as EdgeWidths) 22130 } 22131 else if (dashWidth_buf__selector == 1) { 22132 dashWidth_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 22133 } 22134 else if (dashWidth_buf__selector == 2) { 22135 dashWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 22136 } 22137 else { 22138 throw new Error("One of the branches for dashWidth_buf_ has to be chosen through deserialisation.") 22139 } 22140 dashWidth_buf = (dashWidth_buf_ as EdgeWidths | LengthMetrics | LocalizedEdgeWidths) 22141 } 22142 const dashWidth_result: EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined|undefined = dashWidth_buf 22143 let value: BorderOptions = ({width: width_result, color: color_result, radius: radius_result, style: style_result, dashGap: dashGap_result, dashWidth: dashWidth_result} as BorderOptions) 22144 return value 22145 } 22146 readFilter(): Filter { 22147 let valueDeserializer: Deserializer = this 22148 const _FilterStub_result: string = (valueDeserializer.readString() as string) 22149 let value: Filter = ({_FilterStub: _FilterStub_result} as Filter) 22150 return value 22151 } 22152 readVisualEffect(): VisualEffect { 22153 let valueDeserializer: Deserializer = this 22154 const _VisualEffectStub_result: string = (valueDeserializer.readString() as string) 22155 let value: VisualEffect = ({_VisualEffectStub: _VisualEffectStub_result} as VisualEffect) 22156 return value 22157 } 22158 readForegroundEffectOptions(): ForegroundEffectOptions { 22159 let valueDeserializer: Deserializer = this 22160 const radius_result: number = (valueDeserializer.readNumber() as number) 22161 let value: ForegroundEffectOptions = ({radius: radius_result} as ForegroundEffectOptions) 22162 return value 22163 } 22164 readResizableOptions(): ResizableOptions { 22165 let valueDeserializer: Deserializer = this 22166 const slice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22167 let slice_buf: EdgeWidths | undefined|undefined 22168 if ((RuntimeType.UNDEFINED) != (slice_buf_runtimeType)) 22169 { 22170 const slice_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22171 let slice_buf__top_buf: Length | undefined|undefined 22172 if ((RuntimeType.UNDEFINED) != (slice_buf__top_buf_runtimeType)) 22173 { 22174 slice_buf__top_buf = (valueDeserializer.readLength() as Length) 22175 } 22176 const slice_buf__top: undefined | Length = slice_buf__top_buf 22177 const slice_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22178 let slice_buf__right_buf: Length | undefined|undefined 22179 if ((RuntimeType.UNDEFINED) != (slice_buf__right_buf_runtimeType)) 22180 { 22181 slice_buf__right_buf = (valueDeserializer.readLength() as Length) 22182 } 22183 const slice_buf__right: undefined | Length = slice_buf__right_buf 22184 const slice_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22185 let slice_buf__bottom_buf: Length | undefined|undefined 22186 if ((RuntimeType.UNDEFINED) != (slice_buf__bottom_buf_runtimeType)) 22187 { 22188 slice_buf__bottom_buf = (valueDeserializer.readLength() as Length) 22189 } 22190 const slice_buf__bottom: undefined | Length = slice_buf__bottom_buf 22191 const slice_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22192 let slice_buf__left_buf: Length | undefined|undefined 22193 if ((RuntimeType.UNDEFINED) != (slice_buf__left_buf_runtimeType)) 22194 { 22195 slice_buf__left_buf = (valueDeserializer.readLength() as Length) 22196 } 22197 const slice_buf__left: undefined | Length = slice_buf__left_buf 22198 slice_buf = ({top: slice_buf__top, right: slice_buf__right, bottom: slice_buf__bottom, left: slice_buf__left} as EdgeWidths) 22199 } 22200 const slice_result: EdgeWidths | undefined|undefined = slice_buf 22201 const lattice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22202 let lattice_buf: DrawingLattice | undefined|undefined 22203 if ((RuntimeType.UNDEFINED) != (lattice_buf_runtimeType)) 22204 { 22205 lattice_buf = valueDeserializer.readDrawingLattice() 22206 } 22207 const lattice_result: DrawingLattice | undefined|undefined = lattice_buf 22208 let value: ResizableOptions = ({slice: slice_result, lattice: lattice_result} as ResizableOptions) 22209 return value 22210 } 22211 readBackgroundEffectOptions(): BackgroundEffectOptions { 22212 let valueDeserializer: Deserializer = this 22213 const radius_result: number = (valueDeserializer.readNumber() as number) 22214 const saturation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22215 let saturation_buf: number | undefined|undefined 22216 if ((RuntimeType.UNDEFINED) != (saturation_buf_runtimeType)) 22217 { 22218 saturation_buf = (valueDeserializer.readNumber() as number) 22219 } 22220 const saturation_result: number | undefined|undefined = saturation_buf 22221 const brightness_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22222 let brightness_buf: number | undefined|undefined 22223 if ((RuntimeType.UNDEFINED) != (brightness_buf_runtimeType)) 22224 { 22225 brightness_buf = (valueDeserializer.readNumber() as number) 22226 } 22227 const brightness_result: number | undefined|undefined = brightness_buf 22228 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22229 let color_buf: ResourceColor | undefined|undefined 22230 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 22231 { 22232 const color_buf__selector: number = valueDeserializer.readInt8() 22233 let color_buf_: Color | number | string | Resource | undefined|undefined 22234 if (color_buf__selector == 0) { 22235 color_buf_ = (valueDeserializer.readInt32() as Color) 22236 } 22237 else if (color_buf__selector == 1) { 22238 color_buf_ = (valueDeserializer.readNumber() as number) 22239 } 22240 else if (color_buf__selector == 2) { 22241 color_buf_ = (valueDeserializer.readString() as string) 22242 } 22243 else if (color_buf__selector == 3) { 22244 color_buf_ = valueDeserializer.readResource() 22245 } 22246 else { 22247 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 22248 } 22249 color_buf = (color_buf_ as Color | number | string | Resource) 22250 } 22251 const color_result: ResourceColor | undefined|undefined = color_buf 22252 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22253 let adaptiveColor_buf: AdaptiveColor | undefined|undefined 22254 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 22255 { 22256 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 22257 } 22258 const adaptiveColor_result: AdaptiveColor | undefined|undefined = adaptiveColor_buf 22259 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22260 let blurOptions_buf: BlurOptions | undefined|undefined 22261 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 22262 { 22263 blurOptions_buf = valueDeserializer.readBlurOptions() 22264 } 22265 const blurOptions_result: BlurOptions | undefined|undefined = blurOptions_buf 22266 const policy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22267 let policy_buf: BlurStyleActivePolicy | undefined|undefined 22268 if ((RuntimeType.UNDEFINED) != (policy_buf_runtimeType)) 22269 { 22270 policy_buf = (valueDeserializer.readInt32() as BlurStyleActivePolicy) 22271 } 22272 const policy_result: BlurStyleActivePolicy | undefined|undefined = policy_buf 22273 const inactiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22274 let inactiveColor_buf: ResourceColor | undefined|undefined 22275 if ((RuntimeType.UNDEFINED) != (inactiveColor_buf_runtimeType)) 22276 { 22277 const inactiveColor_buf__selector: number = valueDeserializer.readInt8() 22278 let inactiveColor_buf_: Color | number | string | Resource | undefined|undefined 22279 if (inactiveColor_buf__selector == 0) { 22280 inactiveColor_buf_ = (valueDeserializer.readInt32() as Color) 22281 } 22282 else if (inactiveColor_buf__selector == 1) { 22283 inactiveColor_buf_ = (valueDeserializer.readNumber() as number) 22284 } 22285 else if (inactiveColor_buf__selector == 2) { 22286 inactiveColor_buf_ = (valueDeserializer.readString() as string) 22287 } 22288 else if (inactiveColor_buf__selector == 3) { 22289 inactiveColor_buf_ = valueDeserializer.readResource() 22290 } 22291 else { 22292 throw new Error("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation.") 22293 } 22294 inactiveColor_buf = (inactiveColor_buf_ as Color | number | string | Resource) 22295 } 22296 const inactiveColor_result: ResourceColor | undefined|undefined = inactiveColor_buf 22297 let value: BackgroundEffectOptions = ({radius: radius_result, saturation: saturation_result, brightness: brightness_result, color: color_result, adaptiveColor: adaptiveColor_result, blurOptions: blurOptions_result, policy: policy_result, inactiveColor: inactiveColor_result} as BackgroundEffectOptions) 22298 return value 22299 } 22300 readPixelRoundPolicy(): PixelRoundPolicy { 22301 let valueDeserializer: Deserializer = this 22302 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22303 let start_buf: PixelRoundCalcPolicy | undefined|undefined 22304 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 22305 { 22306 start_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22307 } 22308 const start_result: PixelRoundCalcPolicy | undefined|undefined = start_buf 22309 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22310 let top_buf: PixelRoundCalcPolicy | undefined|undefined 22311 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 22312 { 22313 top_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22314 } 22315 const top_result: PixelRoundCalcPolicy | undefined|undefined = top_buf 22316 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22317 let end_buf: PixelRoundCalcPolicy | undefined|undefined 22318 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 22319 { 22320 end_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22321 } 22322 const end_result: PixelRoundCalcPolicy | undefined|undefined = end_buf 22323 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22324 let bottom_buf: PixelRoundCalcPolicy | undefined|undefined 22325 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 22326 { 22327 bottom_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22328 } 22329 const bottom_result: PixelRoundCalcPolicy | undefined|undefined = bottom_buf 22330 let value: PixelRoundPolicy = ({start: start_result, top: top_result, end: end_result, bottom: bottom_result} as PixelRoundPolicy) 22331 return value 22332 } 22333 readChainWeightOptions(): ChainWeightOptions { 22334 let valueDeserializer: Deserializer = this 22335 const horizontal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22336 let horizontal_buf: number | undefined|undefined 22337 if ((RuntimeType.UNDEFINED) != (horizontal_buf_runtimeType)) 22338 { 22339 horizontal_buf = (valueDeserializer.readNumber() as number) 22340 } 22341 const horizontal_result: number | undefined|undefined = horizontal_buf 22342 const vertical_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22343 let vertical_buf: number | undefined|undefined 22344 if ((RuntimeType.UNDEFINED) != (vertical_buf_runtimeType)) 22345 { 22346 vertical_buf = (valueDeserializer.readNumber() as number) 22347 } 22348 const vertical_result: number | undefined|undefined = vertical_buf 22349 let value: ChainWeightOptions = ({horizontal: horizontal_result, vertical: vertical_result} as ChainWeightOptions) 22350 return value 22351 } 22352 readTouchResult(): TouchResult { 22353 let valueDeserializer: Deserializer = this 22354 const strategy_result: TouchTestStrategy = (valueDeserializer.readInt32() as TouchTestStrategy) 22355 const id_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22356 let id_buf: string | undefined|undefined 22357 if ((RuntimeType.UNDEFINED) != (id_buf_runtimeType)) 22358 { 22359 id_buf = (valueDeserializer.readString() as string) 22360 } 22361 const id_result: string | undefined|undefined = id_buf 22362 let value: TouchResult = ({strategy: strategy_result, id: id_result} as TouchResult) 22363 return value 22364 } 22365 readTouchTestInfo(): TouchTestInfo { 22366 let valueDeserializer: Deserializer = this 22367 const windowX_result: number = (valueDeserializer.readNumber() as number) 22368 const windowY_result: number = (valueDeserializer.readNumber() as number) 22369 const parentX_result: number = (valueDeserializer.readNumber() as number) 22370 const parentY_result: number = (valueDeserializer.readNumber() as number) 22371 const x_result: number = (valueDeserializer.readNumber() as number) 22372 const y_result: number = (valueDeserializer.readNumber() as number) 22373 const rect_result: RectResult = valueDeserializer.readRectResult() 22374 const id_result: string = (valueDeserializer.readString() as string) 22375 let value: TouchTestInfo = ({windowX: windowX_result, windowY: windowY_result, parentX: parentX_result, parentY: parentY_result, x: x_result, y: y_result, rect: rect_result, id: id_result} as TouchTestInfo) 22376 return value 22377 } 22378 readCallback_Array_TouchTestInfo_TouchResult(isSync: boolean = false): ((value: Array<TouchTestInfo>) => TouchResult) { 22379 const _resource: CallbackResource = this.readCallbackResource() 22380 const _call: KPointer = this.readPointer() 22381 const _callSync: KPointer = this.readPointer() 22382 return (value: Array<TouchTestInfo>): TouchResult => { 22383 const _argsSerializer: Serializer = Serializer.hold(); 22384 _argsSerializer.writeInt32(_resource.resourceId); 22385 _argsSerializer.writePointer(_call); 22386 _argsSerializer.writePointer(_callSync); 22387 _argsSerializer.writeInt32(value.length); 22388 for (let i = 0; i < value.length; i++) { 22389 const value_element: TouchTestInfo = value[i]; 22390 _argsSerializer.writeTouchTestInfo(value_element); 22391 } 22392 let _continuationValue: TouchResult | undefined|undefined ; 22393 const _continuationCallback: ((value: TouchResult) => void) = (value: TouchResult): void => { _continuationValue = value; } 22394 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22395 (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); 22396 _argsSerializer.release(); 22397 return (_continuationValue as TouchResult); } 22398 } 22399 readKeyEvent(): KeyEvent { 22400 let valueDeserializer: Deserializer = this 22401 let ptr: KPointer = valueDeserializer.readPointer() 22402 return KeyEventInternal.fromPtr(ptr) 22403 } 22404 readDragEvent(): DragEvent { 22405 let valueDeserializer: Deserializer = this 22406 let ptr: KPointer = valueDeserializer.readPointer() 22407 return DragEventInternal.fromPtr(ptr) 22408 } 22409 readPixelMapMock(): PixelMapMock { 22410 let valueDeserializer: Deserializer = this 22411 let ptr: KPointer = valueDeserializer.readPointer() 22412 return PixelMapMockInternal.fromPtr(ptr) 22413 } 22414 readHistoricalPoint(): HistoricalPoint { 22415 let valueDeserializer: Deserializer = this 22416 const touchObject_result: TouchObject = valueDeserializer.readTouchObject() 22417 const size_result: number = (valueDeserializer.readNumber() as number) 22418 const force_result: number = (valueDeserializer.readNumber() as number) 22419 const timestamp_result: number = (valueDeserializer.readNumber() as number) 22420 let value: HistoricalPoint = ({touchObject: touchObject_result, size: size_result, force: force_result, timestamp: timestamp_result} as HistoricalPoint) 22421 return value 22422 } 22423 readAccessibilityHoverEvent(): AccessibilityHoverEvent { 22424 let valueDeserializer: Deserializer = this 22425 let ptr: KPointer = valueDeserializer.readPointer() 22426 return AccessibilityHoverEventInternal.fromPtr(ptr) 22427 } 22428 readMouseEvent(): MouseEvent { 22429 let valueDeserializer: Deserializer = this 22430 let ptr: KPointer = valueDeserializer.readPointer() 22431 return MouseEventInternal.fromPtr(ptr) 22432 } 22433 readHoverEvent(): HoverEvent { 22434 let valueDeserializer: Deserializer = this 22435 let ptr: KPointer = valueDeserializer.readPointer() 22436 return HoverEventInternal.fromPtr(ptr) 22437 } 22438 readBaseEvent(): BaseEvent { 22439 let valueDeserializer: Deserializer = this 22440 let ptr: KPointer = valueDeserializer.readPointer() 22441 return BaseEventInternal.fromPtr(ptr) 22442 } 22443 readPointLightStyle(): PointLightStyle { 22444 let valueDeserializer: Deserializer = this 22445 const lightSource_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22446 let lightSource_buf: LightSource | undefined|undefined 22447 if ((RuntimeType.UNDEFINED) != (lightSource_buf_runtimeType)) 22448 { 22449 lightSource_buf = valueDeserializer.readLightSource() 22450 } 22451 const lightSource_result: LightSource | undefined|undefined = lightSource_buf 22452 const illuminated_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22453 let illuminated_buf: IlluminatedType | undefined|undefined 22454 if ((RuntimeType.UNDEFINED) != (illuminated_buf_runtimeType)) 22455 { 22456 illuminated_buf = (valueDeserializer.readInt32() as IlluminatedType) 22457 } 22458 const illuminated_result: IlluminatedType | undefined|undefined = illuminated_buf 22459 const bloom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22460 let bloom_buf: number | undefined|undefined 22461 if ((RuntimeType.UNDEFINED) != (bloom_buf_runtimeType)) 22462 { 22463 bloom_buf = (valueDeserializer.readNumber() as number) 22464 } 22465 const bloom_result: number | undefined|undefined = bloom_buf 22466 let value: PointLightStyle = ({lightSource: lightSource_result, illuminated: illuminated_result, bloom: bloom_result} as PointLightStyle) 22467 return value 22468 } 22469 readColumnOptions(): ColumnOptions { 22470 let valueDeserializer: Deserializer = this 22471 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22472 let space_buf: string | number | undefined|undefined 22473 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 22474 { 22475 const space_buf__selector: number = valueDeserializer.readInt8() 22476 let space_buf_: string | number | undefined|undefined 22477 if (space_buf__selector == 0) { 22478 space_buf_ = (valueDeserializer.readString() as string) 22479 } 22480 else if (space_buf__selector == 1) { 22481 space_buf_ = (valueDeserializer.readNumber() as number) 22482 } 22483 else { 22484 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 22485 } 22486 space_buf = (space_buf_ as string | number) 22487 } 22488 const space_result: string | number | undefined|undefined = space_buf 22489 let value: ColumnOptions = ({space: space_result} as ColumnOptions) 22490 return value 22491 } 22492 readCircleOptions(): CircleOptions { 22493 let valueDeserializer: Deserializer = this 22494 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22495 let width_buf: string | number | undefined|undefined 22496 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 22497 { 22498 const width_buf__selector: number = valueDeserializer.readInt8() 22499 let width_buf_: string | number | undefined|undefined 22500 if (width_buf__selector == 0) { 22501 width_buf_ = (valueDeserializer.readString() as string) 22502 } 22503 else if (width_buf__selector == 1) { 22504 width_buf_ = (valueDeserializer.readNumber() as number) 22505 } 22506 else { 22507 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 22508 } 22509 width_buf = (width_buf_ as string | number) 22510 } 22511 const width_result: string | number | undefined|undefined = width_buf 22512 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22513 let height_buf: string | number | undefined|undefined 22514 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 22515 { 22516 const height_buf__selector: number = valueDeserializer.readInt8() 22517 let height_buf_: string | number | undefined|undefined 22518 if (height_buf__selector == 0) { 22519 height_buf_ = (valueDeserializer.readString() as string) 22520 } 22521 else if (height_buf__selector == 1) { 22522 height_buf_ = (valueDeserializer.readNumber() as number) 22523 } 22524 else { 22525 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 22526 } 22527 height_buf = (height_buf_ as string | number) 22528 } 22529 const height_result: string | number | undefined|undefined = height_buf 22530 let value: CircleOptions = ({width: width_result, height: height_result} as CircleOptions) 22531 return value 22532 } 22533 readCheckboxGroupResult(): CheckboxGroupResult { 22534 let valueDeserializer: Deserializer = this 22535 const name_buf_length: int32 = valueDeserializer.readInt32() 22536 let name_buf: Array<string> = new Array<string>(name_buf_length) 22537 for (let name_buf_i = 0; name_buf_i < name_buf_length; name_buf_i++) { 22538 name_buf[name_buf_i] = (valueDeserializer.readString() as string) 22539 } 22540 const name_result: Array<string> = name_buf 22541 const status_result: SelectStatus = (valueDeserializer.readInt32() as SelectStatus) 22542 let value: CheckboxGroupResult = ({name: name_result, status: status_result} as CheckboxGroupResult) 22543 return value 22544 } 22545 readOnCheckboxGroupChangeCallback(isSync: boolean = false): OnCheckboxGroupChangeCallback { 22546 const _resource: CallbackResource = this.readCallbackResource() 22547 const _call: KPointer = this.readPointer() 22548 const _callSync: KPointer = this.readPointer() 22549 return (value: CheckboxGroupResult): void => { 22550 const _argsSerializer: Serializer = Serializer.hold(); 22551 _argsSerializer.writeInt32(_resource.resourceId); 22552 _argsSerializer.writePointer(_call); 22553 _argsSerializer.writePointer(_callSync); 22554 _argsSerializer.writeCheckboxGroupResult(value); 22555 (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); 22556 _argsSerializer.release(); 22557 return; } 22558 } 22559 readCheckboxGroupOptions(): CheckboxGroupOptions { 22560 let valueDeserializer: Deserializer = this 22561 const group_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22562 let group_buf: string | undefined|undefined 22563 if ((RuntimeType.UNDEFINED) != (group_buf_runtimeType)) 22564 { 22565 group_buf = (valueDeserializer.readString() as string) 22566 } 22567 const group_result: string | undefined|undefined = group_buf 22568 let value: CheckboxGroupOptions = ({group: group_result} as CheckboxGroupOptions) 22569 return value 22570 } 22571 readOnCheckboxChangeCallback(isSync: boolean = false): OnCheckboxChangeCallback { 22572 const _resource: CallbackResource = this.readCallbackResource() 22573 const _call: KPointer = this.readPointer() 22574 const _callSync: KPointer = this.readPointer() 22575 return (value: boolean): void => { 22576 const _argsSerializer: Serializer = Serializer.hold(); 22577 _argsSerializer.writeInt32(_resource.resourceId); 22578 _argsSerializer.writePointer(_call); 22579 _argsSerializer.writePointer(_callSync); 22580 _argsSerializer.writeBoolean(value); 22581 (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); 22582 _argsSerializer.release(); 22583 return; } 22584 } 22585 readMarkStyle(): MarkStyle { 22586 let valueDeserializer: Deserializer = this 22587 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22588 let strokeColor_buf: ResourceColor | undefined|undefined 22589 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 22590 { 22591 const strokeColor_buf__selector: number = valueDeserializer.readInt8() 22592 let strokeColor_buf_: Color | number | string | Resource | undefined|undefined 22593 if (strokeColor_buf__selector == 0) { 22594 strokeColor_buf_ = (valueDeserializer.readInt32() as Color) 22595 } 22596 else if (strokeColor_buf__selector == 1) { 22597 strokeColor_buf_ = (valueDeserializer.readNumber() as number) 22598 } 22599 else if (strokeColor_buf__selector == 2) { 22600 strokeColor_buf_ = (valueDeserializer.readString() as string) 22601 } 22602 else if (strokeColor_buf__selector == 3) { 22603 strokeColor_buf_ = valueDeserializer.readResource() 22604 } 22605 else { 22606 throw new Error("One of the branches for strokeColor_buf_ has to be chosen through deserialisation.") 22607 } 22608 strokeColor_buf = (strokeColor_buf_ as Color | number | string | Resource) 22609 } 22610 const strokeColor_result: ResourceColor | undefined|undefined = strokeColor_buf 22611 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22612 let size_buf: Length | undefined|undefined 22613 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 22614 { 22615 size_buf = (valueDeserializer.readLength() as Length) 22616 } 22617 const size_result: Length | undefined|undefined = size_buf 22618 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22619 let strokeWidth_buf: Length | undefined|undefined 22620 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 22621 { 22622 strokeWidth_buf = (valueDeserializer.readLength() as Length) 22623 } 22624 const strokeWidth_result: Length | undefined|undefined = strokeWidth_buf 22625 let value: MarkStyle = ({strokeColor: strokeColor_result, size: size_result, strokeWidth: strokeWidth_result} as MarkStyle) 22626 return value 22627 } 22628 readCheckboxOptions(): CheckboxOptions { 22629 let valueDeserializer: Deserializer = this 22630 const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22631 let name_buf: string | undefined|undefined 22632 if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) 22633 { 22634 name_buf = (valueDeserializer.readString() as string) 22635 } 22636 const name_result: string | undefined|undefined = name_buf 22637 const group_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22638 let group_buf: string | undefined|undefined 22639 if ((RuntimeType.UNDEFINED) != (group_buf_runtimeType)) 22640 { 22641 group_buf = (valueDeserializer.readString() as string) 22642 } 22643 const group_result: string | undefined|undefined = group_buf 22644 const indicatorBuilder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22645 let indicatorBuilder_buf: CustomBuilder | undefined|undefined 22646 if ((RuntimeType.UNDEFINED) != (indicatorBuilder_buf_runtimeType)) 22647 { 22648 indicatorBuilder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 22649 } 22650 const indicatorBuilder_result: CustomBuilder | undefined|undefined = indicatorBuilder_buf 22651 let value: CheckboxOptions = ({name: name_result, group: group_result, indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) 22652 return value 22653 } 22654 readOffscreenCanvas(): OffscreenCanvas { 22655 let valueDeserializer: Deserializer = this 22656 let ptr: KPointer = valueDeserializer.readPointer() 22657 return OffscreenCanvasInternal.fromPtr(ptr) 22658 } 22659 readCanvasRenderer(): CanvasRenderer { 22660 let valueDeserializer: Deserializer = this 22661 let ptr: KPointer = valueDeserializer.readPointer() 22662 return CanvasRendererInternal.fromPtr(ptr) 22663 } 22664 readLengthMetricsUnit(): LengthMetricsUnit { 22665 let valueDeserializer: Deserializer = this 22666 const _LengthMetricsUnitStub_result: string = (valueDeserializer.readString() as string) 22667 let value: LengthMetricsUnit = ({_LengthMetricsUnitStub: _LengthMetricsUnitStub_result} as LengthMetricsUnit) 22668 return value 22669 } 22670 readCanvasPath(): CanvasPath { 22671 let valueDeserializer: Deserializer = this 22672 let ptr: KPointer = valueDeserializer.readPointer() 22673 return CanvasPathInternal.fromPtr(ptr) 22674 } 22675 readCalendarOptions(): CalendarOptions { 22676 let valueDeserializer: Deserializer = this 22677 const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22678 let hintRadius_buf: number | Resource | undefined|undefined 22679 if ((RuntimeType.UNDEFINED) != (hintRadius_buf_runtimeType)) 22680 { 22681 const hintRadius_buf__selector: number = valueDeserializer.readInt8() 22682 let hintRadius_buf_: number | Resource | undefined|undefined 22683 if (hintRadius_buf__selector == 0) { 22684 hintRadius_buf_ = (valueDeserializer.readNumber() as number) 22685 } 22686 else if (hintRadius_buf__selector == 1) { 22687 hintRadius_buf_ = valueDeserializer.readResource() 22688 } 22689 else { 22690 throw new Error("One of the branches for hintRadius_buf_ has to be chosen through deserialisation.") 22691 } 22692 hintRadius_buf = (hintRadius_buf_ as number | Resource) 22693 } 22694 const hintRadius_result: number | Resource | undefined|undefined = hintRadius_buf 22695 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22696 let selected_buf: Date | undefined|undefined 22697 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 22698 { 22699 selected_buf = new Date(valueDeserializer.readInt64()) 22700 } 22701 const selected_result: Date | undefined|undefined = selected_buf 22702 let value: CalendarOptions = ({hintRadius: hintRadius_result, selected: selected_result} as CalendarOptions) 22703 return value 22704 } 22705 readCalendarRequestedData(): CalendarRequestedData { 22706 let valueDeserializer: Deserializer = this 22707 const year_result: number = (valueDeserializer.readNumber() as number) 22708 const month_result: number = (valueDeserializer.readNumber() as number) 22709 const currentYear_result: number = (valueDeserializer.readNumber() as number) 22710 const currentMonth_result: number = (valueDeserializer.readNumber() as number) 22711 const monthState_result: number = (valueDeserializer.readNumber() as number) 22712 let value: CalendarRequestedData = ({year: year_result, month: month_result, currentYear: currentYear_result, currentMonth: currentMonth_result, monthState: monthState_result} as CalendarRequestedData) 22713 return value 22714 } 22715 readCallback_CalendarRequestedData_Void(isSync: boolean = false): ((event: CalendarRequestedData) => void) { 22716 const _resource: CallbackResource = this.readCallbackResource() 22717 const _call: KPointer = this.readPointer() 22718 const _callSync: KPointer = this.readPointer() 22719 return (event: CalendarRequestedData): void => { 22720 const _argsSerializer: Serializer = Serializer.hold(); 22721 _argsSerializer.writeInt32(_resource.resourceId); 22722 _argsSerializer.writePointer(_call); 22723 _argsSerializer.writePointer(_callSync); 22724 _argsSerializer.writeCalendarRequestedData(event); 22725 (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); 22726 _argsSerializer.release(); 22727 return; } 22728 } 22729 readCalendarSelectedDate(): CalendarSelectedDate { 22730 let valueDeserializer: Deserializer = this 22731 const year_result: number = (valueDeserializer.readNumber() as number) 22732 const month_result: number = (valueDeserializer.readNumber() as number) 22733 const day_result: number = (valueDeserializer.readNumber() as number) 22734 let value: CalendarSelectedDate = ({year: year_result, month: month_result, day: day_result} as CalendarSelectedDate) 22735 return value 22736 } 22737 readCallback_CalendarSelectedDate_Void(isSync: boolean = false): ((event: CalendarSelectedDate) => void) { 22738 const _resource: CallbackResource = this.readCallbackResource() 22739 const _call: KPointer = this.readPointer() 22740 const _callSync: KPointer = this.readPointer() 22741 return (event: CalendarSelectedDate): void => { 22742 const _argsSerializer: Serializer = Serializer.hold(); 22743 _argsSerializer.writeInt32(_resource.resourceId); 22744 _argsSerializer.writePointer(_call); 22745 _argsSerializer.writePointer(_callSync); 22746 _argsSerializer.writeCalendarSelectedDate(event); 22747 (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); 22748 _argsSerializer.release(); 22749 return; } 22750 } 22751 readWorkStateStyle(): WorkStateStyle { 22752 let valueDeserializer: Deserializer = this 22753 const workDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22754 let workDayMarkColor_buf: ResourceColor | undefined|undefined 22755 if ((RuntimeType.UNDEFINED) != (workDayMarkColor_buf_runtimeType)) 22756 { 22757 const workDayMarkColor_buf__selector: number = valueDeserializer.readInt8() 22758 let workDayMarkColor_buf_: Color | number | string | Resource | undefined|undefined 22759 if (workDayMarkColor_buf__selector == 0) { 22760 workDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 22761 } 22762 else if (workDayMarkColor_buf__selector == 1) { 22763 workDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 22764 } 22765 else if (workDayMarkColor_buf__selector == 2) { 22766 workDayMarkColor_buf_ = (valueDeserializer.readString() as string) 22767 } 22768 else if (workDayMarkColor_buf__selector == 3) { 22769 workDayMarkColor_buf_ = valueDeserializer.readResource() 22770 } 22771 else { 22772 throw new Error("One of the branches for workDayMarkColor_buf_ has to be chosen through deserialisation.") 22773 } 22774 workDayMarkColor_buf = (workDayMarkColor_buf_ as Color | number | string | Resource) 22775 } 22776 const workDayMarkColor_result: ResourceColor | undefined|undefined = workDayMarkColor_buf 22777 const offDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22778 let offDayMarkColor_buf: ResourceColor | undefined|undefined 22779 if ((RuntimeType.UNDEFINED) != (offDayMarkColor_buf_runtimeType)) 22780 { 22781 const offDayMarkColor_buf__selector: number = valueDeserializer.readInt8() 22782 let offDayMarkColor_buf_: Color | number | string | Resource | undefined|undefined 22783 if (offDayMarkColor_buf__selector == 0) { 22784 offDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 22785 } 22786 else if (offDayMarkColor_buf__selector == 1) { 22787 offDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 22788 } 22789 else if (offDayMarkColor_buf__selector == 2) { 22790 offDayMarkColor_buf_ = (valueDeserializer.readString() as string) 22791 } 22792 else if (offDayMarkColor_buf__selector == 3) { 22793 offDayMarkColor_buf_ = valueDeserializer.readResource() 22794 } 22795 else { 22796 throw new Error("One of the branches for offDayMarkColor_buf_ has to be chosen through deserialisation.") 22797 } 22798 offDayMarkColor_buf = (offDayMarkColor_buf_ as Color | number | string | Resource) 22799 } 22800 const offDayMarkColor_result: ResourceColor | undefined|undefined = offDayMarkColor_buf 22801 const workDayMarkSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22802 let workDayMarkSize_buf: number | undefined|undefined 22803 if ((RuntimeType.UNDEFINED) != (workDayMarkSize_buf_runtimeType)) 22804 { 22805 workDayMarkSize_buf = (valueDeserializer.readNumber() as number) 22806 } 22807 const workDayMarkSize_result: number | undefined|undefined = workDayMarkSize_buf 22808 const offDayMarkSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22809 let offDayMarkSize_buf: number | undefined|undefined 22810 if ((RuntimeType.UNDEFINED) != (offDayMarkSize_buf_runtimeType)) 22811 { 22812 offDayMarkSize_buf = (valueDeserializer.readNumber() as number) 22813 } 22814 const offDayMarkSize_result: number | undefined|undefined = offDayMarkSize_buf 22815 const workStateWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22816 let workStateWidth_buf: number | undefined|undefined 22817 if ((RuntimeType.UNDEFINED) != (workStateWidth_buf_runtimeType)) 22818 { 22819 workStateWidth_buf = (valueDeserializer.readNumber() as number) 22820 } 22821 const workStateWidth_result: number | undefined|undefined = workStateWidth_buf 22822 const workStateHorizontalMovingDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22823 let workStateHorizontalMovingDistance_buf: number | undefined|undefined 22824 if ((RuntimeType.UNDEFINED) != (workStateHorizontalMovingDistance_buf_runtimeType)) 22825 { 22826 workStateHorizontalMovingDistance_buf = (valueDeserializer.readNumber() as number) 22827 } 22828 const workStateHorizontalMovingDistance_result: number | undefined|undefined = workStateHorizontalMovingDistance_buf 22829 const workStateVerticalMovingDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22830 let workStateVerticalMovingDistance_buf: number | undefined|undefined 22831 if ((RuntimeType.UNDEFINED) != (workStateVerticalMovingDistance_buf_runtimeType)) 22832 { 22833 workStateVerticalMovingDistance_buf = (valueDeserializer.readNumber() as number) 22834 } 22835 const workStateVerticalMovingDistance_result: number | undefined|undefined = workStateVerticalMovingDistance_buf 22836 let value: WorkStateStyle = ({workDayMarkColor: workDayMarkColor_result, offDayMarkColor: offDayMarkColor_result, workDayMarkSize: workDayMarkSize_result, offDayMarkSize: offDayMarkSize_result, workStateWidth: workStateWidth_result, workStateHorizontalMovingDistance: workStateHorizontalMovingDistance_result, workStateVerticalMovingDistance: workStateVerticalMovingDistance_result} as WorkStateStyle) 22837 return value 22838 } 22839 readWeekStyle(): WeekStyle { 22840 let valueDeserializer: Deserializer = this 22841 const weekColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22842 let weekColor_buf: ResourceColor | undefined|undefined 22843 if ((RuntimeType.UNDEFINED) != (weekColor_buf_runtimeType)) 22844 { 22845 const weekColor_buf__selector: number = valueDeserializer.readInt8() 22846 let weekColor_buf_: Color | number | string | Resource | undefined|undefined 22847 if (weekColor_buf__selector == 0) { 22848 weekColor_buf_ = (valueDeserializer.readInt32() as Color) 22849 } 22850 else if (weekColor_buf__selector == 1) { 22851 weekColor_buf_ = (valueDeserializer.readNumber() as number) 22852 } 22853 else if (weekColor_buf__selector == 2) { 22854 weekColor_buf_ = (valueDeserializer.readString() as string) 22855 } 22856 else if (weekColor_buf__selector == 3) { 22857 weekColor_buf_ = valueDeserializer.readResource() 22858 } 22859 else { 22860 throw new Error("One of the branches for weekColor_buf_ has to be chosen through deserialisation.") 22861 } 22862 weekColor_buf = (weekColor_buf_ as Color | number | string | Resource) 22863 } 22864 const weekColor_result: ResourceColor | undefined|undefined = weekColor_buf 22865 const weekendDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22866 let weekendDayColor_buf: ResourceColor | undefined|undefined 22867 if ((RuntimeType.UNDEFINED) != (weekendDayColor_buf_runtimeType)) 22868 { 22869 const weekendDayColor_buf__selector: number = valueDeserializer.readInt8() 22870 let weekendDayColor_buf_: Color | number | string | Resource | undefined|undefined 22871 if (weekendDayColor_buf__selector == 0) { 22872 weekendDayColor_buf_ = (valueDeserializer.readInt32() as Color) 22873 } 22874 else if (weekendDayColor_buf__selector == 1) { 22875 weekendDayColor_buf_ = (valueDeserializer.readNumber() as number) 22876 } 22877 else if (weekendDayColor_buf__selector == 2) { 22878 weekendDayColor_buf_ = (valueDeserializer.readString() as string) 22879 } 22880 else if (weekendDayColor_buf__selector == 3) { 22881 weekendDayColor_buf_ = valueDeserializer.readResource() 22882 } 22883 else { 22884 throw new Error("One of the branches for weekendDayColor_buf_ has to be chosen through deserialisation.") 22885 } 22886 weekendDayColor_buf = (weekendDayColor_buf_ as Color | number | string | Resource) 22887 } 22888 const weekendDayColor_result: ResourceColor | undefined|undefined = weekendDayColor_buf 22889 const weekendLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22890 let weekendLunarColor_buf: ResourceColor | undefined|undefined 22891 if ((RuntimeType.UNDEFINED) != (weekendLunarColor_buf_runtimeType)) 22892 { 22893 const weekendLunarColor_buf__selector: number = valueDeserializer.readInt8() 22894 let weekendLunarColor_buf_: Color | number | string | Resource | undefined|undefined 22895 if (weekendLunarColor_buf__selector == 0) { 22896 weekendLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 22897 } 22898 else if (weekendLunarColor_buf__selector == 1) { 22899 weekendLunarColor_buf_ = (valueDeserializer.readNumber() as number) 22900 } 22901 else if (weekendLunarColor_buf__selector == 2) { 22902 weekendLunarColor_buf_ = (valueDeserializer.readString() as string) 22903 } 22904 else if (weekendLunarColor_buf__selector == 3) { 22905 weekendLunarColor_buf_ = valueDeserializer.readResource() 22906 } 22907 else { 22908 throw new Error("One of the branches for weekendLunarColor_buf_ has to be chosen through deserialisation.") 22909 } 22910 weekendLunarColor_buf = (weekendLunarColor_buf_ as Color | number | string | Resource) 22911 } 22912 const weekendLunarColor_result: ResourceColor | undefined|undefined = weekendLunarColor_buf 22913 const weekFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22914 let weekFontSize_buf: number | undefined|undefined 22915 if ((RuntimeType.UNDEFINED) != (weekFontSize_buf_runtimeType)) 22916 { 22917 weekFontSize_buf = (valueDeserializer.readNumber() as number) 22918 } 22919 const weekFontSize_result: number | undefined|undefined = weekFontSize_buf 22920 const weekHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22921 let weekHeight_buf: number | undefined|undefined 22922 if ((RuntimeType.UNDEFINED) != (weekHeight_buf_runtimeType)) 22923 { 22924 weekHeight_buf = (valueDeserializer.readNumber() as number) 22925 } 22926 const weekHeight_result: number | undefined|undefined = weekHeight_buf 22927 const weekWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22928 let weekWidth_buf: number | undefined|undefined 22929 if ((RuntimeType.UNDEFINED) != (weekWidth_buf_runtimeType)) 22930 { 22931 weekWidth_buf = (valueDeserializer.readNumber() as number) 22932 } 22933 const weekWidth_result: number | undefined|undefined = weekWidth_buf 22934 const weekAndDayRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22935 let weekAndDayRowSpace_buf: number | undefined|undefined 22936 if ((RuntimeType.UNDEFINED) != (weekAndDayRowSpace_buf_runtimeType)) 22937 { 22938 weekAndDayRowSpace_buf = (valueDeserializer.readNumber() as number) 22939 } 22940 const weekAndDayRowSpace_result: number | undefined|undefined = weekAndDayRowSpace_buf 22941 let value: WeekStyle = ({weekColor: weekColor_result, weekendDayColor: weekendDayColor_result, weekendLunarColor: weekendLunarColor_result, weekFontSize: weekFontSize_result, weekHeight: weekHeight_result, weekWidth: weekWidth_result, weekAndDayRowSpace: weekAndDayRowSpace_result} as WeekStyle) 22942 return value 22943 } 22944 readTodayStyle(): TodayStyle { 22945 let valueDeserializer: Deserializer = this 22946 const focusedDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22947 let focusedDayColor_buf: ResourceColor | undefined|undefined 22948 if ((RuntimeType.UNDEFINED) != (focusedDayColor_buf_runtimeType)) 22949 { 22950 const focusedDayColor_buf__selector: number = valueDeserializer.readInt8() 22951 let focusedDayColor_buf_: Color | number | string | Resource | undefined|undefined 22952 if (focusedDayColor_buf__selector == 0) { 22953 focusedDayColor_buf_ = (valueDeserializer.readInt32() as Color) 22954 } 22955 else if (focusedDayColor_buf__selector == 1) { 22956 focusedDayColor_buf_ = (valueDeserializer.readNumber() as number) 22957 } 22958 else if (focusedDayColor_buf__selector == 2) { 22959 focusedDayColor_buf_ = (valueDeserializer.readString() as string) 22960 } 22961 else if (focusedDayColor_buf__selector == 3) { 22962 focusedDayColor_buf_ = valueDeserializer.readResource() 22963 } 22964 else { 22965 throw new Error("One of the branches for focusedDayColor_buf_ has to be chosen through deserialisation.") 22966 } 22967 focusedDayColor_buf = (focusedDayColor_buf_ as Color | number | string | Resource) 22968 } 22969 const focusedDayColor_result: ResourceColor | undefined|undefined = focusedDayColor_buf 22970 const focusedLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22971 let focusedLunarColor_buf: ResourceColor | undefined|undefined 22972 if ((RuntimeType.UNDEFINED) != (focusedLunarColor_buf_runtimeType)) 22973 { 22974 const focusedLunarColor_buf__selector: number = valueDeserializer.readInt8() 22975 let focusedLunarColor_buf_: Color | number | string | Resource | undefined|undefined 22976 if (focusedLunarColor_buf__selector == 0) { 22977 focusedLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 22978 } 22979 else if (focusedLunarColor_buf__selector == 1) { 22980 focusedLunarColor_buf_ = (valueDeserializer.readNumber() as number) 22981 } 22982 else if (focusedLunarColor_buf__selector == 2) { 22983 focusedLunarColor_buf_ = (valueDeserializer.readString() as string) 22984 } 22985 else if (focusedLunarColor_buf__selector == 3) { 22986 focusedLunarColor_buf_ = valueDeserializer.readResource() 22987 } 22988 else { 22989 throw new Error("One of the branches for focusedLunarColor_buf_ has to be chosen through deserialisation.") 22990 } 22991 focusedLunarColor_buf = (focusedLunarColor_buf_ as Color | number | string | Resource) 22992 } 22993 const focusedLunarColor_result: ResourceColor | undefined|undefined = focusedLunarColor_buf 22994 const focusedAreaBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22995 let focusedAreaBackgroundColor_buf: ResourceColor | undefined|undefined 22996 if ((RuntimeType.UNDEFINED) != (focusedAreaBackgroundColor_buf_runtimeType)) 22997 { 22998 const focusedAreaBackgroundColor_buf__selector: number = valueDeserializer.readInt8() 22999 let focusedAreaBackgroundColor_buf_: Color | number | string | Resource | undefined|undefined 23000 if (focusedAreaBackgroundColor_buf__selector == 0) { 23001 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 23002 } 23003 else if (focusedAreaBackgroundColor_buf__selector == 1) { 23004 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readNumber() as number) 23005 } 23006 else if (focusedAreaBackgroundColor_buf__selector == 2) { 23007 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readString() as string) 23008 } 23009 else if (focusedAreaBackgroundColor_buf__selector == 3) { 23010 focusedAreaBackgroundColor_buf_ = valueDeserializer.readResource() 23011 } 23012 else { 23013 throw new Error("One of the branches for focusedAreaBackgroundColor_buf_ has to be chosen through deserialisation.") 23014 } 23015 focusedAreaBackgroundColor_buf = (focusedAreaBackgroundColor_buf_ as Color | number | string | Resource) 23016 } 23017 const focusedAreaBackgroundColor_result: ResourceColor | undefined|undefined = focusedAreaBackgroundColor_buf 23018 const focusedAreaRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23019 let focusedAreaRadius_buf: number | undefined|undefined 23020 if ((RuntimeType.UNDEFINED) != (focusedAreaRadius_buf_runtimeType)) 23021 { 23022 focusedAreaRadius_buf = (valueDeserializer.readNumber() as number) 23023 } 23024 const focusedAreaRadius_result: number | undefined|undefined = focusedAreaRadius_buf 23025 let value: TodayStyle = ({focusedDayColor: focusedDayColor_result, focusedLunarColor: focusedLunarColor_result, focusedAreaBackgroundColor: focusedAreaBackgroundColor_result, focusedAreaRadius: focusedAreaRadius_result} as TodayStyle) 23026 return value 23027 } 23028 readNonCurrentDayStyle(): NonCurrentDayStyle { 23029 let valueDeserializer: Deserializer = this 23030 const nonCurrentMonthDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23031 let nonCurrentMonthDayColor_buf: ResourceColor | undefined|undefined 23032 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthDayColor_buf_runtimeType)) 23033 { 23034 const nonCurrentMonthDayColor_buf__selector: number = valueDeserializer.readInt8() 23035 let nonCurrentMonthDayColor_buf_: Color | number | string | Resource | undefined|undefined 23036 if (nonCurrentMonthDayColor_buf__selector == 0) { 23037 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readInt32() as Color) 23038 } 23039 else if (nonCurrentMonthDayColor_buf__selector == 1) { 23040 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readNumber() as number) 23041 } 23042 else if (nonCurrentMonthDayColor_buf__selector == 2) { 23043 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readString() as string) 23044 } 23045 else if (nonCurrentMonthDayColor_buf__selector == 3) { 23046 nonCurrentMonthDayColor_buf_ = valueDeserializer.readResource() 23047 } 23048 else { 23049 throw new Error("One of the branches for nonCurrentMonthDayColor_buf_ has to be chosen through deserialisation.") 23050 } 23051 nonCurrentMonthDayColor_buf = (nonCurrentMonthDayColor_buf_ as Color | number | string | Resource) 23052 } 23053 const nonCurrentMonthDayColor_result: ResourceColor | undefined|undefined = nonCurrentMonthDayColor_buf 23054 const nonCurrentMonthLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23055 let nonCurrentMonthLunarColor_buf: ResourceColor | undefined|undefined 23056 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthLunarColor_buf_runtimeType)) 23057 { 23058 const nonCurrentMonthLunarColor_buf__selector: number = valueDeserializer.readInt8() 23059 let nonCurrentMonthLunarColor_buf_: Color | number | string | Resource | undefined|undefined 23060 if (nonCurrentMonthLunarColor_buf__selector == 0) { 23061 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23062 } 23063 else if (nonCurrentMonthLunarColor_buf__selector == 1) { 23064 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23065 } 23066 else if (nonCurrentMonthLunarColor_buf__selector == 2) { 23067 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readString() as string) 23068 } 23069 else if (nonCurrentMonthLunarColor_buf__selector == 3) { 23070 nonCurrentMonthLunarColor_buf_ = valueDeserializer.readResource() 23071 } 23072 else { 23073 throw new Error("One of the branches for nonCurrentMonthLunarColor_buf_ has to be chosen through deserialisation.") 23074 } 23075 nonCurrentMonthLunarColor_buf = (nonCurrentMonthLunarColor_buf_ as Color | number | string | Resource) 23076 } 23077 const nonCurrentMonthLunarColor_result: ResourceColor | undefined|undefined = nonCurrentMonthLunarColor_buf 23078 const nonCurrentMonthWorkDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23079 let nonCurrentMonthWorkDayMarkColor_buf: ResourceColor | undefined|undefined 23080 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthWorkDayMarkColor_buf_runtimeType)) 23081 { 23082 const nonCurrentMonthWorkDayMarkColor_buf__selector: number = valueDeserializer.readInt8() 23083 let nonCurrentMonthWorkDayMarkColor_buf_: Color | number | string | Resource | undefined|undefined 23084 if (nonCurrentMonthWorkDayMarkColor_buf__selector == 0) { 23085 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 23086 } 23087 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 1) { 23088 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 23089 } 23090 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 2) { 23091 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readString() as string) 23092 } 23093 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 3) { 23094 nonCurrentMonthWorkDayMarkColor_buf_ = valueDeserializer.readResource() 23095 } 23096 else { 23097 throw new Error("One of the branches for nonCurrentMonthWorkDayMarkColor_buf_ has to be chosen through deserialisation.") 23098 } 23099 nonCurrentMonthWorkDayMarkColor_buf = (nonCurrentMonthWorkDayMarkColor_buf_ as Color | number | string | Resource) 23100 } 23101 const nonCurrentMonthWorkDayMarkColor_result: ResourceColor | undefined|undefined = nonCurrentMonthWorkDayMarkColor_buf 23102 const nonCurrentMonthOffDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23103 let nonCurrentMonthOffDayMarkColor_buf: ResourceColor | undefined|undefined 23104 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthOffDayMarkColor_buf_runtimeType)) 23105 { 23106 const nonCurrentMonthOffDayMarkColor_buf__selector: number = valueDeserializer.readInt8() 23107 let nonCurrentMonthOffDayMarkColor_buf_: Color | number | string | Resource | undefined|undefined 23108 if (nonCurrentMonthOffDayMarkColor_buf__selector == 0) { 23109 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 23110 } 23111 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 1) { 23112 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 23113 } 23114 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 2) { 23115 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readString() as string) 23116 } 23117 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 3) { 23118 nonCurrentMonthOffDayMarkColor_buf_ = valueDeserializer.readResource() 23119 } 23120 else { 23121 throw new Error("One of the branches for nonCurrentMonthOffDayMarkColor_buf_ has to be chosen through deserialisation.") 23122 } 23123 nonCurrentMonthOffDayMarkColor_buf = (nonCurrentMonthOffDayMarkColor_buf_ as Color | number | string | Resource) 23124 } 23125 const nonCurrentMonthOffDayMarkColor_result: ResourceColor | undefined|undefined = nonCurrentMonthOffDayMarkColor_buf 23126 let value: NonCurrentDayStyle = ({nonCurrentMonthDayColor: nonCurrentMonthDayColor_result, nonCurrentMonthLunarColor: nonCurrentMonthLunarColor_result, nonCurrentMonthWorkDayMarkColor: nonCurrentMonthWorkDayMarkColor_result, nonCurrentMonthOffDayMarkColor: nonCurrentMonthOffDayMarkColor_result} as NonCurrentDayStyle) 23127 return value 23128 } 23129 readCurrentDayStyle(): CurrentDayStyle { 23130 let valueDeserializer: Deserializer = this 23131 const dayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23132 let dayColor_buf: ResourceColor | undefined|undefined 23133 if ((RuntimeType.UNDEFINED) != (dayColor_buf_runtimeType)) 23134 { 23135 const dayColor_buf__selector: number = valueDeserializer.readInt8() 23136 let dayColor_buf_: Color | number | string | Resource | undefined|undefined 23137 if (dayColor_buf__selector == 0) { 23138 dayColor_buf_ = (valueDeserializer.readInt32() as Color) 23139 } 23140 else if (dayColor_buf__selector == 1) { 23141 dayColor_buf_ = (valueDeserializer.readNumber() as number) 23142 } 23143 else if (dayColor_buf__selector == 2) { 23144 dayColor_buf_ = (valueDeserializer.readString() as string) 23145 } 23146 else if (dayColor_buf__selector == 3) { 23147 dayColor_buf_ = valueDeserializer.readResource() 23148 } 23149 else { 23150 throw new Error("One of the branches for dayColor_buf_ has to be chosen through deserialisation.") 23151 } 23152 dayColor_buf = (dayColor_buf_ as Color | number | string | Resource) 23153 } 23154 const dayColor_result: ResourceColor | undefined|undefined = dayColor_buf 23155 const lunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23156 let lunarColor_buf: ResourceColor | undefined|undefined 23157 if ((RuntimeType.UNDEFINED) != (lunarColor_buf_runtimeType)) 23158 { 23159 const lunarColor_buf__selector: number = valueDeserializer.readInt8() 23160 let lunarColor_buf_: Color | number | string | Resource | undefined|undefined 23161 if (lunarColor_buf__selector == 0) { 23162 lunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23163 } 23164 else if (lunarColor_buf__selector == 1) { 23165 lunarColor_buf_ = (valueDeserializer.readNumber() as number) 23166 } 23167 else if (lunarColor_buf__selector == 2) { 23168 lunarColor_buf_ = (valueDeserializer.readString() as string) 23169 } 23170 else if (lunarColor_buf__selector == 3) { 23171 lunarColor_buf_ = valueDeserializer.readResource() 23172 } 23173 else { 23174 throw new Error("One of the branches for lunarColor_buf_ has to be chosen through deserialisation.") 23175 } 23176 lunarColor_buf = (lunarColor_buf_ as Color | number | string | Resource) 23177 } 23178 const lunarColor_result: ResourceColor | undefined|undefined = lunarColor_buf 23179 const markLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23180 let markLunarColor_buf: ResourceColor | undefined|undefined 23181 if ((RuntimeType.UNDEFINED) != (markLunarColor_buf_runtimeType)) 23182 { 23183 const markLunarColor_buf__selector: number = valueDeserializer.readInt8() 23184 let markLunarColor_buf_: Color | number | string | Resource | undefined|undefined 23185 if (markLunarColor_buf__selector == 0) { 23186 markLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23187 } 23188 else if (markLunarColor_buf__selector == 1) { 23189 markLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23190 } 23191 else if (markLunarColor_buf__selector == 2) { 23192 markLunarColor_buf_ = (valueDeserializer.readString() as string) 23193 } 23194 else if (markLunarColor_buf__selector == 3) { 23195 markLunarColor_buf_ = valueDeserializer.readResource() 23196 } 23197 else { 23198 throw new Error("One of the branches for markLunarColor_buf_ has to be chosen through deserialisation.") 23199 } 23200 markLunarColor_buf = (markLunarColor_buf_ as Color | number | string | Resource) 23201 } 23202 const markLunarColor_result: ResourceColor | undefined|undefined = markLunarColor_buf 23203 const dayFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23204 let dayFontSize_buf: number | undefined|undefined 23205 if ((RuntimeType.UNDEFINED) != (dayFontSize_buf_runtimeType)) 23206 { 23207 dayFontSize_buf = (valueDeserializer.readNumber() as number) 23208 } 23209 const dayFontSize_result: number | undefined|undefined = dayFontSize_buf 23210 const lunarDayFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23211 let lunarDayFontSize_buf: number | undefined|undefined 23212 if ((RuntimeType.UNDEFINED) != (lunarDayFontSize_buf_runtimeType)) 23213 { 23214 lunarDayFontSize_buf = (valueDeserializer.readNumber() as number) 23215 } 23216 const lunarDayFontSize_result: number | undefined|undefined = lunarDayFontSize_buf 23217 const dayHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23218 let dayHeight_buf: number | undefined|undefined 23219 if ((RuntimeType.UNDEFINED) != (dayHeight_buf_runtimeType)) 23220 { 23221 dayHeight_buf = (valueDeserializer.readNumber() as number) 23222 } 23223 const dayHeight_result: number | undefined|undefined = dayHeight_buf 23224 const dayWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23225 let dayWidth_buf: number | undefined|undefined 23226 if ((RuntimeType.UNDEFINED) != (dayWidth_buf_runtimeType)) 23227 { 23228 dayWidth_buf = (valueDeserializer.readNumber() as number) 23229 } 23230 const dayWidth_result: number | undefined|undefined = dayWidth_buf 23231 const gregorianCalendarHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23232 let gregorianCalendarHeight_buf: number | undefined|undefined 23233 if ((RuntimeType.UNDEFINED) != (gregorianCalendarHeight_buf_runtimeType)) 23234 { 23235 gregorianCalendarHeight_buf = (valueDeserializer.readNumber() as number) 23236 } 23237 const gregorianCalendarHeight_result: number | undefined|undefined = gregorianCalendarHeight_buf 23238 const dayYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23239 let dayYAxisOffset_buf: number | undefined|undefined 23240 if ((RuntimeType.UNDEFINED) != (dayYAxisOffset_buf_runtimeType)) 23241 { 23242 dayYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23243 } 23244 const dayYAxisOffset_result: number | undefined|undefined = dayYAxisOffset_buf 23245 const lunarDayYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23246 let lunarDayYAxisOffset_buf: number | undefined|undefined 23247 if ((RuntimeType.UNDEFINED) != (lunarDayYAxisOffset_buf_runtimeType)) 23248 { 23249 lunarDayYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23250 } 23251 const lunarDayYAxisOffset_result: number | undefined|undefined = lunarDayYAxisOffset_buf 23252 const underscoreXAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23253 let underscoreXAxisOffset_buf: number | undefined|undefined 23254 if ((RuntimeType.UNDEFINED) != (underscoreXAxisOffset_buf_runtimeType)) 23255 { 23256 underscoreXAxisOffset_buf = (valueDeserializer.readNumber() as number) 23257 } 23258 const underscoreXAxisOffset_result: number | undefined|undefined = underscoreXAxisOffset_buf 23259 const underscoreYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23260 let underscoreYAxisOffset_buf: number | undefined|undefined 23261 if ((RuntimeType.UNDEFINED) != (underscoreYAxisOffset_buf_runtimeType)) 23262 { 23263 underscoreYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23264 } 23265 const underscoreYAxisOffset_result: number | undefined|undefined = underscoreYAxisOffset_buf 23266 const scheduleMarkerXAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23267 let scheduleMarkerXAxisOffset_buf: number | undefined|undefined 23268 if ((RuntimeType.UNDEFINED) != (scheduleMarkerXAxisOffset_buf_runtimeType)) 23269 { 23270 scheduleMarkerXAxisOffset_buf = (valueDeserializer.readNumber() as number) 23271 } 23272 const scheduleMarkerXAxisOffset_result: number | undefined|undefined = scheduleMarkerXAxisOffset_buf 23273 const scheduleMarkerYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23274 let scheduleMarkerYAxisOffset_buf: number | undefined|undefined 23275 if ((RuntimeType.UNDEFINED) != (scheduleMarkerYAxisOffset_buf_runtimeType)) 23276 { 23277 scheduleMarkerYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23278 } 23279 const scheduleMarkerYAxisOffset_result: number | undefined|undefined = scheduleMarkerYAxisOffset_buf 23280 const colSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23281 let colSpace_buf: number | undefined|undefined 23282 if ((RuntimeType.UNDEFINED) != (colSpace_buf_runtimeType)) 23283 { 23284 colSpace_buf = (valueDeserializer.readNumber() as number) 23285 } 23286 const colSpace_result: number | undefined|undefined = colSpace_buf 23287 const dailyFiveRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23288 let dailyFiveRowSpace_buf: number | undefined|undefined 23289 if ((RuntimeType.UNDEFINED) != (dailyFiveRowSpace_buf_runtimeType)) 23290 { 23291 dailyFiveRowSpace_buf = (valueDeserializer.readNumber() as number) 23292 } 23293 const dailyFiveRowSpace_result: number | undefined|undefined = dailyFiveRowSpace_buf 23294 const dailySixRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23295 let dailySixRowSpace_buf: number | undefined|undefined 23296 if ((RuntimeType.UNDEFINED) != (dailySixRowSpace_buf_runtimeType)) 23297 { 23298 dailySixRowSpace_buf = (valueDeserializer.readNumber() as number) 23299 } 23300 const dailySixRowSpace_result: number | undefined|undefined = dailySixRowSpace_buf 23301 const lunarHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23302 let lunarHeight_buf: number | undefined|undefined 23303 if ((RuntimeType.UNDEFINED) != (lunarHeight_buf_runtimeType)) 23304 { 23305 lunarHeight_buf = (valueDeserializer.readNumber() as number) 23306 } 23307 const lunarHeight_result: number | undefined|undefined = lunarHeight_buf 23308 const underscoreWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23309 let underscoreWidth_buf: number | undefined|undefined 23310 if ((RuntimeType.UNDEFINED) != (underscoreWidth_buf_runtimeType)) 23311 { 23312 underscoreWidth_buf = (valueDeserializer.readNumber() as number) 23313 } 23314 const underscoreWidth_result: number | undefined|undefined = underscoreWidth_buf 23315 const underscoreLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23316 let underscoreLength_buf: number | undefined|undefined 23317 if ((RuntimeType.UNDEFINED) != (underscoreLength_buf_runtimeType)) 23318 { 23319 underscoreLength_buf = (valueDeserializer.readNumber() as number) 23320 } 23321 const underscoreLength_result: number | undefined|undefined = underscoreLength_buf 23322 const scheduleMarkerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23323 let scheduleMarkerRadius_buf: number | undefined|undefined 23324 if ((RuntimeType.UNDEFINED) != (scheduleMarkerRadius_buf_runtimeType)) 23325 { 23326 scheduleMarkerRadius_buf = (valueDeserializer.readNumber() as number) 23327 } 23328 const scheduleMarkerRadius_result: number | undefined|undefined = scheduleMarkerRadius_buf 23329 const boundaryRowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23330 let boundaryRowOffset_buf: number | undefined|undefined 23331 if ((RuntimeType.UNDEFINED) != (boundaryRowOffset_buf_runtimeType)) 23332 { 23333 boundaryRowOffset_buf = (valueDeserializer.readNumber() as number) 23334 } 23335 const boundaryRowOffset_result: number | undefined|undefined = boundaryRowOffset_buf 23336 const boundaryColOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23337 let boundaryColOffset_buf: number | undefined|undefined 23338 if ((RuntimeType.UNDEFINED) != (boundaryColOffset_buf_runtimeType)) 23339 { 23340 boundaryColOffset_buf = (valueDeserializer.readNumber() as number) 23341 } 23342 const boundaryColOffset_result: number | undefined|undefined = boundaryColOffset_buf 23343 let value: CurrentDayStyle = ({dayColor: dayColor_result, lunarColor: lunarColor_result, markLunarColor: markLunarColor_result, dayFontSize: dayFontSize_result, lunarDayFontSize: lunarDayFontSize_result, dayHeight: dayHeight_result, dayWidth: dayWidth_result, gregorianCalendarHeight: gregorianCalendarHeight_result, dayYAxisOffset: dayYAxisOffset_result, lunarDayYAxisOffset: lunarDayYAxisOffset_result, underscoreXAxisOffset: underscoreXAxisOffset_result, underscoreYAxisOffset: underscoreYAxisOffset_result, scheduleMarkerXAxisOffset: scheduleMarkerXAxisOffset_result, scheduleMarkerYAxisOffset: scheduleMarkerYAxisOffset_result, colSpace: colSpace_result, dailyFiveRowSpace: dailyFiveRowSpace_result, dailySixRowSpace: dailySixRowSpace_result, lunarHeight: lunarHeight_result, underscoreWidth: underscoreWidth_result, underscoreLength: underscoreLength_result, scheduleMarkerRadius: scheduleMarkerRadius_result, boundaryRowOffset: boundaryRowOffset_result, boundaryColOffset: boundaryColOffset_result} as CurrentDayStyle) 23344 return value 23345 } 23346 readCalendarDay(): CalendarDay { 23347 let valueDeserializer: Deserializer = this 23348 const index_result: number = (valueDeserializer.readNumber() as number) 23349 const lunarMonth_result: string = (valueDeserializer.readString() as string) 23350 const lunarDay_result: string = (valueDeserializer.readString() as string) 23351 const dayMark_result: string = (valueDeserializer.readString() as string) 23352 const dayMarkValue_result: string = (valueDeserializer.readString() as string) 23353 const year_result: number = (valueDeserializer.readNumber() as number) 23354 const month_result: number = (valueDeserializer.readNumber() as number) 23355 const day_result: number = (valueDeserializer.readNumber() as number) 23356 const isFirstOfLunar_result: boolean = valueDeserializer.readBoolean() 23357 const hasSchedule_result: boolean = valueDeserializer.readBoolean() 23358 const markLunarDay_result: boolean = valueDeserializer.readBoolean() 23359 let value: CalendarDay = ({index: index_result, lunarMonth: lunarMonth_result, lunarDay: lunarDay_result, dayMark: dayMark_result, dayMarkValue: dayMarkValue_result, year: year_result, month: month_result, day: day_result, isFirstOfLunar: isFirstOfLunar_result, hasSchedule: hasSchedule_result, markLunarDay: markLunarDay_result} as CalendarDay) 23360 return value 23361 } 23362 readButtonOptions(): ButtonOptions { 23363 let valueDeserializer: Deserializer = this 23364 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23365 let type_buf: ButtonType | undefined|undefined 23366 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 23367 { 23368 type_buf = (valueDeserializer.readInt32() as ButtonType) 23369 } 23370 const type_result: ButtonType | undefined|undefined = type_buf 23371 const stateEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23372 let stateEffect_buf: boolean | undefined|undefined 23373 if ((RuntimeType.UNDEFINED) != (stateEffect_buf_runtimeType)) 23374 { 23375 stateEffect_buf = valueDeserializer.readBoolean() 23376 } 23377 const stateEffect_result: boolean | undefined|undefined = stateEffect_buf 23378 const buttonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23379 let buttonStyle_buf: ButtonStyleMode | undefined|undefined 23380 if ((RuntimeType.UNDEFINED) != (buttonStyle_buf_runtimeType)) 23381 { 23382 buttonStyle_buf = (valueDeserializer.readInt32() as ButtonStyleMode) 23383 } 23384 const buttonStyle_result: ButtonStyleMode | undefined|undefined = buttonStyle_buf 23385 const controlSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23386 let controlSize_buf: ControlSize | undefined|undefined 23387 if ((RuntimeType.UNDEFINED) != (controlSize_buf_runtimeType)) 23388 { 23389 controlSize_buf = Object.values(ControlSize)[valueDeserializer.readInt32()] 23390 } 23391 const controlSize_result: ControlSize | undefined|undefined = controlSize_buf 23392 const role_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23393 let role_buf: ButtonRole | undefined|undefined 23394 if ((RuntimeType.UNDEFINED) != (role_buf_runtimeType)) 23395 { 23396 role_buf = (valueDeserializer.readInt32() as ButtonRole) 23397 } 23398 const role_result: ButtonRole | undefined|undefined = role_buf 23399 let value: ButtonOptions = ({type: type_result, stateEffect: stateEffect_result, buttonStyle: buttonStyle_result, controlSize: controlSize_result, role: role_result} as ButtonOptions) 23400 return value 23401 } 23402 readBadgeParamWithString(): BadgeParamWithString { 23403 let valueDeserializer: Deserializer = this 23404 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23405 let position_buf: BadgePosition | Position | undefined|undefined 23406 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 23407 { 23408 const position_buf__selector: number = valueDeserializer.readInt8() 23409 let position_buf_: BadgePosition | Position | undefined|undefined 23410 if (position_buf__selector == 0) { 23411 position_buf_ = (valueDeserializer.readInt32() as BadgePosition) 23412 } 23413 else if (position_buf__selector == 1) { 23414 position_buf_ = valueDeserializer.readPosition() 23415 } 23416 else { 23417 throw new Error("One of the branches for position_buf_ has to be chosen through deserialisation.") 23418 } 23419 position_buf = (position_buf_ as BadgePosition | Position) 23420 } 23421 const position_result: BadgePosition | Position | undefined|undefined = position_buf 23422 const style_result: BadgeStyle = valueDeserializer.readBadgeStyle() 23423 const value_result: string = (valueDeserializer.readString() as string) 23424 let value: BadgeParamWithString = ({position: position_result, style: style_result, value: value_result} as BadgeParamWithString) 23425 return value 23426 } 23427 readBadgeParamWithNumber(): BadgeParamWithNumber { 23428 let valueDeserializer: Deserializer = this 23429 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23430 let position_buf: BadgePosition | Position | undefined|undefined 23431 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 23432 { 23433 const position_buf__selector: number = valueDeserializer.readInt8() 23434 let position_buf_: BadgePosition | Position | undefined|undefined 23435 if (position_buf__selector == 0) { 23436 position_buf_ = (valueDeserializer.readInt32() as BadgePosition) 23437 } 23438 else if (position_buf__selector == 1) { 23439 position_buf_ = valueDeserializer.readPosition() 23440 } 23441 else { 23442 throw new Error("One of the branches for position_buf_ has to be chosen through deserialisation.") 23443 } 23444 position_buf = (position_buf_ as BadgePosition | Position) 23445 } 23446 const position_result: BadgePosition | Position | undefined|undefined = position_buf 23447 const style_result: BadgeStyle = valueDeserializer.readBadgeStyle() 23448 const count_result: number = (valueDeserializer.readNumber() as number) 23449 const maxCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23450 let maxCount_buf: number | undefined|undefined 23451 if ((RuntimeType.UNDEFINED) != (maxCount_buf_runtimeType)) 23452 { 23453 maxCount_buf = (valueDeserializer.readNumber() as number) 23454 } 23455 const maxCount_result: number | undefined|undefined = maxCount_buf 23456 let value: BadgeParamWithNumber = ({position: position_result, style: style_result, count: count_result, maxCount: maxCount_result} as BadgeParamWithNumber) 23457 return value 23458 } 23459 readScrollMotion(): ScrollMotion { 23460 let valueDeserializer: Deserializer = this 23461 let ptr: KPointer = valueDeserializer.readPointer() 23462 return ScrollMotionInternal.fromPtr(ptr) 23463 } 23464 readFrictionMotion(): FrictionMotion { 23465 let valueDeserializer: Deserializer = this 23466 let ptr: KPointer = valueDeserializer.readPointer() 23467 return FrictionMotionInternal.fromPtr(ptr) 23468 } 23469 readSpringMotion(): SpringMotion { 23470 let valueDeserializer: Deserializer = this 23471 let ptr: KPointer = valueDeserializer.readPointer() 23472 return SpringMotionInternal.fromPtr(ptr) 23473 } 23474 readSpringProp(): SpringProp { 23475 let valueDeserializer: Deserializer = this 23476 let ptr: KPointer = valueDeserializer.readPointer() 23477 return SpringPropInternal.fromPtr(ptr) 23478 } 23479 readOnAlphabetIndexerPopupSelectCallback(isSync: boolean = false): OnAlphabetIndexerPopupSelectCallback { 23480 const _resource: CallbackResource = this.readCallbackResource() 23481 const _call: KPointer = this.readPointer() 23482 const _callSync: KPointer = this.readPointer() 23483 return (index: number): void => { 23484 const _argsSerializer: Serializer = Serializer.hold(); 23485 _argsSerializer.writeInt32(_resource.resourceId); 23486 _argsSerializer.writePointer(_call); 23487 _argsSerializer.writePointer(_callSync); 23488 _argsSerializer.writeNumber(index); 23489 (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); 23490 _argsSerializer.release(); 23491 return; } 23492 } 23493 readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { 23494 const _resource: CallbackResource = this.readCallbackResource() 23495 const _call: KPointer = this.readPointer() 23496 const _callSync: KPointer = this.readPointer() 23497 return (index: number): Array<string> => { 23498 const _argsSerializer: Serializer = Serializer.hold(); 23499 _argsSerializer.writeInt32(_resource.resourceId); 23500 _argsSerializer.writePointer(_call); 23501 _argsSerializer.writePointer(_callSync); 23502 _argsSerializer.writeNumber(index); 23503 let _continuationValue: Array<string> | undefined|undefined ; 23504 const _continuationCallback: ((value: Array<string>) => void) = (value: Array<string>): void => { _continuationValue = value; } 23505 _argsSerializer.holdAndWriteCallback(_continuationCallback); 23506 (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); 23507 _argsSerializer.release(); 23508 return (_continuationValue as Array<string>); } 23509 } 23510 readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { 23511 const _resource: CallbackResource = this.readCallbackResource() 23512 const _call: KPointer = this.readPointer() 23513 const _callSync: KPointer = this.readPointer() 23514 return (index: number): void => { 23515 const _argsSerializer: Serializer = Serializer.hold(); 23516 _argsSerializer.writeInt32(_resource.resourceId); 23517 _argsSerializer.writePointer(_call); 23518 _argsSerializer.writePointer(_callSync); 23519 _argsSerializer.writeNumber(index); 23520 (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); 23521 _argsSerializer.release(); 23522 return; } 23523 } 23524 readAlphabetIndexerOptions(): AlphabetIndexerOptions { 23525 let valueDeserializer: Deserializer = this 23526 const arrayValue_buf_length: int32 = valueDeserializer.readInt32() 23527 let arrayValue_buf: Array<string> = new Array<string>(arrayValue_buf_length) 23528 for (let arrayValue_buf_i = 0; arrayValue_buf_i < arrayValue_buf_length; arrayValue_buf_i++) { 23529 arrayValue_buf[arrayValue_buf_i] = (valueDeserializer.readString() as string) 23530 } 23531 const arrayValue_result: Array<string> = arrayValue_buf 23532 const selected_result: number = (valueDeserializer.readNumber() as number) 23533 let value: AlphabetIndexerOptions = ({arrayValue: arrayValue_result, selected: selected_result} as AlphabetIndexerOptions) 23534 return value 23535 } 23536 readAlertDialogButtonOptions(): AlertDialogButtonOptions { 23537 let valueDeserializer: Deserializer = this 23538 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23539 let enabled_buf: boolean | undefined|undefined 23540 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 23541 { 23542 enabled_buf = valueDeserializer.readBoolean() 23543 } 23544 const enabled_result: boolean | undefined|undefined = enabled_buf 23545 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23546 let defaultFocus_buf: boolean | undefined|undefined 23547 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 23548 { 23549 defaultFocus_buf = valueDeserializer.readBoolean() 23550 } 23551 const defaultFocus_result: boolean | undefined|undefined = defaultFocus_buf 23552 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23553 let style_buf: DialogButtonStyle | undefined|undefined 23554 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 23555 { 23556 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 23557 } 23558 const style_result: DialogButtonStyle | undefined|undefined = style_buf 23559 const value_buf_selector: number = valueDeserializer.readInt8() 23560 let value_buf: string | Resource | undefined|undefined 23561 if (value_buf_selector == 0) { 23562 value_buf = (valueDeserializer.readString() as string) 23563 } 23564 else if (value_buf_selector == 1) { 23565 value_buf = valueDeserializer.readResource() 23566 } 23567 else { 23568 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 23569 } 23570 const value_result: ResourceStr = (value_buf as string | Resource) 23571 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23572 let fontColor_buf: ResourceColor | undefined|undefined 23573 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 23574 { 23575 const fontColor_buf__selector: number = valueDeserializer.readInt8() 23576 let fontColor_buf_: Color | number | string | Resource | undefined|undefined 23577 if (fontColor_buf__selector == 0) { 23578 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 23579 } 23580 else if (fontColor_buf__selector == 1) { 23581 fontColor_buf_ = (valueDeserializer.readNumber() as number) 23582 } 23583 else if (fontColor_buf__selector == 2) { 23584 fontColor_buf_ = (valueDeserializer.readString() as string) 23585 } 23586 else if (fontColor_buf__selector == 3) { 23587 fontColor_buf_ = valueDeserializer.readResource() 23588 } 23589 else { 23590 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 23591 } 23592 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 23593 } 23594 const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf 23595 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23596 let backgroundColor_buf: ResourceColor | undefined|undefined 23597 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 23598 { 23599 const backgroundColor_buf__selector: number = valueDeserializer.readInt8() 23600 let backgroundColor_buf_: Color | number | string | Resource | undefined|undefined 23601 if (backgroundColor_buf__selector == 0) { 23602 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 23603 } 23604 else if (backgroundColor_buf__selector == 1) { 23605 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 23606 } 23607 else if (backgroundColor_buf__selector == 2) { 23608 backgroundColor_buf_ = (valueDeserializer.readString() as string) 23609 } 23610 else if (backgroundColor_buf__selector == 3) { 23611 backgroundColor_buf_ = valueDeserializer.readResource() 23612 } 23613 else { 23614 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 23615 } 23616 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 23617 } 23618 const backgroundColor_result: ResourceColor | undefined|undefined = backgroundColor_buf 23619 const action_result: VoidCallback = valueDeserializer.readVoidCallback() 23620 const primary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23621 let primary_buf: boolean | undefined|undefined 23622 if ((RuntimeType.UNDEFINED) != (primary_buf_runtimeType)) 23623 { 23624 primary_buf = valueDeserializer.readBoolean() 23625 } 23626 const primary_result: boolean | undefined|undefined = primary_buf 23627 let value: AlertDialogButtonOptions = ({enabled: enabled_result, defaultFocus: defaultFocus_result, style: style_result, value: value_result, fontColor: fontColor_result, backgroundColor: backgroundColor_result, action: action_result, primary: primary_result} as AlertDialogButtonOptions) 23628 return value 23629 } 23630 readDismissDialogAction(): DismissDialogAction { 23631 let valueDeserializer: Deserializer = this 23632 const dismiss_result: (() => void) = valueDeserializer.readCallback_Void() 23633 const reason_result: DismissReason = (valueDeserializer.readInt32() as DismissReason) 23634 let value: DismissDialogAction = ({dismiss: dismiss_result, reason: reason_result} as DismissDialogAction) 23635 return value 23636 } 23637 readSheetInfo(): SheetInfo { 23638 let valueDeserializer: Deserializer = this 23639 const title_buf_selector: number = valueDeserializer.readInt8() 23640 let title_buf: string | Resource | undefined|undefined 23641 if (title_buf_selector == 0) { 23642 title_buf = (valueDeserializer.readString() as string) 23643 } 23644 else if (title_buf_selector == 1) { 23645 title_buf = valueDeserializer.readResource() 23646 } 23647 else { 23648 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 23649 } 23650 const title_result: string | Resource = (title_buf as string | Resource) 23651 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23652 let icon_buf: string | Resource | undefined|undefined 23653 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 23654 { 23655 const icon_buf__selector: number = valueDeserializer.readInt8() 23656 let icon_buf_: string | Resource | undefined|undefined 23657 if (icon_buf__selector == 0) { 23658 icon_buf_ = (valueDeserializer.readString() as string) 23659 } 23660 else if (icon_buf__selector == 1) { 23661 icon_buf_ = valueDeserializer.readResource() 23662 } 23663 else { 23664 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 23665 } 23666 icon_buf = (icon_buf_ as string | Resource) 23667 } 23668 const icon_result: string | Resource | undefined|undefined = icon_buf 23669 const action_result: VoidCallback = valueDeserializer.readVoidCallback() 23670 let value: SheetInfo = ({title: title_result, icon: icon_result, action: action_result} as SheetInfo) 23671 return value 23672 } 23673 readReplaceSymbolEffect(): ReplaceSymbolEffect { 23674 let valueDeserializer: Deserializer = this 23675 let ptr: KPointer = valueDeserializer.readPointer() 23676 return ReplaceSymbolEffectInternal.fromPtr(ptr) 23677 } 23678 readScaleSymbolEffect(): ScaleSymbolEffect { 23679 let valueDeserializer: Deserializer = this 23680 let ptr: KPointer = valueDeserializer.readPointer() 23681 return ScaleSymbolEffectInternal.fromPtr(ptr) 23682 } 23683 readPathShapeOptions(): PathShapeOptions { 23684 let valueDeserializer: Deserializer = this 23685 const commands_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23686 let commands_buf: string | undefined|undefined 23687 if ((RuntimeType.UNDEFINED) != (commands_buf_runtimeType)) 23688 { 23689 commands_buf = (valueDeserializer.readString() as string) 23690 } 23691 const commands_result: string | undefined|undefined = commands_buf 23692 let value: PathShapeOptions = ({commands: commands_result} as PathShapeOptions) 23693 return value 23694 } 23695 readShapeSize(): ShapeSize { 23696 let valueDeserializer: Deserializer = this 23697 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23698 let width_buf: number | string | undefined|undefined 23699 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 23700 { 23701 const width_buf__selector: number = valueDeserializer.readInt8() 23702 let width_buf_: number | string | undefined|undefined 23703 if (width_buf__selector == 0) { 23704 width_buf_ = (valueDeserializer.readNumber() as number) 23705 } 23706 else if (width_buf__selector == 1) { 23707 width_buf_ = (valueDeserializer.readString() as string) 23708 } 23709 else { 23710 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 23711 } 23712 width_buf = (width_buf_ as number | string) 23713 } 23714 const width_result: number | string | undefined|undefined = width_buf 23715 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23716 let height_buf: number | string | undefined|undefined 23717 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 23718 { 23719 const height_buf__selector: number = valueDeserializer.readInt8() 23720 let height_buf_: number | string | undefined|undefined 23721 if (height_buf__selector == 0) { 23722 height_buf_ = (valueDeserializer.readNumber() as number) 23723 } 23724 else if (height_buf__selector == 1) { 23725 height_buf_ = (valueDeserializer.readString() as string) 23726 } 23727 else { 23728 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 23729 } 23730 height_buf = (height_buf_ as number | string) 23731 } 23732 const height_result: number | string | undefined|undefined = height_buf 23733 let value: ShapeSize = ({width: width_result, height: height_result} as ShapeSize) 23734 return value 23735 } 23736 readWebHeader(): WebHeader { 23737 let valueDeserializer: Deserializer = this 23738 const headerKey_result: string = (valueDeserializer.readString() as string) 23739 const headerValue_result: string = (valueDeserializer.readString() as string) 23740 let value: WebHeader = ({headerKey: headerKey_result, headerValue: headerValue_result} as WebHeader) 23741 return value 23742 } 23743 readLength(): Length | undefined { 23744 const valueType = this.readInt8() 23745 if ((RuntimeType.NUMBER) == (valueType)) { 23746 return this.readFloat32() as number 23747 } 23748 else if ((RuntimeType.STRING) == (valueType)) { 23749 return this.readString() 23750 } 23751 else if ((RuntimeType.OBJECT) == (valueType)) { 23752 return ({id: this.readInt32(), bundleName: "", moduleName: ""}) as Resource 23753 } 23754 else { 23755 return undefined 23756 } 23757 } 23758} 23759 23760export function createDeserializer(args: Uint8Array, length: int32): Deserializer { return new Deserializer(args, length) } 23761