1/* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 17// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! 18 19import { SerializerBase, DeserializerBase, CallbackResource, InteropNativeModule, MaterializedBase, Tags, RuntimeType, runtimeType, toPeerPtr, nullptr, KPointer, NativeBuffer, KSerializerBuffer, KUint8ArrayPtr } from "@koalaui/interop" 20import { int32, int64, float32, unsafeCast } from "@koalaui/common" 21import { CallbackKind } from "./CallbackKind" 22import { Serializer } from "./Serializer" 23import { TypeChecker } from "#components" 24import { CallbackTransformer } from "./CallbackTransformer" 25import { AccessibilityCallback, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, DrawContext, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, CustomBuilder, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, DismissReason, IntentionCode, DragResult, Summary, DragBehavior, Context, LightSource, MultiShadowOptions, PointLightStyle, OnWillScrollCallback, ScrollResult } from "./../ArkCommonInterfaces" 26import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" 27import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" 28import { Callback_RangeUpdate, PointerStyle } 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, MenuType, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" 32import { ErrorCallback, LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, EffectDirection, EffectScope, RectShapeOptions, RoundRectShapeOptions, PathShapeOptions, ShapeSize, MeasureOptions, FontInfo, FontOptions, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController, Affinity } from "./../ArkArkuiExternalInterfaces" 33import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" 34import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" 35import { ImageErrorCallback, ResizableOptions, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode } from "./../ArkImageInterfaces" 36import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavContentInfo, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleMode, NavBarPosition } from "./../ArkNavigationInterfaces" 37import { IsolatedComponentInterface, RestrictedWorker, IsolatedComponentAttribute, IsolatedOptions } 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, RichEditorAttribute, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorDeleteDirection, RichEditorSpanStyleOptions, 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, WebCaptureMode, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, 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, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, NativeEmbedInfo, NativeEmbedStatus, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, RenderProcessNotRespondingReason, WebNavigationType, WebKeyboardOptions, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType, FullScreenEnterEvent, ThreatType, WebKeyboardCallbackInfo, AdsBlockedDetails, ViewportFit, RenderProcessNotRespondingData, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, FirstMeaningfulPaint, LargestContentfulPaint, SslErrorEvent, LoadCommittedDetails } from "./../ArkWebInterfaces" 41import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" 42import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" 43import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, 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, ListItemGroupArea, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" 50import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" 51import { PageTransitionCallback, RouteType, SlideEffect } from "./../ArkPageTransitionInterfaces" 52import { PluginErrorCallback, PluginComponentTemplate, PluginComponentOptions, PluginErrorData } from "./../ArkPluginComponentInterfaces" 53import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" 54import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" 55import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" 56import { VoidCallback, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, BorderRadiuses, Margin, Padding, SizeOptions, Length, Position, Area, Font, LocalizedPadding, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" 57import { WithThemeInterface, CustomTheme, WithThemeAttribute, WithThemeOptions } from "./../ArkWithThemeInterfaces" 58import { Resource } from "./../ArkResourceInterfaces" 59import { Color, ColoringStrategy, FontWeight, Curve, WordBreak, TextOverflow, TextAlign, ImageFit, ImageSpanAlignment, TextDecorationStyle, TextDecorationType, FontStyle, BorderStyle, TextHeightAdaptivePolicy, LineBreakStrategy, TitleHeight, GradientDirection, DialogButtonStyle, TextCase, NestedScrollMode, TouchType, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" 60import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" 61import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" 62import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, AnimationRange_Number, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, onItemDragStart_event_type, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_String_Unknown_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, HorizontalAlignOptions, VerticalAlignOptions, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_ScrollResult_Void } from "./../SyntheticDeclarations" 63import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" 64import { TextBackgroundStyle } from "./../ArkSpanInterfaces" 65import { ImageAttachmentLayoutStyle, UserDataSpan, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, ImageAttachmentInterface, GestureStyleInterface, DecorationStyleInterface, TextStyleInterface, StyledStringKey, StyleOptions, SpanStyle, StyledStringValue } from "./../ArkStyledStringInterfaces" 66import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" 67import { BackgroundColorStyle, BackgroundColorStyleInternal } from "./../ArkBackgroundColorStyleMaterialized" 68import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" 69import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" 70import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" 71import { ParagraphStyle, ParagraphStyleInternal } from "./../ArkParagraphStyleMaterialized" 72import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" 73import { GestureStyle, GestureStyleInternal } from "./../ArkGestureStyleMaterialized" 74import { TextShadowStyle, TextShadowStyleInternal } from "./../ArkTextShadowStyleMaterialized" 75import { LetterSpacingStyle, LetterSpacingStyleInternal } from "./../ArkLetterSpacingStyleMaterialized" 76import { BaselineOffsetStyle, BaselineOffsetStyleInternal } from "./../ArkBaselineOffsetStyleMaterialized" 77import { DecorationStyle, DecorationStyleInternal } from "./../ArkDecorationStyleMaterialized" 78import { TextStyle_styled_string, TextStyle_styled_stringInternal } from "./../ArkTextStyleStyledStringMaterialized" 79import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" 80import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" 81import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" 82import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" 83import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" 84import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" 85import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" 86import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" 87import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" 88import { ColorMetrics, ColorMetricsInternal } from "./../ArkColorMetricsMaterialized" 89import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" 90import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" 91import { WebviewController, WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" 92import { WebController, WebControllerInternal } from "./../ArkWebControllerMaterialized" 93import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" 94import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" 95import { PlaybackSpeed, SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions } from "./../ArkVideoInterfaces" 96import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerDialogOptions, TimePickerOptions } from "./../ArkTimePickerInterfaces" 97import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" 98import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" 99import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" 100import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" 101import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" 102import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" 103import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" 104import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" 105import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" 106import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" 107import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" 108import { PanDirection, GestureMode, GestureType, GestureInterface, SwipeDirection, TapGestureParameters, GestureInfo, GestureJudgeResult, GestureMask, GestureRecognizerState, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" 109import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" 110import { ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" 111import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" 112import { Scene, Component3DAttribute, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" 113import { GestureGroupInterface, GestureGroupInterfaceInternal } from "./../ArkGestureGroupInterfaceMaterialized" 114import { TapGestureInterface, TapGestureInterfaceInternal } from "./../ArkTapGestureInterfaceMaterialized" 115import { LongPressGestureInterface, LongPressGestureInterfaceInternal } from "./../ArkLongPressGestureInterfaceMaterialized" 116import { PanGestureInterface, PanGestureInterfaceInternal } from "./../ArkPanGestureInterfaceMaterialized" 117import { PinchGestureInterface, PinchGestureInterfaceInternal } from "./../ArkPinchGestureInterfaceMaterialized" 118import { SwipeGestureInterface, SwipeGestureInterfaceInternal } from "./../ArkSwipeGestureInterfaceMaterialized" 119import { RotationGestureInterface, RotationGestureInterfaceInternal } from "./../ArkRotationGestureInterfaceMaterialized" 120import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" 121import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" 122import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" 123import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" 124import { BadgePosition, BadgeStyle, BadgeParamWithString, BadgeParam, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" 125import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" 126import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" 127import { Profiler } from "./../ArkProfilerNamespace" 128import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" 129import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" 130import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" 131import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" 132import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" 133import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" 134import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" 135import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" 136import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" 137import { CircleShape, CircleShapeInternal } from "./../ArkCircleShapeMaterialized" 138import { EllipseShape, EllipseShapeInternal } from "./../ArkEllipseShapeMaterialized" 139import { PathShape, PathShapeInternal } from "./../ArkPathShapeMaterialized" 140import { RectShape, RectShapeInternal } from "./../ArkRectShapeMaterialized" 141import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" 142import { AttributeModifier } from "./../../handwritten" 143import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" 144import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" 145import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" 146import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" 147import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" 148import { ButtonIconOptions, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" 149import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" 150import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" 151import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" 152import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" 153import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" 154import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" 155import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" 156import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" 157import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" 158import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" 159import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" 160import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" 161import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" 162import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" 163import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" 164import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" 165import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" 166import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" 167import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" 168import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" 169import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" 170import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" 171import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" 172import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" 173import { ToggleType, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces" 174import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" 175import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" 176import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" 177import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" 178import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" 179import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" 180import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" 181import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" 182import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" 183import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" 184import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" 185import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" 186import { SymbolEffect, SymbolEffectInternal } from "./../ArkSymbolEffectMaterialized" 187import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" 188import { Indicator } from "./../ArkIndicatorBuilder" 189import { DotIndicator } from "./../ArkDotIndicatorBuilder" 190import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" 191import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" 192import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" 193import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" 194import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" 195import { ScrollBarDirection, ScrollBarOptions } from "./../ArkScrollBarInterfaces" 196import { SaveDescription, SaveIconStyle, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" 197import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" 198import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" 199import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" 200import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" 201import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" 202import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" 203import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" 204import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" 205import { RadioIndicatorType, RadioStyle, RadioOptions } from "./../ArkRadioInterfaces" 206import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" 207import { PasteDescription, PasteIconStyle, PasteButtonOnClickResult, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" 208import { PanelMode, PanelHeight, PanelType } from "./../ArkPanelInterfaces" 209import { NavigationType } from "./../ArkNavigatorInterfaces" 210import { MenuItemOptions } from "./../ArkMenuItemInterfaces" 211import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" 212import { DrawableDescriptor, DrawableDescriptorInternal } from "./../ArkDrawableDescriptorMaterialized" 213import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" 214import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" 215import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" 216import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" 217import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" 218import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" 219import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" 220import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" 221import { GestureControl } from "./../ArkGestureControlNamespace" 222import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" 223import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" 224import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" 225import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" 226import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" 227import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" 228import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" 229import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" 230import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" 231import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" 232import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" 233import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" 234import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" 235import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" 236import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" 237import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" 238import { MonthData, CalendarDay, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle, CalendarRequestedData, CalendarSelectedDate } from "./../ArkCalendarInterfaces" 239import { BaseShape, BaseShapeInternal } from "./../ArkBaseShapeMaterialized" 240import { CommonShape, CommonShapeInternal } from "./../ArkCommonShapeMaterialized" 241import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" 242import { TextTimerOptions } from "./../ArkTextTimerInterfaces" 243import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" 244import { TextClockOptions } from "./../ArkTextClockInterfaces" 245import { PulseSymbolEffect, PulseSymbolEffectInternal } from "./../ArkPulseSymbolEffectMaterialized" 246import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" 247import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" 248import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" 249import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" 250import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" 251import { ItemState } from "./../ArkStepperItemInterfaces" 252import { LayoutDirection, ColorMode } from "./../ArkStateManagementInterfaces" 253import { StackOptions } from "./../ArkStackInterfaces" 254import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" 255import { RowOptions } from "./../ArkRowInterfaces" 256import { RootSceneSession } from "./../ArkRootSceneInterfaces" 257import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" 258import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" 259import { PolylineOptions } from "./../ArkPolylineInterfaces" 260import { Point } from "./../ArkPointInterfaces" 261import { PolygonOptions } from "./../ArkPolygonInterfaces" 262import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" 263import { PathOptions } from "./../ArkPathInterfaces" 264import { DisturbanceFieldShape, ParticleUpdater, DistributionType, ParticleEmitterShape, ParticleType } from "./../ArkParticleInterfaces" 265import { NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" 266import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" 267import { SubMenuExpandingMode } from "./../ArkMenuInterfaces" 268import { MarqueeOptions } from "./../ArkMarqueeInterfaces" 269import { LoadingProgressStyle } from "./../ArkLoadingProgressInterfaces" 270import { ListScroller, ListScrollerInternal } from "./../ArkListScrollerMaterialized" 271import { LineOptions } from "./../ArkLineInterfaces" 272import { DataOperationType } from "./../ArkLazyForEachInterfaces" 273import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" 274import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" 275import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" 276import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" 277import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" 278import { PinchGestureEvent, PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" 279import { PanGestureEvent, PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" 280import { LongPressGestureEvent, LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" 281import { TapGestureEvent, TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" 282import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" 283import { FormLinkOptions } from "./../ArkFormLinkInterfaces" 284import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" 285import { EllipseOptions } from "./../ArkEllipseInterfaces" 286import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" 287import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" 288import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" 289import { View, ViewInternal } from "./../ArkViewMaterialized" 290import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" 291import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" 292import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" 293import { ColumnOptions } from "./../ArkColumnInterfaces" 294import { CircleOptions } from "./../ArkCircleInterfaces" 295import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" 296import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" 297import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" 298import { FrictionMotion, FrictionMotionInternal } from "./../ArkFrictionMotionMaterialized" 299import { SpringMotion, SpringMotionInternal } from "./../ArkSpringMotionMaterialized" 300import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" 301import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" 302import { BusinessError } from "./../ArkBaseInterfaces" 303import { AnimationOptions } from "./../ArkArkuiDrawabledescriptorInterfaces" 304import { AnimatedDrawableDescriptor, AnimatedDrawableDescriptorInternal } from "./../ArkAnimatedDrawableDescriptorMaterialized" 305import { PixelMapDrawableDescriptor, PixelMapDrawableDescriptorInternal } from "./../ArkPixelMapDrawableDescriptorMaterialized" 306import { LayeredDrawableDescriptor, LayeredDrawableDescriptorInternal } from "./../ArkLayeredDrawableDescriptorMaterialized" 307 308export class Deserializer extends DeserializerBase { 309 constructor(data: KSerializerBuffer | KUint8ArrayPtr, length: int32) { 310 super(data, length) 311 } 312 readResource(): Resource { 313 let valueDeserializer : Deserializer = this 314 const bundleName_result : string = (valueDeserializer.readString() as string) 315 const moduleName_result : string = (valueDeserializer.readString() as string) 316 const id_result : number = (valueDeserializer.readNumber() as number) 317 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 318 let params_buf : Array<string> | undefined 319 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 320 { 321 const params_buf__length : int32 = valueDeserializer.readInt32() 322 let params_buf_ : Array<string> = new Array<string>(params_buf__length) 323 for (let params_buf__i = 0; params_buf__i < params_buf__length; params_buf__i++) { 324 params_buf_[params_buf__i] = (valueDeserializer.readString() as string) 325 } 326 params_buf = params_buf_ 327 } 328 const params_result : Array<string> | undefined = params_buf 329 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 330 let type_buf : number | undefined 331 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 332 { 333 type_buf = (valueDeserializer.readNumber() as number) 334 } 335 const type_result : number | undefined = type_buf 336 let value : Resource = ({bundleName: bundleName_result, moduleName: moduleName_result, id: id_result, params: params_result, type: type_result} as Resource) 337 return value 338 } 339 readPixelMap(): PixelMap { 340 let valueDeserializer : Deserializer = this 341 let ptr : KPointer = valueDeserializer.readPointer() 342 return PixelMapInternal.fromPtr(ptr) 343 } 344 readLengthMetrics(): LengthMetrics { 345 let valueDeserializer : Deserializer = this 346 let ptr : KPointer = valueDeserializer.readPointer() 347 return LengthMetricsInternal.fromPtr(ptr) 348 } 349 readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { 350 let valueDeserializer : Deserializer = this 351 const pixelMap_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 352 const size_buf_value0 : Dimension = (valueDeserializer.readLength() as Dimension) 353 const size_buf_value1 : Dimension = (valueDeserializer.readLength() as Dimension) 354 const size_result : [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) 355 let value : LeadingMarginPlaceholder = ({pixelMap: pixelMap_result, size: size_result} as LeadingMarginPlaceholder) 356 return value 357 } 358 readICurve(): ICurve { 359 let valueDeserializer : Deserializer = this 360 let ptr : KPointer = valueDeserializer.readPointer() 361 return ICurveInternal.fromPtr(ptr) 362 } 363 readTextBackgroundStyle(): TextBackgroundStyle { 364 let valueDeserializer : Deserializer = this 365 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 366 let color_buf : ResourceColor | undefined 367 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 368 { 369 const color_buf__selector : int32 = valueDeserializer.readInt8() 370 let color_buf_ : Color | number | string | Resource | undefined 371 if (color_buf__selector == 0) { 372 color_buf_ = (valueDeserializer.readInt32() as Color) 373 } 374 else if (color_buf__selector == 1) { 375 color_buf_ = (valueDeserializer.readNumber() as number) 376 } 377 else if (color_buf__selector == 2) { 378 color_buf_ = (valueDeserializer.readString() as string) 379 } 380 else if (color_buf__selector == 3) { 381 color_buf_ = valueDeserializer.readResource() 382 } 383 else { 384 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 385 } 386 color_buf = (color_buf_ as Color | number | string | Resource) 387 } 388 const color_result : ResourceColor | undefined = color_buf 389 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 390 let radius_buf : Dimension | BorderRadiuses | undefined 391 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 392 { 393 const radius_buf__selector : int32 = valueDeserializer.readInt8() 394 let radius_buf_ : Dimension | BorderRadiuses | undefined 395 if (radius_buf__selector == 0) { 396 radius_buf_ = (valueDeserializer.readLength() as Dimension) 397 } 398 else if (radius_buf__selector == 1) { 399 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 400 let radius_buf__u_topLeft_buf : Length | undefined 401 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 402 { 403 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 404 } 405 const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf 406 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 407 let radius_buf__u_topRight_buf : Length | undefined 408 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 409 { 410 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 411 } 412 const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf 413 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 414 let radius_buf__u_bottomLeft_buf : Length | undefined 415 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 416 { 417 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 418 } 419 const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf 420 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 421 let radius_buf__u_bottomRight_buf : Length | undefined 422 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 423 { 424 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 425 } 426 const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf 427 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) 428 } 429 else { 430 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 431 } 432 radius_buf = (radius_buf_ as Dimension | BorderRadiuses) 433 } 434 const radius_result : Dimension | BorderRadiuses | undefined = radius_buf 435 let value : TextBackgroundStyle = ({color: color_result, radius: radius_result} as TextBackgroundStyle) 436 return value 437 } 438 readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { 439 let valueDeserializer : Deserializer = this 440 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 441 let margin_buf : LengthMetrics | Margin | undefined 442 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 443 { 444 const margin_buf__selector : int32 = valueDeserializer.readInt8() 445 let margin_buf_ : LengthMetrics | Margin | undefined 446 if (margin_buf__selector == 0) { 447 margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 448 } 449 else if (margin_buf__selector == 1) { 450 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 451 let margin_buf__u_top_buf : Length | undefined 452 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 453 { 454 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 455 } 456 const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf 457 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 458 let margin_buf__u_right_buf : Length | undefined 459 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 460 { 461 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 462 } 463 const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf 464 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 465 let margin_buf__u_bottom_buf : Length | undefined 466 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 467 { 468 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 469 } 470 const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf 471 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 472 let margin_buf__u_left_buf : Length | undefined 473 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 474 { 475 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 476 } 477 const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf 478 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 479 } 480 else { 481 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 482 } 483 margin_buf = (margin_buf_ as LengthMetrics | Margin) 484 } 485 const margin_result : LengthMetrics | Margin | undefined = margin_buf 486 const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) 487 let padding_buf : LengthMetrics | Padding | undefined 488 if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) 489 { 490 const padding_buf__selector : int32 = valueDeserializer.readInt8() 491 let padding_buf_ : LengthMetrics | Padding | undefined 492 if (padding_buf__selector == 0) { 493 padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 494 } 495 else if (padding_buf__selector == 1) { 496 const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 497 let padding_buf__u_top_buf : Length | undefined 498 if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) 499 { 500 padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) 501 } 502 const padding_buf__u_top : undefined | Length = padding_buf__u_top_buf 503 const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 504 let padding_buf__u_right_buf : Length | undefined 505 if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) 506 { 507 padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) 508 } 509 const padding_buf__u_right : undefined | Length = padding_buf__u_right_buf 510 const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 511 let padding_buf__u_bottom_buf : Length | undefined 512 if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) 513 { 514 padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 515 } 516 const padding_buf__u_bottom : undefined | Length = padding_buf__u_bottom_buf 517 const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 518 let padding_buf__u_left_buf : Length | undefined 519 if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) 520 { 521 padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) 522 } 523 const padding_buf__u_left : undefined | Length = padding_buf__u_left_buf 524 padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) 525 } 526 else { 527 throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") 528 } 529 padding_buf = (padding_buf_ as LengthMetrics | Padding) 530 } 531 const padding_result : LengthMetrics | Padding | undefined = padding_buf 532 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 533 let borderRadius_buf : LengthMetrics | BorderRadiuses | undefined 534 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 535 { 536 const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() 537 let borderRadius_buf_ : LengthMetrics | BorderRadiuses | undefined 538 if (borderRadius_buf__selector == 0) { 539 borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 540 } 541 else if (borderRadius_buf__selector == 1) { 542 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 543 let borderRadius_buf__u_topLeft_buf : Length | undefined 544 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 545 { 546 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 547 } 548 const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf 549 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 550 let borderRadius_buf__u_topRight_buf : Length | undefined 551 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 552 { 553 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 554 } 555 const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf 556 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 557 let borderRadius_buf__u_bottomLeft_buf : Length | undefined 558 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 559 { 560 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 561 } 562 const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf 563 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 564 let borderRadius_buf__u_bottomRight_buf : Length | undefined 565 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 566 { 567 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 568 } 569 const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf 570 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 571 } 572 else { 573 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 574 } 575 borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) 576 } 577 const borderRadius_result : LengthMetrics | BorderRadiuses | undefined = borderRadius_buf 578 let value : ImageAttachmentLayoutStyle = ({margin: margin_result, padding: padding_result, borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) 579 return value 580 } 581 readSizeOptions(): SizeOptions { 582 let valueDeserializer : Deserializer = this 583 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 584 let width_buf : Length | undefined 585 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 586 { 587 width_buf = (valueDeserializer.readLength() as Length) 588 } 589 const width_result : Length | undefined = width_buf 590 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 591 let height_buf : Length | undefined 592 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 593 { 594 height_buf = (valueDeserializer.readLength() as Length) 595 } 596 const height_result : Length | undefined = height_buf 597 let value : SizeOptions = ({width: width_result, height: height_result} as SizeOptions) 598 return value 599 } 600 readPosition(): Position { 601 let valueDeserializer : Deserializer = this 602 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 603 let x_buf : Length | undefined 604 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 605 { 606 x_buf = (valueDeserializer.readLength() as Length) 607 } 608 const x_result : Length | undefined = x_buf 609 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 610 let y_buf : Length | undefined 611 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 612 { 613 y_buf = (valueDeserializer.readLength() as Length) 614 } 615 const y_result : Length | undefined = y_buf 616 let value : Position = ({x: x_result, y: y_result} as Position) 617 return value 618 } 619 readSymbolGlyphModifier(): SymbolGlyphModifier { 620 let valueDeserializer : Deserializer = this 621 const _SymbolGlyphModifierStub_result : string = (valueDeserializer.readString() as string) 622 let value : SymbolGlyphModifier = ({_SymbolGlyphModifierStub: _SymbolGlyphModifierStub_result} as SymbolGlyphModifier) 623 return value 624 } 625 readShadowOptions(): ShadowOptions { 626 let valueDeserializer : Deserializer = this 627 const radius_buf_selector : int32 = valueDeserializer.readInt8() 628 let radius_buf : number | Resource | undefined 629 if (radius_buf_selector == 0) { 630 radius_buf = (valueDeserializer.readNumber() as number) 631 } 632 else if (radius_buf_selector == 1) { 633 radius_buf = valueDeserializer.readResource() 634 } 635 else { 636 throw new Error("One of the branches for radius_buf has to be chosen through deserialisation.") 637 } 638 const radius_result : number | Resource = (radius_buf as number | Resource) 639 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 640 let type_buf : ShadowType | undefined 641 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 642 { 643 type_buf = (valueDeserializer.readInt32() as ShadowType) 644 } 645 const type_result : ShadowType | undefined = type_buf 646 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 647 let color_buf : Color | string | Resource | ColoringStrategy | undefined 648 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 649 { 650 const color_buf__selector : int32 = valueDeserializer.readInt8() 651 let color_buf_ : Color | string | Resource | ColoringStrategy | undefined 652 if (color_buf__selector == 0) { 653 color_buf_ = (valueDeserializer.readInt32() as Color) 654 } 655 else if (color_buf__selector == 1) { 656 color_buf_ = (valueDeserializer.readString() as string) 657 } 658 else if (color_buf__selector == 2) { 659 color_buf_ = valueDeserializer.readResource() 660 } 661 else if (color_buf__selector == 3) { 662 color_buf_ = TypeChecker.ColoringStrategy_FromOrdinal(valueDeserializer.readInt32()) 663 } 664 else { 665 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 666 } 667 color_buf = (color_buf_ as Color | string | Resource | ColoringStrategy) 668 } 669 const color_result : Color | string | Resource | ColoringStrategy | undefined = color_buf 670 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 671 let offsetX_buf : number | Resource | undefined 672 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 673 { 674 const offsetX_buf__selector : int32 = valueDeserializer.readInt8() 675 let offsetX_buf_ : number | Resource | undefined 676 if (offsetX_buf__selector == 0) { 677 offsetX_buf_ = (valueDeserializer.readNumber() as number) 678 } 679 else if (offsetX_buf__selector == 1) { 680 offsetX_buf_ = valueDeserializer.readResource() 681 } 682 else { 683 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 684 } 685 offsetX_buf = (offsetX_buf_ as number | Resource) 686 } 687 const offsetX_result : number | Resource | undefined = offsetX_buf 688 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 689 let offsetY_buf : number | Resource | undefined 690 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 691 { 692 const offsetY_buf__selector : int32 = valueDeserializer.readInt8() 693 let offsetY_buf_ : number | Resource | undefined 694 if (offsetY_buf__selector == 0) { 695 offsetY_buf_ = (valueDeserializer.readNumber() as number) 696 } 697 else if (offsetY_buf__selector == 1) { 698 offsetY_buf_ = valueDeserializer.readResource() 699 } 700 else { 701 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 702 } 703 offsetY_buf = (offsetY_buf_ as number | Resource) 704 } 705 const offsetY_result : number | Resource | undefined = offsetY_buf 706 const fill_buf_runtimeType = (valueDeserializer.readInt8() as int32) 707 let fill_buf : boolean | undefined 708 if ((RuntimeType.UNDEFINED) != (fill_buf_runtimeType)) 709 { 710 fill_buf = valueDeserializer.readBoolean() 711 } 712 const fill_result : boolean | undefined = fill_buf 713 let value : ShadowOptions = ({radius: radius_result, type: type_result, color: color_result, offsetX: offsetX_result, offsetY: offsetY_result, fill: fill_result} as ShadowOptions) 714 return value 715 } 716 readGridRowSizeOption(): GridRowSizeOption { 717 let valueDeserializer : Deserializer = this 718 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 719 let xs_buf : Length | undefined 720 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 721 { 722 xs_buf = (valueDeserializer.readLength() as Length) 723 } 724 const xs_result : Length | undefined = xs_buf 725 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 726 let sm_buf : Length | undefined 727 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 728 { 729 sm_buf = (valueDeserializer.readLength() as Length) 730 } 731 const sm_result : Length | undefined = sm_buf 732 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 733 let md_buf : Length | undefined 734 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 735 { 736 md_buf = (valueDeserializer.readLength() as Length) 737 } 738 const md_result : Length | undefined = md_buf 739 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 740 let lg_buf : Length | undefined 741 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 742 { 743 lg_buf = (valueDeserializer.readLength() as Length) 744 } 745 const lg_result : Length | undefined = lg_buf 746 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 747 let xl_buf : Length | undefined 748 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 749 { 750 xl_buf = (valueDeserializer.readLength() as Length) 751 } 752 const xl_result : Length | undefined = xl_buf 753 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 754 let xxl_buf : Length | undefined 755 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 756 { 757 xxl_buf = (valueDeserializer.readLength() as Length) 758 } 759 const xxl_result : Length | undefined = xxl_buf 760 let value : GridRowSizeOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridRowSizeOption) 761 return value 762 } 763 readBackgroundColorStyle(): BackgroundColorStyle { 764 let valueDeserializer : Deserializer = this 765 let ptr : KPointer = valueDeserializer.readPointer() 766 return BackgroundColorStyleInternal.fromPtr(ptr) 767 } 768 readUserDataSpan(): UserDataSpan { 769 let value : UserDataSpan = ({} as UserDataSpan) 770 return value 771 } 772 readCustomSpan(): CustomSpan { 773 let valueDeserializer : Deserializer = this 774 let ptr : KPointer = valueDeserializer.readPointer() 775 return CustomSpanInternal.fromPtr(ptr) 776 } 777 readUrlStyle(): UrlStyle { 778 let valueDeserializer : Deserializer = this 779 let ptr : KPointer = valueDeserializer.readPointer() 780 return UrlStyleInternal.fromPtr(ptr) 781 } 782 readLineHeightStyle(): LineHeightStyle { 783 let valueDeserializer : Deserializer = this 784 let ptr : KPointer = valueDeserializer.readPointer() 785 return LineHeightStyleInternal.fromPtr(ptr) 786 } 787 readParagraphStyle(): ParagraphStyle { 788 let valueDeserializer : Deserializer = this 789 let ptr : KPointer = valueDeserializer.readPointer() 790 return ParagraphStyleInternal.fromPtr(ptr) 791 } 792 readImageAttachment(): ImageAttachment { 793 let valueDeserializer : Deserializer = this 794 let ptr : KPointer = valueDeserializer.readPointer() 795 return ImageAttachmentInternal.fromPtr(ptr) 796 } 797 readGestureStyle(): GestureStyle { 798 let valueDeserializer : Deserializer = this 799 let ptr : KPointer = valueDeserializer.readPointer() 800 return GestureStyleInternal.fromPtr(ptr) 801 } 802 readTextShadowStyle(): TextShadowStyle { 803 let valueDeserializer : Deserializer = this 804 let ptr : KPointer = valueDeserializer.readPointer() 805 return TextShadowStyleInternal.fromPtr(ptr) 806 } 807 readLetterSpacingStyle(): LetterSpacingStyle { 808 let valueDeserializer : Deserializer = this 809 let ptr : KPointer = valueDeserializer.readPointer() 810 return LetterSpacingStyleInternal.fromPtr(ptr) 811 } 812 readBaselineOffsetStyle(): BaselineOffsetStyle { 813 let valueDeserializer : Deserializer = this 814 let ptr : KPointer = valueDeserializer.readPointer() 815 return BaselineOffsetStyleInternal.fromPtr(ptr) 816 } 817 readDecorationStyle(): DecorationStyle { 818 let valueDeserializer : Deserializer = this 819 let ptr : KPointer = valueDeserializer.readPointer() 820 return DecorationStyleInternal.fromPtr(ptr) 821 } 822 readTextStyle_styled_string(): TextStyle_styled_string { 823 let valueDeserializer : Deserializer = this 824 let ptr : KPointer = valueDeserializer.readPointer() 825 return TextStyle_styled_stringInternal.fromPtr(ptr) 826 } 827 readArea(): Area { 828 let valueDeserializer : Deserializer = this 829 const width_result : Length = (valueDeserializer.readLength() as Length) 830 const height_result : Length = (valueDeserializer.readLength() as Length) 831 const position_result : Position = valueDeserializer.readPosition() 832 const globalPosition_result : Position = valueDeserializer.readPosition() 833 let value : Area = ({width: width_result, height: height_result, position: position_result, globalPosition: globalPosition_result} as Area) 834 return value 835 } 836 readFont(): Font { 837 let valueDeserializer : Deserializer = this 838 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 839 let size_buf : Length | undefined 840 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 841 { 842 size_buf = (valueDeserializer.readLength() as Length) 843 } 844 const size_result : Length | undefined = size_buf 845 const weight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 846 let weight_buf : FontWeight | number | string | undefined 847 if ((RuntimeType.UNDEFINED) != (weight_buf_runtimeType)) 848 { 849 const weight_buf__selector : int32 = valueDeserializer.readInt8() 850 let weight_buf_ : FontWeight | number | string | undefined 851 if (weight_buf__selector == 0) { 852 weight_buf_ = (valueDeserializer.readInt32() as FontWeight) 853 } 854 else if (weight_buf__selector == 1) { 855 weight_buf_ = (valueDeserializer.readNumber() as number) 856 } 857 else if (weight_buf__selector == 2) { 858 weight_buf_ = (valueDeserializer.readString() as string) 859 } 860 else { 861 throw new Error("One of the branches for weight_buf_ has to be chosen through deserialisation.") 862 } 863 weight_buf = (weight_buf_ as FontWeight | number | string) 864 } 865 const weight_result : FontWeight | number | string | undefined = weight_buf 866 const family_buf_runtimeType = (valueDeserializer.readInt8() as int32) 867 let family_buf : string | Resource | undefined 868 if ((RuntimeType.UNDEFINED) != (family_buf_runtimeType)) 869 { 870 const family_buf__selector : int32 = valueDeserializer.readInt8() 871 let family_buf_ : string | Resource | undefined 872 if (family_buf__selector == 0) { 873 family_buf_ = (valueDeserializer.readString() as string) 874 } 875 else if (family_buf__selector == 1) { 876 family_buf_ = valueDeserializer.readResource() 877 } 878 else { 879 throw new Error("One of the branches for family_buf_ has to be chosen through deserialisation.") 880 } 881 family_buf = (family_buf_ as string | Resource) 882 } 883 const family_result : string | Resource | undefined = family_buf 884 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 885 let style_buf : FontStyle | undefined 886 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 887 { 888 style_buf = (valueDeserializer.readInt32() as FontStyle) 889 } 890 const style_result : FontStyle | undefined = style_buf 891 let value : Font = ({size: size_result, weight: weight_result, family: family_result, style: style_result} as Font) 892 return value 893 } 894 readLocalizedPadding(): LocalizedPadding { 895 let valueDeserializer : Deserializer = this 896 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 897 let top_buf : LengthMetrics | undefined 898 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 899 { 900 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 901 } 902 const top_result : LengthMetrics | undefined = top_buf 903 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 904 let end_buf : LengthMetrics | undefined 905 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 906 { 907 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 908 } 909 const end_result : LengthMetrics | undefined = end_buf 910 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 911 let bottom_buf : LengthMetrics | undefined 912 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 913 { 914 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 915 } 916 const bottom_result : LengthMetrics | undefined = bottom_buf 917 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 918 let start_buf : LengthMetrics | undefined 919 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 920 { 921 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 922 } 923 const start_result : LengthMetrics | undefined = start_buf 924 let value : LocalizedPadding = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedPadding) 925 return value 926 } 927 readTabBarSymbol(): TabBarSymbol { 928 let valueDeserializer : Deserializer = this 929 const normal_result : SymbolGlyphModifier = valueDeserializer.readSymbolGlyphModifier() 930 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 931 let selected_buf : SymbolGlyphModifier | undefined 932 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 933 { 934 selected_buf = valueDeserializer.readSymbolGlyphModifier() 935 } 936 const selected_result : SymbolGlyphModifier | undefined = selected_buf 937 let value : TabBarSymbol = ({normal: normal_result, selected: selected_result} as TabBarSymbol) 938 return value 939 } 940 readComponentContent(): ComponentContent { 941 let valueDeserializer : Deserializer = this 942 const _ComponentContentStub_result : string = (valueDeserializer.readString() as string) 943 let value : ComponentContent = ({_ComponentContentStub: _ComponentContentStub_result} as ComponentContent) 944 return value 945 } 946 readScrollAnimationOptions(): ScrollAnimationOptions { 947 let valueDeserializer : Deserializer = this 948 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 949 let duration_buf : number | undefined 950 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 951 { 952 duration_buf = (valueDeserializer.readNumber() as number) 953 } 954 const duration_result : number | undefined = duration_buf 955 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 956 let curve_buf : Curve | ICurve | undefined 957 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 958 { 959 const curve_buf__selector : int32 = valueDeserializer.readInt8() 960 let curve_buf_ : Curve | ICurve | undefined 961 if (curve_buf__selector == 0) { 962 curve_buf_ = (valueDeserializer.readInt32() as Curve) 963 } 964 else if (curve_buf__selector == 1) { 965 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 966 } 967 else { 968 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 969 } 970 curve_buf = (curve_buf_ as Curve | ICurve) 971 } 972 const curve_result : Curve | ICurve | undefined = curve_buf 973 const canOverScroll_buf_runtimeType = (valueDeserializer.readInt8() as int32) 974 let canOverScroll_buf : boolean | undefined 975 if ((RuntimeType.UNDEFINED) != (canOverScroll_buf_runtimeType)) 976 { 977 canOverScroll_buf = valueDeserializer.readBoolean() 978 } 979 const canOverScroll_result : boolean | undefined = canOverScroll_buf 980 let value : ScrollAnimationOptions = ({duration: duration_result, curve: curve_result, canOverScroll: canOverScroll_result} as ScrollAnimationOptions) 981 return value 982 } 983 readRichEditorLayoutStyle(): RichEditorLayoutStyle { 984 let valueDeserializer : Deserializer = this 985 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 986 let margin_buf : Dimension | Margin | undefined 987 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 988 { 989 const margin_buf__selector : int32 = valueDeserializer.readInt8() 990 let margin_buf_ : Dimension | Margin | undefined 991 if (margin_buf__selector == 0) { 992 margin_buf_ = (valueDeserializer.readLength() as Dimension) 993 } 994 else if (margin_buf__selector == 1) { 995 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 996 let margin_buf__u_top_buf : Length | undefined 997 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 998 { 999 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 1000 } 1001 const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf 1002 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1003 let margin_buf__u_right_buf : Length | undefined 1004 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 1005 { 1006 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 1007 } 1008 const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf 1009 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1010 let margin_buf__u_bottom_buf : Length | undefined 1011 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 1012 { 1013 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 1014 } 1015 const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf 1016 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1017 let margin_buf__u_left_buf : Length | undefined 1018 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 1019 { 1020 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 1021 } 1022 const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf 1023 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 1024 } 1025 else { 1026 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 1027 } 1028 margin_buf = (margin_buf_ as Dimension | Margin) 1029 } 1030 const margin_result : Dimension | Margin | undefined = margin_buf 1031 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1032 let borderRadius_buf : Dimension | BorderRadiuses | undefined 1033 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 1034 { 1035 const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() 1036 let borderRadius_buf_ : Dimension | BorderRadiuses | undefined 1037 if (borderRadius_buf__selector == 0) { 1038 borderRadius_buf_ = (valueDeserializer.readLength() as Dimension) 1039 } 1040 else if (borderRadius_buf__selector == 1) { 1041 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1042 let borderRadius_buf__u_topLeft_buf : Length | undefined 1043 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 1044 { 1045 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 1046 } 1047 const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf 1048 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1049 let borderRadius_buf__u_topRight_buf : Length | undefined 1050 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 1051 { 1052 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 1053 } 1054 const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf 1055 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1056 let borderRadius_buf__u_bottomLeft_buf : Length | undefined 1057 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 1058 { 1059 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 1060 } 1061 const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf 1062 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1063 let borderRadius_buf__u_bottomRight_buf : Length | undefined 1064 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 1065 { 1066 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 1067 } 1068 const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf 1069 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 1070 } 1071 else { 1072 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 1073 } 1074 borderRadius_buf = (borderRadius_buf_ as Dimension | BorderRadiuses) 1075 } 1076 const borderRadius_result : Dimension | BorderRadiuses | undefined = borderRadius_buf 1077 let value : RichEditorLayoutStyle = ({margin: margin_result, borderRadius: borderRadius_result} as RichEditorLayoutStyle) 1078 return value 1079 } 1080 readDecorationStyleResult(): DecorationStyleResult { 1081 let valueDeserializer : Deserializer = this 1082 const type_result : TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 1083 const color_buf_selector : int32 = valueDeserializer.readInt8() 1084 let color_buf : Color | number | string | Resource | undefined 1085 if (color_buf_selector == 0) { 1086 color_buf = (valueDeserializer.readInt32() as Color) 1087 } 1088 else if (color_buf_selector == 1) { 1089 color_buf = (valueDeserializer.readNumber() as number) 1090 } 1091 else if (color_buf_selector == 2) { 1092 color_buf = (valueDeserializer.readString() as string) 1093 } 1094 else if (color_buf_selector == 3) { 1095 color_buf = valueDeserializer.readResource() 1096 } 1097 else { 1098 throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") 1099 } 1100 const color_result : ResourceColor = (color_buf as Color | number | string | Resource) 1101 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1102 let style_buf : TextDecorationStyle | undefined 1103 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1104 { 1105 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 1106 } 1107 const style_result : TextDecorationStyle | undefined = style_buf 1108 let value : DecorationStyleResult = ({type: type_result, color: color_result, style: style_result} as DecorationStyleResult) 1109 return value 1110 } 1111 readDecorationStyleInterface(): DecorationStyleInterface { 1112 let valueDeserializer : Deserializer = this 1113 const type_result : TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 1114 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1115 let color_buf : ResourceColor | undefined 1116 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 1117 { 1118 const color_buf__selector : int32 = valueDeserializer.readInt8() 1119 let color_buf_ : Color | number | string | Resource | undefined 1120 if (color_buf__selector == 0) { 1121 color_buf_ = (valueDeserializer.readInt32() as Color) 1122 } 1123 else if (color_buf__selector == 1) { 1124 color_buf_ = (valueDeserializer.readNumber() as number) 1125 } 1126 else if (color_buf__selector == 2) { 1127 color_buf_ = (valueDeserializer.readString() as string) 1128 } 1129 else if (color_buf__selector == 3) { 1130 color_buf_ = valueDeserializer.readResource() 1131 } 1132 else { 1133 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 1134 } 1135 color_buf = (color_buf_ as Color | number | string | Resource) 1136 } 1137 const color_result : ResourceColor | undefined = color_buf 1138 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1139 let style_buf : TextDecorationStyle | undefined 1140 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1141 { 1142 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 1143 } 1144 const style_result : TextDecorationStyle | undefined = style_buf 1145 let value : DecorationStyleInterface = ({type: type_result, color: color_result, style: style_result} as DecorationStyleInterface) 1146 return value 1147 } 1148 readCallback_GestureEvent_Void(isSync: boolean = false): ((event: GestureEvent) => void) { 1149 const _resource : CallbackResource = this.readCallbackResource() 1150 const _call : KPointer = this.readPointer() 1151 const _callSync : KPointer = this.readPointer() 1152 return (event: GestureEvent):void => { 1153 const _argsSerializer : Serializer = Serializer.hold(); 1154 _argsSerializer.writeInt32(_resource.resourceId); 1155 _argsSerializer.writePointer(_call); 1156 _argsSerializer.writePointer(_callSync); 1157 _argsSerializer.writeGestureEvent(event); 1158 (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asBuffer(), _argsSerializer.length())); 1159 _argsSerializer.release(); 1160 return; } 1161 } 1162 readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { 1163 const _resource : CallbackResource = this.readCallbackResource() 1164 const _call : KPointer = this.readPointer() 1165 const _callSync : KPointer = this.readPointer() 1166 return (event: ClickEvent):void => { 1167 const _argsSerializer : Serializer = Serializer.hold(); 1168 _argsSerializer.writeInt32(_resource.resourceId); 1169 _argsSerializer.writePointer(_call); 1170 _argsSerializer.writePointer(_callSync); 1171 _argsSerializer.writeClickEvent(event); 1172 (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asBuffer(), _argsSerializer.length())); 1173 _argsSerializer.release(); 1174 return; } 1175 } 1176 readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { 1177 const _resource : CallbackResource = this.readCallbackResource() 1178 const _call : KPointer = this.readPointer() 1179 const _callSync : KPointer = this.readPointer() 1180 return (parameter: PopInfo):void => { 1181 const _argsSerializer : Serializer = Serializer.hold(); 1182 _argsSerializer.writeInt32(_resource.resourceId); 1183 _argsSerializer.writePointer(_call); 1184 _argsSerializer.writePointer(_callSync); 1185 _argsSerializer.writePopInfo(parameter); 1186 (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asBuffer(), _argsSerializer.length())); 1187 _argsSerializer.release(); 1188 return; } 1189 } 1190 readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { 1191 const _resource : CallbackResource = this.readCallbackResource() 1192 const _call : KPointer = this.readPointer() 1193 const _callSync : KPointer = this.readPointer() 1194 return (state: SwipeActionState):void => { 1195 const _argsSerializer : Serializer = Serializer.hold(); 1196 _argsSerializer.writeInt32(_resource.resourceId); 1197 _argsSerializer.writePointer(_call); 1198 _argsSerializer.writePointer(_callSync); 1199 _argsSerializer.writeInt32(state.valueOf()); 1200 (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asBuffer(), _argsSerializer.length())); 1201 _argsSerializer.release(); 1202 return; } 1203 } 1204 readCallback_Void(isSync: boolean = false): (() => void) { 1205 const _resource : CallbackResource = this.readCallbackResource() 1206 const _call : KPointer = this.readPointer() 1207 const _callSync : KPointer = this.readPointer() 1208 return ():void => { 1209 const _argsSerializer : Serializer = Serializer.hold(); 1210 _argsSerializer.writeInt32(_resource.resourceId); 1211 _argsSerializer.writePointer(_call); 1212 _argsSerializer.writePointer(_callSync); 1213 (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asBuffer(), _argsSerializer.length())); 1214 _argsSerializer.release(); 1215 return; } 1216 } 1217 readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { 1218 const _resource : CallbackResource = this.readCallbackResource() 1219 const _call : KPointer = this.readPointer() 1220 const _callSync : KPointer = this.readPointer() 1221 return (parentNode: KPointer):KPointer => { 1222 const _argsSerializer : Serializer = Serializer.hold(); 1223 _argsSerializer.writeInt32(_resource.resourceId); 1224 _argsSerializer.writePointer(_call); 1225 _argsSerializer.writePointer(_callSync); 1226 _argsSerializer.writePointer(parentNode); 1227 let _continuationValue : KPointer | undefined; 1228 const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } 1229 _argsSerializer.holdAndWriteCallback(_continuationCallback); 1230 (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asBuffer(), _argsSerializer.length())); 1231 _argsSerializer.release(); 1232 return (_continuationValue as KPointer); } 1233 } 1234 readLocalizedEdgeColors(): LocalizedEdgeColors { 1235 let valueDeserializer : Deserializer = this 1236 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1237 let top_buf : ResourceColor | undefined 1238 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 1239 { 1240 const top_buf__selector : int32 = valueDeserializer.readInt8() 1241 let top_buf_ : Color | number | string | Resource | undefined 1242 if (top_buf__selector == 0) { 1243 top_buf_ = (valueDeserializer.readInt32() as Color) 1244 } 1245 else if (top_buf__selector == 1) { 1246 top_buf_ = (valueDeserializer.readNumber() as number) 1247 } 1248 else if (top_buf__selector == 2) { 1249 top_buf_ = (valueDeserializer.readString() as string) 1250 } 1251 else if (top_buf__selector == 3) { 1252 top_buf_ = valueDeserializer.readResource() 1253 } 1254 else { 1255 throw new Error("One of the branches for top_buf_ has to be chosen through deserialisation.") 1256 } 1257 top_buf = (top_buf_ as Color | number | string | Resource) 1258 } 1259 const top_result : ResourceColor | undefined = top_buf 1260 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1261 let end_buf : ResourceColor | undefined 1262 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 1263 { 1264 const end_buf__selector : int32 = valueDeserializer.readInt8() 1265 let end_buf_ : Color | number | string | Resource | undefined 1266 if (end_buf__selector == 0) { 1267 end_buf_ = (valueDeserializer.readInt32() as Color) 1268 } 1269 else if (end_buf__selector == 1) { 1270 end_buf_ = (valueDeserializer.readNumber() as number) 1271 } 1272 else if (end_buf__selector == 2) { 1273 end_buf_ = (valueDeserializer.readString() as string) 1274 } 1275 else if (end_buf__selector == 3) { 1276 end_buf_ = valueDeserializer.readResource() 1277 } 1278 else { 1279 throw new Error("One of the branches for end_buf_ has to be chosen through deserialisation.") 1280 } 1281 end_buf = (end_buf_ as Color | number | string | Resource) 1282 } 1283 const end_result : ResourceColor | undefined = end_buf 1284 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1285 let bottom_buf : ResourceColor | undefined 1286 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 1287 { 1288 const bottom_buf__selector : int32 = valueDeserializer.readInt8() 1289 let bottom_buf_ : Color | number | string | Resource | undefined 1290 if (bottom_buf__selector == 0) { 1291 bottom_buf_ = (valueDeserializer.readInt32() as Color) 1292 } 1293 else if (bottom_buf__selector == 1) { 1294 bottom_buf_ = (valueDeserializer.readNumber() as number) 1295 } 1296 else if (bottom_buf__selector == 2) { 1297 bottom_buf_ = (valueDeserializer.readString() as string) 1298 } 1299 else if (bottom_buf__selector == 3) { 1300 bottom_buf_ = valueDeserializer.readResource() 1301 } 1302 else { 1303 throw new Error("One of the branches for bottom_buf_ has to be chosen through deserialisation.") 1304 } 1305 bottom_buf = (bottom_buf_ as Color | number | string | Resource) 1306 } 1307 const bottom_result : ResourceColor | undefined = bottom_buf 1308 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1309 let start_buf : ResourceColor | undefined 1310 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 1311 { 1312 const start_buf__selector : int32 = valueDeserializer.readInt8() 1313 let start_buf_ : Color | number | string | Resource | undefined 1314 if (start_buf__selector == 0) { 1315 start_buf_ = (valueDeserializer.readInt32() as Color) 1316 } 1317 else if (start_buf__selector == 1) { 1318 start_buf_ = (valueDeserializer.readNumber() as number) 1319 } 1320 else if (start_buf__selector == 2) { 1321 start_buf_ = (valueDeserializer.readString() as string) 1322 } 1323 else if (start_buf__selector == 3) { 1324 start_buf_ = valueDeserializer.readResource() 1325 } 1326 else { 1327 throw new Error("One of the branches for start_buf_ has to be chosen through deserialisation.") 1328 } 1329 start_buf = (start_buf_ as Color | number | string | Resource) 1330 } 1331 const start_result : ResourceColor | undefined = start_buf 1332 let value : LocalizedEdgeColors = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedEdgeColors) 1333 return value 1334 } 1335 readLocalizedEdgeWidths(): LocalizedEdgeWidths { 1336 let valueDeserializer : Deserializer = this 1337 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1338 let top_buf : LengthMetrics | undefined 1339 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 1340 { 1341 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1342 } 1343 const top_result : LengthMetrics | undefined = top_buf 1344 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1345 let end_buf : LengthMetrics | undefined 1346 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 1347 { 1348 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1349 } 1350 const end_result : LengthMetrics | undefined = end_buf 1351 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1352 let bottom_buf : LengthMetrics | undefined 1353 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 1354 { 1355 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1356 } 1357 const bottom_result : LengthMetrics | undefined = bottom_buf 1358 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1359 let start_buf : LengthMetrics | undefined 1360 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 1361 { 1362 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1363 } 1364 const start_result : LengthMetrics | undefined = start_buf 1365 let value : LocalizedEdgeWidths = ({top: top_result, end: end_result, bottom: bottom_result, start: start_result} as LocalizedEdgeWidths) 1366 return value 1367 } 1368 readSheetTitleOptions(): SheetTitleOptions { 1369 let valueDeserializer : Deserializer = this 1370 const title_buf_selector : int32 = valueDeserializer.readInt8() 1371 let title_buf : string | Resource | undefined 1372 if (title_buf_selector == 0) { 1373 title_buf = (valueDeserializer.readString() as string) 1374 } 1375 else if (title_buf_selector == 1) { 1376 title_buf = valueDeserializer.readResource() 1377 } 1378 else { 1379 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 1380 } 1381 const title_result : ResourceStr = (title_buf as string | Resource) 1382 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1383 let subtitle_buf : ResourceStr | undefined 1384 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 1385 { 1386 const subtitle_buf__selector : int32 = valueDeserializer.readInt8() 1387 let subtitle_buf_ : string | Resource | undefined 1388 if (subtitle_buf__selector == 0) { 1389 subtitle_buf_ = (valueDeserializer.readString() as string) 1390 } 1391 else if (subtitle_buf__selector == 1) { 1392 subtitle_buf_ = valueDeserializer.readResource() 1393 } 1394 else { 1395 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 1396 } 1397 subtitle_buf = (subtitle_buf_ as string | Resource) 1398 } 1399 const subtitle_result : ResourceStr | undefined = subtitle_buf 1400 let value : SheetTitleOptions = ({title: title_result, subtitle: subtitle_result} as SheetTitleOptions) 1401 return value 1402 } 1403 readTransitionEffect(): TransitionEffect { 1404 let valueDeserializer : Deserializer = this 1405 let ptr : KPointer = valueDeserializer.readPointer() 1406 return TransitionEffectInternal.fromPtr(ptr) 1407 } 1408 readLocalizedBorderRadiuses(): LocalizedBorderRadiuses { 1409 let valueDeserializer : Deserializer = this 1410 const topStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1411 let topStart_buf : LengthMetrics | undefined 1412 if ((RuntimeType.UNDEFINED) != (topStart_buf_runtimeType)) 1413 { 1414 topStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1415 } 1416 const topStart_result : LengthMetrics | undefined = topStart_buf 1417 const topEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1418 let topEnd_buf : LengthMetrics | undefined 1419 if ((RuntimeType.UNDEFINED) != (topEnd_buf_runtimeType)) 1420 { 1421 topEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1422 } 1423 const topEnd_result : LengthMetrics | undefined = topEnd_buf 1424 const bottomStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1425 let bottomStart_buf : LengthMetrics | undefined 1426 if ((RuntimeType.UNDEFINED) != (bottomStart_buf_runtimeType)) 1427 { 1428 bottomStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1429 } 1430 const bottomStart_result : LengthMetrics | undefined = bottomStart_buf 1431 const bottomEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1432 let bottomEnd_buf : LengthMetrics | undefined 1433 if ((RuntimeType.UNDEFINED) != (bottomEnd_buf_runtimeType)) 1434 { 1435 bottomEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 1436 } 1437 const bottomEnd_result : LengthMetrics | undefined = bottomEnd_buf 1438 let value : LocalizedBorderRadiuses = ({topStart: topStart_result, topEnd: topEnd_result, bottomStart: bottomStart_result, bottomEnd: bottomEnd_result} as LocalizedBorderRadiuses) 1439 return value 1440 } 1441 readCallback_DismissPopupAction_Void(isSync: boolean = false): ((parameter: DismissPopupAction) => void) { 1442 const _resource : CallbackResource = this.readCallbackResource() 1443 const _call : KPointer = this.readPointer() 1444 const _callSync : KPointer = this.readPointer() 1445 return (parameter: DismissPopupAction):void => { 1446 const _argsSerializer : Serializer = Serializer.hold(); 1447 _argsSerializer.writeInt32(_resource.resourceId); 1448 _argsSerializer.writePointer(_call); 1449 _argsSerializer.writePointer(_callSync); 1450 _argsSerializer.writeDismissPopupAction(parameter); 1451 (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asBuffer(), _argsSerializer.length())); 1452 _argsSerializer.release(); 1453 return; } 1454 } 1455 readCanvasPattern(): CanvasPattern { 1456 let valueDeserializer : Deserializer = this 1457 let ptr : KPointer = valueDeserializer.readPointer() 1458 return CanvasPatternInternal.fromPtr(ptr) 1459 } 1460 readCanvasGradient(): CanvasGradient { 1461 let valueDeserializer : Deserializer = this 1462 let ptr : KPointer = valueDeserializer.readPointer() 1463 return CanvasGradientInternal.fromPtr(ptr) 1464 } 1465 readVoidCallback(isSync: boolean = false): VoidCallback { 1466 const _resource : CallbackResource = this.readCallbackResource() 1467 const _call : KPointer = this.readPointer() 1468 const _callSync : KPointer = this.readPointer() 1469 return ():void => { 1470 const _argsSerializer : Serializer = Serializer.hold(); 1471 _argsSerializer.writeInt32(_resource.resourceId); 1472 _argsSerializer.writePointer(_call); 1473 _argsSerializer.writePointer(_callSync); 1474 (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asBuffer(), _argsSerializer.length())); 1475 _argsSerializer.release(); 1476 return; } 1477 } 1478 readColorMetrics(): ColorMetrics { 1479 let valueDeserializer : Deserializer = this 1480 let ptr : KPointer = valueDeserializer.readPointer() 1481 return ColorMetricsInternal.fromPtr(ptr) 1482 } 1483 readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { 1484 const _resource : CallbackResource = this.readCallbackResource() 1485 const _call : KPointer = this.readPointer() 1486 const _callSync : KPointer = this.readPointer() 1487 return (index: number):number => { 1488 const _argsSerializer : Serializer = Serializer.hold(); 1489 _argsSerializer.writeInt32(_resource.resourceId); 1490 _argsSerializer.writePointer(_call); 1491 _argsSerializer.writePointer(_callSync); 1492 _argsSerializer.writeNumber(index); 1493 let _continuationValue : number | undefined; 1494 const _continuationCallback : ((index: number) => void) = (value: number):void => { _continuationValue = value; } 1495 _argsSerializer.holdAndWriteCallback(_continuationCallback); 1496 (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asBuffer(), _argsSerializer.length())); 1497 _argsSerializer.release(); 1498 return (_continuationValue as number); } 1499 } 1500 readImageAnalyzerController(): ImageAnalyzerController { 1501 let valueDeserializer : Deserializer = this 1502 let ptr : KPointer = valueDeserializer.readPointer() 1503 return ImageAnalyzerControllerInternal.fromPtr(ptr) 1504 } 1505 readWebviewController(): WebviewController { 1506 let valueDeserializer : Deserializer = this 1507 let ptr : KPointer = valueDeserializer.readPointer() 1508 return WebviewControllerInternal.fromPtr(ptr) 1509 } 1510 readWebController(): WebController { 1511 let valueDeserializer : Deserializer = this 1512 let ptr : KPointer = valueDeserializer.readPointer() 1513 return WebControllerInternal.fromPtr(ptr) 1514 } 1515 readEventTarget(): EventTarget { 1516 let valueDeserializer : Deserializer = this 1517 const area_result : Area = valueDeserializer.readArea() 1518 let value : EventTarget = ({area: area_result} as EventTarget) 1519 return value 1520 } 1521 readWebResourceRequest(): WebResourceRequest { 1522 let valueDeserializer : Deserializer = this 1523 let ptr : KPointer = valueDeserializer.readPointer() 1524 return WebResourceRequestInternal.fromPtr(ptr) 1525 } 1526 readCallback_String_Void(isSync: boolean = false): ((breakpoints: string) => void) { 1527 const _resource : CallbackResource = this.readCallbackResource() 1528 const _call : KPointer = this.readPointer() 1529 const _callSync : KPointer = this.readPointer() 1530 return (breakpoints: string):void => { 1531 const _argsSerializer : Serializer = Serializer.hold(); 1532 _argsSerializer.writeInt32(_resource.resourceId); 1533 _argsSerializer.writePointer(_call); 1534 _argsSerializer.writePointer(_callSync); 1535 _argsSerializer.writeString(breakpoints); 1536 (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asBuffer(), _argsSerializer.length())); 1537 _argsSerializer.release(); 1538 return; } 1539 } 1540 readDateTimeOptions(): DateTimeOptions { 1541 let valueDeserializer : Deserializer = this 1542 const _DateTimeOptionsStub_result : string = (valueDeserializer.readString() as string) 1543 let value : DateTimeOptions = ({_DateTimeOptionsStub: _DateTimeOptionsStub_result} as DateTimeOptions) 1544 return value 1545 } 1546 readCallback_TimePickerResult_Void(isSync: boolean = false): ((value: TimePickerResult) => void) { 1547 const _resource : CallbackResource = this.readCallbackResource() 1548 const _call : KPointer = this.readPointer() 1549 const _callSync : KPointer = this.readPointer() 1550 return (value: TimePickerResult):void => { 1551 const _argsSerializer : Serializer = Serializer.hold(); 1552 _argsSerializer.writeInt32(_resource.resourceId); 1553 _argsSerializer.writePointer(_call); 1554 _argsSerializer.writePointer(_callSync); 1555 _argsSerializer.writeTimePickerResult(value); 1556 (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asBuffer(), _argsSerializer.length())); 1557 _argsSerializer.release(); 1558 return; } 1559 } 1560 readRectangle(): Rectangle { 1561 let valueDeserializer : Deserializer = this 1562 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1563 let x_buf : Length | undefined 1564 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 1565 { 1566 x_buf = (valueDeserializer.readLength() as Length) 1567 } 1568 const x_result : Length | undefined = x_buf 1569 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1570 let y_buf : Length | undefined 1571 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 1572 { 1573 y_buf = (valueDeserializer.readLength() as Length) 1574 } 1575 const y_result : Length | undefined = y_buf 1576 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1577 let width_buf : Length | undefined 1578 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 1579 { 1580 width_buf = (valueDeserializer.readLength() as Length) 1581 } 1582 const width_result : Length | undefined = width_buf 1583 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1584 let height_buf : Length | undefined 1585 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 1586 { 1587 height_buf = (valueDeserializer.readLength() as Length) 1588 } 1589 const height_result : Length | undefined = height_buf 1590 let value : Rectangle = ({x: x_result, y: y_result, width: width_result, height: height_result} as Rectangle) 1591 return value 1592 } 1593 readPickerTextStyle(): PickerTextStyle { 1594 let valueDeserializer : Deserializer = this 1595 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1596 let color_buf : ResourceColor | undefined 1597 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 1598 { 1599 const color_buf__selector : int32 = valueDeserializer.readInt8() 1600 let color_buf_ : Color | number | string | Resource | undefined 1601 if (color_buf__selector == 0) { 1602 color_buf_ = (valueDeserializer.readInt32() as Color) 1603 } 1604 else if (color_buf__selector == 1) { 1605 color_buf_ = (valueDeserializer.readNumber() as number) 1606 } 1607 else if (color_buf__selector == 2) { 1608 color_buf_ = (valueDeserializer.readString() as string) 1609 } 1610 else if (color_buf__selector == 3) { 1611 color_buf_ = valueDeserializer.readResource() 1612 } 1613 else { 1614 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 1615 } 1616 color_buf = (color_buf_ as Color | number | string | Resource) 1617 } 1618 const color_result : ResourceColor | undefined = color_buf 1619 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1620 let font_buf : Font | undefined 1621 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 1622 { 1623 font_buf = valueDeserializer.readFont() 1624 } 1625 const font_result : Font | undefined = font_buf 1626 let value : PickerTextStyle = ({color: color_result, font: font_result} as PickerTextStyle) 1627 return value 1628 } 1629 readPickerDialogButtonStyle(): PickerDialogButtonStyle { 1630 let valueDeserializer : Deserializer = this 1631 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1632 let type_buf : ButtonType | undefined 1633 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 1634 { 1635 type_buf = (valueDeserializer.readInt32() as ButtonType) 1636 } 1637 const type_result : ButtonType | undefined = type_buf 1638 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1639 let style_buf : ButtonStyleMode | undefined 1640 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 1641 { 1642 style_buf = (valueDeserializer.readInt32() as ButtonStyleMode) 1643 } 1644 const style_result : ButtonStyleMode | undefined = style_buf 1645 const role_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1646 let role_buf : ButtonRole | undefined 1647 if ((RuntimeType.UNDEFINED) != (role_buf_runtimeType)) 1648 { 1649 role_buf = (valueDeserializer.readInt32() as ButtonRole) 1650 } 1651 const role_result : ButtonRole | undefined = role_buf 1652 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1653 let fontSize_buf : Length | undefined 1654 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 1655 { 1656 fontSize_buf = (valueDeserializer.readLength() as Length) 1657 } 1658 const fontSize_result : Length | undefined = fontSize_buf 1659 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1660 let fontColor_buf : ResourceColor | undefined 1661 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 1662 { 1663 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 1664 let fontColor_buf_ : Color | number | string | Resource | undefined 1665 if (fontColor_buf__selector == 0) { 1666 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 1667 } 1668 else if (fontColor_buf__selector == 1) { 1669 fontColor_buf_ = (valueDeserializer.readNumber() as number) 1670 } 1671 else if (fontColor_buf__selector == 2) { 1672 fontColor_buf_ = (valueDeserializer.readString() as string) 1673 } 1674 else if (fontColor_buf__selector == 3) { 1675 fontColor_buf_ = valueDeserializer.readResource() 1676 } 1677 else { 1678 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 1679 } 1680 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 1681 } 1682 const fontColor_result : ResourceColor | undefined = fontColor_buf 1683 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1684 let fontWeight_buf : FontWeight | number | string | undefined 1685 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 1686 { 1687 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 1688 let fontWeight_buf_ : FontWeight | number | string | undefined 1689 if (fontWeight_buf__selector == 0) { 1690 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 1691 } 1692 else if (fontWeight_buf__selector == 1) { 1693 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 1694 } 1695 else if (fontWeight_buf__selector == 2) { 1696 fontWeight_buf_ = (valueDeserializer.readString() as string) 1697 } 1698 else { 1699 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 1700 } 1701 fontWeight_buf = (fontWeight_buf_ as FontWeight | number | string) 1702 } 1703 const fontWeight_result : FontWeight | number | string | undefined = fontWeight_buf 1704 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1705 let fontStyle_buf : FontStyle | undefined 1706 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 1707 { 1708 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 1709 } 1710 const fontStyle_result : FontStyle | undefined = fontStyle_buf 1711 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1712 let fontFamily_buf : Resource | string | undefined 1713 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 1714 { 1715 const fontFamily_buf__selector : int32 = valueDeserializer.readInt8() 1716 let fontFamily_buf_ : Resource | string | undefined 1717 if (fontFamily_buf__selector == 0) { 1718 fontFamily_buf_ = valueDeserializer.readResource() 1719 } 1720 else if (fontFamily_buf__selector == 1) { 1721 fontFamily_buf_ = (valueDeserializer.readString() as string) 1722 } 1723 else { 1724 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 1725 } 1726 fontFamily_buf = (fontFamily_buf_ as Resource | string) 1727 } 1728 const fontFamily_result : Resource | string | undefined = fontFamily_buf 1729 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1730 let backgroundColor_buf : ResourceColor | undefined 1731 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 1732 { 1733 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 1734 let backgroundColor_buf_ : Color | number | string | Resource | undefined 1735 if (backgroundColor_buf__selector == 0) { 1736 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 1737 } 1738 else if (backgroundColor_buf__selector == 1) { 1739 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 1740 } 1741 else if (backgroundColor_buf__selector == 2) { 1742 backgroundColor_buf_ = (valueDeserializer.readString() as string) 1743 } 1744 else if (backgroundColor_buf__selector == 3) { 1745 backgroundColor_buf_ = valueDeserializer.readResource() 1746 } 1747 else { 1748 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 1749 } 1750 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 1751 } 1752 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 1753 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1754 let borderRadius_buf : Length | BorderRadiuses | undefined 1755 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 1756 { 1757 const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() 1758 let borderRadius_buf_ : Length | BorderRadiuses | undefined 1759 if (borderRadius_buf__selector == 0) { 1760 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 1761 } 1762 else if (borderRadius_buf__selector == 1) { 1763 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1764 let borderRadius_buf__u_topLeft_buf : Length | undefined 1765 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 1766 { 1767 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 1768 } 1769 const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf 1770 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1771 let borderRadius_buf__u_topRight_buf : Length | undefined 1772 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 1773 { 1774 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 1775 } 1776 const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf 1777 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1778 let borderRadius_buf__u_bottomLeft_buf : Length | undefined 1779 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 1780 { 1781 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 1782 } 1783 const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf 1784 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1785 let borderRadius_buf__u_bottomRight_buf : Length | undefined 1786 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 1787 { 1788 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 1789 } 1790 const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf 1791 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 1792 } 1793 else { 1794 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 1795 } 1796 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses) 1797 } 1798 const borderRadius_result : Length | BorderRadiuses | undefined = borderRadius_buf 1799 const primary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1800 let primary_buf : boolean | undefined 1801 if ((RuntimeType.UNDEFINED) != (primary_buf_runtimeType)) 1802 { 1803 primary_buf = valueDeserializer.readBoolean() 1804 } 1805 const primary_result : boolean | undefined = primary_buf 1806 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) 1807 return value 1808 } 1809 readCallback_TextPickerResult_Void(isSync: boolean = false): ((value: TextPickerResult) => void) { 1810 const _resource : CallbackResource = this.readCallbackResource() 1811 const _call : KPointer = this.readPointer() 1812 const _callSync : KPointer = this.readPointer() 1813 return (value: TextPickerResult):void => { 1814 const _argsSerializer : Serializer = Serializer.hold(); 1815 _argsSerializer.writeInt32(_resource.resourceId); 1816 _argsSerializer.writePointer(_call); 1817 _argsSerializer.writePointer(_callSync); 1818 _argsSerializer.writeTextPickerResult(value); 1819 (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asBuffer(), _argsSerializer.length())); 1820 _argsSerializer.release(); 1821 return; } 1822 } 1823 readTextMenuItemId(): TextMenuItemId { 1824 let valueDeserializer : Deserializer = this 1825 let ptr : KPointer = valueDeserializer.readPointer() 1826 return TextMenuItemIdInternal.fromPtr(ptr) 1827 } 1828 readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { 1829 const _resource : CallbackResource = this.readCallbackResource() 1830 const _call : KPointer = this.readPointer() 1831 const _callSync : KPointer = this.readPointer() 1832 return (start: number, end: number):void => { 1833 const _argsSerializer : Serializer = Serializer.hold(); 1834 _argsSerializer.writeInt32(_resource.resourceId); 1835 _argsSerializer.writePointer(_call); 1836 _argsSerializer.writePointer(_callSync); 1837 _argsSerializer.writeNumber(start); 1838 _argsSerializer.writeNumber(end); 1839 (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asBuffer(), _argsSerializer.length())); 1840 _argsSerializer.release(); 1841 return; } 1842 } 1843 readTabBarIconStyle(): TabBarIconStyle { 1844 let valueDeserializer : Deserializer = this 1845 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1846 let selectedColor_buf : ResourceColor | undefined 1847 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 1848 { 1849 const selectedColor_buf__selector : int32 = valueDeserializer.readInt8() 1850 let selectedColor_buf_ : Color | number | string | Resource | undefined 1851 if (selectedColor_buf__selector == 0) { 1852 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 1853 } 1854 else if (selectedColor_buf__selector == 1) { 1855 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 1856 } 1857 else if (selectedColor_buf__selector == 2) { 1858 selectedColor_buf_ = (valueDeserializer.readString() as string) 1859 } 1860 else if (selectedColor_buf__selector == 3) { 1861 selectedColor_buf_ = valueDeserializer.readResource() 1862 } 1863 else { 1864 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 1865 } 1866 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 1867 } 1868 const selectedColor_result : ResourceColor | undefined = selectedColor_buf 1869 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1870 let unselectedColor_buf : ResourceColor | undefined 1871 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 1872 { 1873 const unselectedColor_buf__selector : int32 = valueDeserializer.readInt8() 1874 let unselectedColor_buf_ : Color | number | string | Resource | undefined 1875 if (unselectedColor_buf__selector == 0) { 1876 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 1877 } 1878 else if (unselectedColor_buf__selector == 1) { 1879 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 1880 } 1881 else if (unselectedColor_buf__selector == 2) { 1882 unselectedColor_buf_ = (valueDeserializer.readString() as string) 1883 } 1884 else if (unselectedColor_buf__selector == 3) { 1885 unselectedColor_buf_ = valueDeserializer.readResource() 1886 } 1887 else { 1888 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 1889 } 1890 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 1891 } 1892 const unselectedColor_result : ResourceColor | undefined = unselectedColor_buf 1893 let value : TabBarIconStyle = ({selectedColor: selectedColor_result, unselectedColor: unselectedColor_result} as TabBarIconStyle) 1894 return value 1895 } 1896 readLabelStyle(): LabelStyle { 1897 let valueDeserializer : Deserializer = this 1898 const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1899 let overflow_buf : TextOverflow | undefined 1900 if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) 1901 { 1902 overflow_buf = (valueDeserializer.readInt32() as TextOverflow) 1903 } 1904 const overflow_result : TextOverflow | undefined = overflow_buf 1905 const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1906 let maxLines_buf : number | undefined 1907 if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) 1908 { 1909 maxLines_buf = (valueDeserializer.readNumber() as number) 1910 } 1911 const maxLines_result : number | undefined = maxLines_buf 1912 const minFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1913 let minFontSize_buf : number | ResourceStr | undefined 1914 if ((RuntimeType.UNDEFINED) != (minFontSize_buf_runtimeType)) 1915 { 1916 const minFontSize_buf__selector : int32 = valueDeserializer.readInt8() 1917 let minFontSize_buf_ : number | ResourceStr | undefined 1918 if (minFontSize_buf__selector == 0) { 1919 minFontSize_buf_ = (valueDeserializer.readNumber() as number) 1920 } 1921 else if (minFontSize_buf__selector == 1) { 1922 const minFontSize_buf__u_selector : int32 = valueDeserializer.readInt8() 1923 let minFontSize_buf__u : string | Resource | undefined 1924 if (minFontSize_buf__u_selector == 0) { 1925 minFontSize_buf__u = (valueDeserializer.readString() as string) 1926 } 1927 else if (minFontSize_buf__u_selector == 1) { 1928 minFontSize_buf__u = valueDeserializer.readResource() 1929 } 1930 else { 1931 throw new Error("One of the branches for minFontSize_buf__u has to be chosen through deserialisation.") 1932 } 1933 minFontSize_buf_ = (minFontSize_buf__u as string | Resource) 1934 } 1935 else { 1936 throw new Error("One of the branches for minFontSize_buf_ has to be chosen through deserialisation.") 1937 } 1938 minFontSize_buf = (minFontSize_buf_ as number | ResourceStr) 1939 } 1940 const minFontSize_result : number | ResourceStr | undefined = minFontSize_buf 1941 const maxFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1942 let maxFontSize_buf : number | ResourceStr | undefined 1943 if ((RuntimeType.UNDEFINED) != (maxFontSize_buf_runtimeType)) 1944 { 1945 const maxFontSize_buf__selector : int32 = valueDeserializer.readInt8() 1946 let maxFontSize_buf_ : number | ResourceStr | undefined 1947 if (maxFontSize_buf__selector == 0) { 1948 maxFontSize_buf_ = (valueDeserializer.readNumber() as number) 1949 } 1950 else if (maxFontSize_buf__selector == 1) { 1951 const maxFontSize_buf__u_selector : int32 = valueDeserializer.readInt8() 1952 let maxFontSize_buf__u : string | Resource | undefined 1953 if (maxFontSize_buf__u_selector == 0) { 1954 maxFontSize_buf__u = (valueDeserializer.readString() as string) 1955 } 1956 else if (maxFontSize_buf__u_selector == 1) { 1957 maxFontSize_buf__u = valueDeserializer.readResource() 1958 } 1959 else { 1960 throw new Error("One of the branches for maxFontSize_buf__u has to be chosen through deserialisation.") 1961 } 1962 maxFontSize_buf_ = (maxFontSize_buf__u as string | Resource) 1963 } 1964 else { 1965 throw new Error("One of the branches for maxFontSize_buf_ has to be chosen through deserialisation.") 1966 } 1967 maxFontSize_buf = (maxFontSize_buf_ as number | ResourceStr) 1968 } 1969 const maxFontSize_result : number | ResourceStr | undefined = maxFontSize_buf 1970 const heightAdaptivePolicy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1971 let heightAdaptivePolicy_buf : TextHeightAdaptivePolicy | undefined 1972 if ((RuntimeType.UNDEFINED) != (heightAdaptivePolicy_buf_runtimeType)) 1973 { 1974 heightAdaptivePolicy_buf = (valueDeserializer.readInt32() as TextHeightAdaptivePolicy) 1975 } 1976 const heightAdaptivePolicy_result : TextHeightAdaptivePolicy | undefined = heightAdaptivePolicy_buf 1977 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1978 let font_buf : Font | undefined 1979 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 1980 { 1981 font_buf = valueDeserializer.readFont() 1982 } 1983 const font_result : Font | undefined = font_buf 1984 let value : LabelStyle = ({overflow: overflow_result, maxLines: maxLines_result, minFontSize: minFontSize_result, maxFontSize: maxFontSize_result, heightAdaptivePolicy: heightAdaptivePolicy_result, font: font_result} as LabelStyle) 1985 return value 1986 } 1987 readBoardStyle(): BoardStyle { 1988 let valueDeserializer : Deserializer = this 1989 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 1990 let borderRadius_buf : Length | undefined 1991 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 1992 { 1993 borderRadius_buf = (valueDeserializer.readLength() as Length) 1994 } 1995 const borderRadius_result : Length | undefined = borderRadius_buf 1996 let value : BoardStyle = ({borderRadius: borderRadius_result} as BoardStyle) 1997 return value 1998 } 1999 readIndicatorStyle(): IndicatorStyle { 2000 let valueDeserializer : Deserializer = this 2001 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2002 let left_buf : Length | undefined 2003 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 2004 { 2005 left_buf = (valueDeserializer.readLength() as Length) 2006 } 2007 const left_result : Length | undefined = left_buf 2008 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2009 let top_buf : Length | undefined 2010 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 2011 { 2012 top_buf = (valueDeserializer.readLength() as Length) 2013 } 2014 const top_result : Length | undefined = top_buf 2015 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2016 let right_buf : Length | undefined 2017 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 2018 { 2019 right_buf = (valueDeserializer.readLength() as Length) 2020 } 2021 const right_result : Length | undefined = right_buf 2022 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2023 let bottom_buf : Length | undefined 2024 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 2025 { 2026 bottom_buf = (valueDeserializer.readLength() as Length) 2027 } 2028 const bottom_result : Length | undefined = bottom_buf 2029 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2030 let size_buf : Length | undefined 2031 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2032 { 2033 size_buf = (valueDeserializer.readLength() as Length) 2034 } 2035 const size_result : Length | undefined = size_buf 2036 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2037 let mask_buf : boolean | undefined 2038 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 2039 { 2040 mask_buf = valueDeserializer.readBoolean() 2041 } 2042 const mask_result : boolean | undefined = mask_buf 2043 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2044 let color_buf : ResourceColor | undefined 2045 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 2046 { 2047 const color_buf__selector : int32 = valueDeserializer.readInt8() 2048 let color_buf_ : Color | number | string | Resource | undefined 2049 if (color_buf__selector == 0) { 2050 color_buf_ = (valueDeserializer.readInt32() as Color) 2051 } 2052 else if (color_buf__selector == 1) { 2053 color_buf_ = (valueDeserializer.readNumber() as number) 2054 } 2055 else if (color_buf__selector == 2) { 2056 color_buf_ = (valueDeserializer.readString() as string) 2057 } 2058 else if (color_buf__selector == 3) { 2059 color_buf_ = valueDeserializer.readResource() 2060 } 2061 else { 2062 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 2063 } 2064 color_buf = (color_buf_ as Color | number | string | Resource) 2065 } 2066 const color_result : ResourceColor | undefined = color_buf 2067 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2068 let selectedColor_buf : ResourceColor | undefined 2069 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 2070 { 2071 const selectedColor_buf__selector : int32 = valueDeserializer.readInt8() 2072 let selectedColor_buf_ : Color | number | string | Resource | undefined 2073 if (selectedColor_buf__selector == 0) { 2074 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2075 } 2076 else if (selectedColor_buf__selector == 1) { 2077 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 2078 } 2079 else if (selectedColor_buf__selector == 2) { 2080 selectedColor_buf_ = (valueDeserializer.readString() as string) 2081 } 2082 else if (selectedColor_buf__selector == 3) { 2083 selectedColor_buf_ = valueDeserializer.readResource() 2084 } 2085 else { 2086 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 2087 } 2088 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 2089 } 2090 const selectedColor_result : ResourceColor | undefined = selectedColor_buf 2091 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) 2092 return value 2093 } 2094 readBlurOptions(): BlurOptions { 2095 let valueDeserializer : Deserializer = this 2096 const grayscale_buf_value0 : number = (valueDeserializer.readNumber() as number) 2097 const grayscale_buf_value1 : number = (valueDeserializer.readNumber() as number) 2098 const grayscale_result : [ number, number ] = ([grayscale_buf_value0, grayscale_buf_value1] as [ number, number ]) 2099 let value : BlurOptions = ({grayscale: grayscale_result} as BlurOptions) 2100 return value 2101 } 2102 readCallback_TabContentTransitionProxy_Void(isSync: boolean = false): ((parameter: TabContentTransitionProxy) => void) { 2103 const _resource : CallbackResource = this.readCallbackResource() 2104 const _call : KPointer = this.readPointer() 2105 const _callSync : KPointer = this.readPointer() 2106 return (parameter: TabContentTransitionProxy):void => { 2107 const _argsSerializer : Serializer = Serializer.hold(); 2108 _argsSerializer.writeInt32(_resource.resourceId); 2109 _argsSerializer.writePointer(_call); 2110 _argsSerializer.writePointer(_callSync); 2111 _argsSerializer.writeTabContentTransitionProxy(parameter); 2112 (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asBuffer(), _argsSerializer.length())); 2113 _argsSerializer.release(); 2114 return; } 2115 } 2116 readIconOptions(): IconOptions { 2117 let valueDeserializer : Deserializer = this 2118 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2119 let size_buf : Length | undefined 2120 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2121 { 2122 size_buf = (valueDeserializer.readLength() as Length) 2123 } 2124 const size_result : Length | undefined = size_buf 2125 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2126 let color_buf : ResourceColor | undefined 2127 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 2128 { 2129 const color_buf__selector : int32 = valueDeserializer.readInt8() 2130 let color_buf_ : Color | number | string | Resource | undefined 2131 if (color_buf__selector == 0) { 2132 color_buf_ = (valueDeserializer.readInt32() as Color) 2133 } 2134 else if (color_buf__selector == 1) { 2135 color_buf_ = (valueDeserializer.readNumber() as number) 2136 } 2137 else if (color_buf__selector == 2) { 2138 color_buf_ = (valueDeserializer.readString() as string) 2139 } 2140 else if (color_buf__selector == 3) { 2141 color_buf_ = valueDeserializer.readResource() 2142 } 2143 else { 2144 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 2145 } 2146 color_buf = (color_buf_ as Color | number | string | Resource) 2147 } 2148 const color_result : ResourceColor | undefined = color_buf 2149 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2150 let src_buf : ResourceStr | undefined 2151 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 2152 { 2153 const src_buf__selector : int32 = valueDeserializer.readInt8() 2154 let src_buf_ : string | Resource | undefined 2155 if (src_buf__selector == 0) { 2156 src_buf_ = (valueDeserializer.readString() as string) 2157 } 2158 else if (src_buf__selector == 1) { 2159 src_buf_ = valueDeserializer.readResource() 2160 } 2161 else { 2162 throw new Error("One of the branches for src_buf_ has to be chosen through deserialisation.") 2163 } 2164 src_buf = (src_buf_ as string | Resource) 2165 } 2166 const src_result : ResourceStr | undefined = src_buf 2167 let value : IconOptions = ({size: size_result, color: color_result, src: src_result} as IconOptions) 2168 return value 2169 } 2170 readRichEditorImageSpanStyleResult(): RichEditorImageSpanStyleResult { 2171 let valueDeserializer : Deserializer = this 2172 const size_buf_value0 : number = (valueDeserializer.readNumber() as number) 2173 const size_buf_value1 : number = (valueDeserializer.readNumber() as number) 2174 const size_result : [ number, number ] = ([size_buf_value0, size_buf_value1] as [ number, number ]) 2175 const verticalAlign_result : ImageSpanAlignment = (valueDeserializer.readInt32() as ImageSpanAlignment) 2176 const objectFit_result : ImageFit = (valueDeserializer.readInt32() as ImageFit) 2177 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2178 let layoutStyle_buf : RichEditorLayoutStyle | undefined 2179 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 2180 { 2181 layoutStyle_buf = valueDeserializer.readRichEditorLayoutStyle() 2182 } 2183 const layoutStyle_result : RichEditorLayoutStyle | undefined = layoutStyle_buf 2184 let value : RichEditorImageSpanStyleResult = ({size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as RichEditorImageSpanStyleResult) 2185 return value 2186 } 2187 readRichEditorSpanPosition(): RichEditorSpanPosition { 2188 let valueDeserializer : Deserializer = this 2189 const spanIndex_result : number = (valueDeserializer.readNumber() as number) 2190 const spanRange_buf_value0 : number = (valueDeserializer.readNumber() as number) 2191 const spanRange_buf_value1 : number = (valueDeserializer.readNumber() as number) 2192 const spanRange_result : [ number, number ] = ([spanRange_buf_value0, spanRange_buf_value1] as [ number, number ]) 2193 let value : RichEditorSpanPosition = ({spanIndex: spanIndex_result, spanRange: spanRange_result} as RichEditorSpanPosition) 2194 return value 2195 } 2196 readRichEditorParagraphStyle(): RichEditorParagraphStyle { 2197 let valueDeserializer : Deserializer = this 2198 const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2199 let textAlign_buf : TextAlign | undefined 2200 if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) 2201 { 2202 textAlign_buf = (valueDeserializer.readInt32() as TextAlign) 2203 } 2204 const textAlign_result : TextAlign | undefined = textAlign_buf 2205 const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2206 let leadingMargin_buf : Dimension | LeadingMarginPlaceholder | undefined 2207 if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) 2208 { 2209 const leadingMargin_buf__selector : int32 = valueDeserializer.readInt8() 2210 let leadingMargin_buf_ : Dimension | LeadingMarginPlaceholder | undefined 2211 if (leadingMargin_buf__selector == 0) { 2212 leadingMargin_buf_ = (valueDeserializer.readLength() as Dimension) 2213 } 2214 else if (leadingMargin_buf__selector == 1) { 2215 leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() 2216 } 2217 else { 2218 throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") 2219 } 2220 leadingMargin_buf = (leadingMargin_buf_ as Dimension | LeadingMarginPlaceholder) 2221 } 2222 const leadingMargin_result : Dimension | LeadingMarginPlaceholder | undefined = leadingMargin_buf 2223 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2224 let wordBreak_buf : WordBreak | undefined 2225 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 2226 { 2227 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 2228 } 2229 const wordBreak_result : WordBreak | undefined = wordBreak_buf 2230 const lineBreakStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2231 let lineBreakStrategy_buf : LineBreakStrategy | undefined 2232 if ((RuntimeType.UNDEFINED) != (lineBreakStrategy_buf_runtimeType)) 2233 { 2234 lineBreakStrategy_buf = (valueDeserializer.readInt32() as LineBreakStrategy) 2235 } 2236 const lineBreakStrategy_result : LineBreakStrategy | undefined = lineBreakStrategy_buf 2237 let value : RichEditorParagraphStyle = ({textAlign: textAlign_result, leadingMargin: leadingMargin_result, wordBreak: wordBreak_result, lineBreakStrategy: lineBreakStrategy_result} as RichEditorParagraphStyle) 2238 return value 2239 } 2240 readRichEditorSymbolSpanStyle(): RichEditorSymbolSpanStyle { 2241 let valueDeserializer : Deserializer = this 2242 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2243 let fontSize_buf : number | string | Resource | undefined 2244 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 2245 { 2246 const fontSize_buf__selector : int32 = valueDeserializer.readInt8() 2247 let fontSize_buf_ : number | string | Resource | undefined 2248 if (fontSize_buf__selector == 0) { 2249 fontSize_buf_ = (valueDeserializer.readNumber() as number) 2250 } 2251 else if (fontSize_buf__selector == 1) { 2252 fontSize_buf_ = (valueDeserializer.readString() as string) 2253 } 2254 else if (fontSize_buf__selector == 2) { 2255 fontSize_buf_ = valueDeserializer.readResource() 2256 } 2257 else { 2258 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 2259 } 2260 fontSize_buf = (fontSize_buf_ as number | string | Resource) 2261 } 2262 const fontSize_result : number | string | Resource | undefined = fontSize_buf 2263 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2264 let fontColor_buf : Array<ResourceColor> | undefined 2265 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 2266 { 2267 const fontColor_buf__length : int32 = valueDeserializer.readInt32() 2268 let fontColor_buf_ : Array<ResourceColor> = new Array<ResourceColor>(fontColor_buf__length) 2269 for (let fontColor_buf__i = 0; fontColor_buf__i < fontColor_buf__length; fontColor_buf__i++) { 2270 const fontColor_buf__buf_selector : int32 = valueDeserializer.readInt8() 2271 let fontColor_buf__buf : Color | number | string | Resource | undefined 2272 if (fontColor_buf__buf_selector == 0) { 2273 fontColor_buf__buf = (valueDeserializer.readInt32() as Color) 2274 } 2275 else if (fontColor_buf__buf_selector == 1) { 2276 fontColor_buf__buf = (valueDeserializer.readNumber() as number) 2277 } 2278 else if (fontColor_buf__buf_selector == 2) { 2279 fontColor_buf__buf = (valueDeserializer.readString() as string) 2280 } 2281 else if (fontColor_buf__buf_selector == 3) { 2282 fontColor_buf__buf = valueDeserializer.readResource() 2283 } 2284 else { 2285 throw new Error("One of the branches for fontColor_buf__buf has to be chosen through deserialisation.") 2286 } 2287 fontColor_buf_[fontColor_buf__i] = (fontColor_buf__buf as Color | number | string | Resource) 2288 } 2289 fontColor_buf = fontColor_buf_ 2290 } 2291 const fontColor_result : Array<ResourceColor> | undefined = fontColor_buf 2292 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2293 let fontWeight_buf : number | FontWeight | string | undefined 2294 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 2295 { 2296 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 2297 let fontWeight_buf_ : number | FontWeight | string | undefined 2298 if (fontWeight_buf__selector == 0) { 2299 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 2300 } 2301 else if (fontWeight_buf__selector == 1) { 2302 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 2303 } 2304 else if (fontWeight_buf__selector == 2) { 2305 fontWeight_buf_ = (valueDeserializer.readString() as string) 2306 } 2307 else { 2308 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 2309 } 2310 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 2311 } 2312 const fontWeight_result : number | FontWeight | string | undefined = fontWeight_buf 2313 const effectStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2314 let effectStrategy_buf : SymbolEffectStrategy | undefined 2315 if ((RuntimeType.UNDEFINED) != (effectStrategy_buf_runtimeType)) 2316 { 2317 effectStrategy_buf = (valueDeserializer.readInt32() as SymbolEffectStrategy) 2318 } 2319 const effectStrategy_result : SymbolEffectStrategy | undefined = effectStrategy_buf 2320 const renderingStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2321 let renderingStrategy_buf : SymbolRenderingStrategy | undefined 2322 if ((RuntimeType.UNDEFINED) != (renderingStrategy_buf_runtimeType)) 2323 { 2324 renderingStrategy_buf = (valueDeserializer.readInt32() as SymbolRenderingStrategy) 2325 } 2326 const renderingStrategy_result : SymbolRenderingStrategy | undefined = renderingStrategy_buf 2327 let value : RichEditorSymbolSpanStyle = ({fontSize: fontSize_result, fontColor: fontColor_result, fontWeight: fontWeight_result, effectStrategy: effectStrategy_result, renderingStrategy: renderingStrategy_result} as RichEditorSymbolSpanStyle) 2328 return value 2329 } 2330 readRichEditorTextStyleResult(): RichEditorTextStyleResult { 2331 let valueDeserializer : Deserializer = this 2332 const fontColor_buf_selector : int32 = valueDeserializer.readInt8() 2333 let fontColor_buf : Color | number | string | Resource | undefined 2334 if (fontColor_buf_selector == 0) { 2335 fontColor_buf = (valueDeserializer.readInt32() as Color) 2336 } 2337 else if (fontColor_buf_selector == 1) { 2338 fontColor_buf = (valueDeserializer.readNumber() as number) 2339 } 2340 else if (fontColor_buf_selector == 2) { 2341 fontColor_buf = (valueDeserializer.readString() as string) 2342 } 2343 else if (fontColor_buf_selector == 3) { 2344 fontColor_buf = valueDeserializer.readResource() 2345 } 2346 else { 2347 throw new Error("One of the branches for fontColor_buf has to be chosen through deserialisation.") 2348 } 2349 const fontColor_result : ResourceColor = (fontColor_buf as Color | number | string | Resource) 2350 const fontSize_result : number = (valueDeserializer.readNumber() as number) 2351 const fontStyle_result : FontStyle = (valueDeserializer.readInt32() as FontStyle) 2352 const fontWeight_result : number = (valueDeserializer.readNumber() as number) 2353 const fontFamily_result : string = (valueDeserializer.readString() as string) 2354 const decoration_result : DecorationStyleResult = valueDeserializer.readDecorationStyleResult() 2355 const textShadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2356 let textShadow_buf : Array<ShadowOptions> | undefined 2357 if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) 2358 { 2359 const textShadow_buf__length : int32 = valueDeserializer.readInt32() 2360 let textShadow_buf_ : Array<ShadowOptions> = new Array<ShadowOptions>(textShadow_buf__length) 2361 for (let textShadow_buf__i = 0; textShadow_buf__i < textShadow_buf__length; textShadow_buf__i++) { 2362 textShadow_buf_[textShadow_buf__i] = valueDeserializer.readShadowOptions() 2363 } 2364 textShadow_buf = textShadow_buf_ 2365 } 2366 const textShadow_result : Array<ShadowOptions> | undefined = textShadow_buf 2367 const letterSpacing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2368 let letterSpacing_buf : number | undefined 2369 if ((RuntimeType.UNDEFINED) != (letterSpacing_buf_runtimeType)) 2370 { 2371 letterSpacing_buf = (valueDeserializer.readNumber() as number) 2372 } 2373 const letterSpacing_result : number | undefined = letterSpacing_buf 2374 const lineHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2375 let lineHeight_buf : number | undefined 2376 if ((RuntimeType.UNDEFINED) != (lineHeight_buf_runtimeType)) 2377 { 2378 lineHeight_buf = (valueDeserializer.readNumber() as number) 2379 } 2380 const lineHeight_result : number | undefined = lineHeight_buf 2381 const fontFeature_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2382 let fontFeature_buf : string | undefined 2383 if ((RuntimeType.UNDEFINED) != (fontFeature_buf_runtimeType)) 2384 { 2385 fontFeature_buf = (valueDeserializer.readString() as string) 2386 } 2387 const fontFeature_result : string | undefined = fontFeature_buf 2388 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) 2389 return value 2390 } 2391 readOnDidChangeCallback(isSync: boolean = false): OnDidChangeCallback { 2392 const _resource : CallbackResource = this.readCallbackResource() 2393 const _call : KPointer = this.readPointer() 2394 const _callSync : KPointer = this.readPointer() 2395 return (rangeBefore: TextRange, rangeAfter: TextRange):void => { 2396 const _argsSerializer : Serializer = Serializer.hold(); 2397 _argsSerializer.writeInt32(_resource.resourceId); 2398 _argsSerializer.writePointer(_call); 2399 _argsSerializer.writePointer(_callSync); 2400 _argsSerializer.writeTextRange(rangeBefore); 2401 _argsSerializer.writeTextRange(rangeAfter); 2402 (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asBuffer(), _argsSerializer.length())); 2403 _argsSerializer.release(); 2404 return; } 2405 } 2406 readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { 2407 const _resource : CallbackResource = this.readCallbackResource() 2408 const _call : KPointer = this.readPointer() 2409 const _callSync : KPointer = this.readPointer() 2410 return (parameter: StyledStringChangeValue):boolean => { 2411 const _argsSerializer : Serializer = Serializer.hold(); 2412 _argsSerializer.writeInt32(_resource.resourceId); 2413 _argsSerializer.writePointer(_call); 2414 _argsSerializer.writePointer(_callSync); 2415 _argsSerializer.writeStyledStringChangeValue(parameter); 2416 let _continuationValue : boolean | undefined; 2417 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 2418 _argsSerializer.holdAndWriteCallback(_continuationCallback); 2419 (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asBuffer(), _argsSerializer.length())); 2420 _argsSerializer.release(); 2421 return (_continuationValue as boolean); } 2422 } 2423 readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { 2424 let valueDeserializer : Deserializer = this 2425 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2426 let size_buf : [ Dimension, Dimension ] | undefined 2427 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 2428 { 2429 const size_buf__value0 : Dimension = (valueDeserializer.readLength() as Dimension) 2430 const size_buf__value1 : Dimension = (valueDeserializer.readLength() as Dimension) 2431 size_buf = ([size_buf__value0, size_buf__value1] as [ Dimension, Dimension ]) 2432 } 2433 const size_result : [ Dimension, Dimension ] | undefined = size_buf 2434 const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2435 let verticalAlign_buf : ImageSpanAlignment | undefined 2436 if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) 2437 { 2438 verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) 2439 } 2440 const verticalAlign_result : ImageSpanAlignment | undefined = verticalAlign_buf 2441 const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2442 let objectFit_buf : ImageFit | undefined 2443 if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) 2444 { 2445 objectFit_buf = (valueDeserializer.readInt32() as ImageFit) 2446 } 2447 const objectFit_result : ImageFit | undefined = objectFit_buf 2448 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2449 let layoutStyle_buf : RichEditorLayoutStyle | undefined 2450 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 2451 { 2452 layoutStyle_buf = valueDeserializer.readRichEditorLayoutStyle() 2453 } 2454 const layoutStyle_result : RichEditorLayoutStyle | undefined = layoutStyle_buf 2455 let value : RichEditorImageSpanStyle = ({size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as RichEditorImageSpanStyle) 2456 return value 2457 } 2458 readRichEditorTextStyle(): RichEditorTextStyle { 2459 let valueDeserializer : Deserializer = this 2460 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2461 let fontColor_buf : ResourceColor | undefined 2462 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 2463 { 2464 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 2465 let fontColor_buf_ : Color | number | string | Resource | undefined 2466 if (fontColor_buf__selector == 0) { 2467 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 2468 } 2469 else if (fontColor_buf__selector == 1) { 2470 fontColor_buf_ = (valueDeserializer.readNumber() as number) 2471 } 2472 else if (fontColor_buf__selector == 2) { 2473 fontColor_buf_ = (valueDeserializer.readString() as string) 2474 } 2475 else if (fontColor_buf__selector == 3) { 2476 fontColor_buf_ = valueDeserializer.readResource() 2477 } 2478 else { 2479 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 2480 } 2481 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 2482 } 2483 const fontColor_result : ResourceColor | undefined = fontColor_buf 2484 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2485 let fontSize_buf : Length | number | undefined 2486 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 2487 { 2488 const fontSize_buf__selector : int32 = valueDeserializer.readInt8() 2489 let fontSize_buf_ : Length | number | undefined 2490 if (fontSize_buf__selector == 0) { 2491 fontSize_buf_ = (valueDeserializer.readLength() as Length) 2492 } 2493 else if (fontSize_buf__selector == 1) { 2494 fontSize_buf_ = (valueDeserializer.readNumber() as number) 2495 } 2496 else { 2497 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 2498 } 2499 fontSize_buf = (fontSize_buf_ as Length | number) 2500 } 2501 const fontSize_result : Length | number | undefined = fontSize_buf 2502 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2503 let fontStyle_buf : FontStyle | undefined 2504 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 2505 { 2506 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 2507 } 2508 const fontStyle_result : FontStyle | undefined = fontStyle_buf 2509 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2510 let fontWeight_buf : number | FontWeight | string | undefined 2511 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 2512 { 2513 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 2514 let fontWeight_buf_ : number | FontWeight | string | undefined 2515 if (fontWeight_buf__selector == 0) { 2516 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 2517 } 2518 else if (fontWeight_buf__selector == 1) { 2519 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 2520 } 2521 else if (fontWeight_buf__selector == 2) { 2522 fontWeight_buf_ = (valueDeserializer.readString() as string) 2523 } 2524 else { 2525 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 2526 } 2527 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 2528 } 2529 const fontWeight_result : number | FontWeight | string | undefined = fontWeight_buf 2530 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2531 let fontFamily_buf : ResourceStr | undefined 2532 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 2533 { 2534 const fontFamily_buf__selector : int32 = valueDeserializer.readInt8() 2535 let fontFamily_buf_ : string | Resource | undefined 2536 if (fontFamily_buf__selector == 0) { 2537 fontFamily_buf_ = (valueDeserializer.readString() as string) 2538 } 2539 else if (fontFamily_buf__selector == 1) { 2540 fontFamily_buf_ = valueDeserializer.readResource() 2541 } 2542 else { 2543 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 2544 } 2545 fontFamily_buf = (fontFamily_buf_ as string | Resource) 2546 } 2547 const fontFamily_result : ResourceStr | undefined = fontFamily_buf 2548 const decoration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2549 let decoration_buf : DecorationStyleInterface | undefined 2550 if ((RuntimeType.UNDEFINED) != (decoration_buf_runtimeType)) 2551 { 2552 decoration_buf = valueDeserializer.readDecorationStyleInterface() 2553 } 2554 const decoration_result : DecorationStyleInterface | undefined = decoration_buf 2555 const textShadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2556 let textShadow_buf : ShadowOptions | Array<ShadowOptions> | undefined 2557 if ((RuntimeType.UNDEFINED) != (textShadow_buf_runtimeType)) 2558 { 2559 const textShadow_buf__selector : int32 = valueDeserializer.readInt8() 2560 let textShadow_buf_ : ShadowOptions | Array<ShadowOptions> | undefined 2561 if (textShadow_buf__selector == 0) { 2562 textShadow_buf_ = valueDeserializer.readShadowOptions() 2563 } 2564 else if (textShadow_buf__selector == 1) { 2565 const textShadow_buf__u_length : int32 = valueDeserializer.readInt32() 2566 let textShadow_buf__u : Array<ShadowOptions> = new Array<ShadowOptions>(textShadow_buf__u_length) 2567 for (let textShadow_buf__u_i = 0; textShadow_buf__u_i < textShadow_buf__u_length; textShadow_buf__u_i++) { 2568 textShadow_buf__u[textShadow_buf__u_i] = valueDeserializer.readShadowOptions() 2569 } 2570 textShadow_buf_ = textShadow_buf__u 2571 } 2572 else { 2573 throw new Error("One of the branches for textShadow_buf_ has to be chosen through deserialisation.") 2574 } 2575 textShadow_buf = (textShadow_buf_ as ShadowOptions | Array<ShadowOptions>) 2576 } 2577 const textShadow_result : ShadowOptions | Array<ShadowOptions> | undefined = textShadow_buf 2578 const letterSpacing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2579 let letterSpacing_buf : number | string | undefined 2580 if ((RuntimeType.UNDEFINED) != (letterSpacing_buf_runtimeType)) 2581 { 2582 const letterSpacing_buf__selector : int32 = valueDeserializer.readInt8() 2583 let letterSpacing_buf_ : number | string | undefined 2584 if (letterSpacing_buf__selector == 0) { 2585 letterSpacing_buf_ = (valueDeserializer.readNumber() as number) 2586 } 2587 else if (letterSpacing_buf__selector == 1) { 2588 letterSpacing_buf_ = (valueDeserializer.readString() as string) 2589 } 2590 else { 2591 throw new Error("One of the branches for letterSpacing_buf_ has to be chosen through deserialisation.") 2592 } 2593 letterSpacing_buf = (letterSpacing_buf_ as number | string) 2594 } 2595 const letterSpacing_result : number | string | undefined = letterSpacing_buf 2596 const lineHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2597 let lineHeight_buf : number | string | Resource | undefined 2598 if ((RuntimeType.UNDEFINED) != (lineHeight_buf_runtimeType)) 2599 { 2600 const lineHeight_buf__selector : int32 = valueDeserializer.readInt8() 2601 let lineHeight_buf_ : number | string | Resource | undefined 2602 if (lineHeight_buf__selector == 0) { 2603 lineHeight_buf_ = (valueDeserializer.readNumber() as number) 2604 } 2605 else if (lineHeight_buf__selector == 1) { 2606 lineHeight_buf_ = (valueDeserializer.readString() as string) 2607 } 2608 else if (lineHeight_buf__selector == 2) { 2609 lineHeight_buf_ = valueDeserializer.readResource() 2610 } 2611 else { 2612 throw new Error("One of the branches for lineHeight_buf_ has to be chosen through deserialisation.") 2613 } 2614 lineHeight_buf = (lineHeight_buf_ as number | string | Resource) 2615 } 2616 const lineHeight_result : number | string | Resource | undefined = lineHeight_buf 2617 const fontFeature_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2618 let fontFeature_buf : string | undefined 2619 if ((RuntimeType.UNDEFINED) != (fontFeature_buf_runtimeType)) 2620 { 2621 fontFeature_buf = (valueDeserializer.readString() as string) 2622 } 2623 const fontFeature_result : string | undefined = fontFeature_buf 2624 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) 2625 return value 2626 } 2627 readRichEditorGesture(): RichEditorGesture { 2628 let valueDeserializer : Deserializer = this 2629 const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2630 let onClick_buf : ((event: ClickEvent) => void) | undefined 2631 if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) 2632 { 2633 onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() 2634 } 2635 const onClick_result : ((event: ClickEvent) => void) | undefined = onClick_buf 2636 const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2637 let onLongPress_buf : ((event: GestureEvent) => void) | undefined 2638 if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) 2639 { 2640 onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() 2641 } 2642 const onLongPress_result : ((event: GestureEvent) => void) | undefined = onLongPress_buf 2643 let value : RichEditorGesture = ({onClick: onClick_result, onLongPress: onLongPress_result} as RichEditorGesture) 2644 return value 2645 } 2646 readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { 2647 const _resource : CallbackResource = this.readCallbackResource() 2648 const _call : KPointer = this.readPointer() 2649 const _callSync : KPointer = this.readPointer() 2650 return (transitionProxy: NavigationTransitionProxy):void => { 2651 const _argsSerializer : Serializer = Serializer.hold(); 2652 _argsSerializer.writeInt32(_resource.resourceId); 2653 _argsSerializer.writePointer(_call); 2654 _argsSerializer.writePointer(_callSync); 2655 _argsSerializer.writeNavigationTransitionProxy(transitionProxy); 2656 (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asBuffer(), _argsSerializer.length())); 2657 _argsSerializer.release(); 2658 return; } 2659 } 2660 readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { 2661 const _resource : CallbackResource = this.readCallbackResource() 2662 const _call : KPointer = this.readPointer() 2663 const _callSync : KPointer = this.readPointer() 2664 return (parameter: boolean):void => { 2665 const _argsSerializer : Serializer = Serializer.hold(); 2666 _argsSerializer.writeInt32(_resource.resourceId); 2667 _argsSerializer.writePointer(_call); 2668 _argsSerializer.writePointer(_callSync); 2669 _argsSerializer.writeBoolean(parameter); 2670 (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asBuffer(), _argsSerializer.length())); 2671 _argsSerializer.release(); 2672 return; } 2673 } 2674 readNavPathStack(): NavPathStack { 2675 let valueDeserializer : Deserializer = this 2676 let ptr : KPointer = valueDeserializer.readPointer() 2677 return NavPathStackInternal.fromPtr(ptr) 2678 } 2679 readNavPathInfo(): NavPathInfo { 2680 let valueDeserializer : Deserializer = this 2681 let ptr : KPointer = valueDeserializer.readPointer() 2682 return NavPathInfoInternal.fromPtr(ptr) 2683 } 2684 readInterceptionModeCallback(isSync: boolean = false): InterceptionModeCallback { 2685 const _resource : CallbackResource = this.readCallbackResource() 2686 const _call : KPointer = this.readPointer() 2687 const _callSync : KPointer = this.readPointer() 2688 return (mode: NavigationMode):void => { 2689 const _argsSerializer : Serializer = Serializer.hold(); 2690 _argsSerializer.writeInt32(_resource.resourceId); 2691 _argsSerializer.writePointer(_call); 2692 _argsSerializer.writePointer(_callSync); 2693 _argsSerializer.writeInt32(mode.valueOf()); 2694 (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asBuffer(), _argsSerializer.length())); 2695 _argsSerializer.release(); 2696 return; } 2697 } 2698 readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { 2699 const _resource : CallbackResource = this.readCallbackResource() 2700 const _call : KPointer = this.readPointer() 2701 const _callSync : KPointer = this.readPointer() 2702 return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { 2703 const _argsSerializer : Serializer = Serializer.hold(); 2704 _argsSerializer.writeInt32(_resource.resourceId); 2705 _argsSerializer.writePointer(_call); 2706 _argsSerializer.writePointer(_callSync); 2707 let from_type : int32 = RuntimeType.UNDEFINED; 2708 from_type = runtimeType(from); 2709 if (RuntimeType.OBJECT == from_type) { 2710 _argsSerializer.writeInt8(0 as int32); 2711 const from_0 = from as NavDestinationContext; 2712 _argsSerializer.writeNavDestinationContext(from_0); 2713 } 2714 else if (RuntimeType.STRING == from_type) { 2715 _argsSerializer.writeInt8(1 as int32); 2716 const from_1 = from as NavBar; 2717 _argsSerializer.writeString(from_1); 2718 } 2719 let to_type : int32 = RuntimeType.UNDEFINED; 2720 to_type = runtimeType(to); 2721 if (RuntimeType.OBJECT == to_type) { 2722 _argsSerializer.writeInt8(0 as int32); 2723 const to_0 = to as NavDestinationContext; 2724 _argsSerializer.writeNavDestinationContext(to_0); 2725 } 2726 else if (RuntimeType.STRING == to_type) { 2727 _argsSerializer.writeInt8(1 as int32); 2728 const to_1 = to as NavBar; 2729 _argsSerializer.writeString(to_1); 2730 } 2731 _argsSerializer.writeInt32(operation.valueOf()); 2732 _argsSerializer.writeBoolean(isAnimated); 2733 (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asBuffer(), _argsSerializer.length())); 2734 _argsSerializer.release(); 2735 return; } 2736 } 2737 readTextModifier(): TextModifier { 2738 let value : TextModifier = ({} as TextModifier) 2739 return value 2740 } 2741 readSwipeActionItem(): SwipeActionItem { 2742 let valueDeserializer : Deserializer = this 2743 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2744 let builder_buf : CustomBuilder | undefined 2745 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 2746 { 2747 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 2748 } 2749 const builder_result : CustomBuilder | undefined = builder_buf 2750 const actionAreaDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2751 let actionAreaDistance_buf : Length | undefined 2752 if ((RuntimeType.UNDEFINED) != (actionAreaDistance_buf_runtimeType)) 2753 { 2754 actionAreaDistance_buf = (valueDeserializer.readLength() as Length) 2755 } 2756 const actionAreaDistance_result : Length | undefined = actionAreaDistance_buf 2757 const onAction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2758 let onAction_buf : (() => void) | undefined 2759 if ((RuntimeType.UNDEFINED) != (onAction_buf_runtimeType)) 2760 { 2761 onAction_buf = valueDeserializer.readCallback_Void() 2762 } 2763 const onAction_result : (() => void) | undefined = onAction_buf 2764 const onEnterActionArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2765 let onEnterActionArea_buf : (() => void) | undefined 2766 if ((RuntimeType.UNDEFINED) != (onEnterActionArea_buf_runtimeType)) 2767 { 2768 onEnterActionArea_buf = valueDeserializer.readCallback_Void() 2769 } 2770 const onEnterActionArea_result : (() => void) | undefined = onEnterActionArea_buf 2771 const onExitActionArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2772 let onExitActionArea_buf : (() => void) | undefined 2773 if ((RuntimeType.UNDEFINED) != (onExitActionArea_buf_runtimeType)) 2774 { 2775 onExitActionArea_buf = valueDeserializer.readCallback_Void() 2776 } 2777 const onExitActionArea_result : (() => void) | undefined = onExitActionArea_buf 2778 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2779 let onStateChange_buf : ((state: SwipeActionState) => void) | undefined 2780 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 2781 { 2782 onStateChange_buf = valueDeserializer.readCallback_SwipeActionState_Void() 2783 } 2784 const onStateChange_result : ((state: SwipeActionState) => void) | undefined = onStateChange_buf 2785 let value : SwipeActionItem = ({builder: builder_result, actionAreaDistance: actionAreaDistance_result, onAction: onAction_result, onEnterActionArea: onEnterActionArea_result, onExitActionArea: onExitActionArea_result, onStateChange: onStateChange_result} as SwipeActionItem) 2786 return value 2787 } 2788 readGridRowColumnOption(): GridRowColumnOption { 2789 let valueDeserializer : Deserializer = this 2790 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2791 let xs_buf : number | undefined 2792 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 2793 { 2794 xs_buf = (valueDeserializer.readNumber() as number) 2795 } 2796 const xs_result : number | undefined = xs_buf 2797 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2798 let sm_buf : number | undefined 2799 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 2800 { 2801 sm_buf = (valueDeserializer.readNumber() as number) 2802 } 2803 const sm_result : number | undefined = sm_buf 2804 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2805 let md_buf : number | undefined 2806 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 2807 { 2808 md_buf = (valueDeserializer.readNumber() as number) 2809 } 2810 const md_result : number | undefined = md_buf 2811 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2812 let lg_buf : number | undefined 2813 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 2814 { 2815 lg_buf = (valueDeserializer.readNumber() as number) 2816 } 2817 const lg_result : number | undefined = lg_buf 2818 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2819 let xl_buf : number | undefined 2820 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 2821 { 2822 xl_buf = (valueDeserializer.readNumber() as number) 2823 } 2824 const xl_result : number | undefined = xl_buf 2825 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2826 let xxl_buf : number | undefined 2827 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 2828 { 2829 xxl_buf = (valueDeserializer.readNumber() as number) 2830 } 2831 const xxl_result : number | undefined = xxl_buf 2832 let value : GridRowColumnOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridRowColumnOption) 2833 return value 2834 } 2835 readGutterOption(): GutterOption { 2836 let valueDeserializer : Deserializer = this 2837 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2838 let x_buf : Length | GridRowSizeOption | undefined 2839 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 2840 { 2841 const x_buf__selector : int32 = valueDeserializer.readInt8() 2842 let x_buf_ : Length | GridRowSizeOption | undefined 2843 if (x_buf__selector == 0) { 2844 x_buf_ = (valueDeserializer.readLength() as Length) 2845 } 2846 else if (x_buf__selector == 1) { 2847 x_buf_ = valueDeserializer.readGridRowSizeOption() 2848 } 2849 else { 2850 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 2851 } 2852 x_buf = (x_buf_ as Length | GridRowSizeOption) 2853 } 2854 const x_result : Length | GridRowSizeOption | undefined = x_buf 2855 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2856 let y_buf : Length | GridRowSizeOption | undefined 2857 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 2858 { 2859 const y_buf__selector : int32 = valueDeserializer.readInt8() 2860 let y_buf_ : Length | GridRowSizeOption | undefined 2861 if (y_buf__selector == 0) { 2862 y_buf_ = (valueDeserializer.readLength() as Length) 2863 } 2864 else if (y_buf__selector == 1) { 2865 y_buf_ = valueDeserializer.readGridRowSizeOption() 2866 } 2867 else { 2868 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 2869 } 2870 y_buf = (y_buf_ as Length | GridRowSizeOption) 2871 } 2872 const y_result : Length | GridRowSizeOption | undefined = y_buf 2873 let value : GutterOption = ({x: x_result, y: y_result} as GutterOption) 2874 return value 2875 } 2876 readGridColColumnOption(): GridColColumnOption { 2877 let valueDeserializer : Deserializer = this 2878 const xs_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2879 let xs_buf : number | undefined 2880 if ((RuntimeType.UNDEFINED) != (xs_buf_runtimeType)) 2881 { 2882 xs_buf = (valueDeserializer.readNumber() as number) 2883 } 2884 const xs_result : number | undefined = xs_buf 2885 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2886 let sm_buf : number | undefined 2887 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 2888 { 2889 sm_buf = (valueDeserializer.readNumber() as number) 2890 } 2891 const sm_result : number | undefined = sm_buf 2892 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2893 let md_buf : number | undefined 2894 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 2895 { 2896 md_buf = (valueDeserializer.readNumber() as number) 2897 } 2898 const md_result : number | undefined = md_buf 2899 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2900 let lg_buf : number | undefined 2901 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 2902 { 2903 lg_buf = (valueDeserializer.readNumber() as number) 2904 } 2905 const lg_result : number | undefined = lg_buf 2906 const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2907 let xl_buf : number | undefined 2908 if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) 2909 { 2910 xl_buf = (valueDeserializer.readNumber() as number) 2911 } 2912 const xl_result : number | undefined = xl_buf 2913 const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2914 let xxl_buf : number | undefined 2915 if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) 2916 { 2917 xxl_buf = (valueDeserializer.readNumber() as number) 2918 } 2919 const xxl_result : number | undefined = xxl_buf 2920 let value : GridColColumnOption = ({xs: xs_result, sm: sm_result, md: md_result, lg: lg_result, xl: xl_result, xxl: xxl_result} as GridColColumnOption) 2921 return value 2922 } 2923 readLinearGradient(): LinearGradient { 2924 let valueDeserializer : Deserializer = this 2925 let ptr : KPointer = valueDeserializer.readPointer() 2926 return LinearGradientInternal.fromPtr(ptr) 2927 } 2928 readCallback_Date_Void(isSync: boolean = false): ((parameter: Date) => void) { 2929 const _resource : CallbackResource = this.readCallbackResource() 2930 const _call : KPointer = this.readPointer() 2931 const _callSync : KPointer = this.readPointer() 2932 return (parameter: Date):void => { 2933 const _argsSerializer : Serializer = Serializer.hold(); 2934 _argsSerializer.writeInt32(_resource.resourceId); 2935 _argsSerializer.writePointer(_call); 2936 _argsSerializer.writePointer(_callSync); 2937 _argsSerializer.writeInt64((parameter.getTime() as int64)); 2938 (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asBuffer(), _argsSerializer.length())); 2939 _argsSerializer.release(); 2940 return; } 2941 } 2942 readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { 2943 const _resource : CallbackResource = this.readCallbackResource() 2944 const _call : KPointer = this.readPointer() 2945 const _callSync : KPointer = this.readPointer() 2946 return (value: DatePickerResult):void => { 2947 const _argsSerializer : Serializer = Serializer.hold(); 2948 _argsSerializer.writeInt32(_resource.resourceId); 2949 _argsSerializer.writePointer(_call); 2950 _argsSerializer.writePointer(_callSync); 2951 _argsSerializer.writeDatePickerResult(value); 2952 (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asBuffer(), _argsSerializer.length())); 2953 _argsSerializer.release(); 2954 return; } 2955 } 2956 readLunarSwitchStyle(): LunarSwitchStyle { 2957 let valueDeserializer : Deserializer = this 2958 const selectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2959 let selectedColor_buf : ResourceColor | undefined 2960 if ((RuntimeType.UNDEFINED) != (selectedColor_buf_runtimeType)) 2961 { 2962 const selectedColor_buf__selector : int32 = valueDeserializer.readInt8() 2963 let selectedColor_buf_ : Color | number | string | Resource | undefined 2964 if (selectedColor_buf__selector == 0) { 2965 selectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2966 } 2967 else if (selectedColor_buf__selector == 1) { 2968 selectedColor_buf_ = (valueDeserializer.readNumber() as number) 2969 } 2970 else if (selectedColor_buf__selector == 2) { 2971 selectedColor_buf_ = (valueDeserializer.readString() as string) 2972 } 2973 else if (selectedColor_buf__selector == 3) { 2974 selectedColor_buf_ = valueDeserializer.readResource() 2975 } 2976 else { 2977 throw new Error("One of the branches for selectedColor_buf_ has to be chosen through deserialisation.") 2978 } 2979 selectedColor_buf = (selectedColor_buf_ as Color | number | string | Resource) 2980 } 2981 const selectedColor_result : ResourceColor | undefined = selectedColor_buf 2982 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 2983 let unselectedColor_buf : ResourceColor | undefined 2984 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 2985 { 2986 const unselectedColor_buf__selector : int32 = valueDeserializer.readInt8() 2987 let unselectedColor_buf_ : Color | number | string | Resource | undefined 2988 if (unselectedColor_buf__selector == 0) { 2989 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 2990 } 2991 else if (unselectedColor_buf__selector == 1) { 2992 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 2993 } 2994 else if (unselectedColor_buf__selector == 2) { 2995 unselectedColor_buf_ = (valueDeserializer.readString() as string) 2996 } 2997 else if (unselectedColor_buf__selector == 3) { 2998 unselectedColor_buf_ = valueDeserializer.readResource() 2999 } 3000 else { 3001 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 3002 } 3003 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 3004 } 3005 const unselectedColor_result : ResourceColor | undefined = unselectedColor_buf 3006 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3007 let strokeColor_buf : ResourceColor | undefined 3008 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 3009 { 3010 const strokeColor_buf__selector : int32 = valueDeserializer.readInt8() 3011 let strokeColor_buf_ : Color | number | string | Resource | undefined 3012 if (strokeColor_buf__selector == 0) { 3013 strokeColor_buf_ = (valueDeserializer.readInt32() as Color) 3014 } 3015 else if (strokeColor_buf__selector == 1) { 3016 strokeColor_buf_ = (valueDeserializer.readNumber() as number) 3017 } 3018 else if (strokeColor_buf__selector == 2) { 3019 strokeColor_buf_ = (valueDeserializer.readString() as string) 3020 } 3021 else if (strokeColor_buf__selector == 3) { 3022 strokeColor_buf_ = valueDeserializer.readResource() 3023 } 3024 else { 3025 throw new Error("One of the branches for strokeColor_buf_ has to be chosen through deserialisation.") 3026 } 3027 strokeColor_buf = (strokeColor_buf_ as Color | number | string | Resource) 3028 } 3029 const strokeColor_result : ResourceColor | undefined = strokeColor_buf 3030 let value : LunarSwitchStyle = ({selectedColor: selectedColor_result, unselectedColor: unselectedColor_result, strokeColor: strokeColor_result} as LunarSwitchStyle) 3031 return value 3032 } 3033 readExpectedFrameRateRange(): ExpectedFrameRateRange { 3034 let valueDeserializer : Deserializer = this 3035 const min_result : number = (valueDeserializer.readNumber() as number) 3036 const max_result : number = (valueDeserializer.readNumber() as number) 3037 const expected_result : number = (valueDeserializer.readNumber() as number) 3038 let value : ExpectedFrameRateRange = ({min: min_result, max: max_result, expected: expected_result} as ExpectedFrameRateRange) 3039 return value 3040 } 3041 readScene(): Scene { 3042 let valueDeserializer : Deserializer = this 3043 const _SceneStub_result : string = (valueDeserializer.readString() as string) 3044 let value : Scene = ({_SceneStub: _SceneStub_result} as Scene) 3045 return value 3046 } 3047 readUIContext(): UIContext { 3048 let valueDeserializer : Deserializer = this 3049 const _UIContextStub_result : string = (valueDeserializer.readString() as string) 3050 let value : UIContext = ({_UIContextStub: _UIContextStub_result} as UIContext) 3051 return value 3052 } 3053 readCallback_SheetType_Void(isSync: boolean = false): ((parameter: SheetType) => void) { 3054 const _resource : CallbackResource = this.readCallbackResource() 3055 const _call : KPointer = this.readPointer() 3056 const _callSync : KPointer = this.readPointer() 3057 return (parameter: SheetType):void => { 3058 const _argsSerializer : Serializer = Serializer.hold(); 3059 _argsSerializer.writeInt32(_resource.resourceId); 3060 _argsSerializer.writePointer(_call); 3061 _argsSerializer.writePointer(_callSync); 3062 _argsSerializer.writeInt32(parameter.valueOf()); 3063 (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asBuffer(), _argsSerializer.length())); 3064 _argsSerializer.release(); 3065 return; } 3066 } 3067 readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { 3068 const _resource : CallbackResource = this.readCallbackResource() 3069 const _call : KPointer = this.readPointer() 3070 const _callSync : KPointer = this.readPointer() 3071 return (index: number):void => { 3072 const _argsSerializer : Serializer = Serializer.hold(); 3073 _argsSerializer.writeInt32(_resource.resourceId); 3074 _argsSerializer.writePointer(_call); 3075 _argsSerializer.writePointer(_callSync); 3076 _argsSerializer.writeNumber(index); 3077 (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asBuffer(), _argsSerializer.length())); 3078 _argsSerializer.release(); 3079 return; } 3080 } 3081 readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { 3082 const _resource : CallbackResource = this.readCallbackResource() 3083 const _call : KPointer = this.readPointer() 3084 const _callSync : KPointer = this.readPointer() 3085 return (parameter: SpringBackAction):void => { 3086 const _argsSerializer : Serializer = Serializer.hold(); 3087 _argsSerializer.writeInt32(_resource.resourceId); 3088 _argsSerializer.writePointer(_call); 3089 _argsSerializer.writePointer(_callSync); 3090 _argsSerializer.writeSpringBackAction(parameter); 3091 (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asBuffer(), _argsSerializer.length())); 3092 _argsSerializer.release(); 3093 return; } 3094 } 3095 readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { 3096 const _resource : CallbackResource = this.readCallbackResource() 3097 const _call : KPointer = this.readPointer() 3098 const _callSync : KPointer = this.readPointer() 3099 return (parameter: DismissSheetAction):void => { 3100 const _argsSerializer : Serializer = Serializer.hold(); 3101 _argsSerializer.writeInt32(_resource.resourceId); 3102 _argsSerializer.writePointer(_call); 3103 _argsSerializer.writePointer(_callSync); 3104 _argsSerializer.writeDismissSheetAction(parameter); 3105 (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asBuffer(), _argsSerializer.length())); 3106 _argsSerializer.release(); 3107 return; } 3108 } 3109 readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { 3110 const _resource : CallbackResource = this.readCallbackResource() 3111 const _call : KPointer = this.readPointer() 3112 const _callSync : KPointer = this.readPointer() 3113 return (sheetDismiss: SheetDismiss):void => { 3114 const _argsSerializer : Serializer = Serializer.hold(); 3115 _argsSerializer.writeInt32(_resource.resourceId); 3116 _argsSerializer.writePointer(_call); 3117 _argsSerializer.writePointer(_callSync); 3118 _argsSerializer.writeSheetDismiss(sheetDismiss); 3119 (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asBuffer(), _argsSerializer.length())); 3120 _argsSerializer.release(); 3121 return; } 3122 } 3123 readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { 3124 const _resource : CallbackResource = this.readCallbackResource() 3125 const _call : KPointer = this.readPointer() 3126 const _callSync : KPointer = this.readPointer() 3127 return (parameter: DismissContentCoverAction):void => { 3128 const _argsSerializer : Serializer = Serializer.hold(); 3129 _argsSerializer.writeInt32(_resource.resourceId); 3130 _argsSerializer.writePointer(_call); 3131 _argsSerializer.writePointer(_callSync); 3132 _argsSerializer.writeDismissContentCoverAction(parameter); 3133 (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asBuffer(), _argsSerializer.length())); 3134 _argsSerializer.release(); 3135 return; } 3136 } 3137 readContextMenuAnimationOptions(): ContextMenuAnimationOptions { 3138 let valueDeserializer : Deserializer = this 3139 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3140 let scale_buf : [ number, number ] | undefined 3141 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 3142 { 3143 const scale_buf__value0 : number = (valueDeserializer.readNumber() as number) 3144 const scale_buf__value1 : number = (valueDeserializer.readNumber() as number) 3145 scale_buf = ([scale_buf__value0, scale_buf__value1] as [ number, number ]) 3146 } 3147 const scale_result : [ number, number ] | undefined = scale_buf 3148 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3149 let transition_buf : TransitionEffect | undefined 3150 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 3151 { 3152 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 3153 } 3154 const transition_result : TransitionEffect | undefined = transition_buf 3155 const hoverScale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3156 let hoverScale_buf : [ number, number ] | undefined 3157 if ((RuntimeType.UNDEFINED) != (hoverScale_buf_runtimeType)) 3158 { 3159 const hoverScale_buf__value0 : number = (valueDeserializer.readNumber() as number) 3160 const hoverScale_buf__value1 : number = (valueDeserializer.readNumber() as number) 3161 hoverScale_buf = ([hoverScale_buf__value0, hoverScale_buf__value1] as [ number, number ]) 3162 } 3163 const hoverScale_result : [ number, number ] | undefined = hoverScale_buf 3164 let value : ContextMenuAnimationOptions = ({scale: scale_result, transition: transition_result, hoverScale: hoverScale_result} as ContextMenuAnimationOptions) 3165 return value 3166 } 3167 readCallback_Literal_Boolean_isVisible_Void(isSync: boolean = false): ((event: Literal_Boolean_isVisible) => void) { 3168 const _resource : CallbackResource = this.readCallbackResource() 3169 const _call : KPointer = this.readPointer() 3170 const _callSync : KPointer = this.readPointer() 3171 return (event: Literal_Boolean_isVisible):void => { 3172 const _argsSerializer : Serializer = Serializer.hold(); 3173 _argsSerializer.writeInt32(_resource.resourceId); 3174 _argsSerializer.writePointer(_call); 3175 _argsSerializer.writePointer(_callSync); 3176 const event_isVisible = event.isVisible; 3177 _argsSerializer.writeBoolean(event_isVisible); 3178 (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asBuffer(), _argsSerializer.length())); 3179 _argsSerializer.release(); 3180 return; } 3181 } 3182 readPopupMessageOptions(): PopupMessageOptions { 3183 let valueDeserializer : Deserializer = this 3184 const textColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3185 let textColor_buf : ResourceColor | undefined 3186 if ((RuntimeType.UNDEFINED) != (textColor_buf_runtimeType)) 3187 { 3188 const textColor_buf__selector : int32 = valueDeserializer.readInt8() 3189 let textColor_buf_ : Color | number | string | Resource | undefined 3190 if (textColor_buf__selector == 0) { 3191 textColor_buf_ = (valueDeserializer.readInt32() as Color) 3192 } 3193 else if (textColor_buf__selector == 1) { 3194 textColor_buf_ = (valueDeserializer.readNumber() as number) 3195 } 3196 else if (textColor_buf__selector == 2) { 3197 textColor_buf_ = (valueDeserializer.readString() as string) 3198 } 3199 else if (textColor_buf__selector == 3) { 3200 textColor_buf_ = valueDeserializer.readResource() 3201 } 3202 else { 3203 throw new Error("One of the branches for textColor_buf_ has to be chosen through deserialisation.") 3204 } 3205 textColor_buf = (textColor_buf_ as Color | number | string | Resource) 3206 } 3207 const textColor_result : ResourceColor | undefined = textColor_buf 3208 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3209 let font_buf : Font | undefined 3210 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 3211 { 3212 font_buf = valueDeserializer.readFont() 3213 } 3214 const font_result : Font | undefined = font_buf 3215 let value : PopupMessageOptions = ({textColor: textColor_result, font: font_result} as PopupMessageOptions) 3216 return value 3217 } 3218 readOverlayOffset(): OverlayOffset { 3219 let valueDeserializer : Deserializer = this 3220 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3221 let x_buf : number | undefined 3222 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3223 { 3224 x_buf = (valueDeserializer.readNumber() as number) 3225 } 3226 const x_result : number | undefined = x_buf 3227 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3228 let y_buf : number | undefined 3229 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3230 { 3231 y_buf = (valueDeserializer.readNumber() as number) 3232 } 3233 const y_result : number | undefined = y_buf 3234 let value : OverlayOffset = ({x: x_result, y: y_result} as OverlayOffset) 3235 return value 3236 } 3237 readImageModifier(): ImageModifier { 3238 let valueDeserializer : Deserializer = this 3239 const _ImageModifierStub_result : string = (valueDeserializer.readString() as string) 3240 let value : ImageModifier = ({_ImageModifierStub: _ImageModifierStub_result} as ImageModifier) 3241 return value 3242 } 3243 readMotionPathOptions(): MotionPathOptions { 3244 let valueDeserializer : Deserializer = this 3245 const path_result : string = (valueDeserializer.readString() as string) 3246 const from_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3247 let from_buf : number | undefined 3248 if ((RuntimeType.UNDEFINED) != (from_buf_runtimeType)) 3249 { 3250 from_buf = (valueDeserializer.readNumber() as number) 3251 } 3252 const from_result : number | undefined = from_buf 3253 const to_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3254 let to_buf : number | undefined 3255 if ((RuntimeType.UNDEFINED) != (to_buf_runtimeType)) 3256 { 3257 to_buf = (valueDeserializer.readNumber() as number) 3258 } 3259 const to_result : number | undefined = to_buf 3260 const rotatable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3261 let rotatable_buf : boolean | undefined 3262 if ((RuntimeType.UNDEFINED) != (rotatable_buf_runtimeType)) 3263 { 3264 rotatable_buf = valueDeserializer.readBoolean() 3265 } 3266 const rotatable_result : boolean | undefined = rotatable_buf 3267 let value : MotionPathOptions = ({path: path_result, from: from_result, to: to_result, rotatable: rotatable_result} as MotionPathOptions) 3268 return value 3269 } 3270 readGestureGroupInterface(): GestureGroupInterface { 3271 let valueDeserializer : Deserializer = this 3272 let ptr : KPointer = valueDeserializer.readPointer() 3273 return GestureGroupInterfaceInternal.fromPtr(ptr) 3274 } 3275 readRotationGestureInterface(): RotationGestureInterface { 3276 let valueDeserializer : Deserializer = this 3277 let ptr : KPointer = valueDeserializer.readPointer() 3278 return RotationGestureInterfaceInternal.fromPtr(ptr) 3279 } 3280 readSwipeGestureInterface(): SwipeGestureInterface { 3281 let valueDeserializer : Deserializer = this 3282 let ptr : KPointer = valueDeserializer.readPointer() 3283 return SwipeGestureInterfaceInternal.fromPtr(ptr) 3284 } 3285 readPinchGestureInterface(): PinchGestureInterface { 3286 let valueDeserializer : Deserializer = this 3287 let ptr : KPointer = valueDeserializer.readPointer() 3288 return PinchGestureInterfaceInternal.fromPtr(ptr) 3289 } 3290 readPanGestureInterface(): PanGestureInterface { 3291 let valueDeserializer : Deserializer = this 3292 let ptr : KPointer = valueDeserializer.readPointer() 3293 return PanGestureInterfaceInternal.fromPtr(ptr) 3294 } 3295 readLongPressGestureInterface(): LongPressGestureInterface { 3296 let valueDeserializer : Deserializer = this 3297 let ptr : KPointer = valueDeserializer.readPointer() 3298 return LongPressGestureInterfaceInternal.fromPtr(ptr) 3299 } 3300 readTapGestureInterface(): TapGestureInterface { 3301 let valueDeserializer : Deserializer = this 3302 let ptr : KPointer = valueDeserializer.readPointer() 3303 return TapGestureInterfaceInternal.fromPtr(ptr) 3304 } 3305 readRotateOptions(): RotateOptions { 3306 let valueDeserializer : Deserializer = this 3307 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3308 let x_buf : number | undefined 3309 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3310 { 3311 x_buf = (valueDeserializer.readNumber() as number) 3312 } 3313 const x_result : number | undefined = x_buf 3314 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3315 let y_buf : number | undefined 3316 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3317 { 3318 y_buf = (valueDeserializer.readNumber() as number) 3319 } 3320 const y_result : number | undefined = y_buf 3321 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3322 let z_buf : number | undefined 3323 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3324 { 3325 z_buf = (valueDeserializer.readNumber() as number) 3326 } 3327 const z_result : number | undefined = z_buf 3328 const centerX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3329 let centerX_buf : number | string | undefined 3330 if ((RuntimeType.UNDEFINED) != (centerX_buf_runtimeType)) 3331 { 3332 const centerX_buf__selector : int32 = valueDeserializer.readInt8() 3333 let centerX_buf_ : number | string | undefined 3334 if (centerX_buf__selector == 0) { 3335 centerX_buf_ = (valueDeserializer.readNumber() as number) 3336 } 3337 else if (centerX_buf__selector == 1) { 3338 centerX_buf_ = (valueDeserializer.readString() as string) 3339 } 3340 else { 3341 throw new Error("One of the branches for centerX_buf_ has to be chosen through deserialisation.") 3342 } 3343 centerX_buf = (centerX_buf_ as number | string) 3344 } 3345 const centerX_result : number | string | undefined = centerX_buf 3346 const centerY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3347 let centerY_buf : number | string | undefined 3348 if ((RuntimeType.UNDEFINED) != (centerY_buf_runtimeType)) 3349 { 3350 const centerY_buf__selector : int32 = valueDeserializer.readInt8() 3351 let centerY_buf_ : number | string | undefined 3352 if (centerY_buf__selector == 0) { 3353 centerY_buf_ = (valueDeserializer.readNumber() as number) 3354 } 3355 else if (centerY_buf__selector == 1) { 3356 centerY_buf_ = (valueDeserializer.readString() as string) 3357 } 3358 else { 3359 throw new Error("One of the branches for centerY_buf_ has to be chosen through deserialisation.") 3360 } 3361 centerY_buf = (centerY_buf_ as number | string) 3362 } 3363 const centerY_result : number | string | undefined = centerY_buf 3364 const centerZ_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3365 let centerZ_buf : number | undefined 3366 if ((RuntimeType.UNDEFINED) != (centerZ_buf_runtimeType)) 3367 { 3368 centerZ_buf = (valueDeserializer.readNumber() as number) 3369 } 3370 const centerZ_result : number | undefined = centerZ_buf 3371 const perspective_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3372 let perspective_buf : number | undefined 3373 if ((RuntimeType.UNDEFINED) != (perspective_buf_runtimeType)) 3374 { 3375 perspective_buf = (valueDeserializer.readNumber() as number) 3376 } 3377 const perspective_result : number | undefined = perspective_buf 3378 const angle_buf_selector : int32 = valueDeserializer.readInt8() 3379 let angle_buf : number | string | undefined 3380 if (angle_buf_selector == 0) { 3381 angle_buf = (valueDeserializer.readNumber() as number) 3382 } 3383 else if (angle_buf_selector == 1) { 3384 angle_buf = (valueDeserializer.readString() as string) 3385 } 3386 else { 3387 throw new Error("One of the branches for angle_buf has to be chosen through deserialisation.") 3388 } 3389 const angle_result : number | string = (angle_buf as number | string) 3390 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) 3391 return value 3392 } 3393 readScaleOptions(): ScaleOptions { 3394 let valueDeserializer : Deserializer = this 3395 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3396 let x_buf : number | undefined 3397 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3398 { 3399 x_buf = (valueDeserializer.readNumber() as number) 3400 } 3401 const x_result : number | undefined = x_buf 3402 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3403 let y_buf : number | undefined 3404 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3405 { 3406 y_buf = (valueDeserializer.readNumber() as number) 3407 } 3408 const y_result : number | undefined = y_buf 3409 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3410 let z_buf : number | undefined 3411 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3412 { 3413 z_buf = (valueDeserializer.readNumber() as number) 3414 } 3415 const z_result : number | undefined = z_buf 3416 const centerX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3417 let centerX_buf : number | string | undefined 3418 if ((RuntimeType.UNDEFINED) != (centerX_buf_runtimeType)) 3419 { 3420 const centerX_buf__selector : int32 = valueDeserializer.readInt8() 3421 let centerX_buf_ : number | string | undefined 3422 if (centerX_buf__selector == 0) { 3423 centerX_buf_ = (valueDeserializer.readNumber() as number) 3424 } 3425 else if (centerX_buf__selector == 1) { 3426 centerX_buf_ = (valueDeserializer.readString() as string) 3427 } 3428 else { 3429 throw new Error("One of the branches for centerX_buf_ has to be chosen through deserialisation.") 3430 } 3431 centerX_buf = (centerX_buf_ as number | string) 3432 } 3433 const centerX_result : number | string | undefined = centerX_buf 3434 const centerY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3435 let centerY_buf : number | string | undefined 3436 if ((RuntimeType.UNDEFINED) != (centerY_buf_runtimeType)) 3437 { 3438 const centerY_buf__selector : int32 = valueDeserializer.readInt8() 3439 let centerY_buf_ : number | string | undefined 3440 if (centerY_buf__selector == 0) { 3441 centerY_buf_ = (valueDeserializer.readNumber() as number) 3442 } 3443 else if (centerY_buf__selector == 1) { 3444 centerY_buf_ = (valueDeserializer.readString() as string) 3445 } 3446 else { 3447 throw new Error("One of the branches for centerY_buf_ has to be chosen through deserialisation.") 3448 } 3449 centerY_buf = (centerY_buf_ as number | string) 3450 } 3451 const centerY_result : number | string | undefined = centerY_buf 3452 let value : ScaleOptions = ({x: x_result, y: y_result, z: z_result, centerX: centerX_result, centerY: centerY_result} as ScaleOptions) 3453 return value 3454 } 3455 readTranslateOptions(): TranslateOptions { 3456 let valueDeserializer : Deserializer = this 3457 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3458 let x_buf : number | string | undefined 3459 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 3460 { 3461 const x_buf__selector : int32 = valueDeserializer.readInt8() 3462 let x_buf_ : number | string | undefined 3463 if (x_buf__selector == 0) { 3464 x_buf_ = (valueDeserializer.readNumber() as number) 3465 } 3466 else if (x_buf__selector == 1) { 3467 x_buf_ = (valueDeserializer.readString() as string) 3468 } 3469 else { 3470 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 3471 } 3472 x_buf = (x_buf_ as number | string) 3473 } 3474 const x_result : number | string | undefined = x_buf 3475 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3476 let y_buf : number | string | undefined 3477 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 3478 { 3479 const y_buf__selector : int32 = valueDeserializer.readInt8() 3480 let y_buf_ : number | string | undefined 3481 if (y_buf__selector == 0) { 3482 y_buf_ = (valueDeserializer.readNumber() as number) 3483 } 3484 else if (y_buf__selector == 1) { 3485 y_buf_ = (valueDeserializer.readString() as string) 3486 } 3487 else { 3488 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 3489 } 3490 y_buf = (y_buf_ as number | string) 3491 } 3492 const y_result : number | string | undefined = y_buf 3493 const z_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3494 let z_buf : number | string | undefined 3495 if ((RuntimeType.UNDEFINED) != (z_buf_runtimeType)) 3496 { 3497 const z_buf__selector : int32 = valueDeserializer.readInt8() 3498 let z_buf_ : number | string | undefined 3499 if (z_buf__selector == 0) { 3500 z_buf_ = (valueDeserializer.readNumber() as number) 3501 } 3502 else if (z_buf__selector == 1) { 3503 z_buf_ = (valueDeserializer.readString() as string) 3504 } 3505 else { 3506 throw new Error("One of the branches for z_buf_ has to be chosen through deserialisation.") 3507 } 3508 z_buf = (z_buf_ as number | string) 3509 } 3510 const z_result : number | string | undefined = z_buf 3511 let value : TranslateOptions = ({x: x_result, y: y_result, z: z_result} as TranslateOptions) 3512 return value 3513 } 3514 readLinearGradient_common(): LinearGradient_common { 3515 let valueDeserializer : Deserializer = this 3516 const angle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3517 let angle_buf : number | string | undefined 3518 if ((RuntimeType.UNDEFINED) != (angle_buf_runtimeType)) 3519 { 3520 const angle_buf__selector : int32 = valueDeserializer.readInt8() 3521 let angle_buf_ : number | string | undefined 3522 if (angle_buf__selector == 0) { 3523 angle_buf_ = (valueDeserializer.readNumber() as number) 3524 } 3525 else if (angle_buf__selector == 1) { 3526 angle_buf_ = (valueDeserializer.readString() as string) 3527 } 3528 else { 3529 throw new Error("One of the branches for angle_buf_ has to be chosen through deserialisation.") 3530 } 3531 angle_buf = (angle_buf_ as number | string) 3532 } 3533 const angle_result : number | string | undefined = angle_buf 3534 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3535 let direction_buf : GradientDirection | undefined 3536 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 3537 { 3538 direction_buf = (valueDeserializer.readInt32() as GradientDirection) 3539 } 3540 const direction_result : GradientDirection | undefined = direction_buf 3541 const colors_buf_length : int32 = valueDeserializer.readInt32() 3542 let colors_buf : Array<[ ResourceColor, number ]> = new Array<[ ResourceColor, number ]>(colors_buf_length) 3543 for (let colors_buf_i = 0; colors_buf_i < colors_buf_length; colors_buf_i++) { 3544 const colors_buf_buf_value0_buf_selector : int32 = valueDeserializer.readInt8() 3545 let colors_buf_buf_value0_buf : Color | number | string | Resource | undefined 3546 if (colors_buf_buf_value0_buf_selector == 0) { 3547 colors_buf_buf_value0_buf = (valueDeserializer.readInt32() as Color) 3548 } 3549 else if (colors_buf_buf_value0_buf_selector == 1) { 3550 colors_buf_buf_value0_buf = (valueDeserializer.readNumber() as number) 3551 } 3552 else if (colors_buf_buf_value0_buf_selector == 2) { 3553 colors_buf_buf_value0_buf = (valueDeserializer.readString() as string) 3554 } 3555 else if (colors_buf_buf_value0_buf_selector == 3) { 3556 colors_buf_buf_value0_buf = valueDeserializer.readResource() 3557 } 3558 else { 3559 throw new Error("One of the branches for colors_buf_buf_value0_buf has to be chosen through deserialisation.") 3560 } 3561 const colors_buf_buf_value0 : ResourceColor = (colors_buf_buf_value0_buf as Color | number | string | Resource) 3562 const colors_buf_buf_value1 : number = (valueDeserializer.readNumber() as number) 3563 colors_buf[colors_buf_i] = ([colors_buf_buf_value0, colors_buf_buf_value1] as [ ResourceColor, number ]) 3564 } 3565 const colors_result : Array<[ ResourceColor, number ]> = colors_buf 3566 const repeating_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3567 let repeating_buf : boolean | undefined 3568 if ((RuntimeType.UNDEFINED) != (repeating_buf_runtimeType)) 3569 { 3570 repeating_buf = valueDeserializer.readBoolean() 3571 } 3572 const repeating_result : boolean | undefined = repeating_buf 3573 let value : LinearGradient_common = ({angle: angle_result, direction: direction_result, colors: colors_result, repeating: repeating_result} as LinearGradient_common) 3574 return value 3575 } 3576 readDrawingCanvas(): DrawingCanvas { 3577 let valueDeserializer : Deserializer = this 3578 let ptr : KPointer = valueDeserializer.readPointer() 3579 return DrawingCanvasInternal.fromPtr(ptr) 3580 } 3581 readSize(): Size { 3582 let valueDeserializer : Deserializer = this 3583 const width_result : number = (valueDeserializer.readNumber() as number) 3584 const height_result : number = (valueDeserializer.readNumber() as number) 3585 let value : Size = ({width: width_result, height: height_result} as Size) 3586 return value 3587 } 3588 readFrameNode(): FrameNode { 3589 let valueDeserializer : Deserializer = this 3590 let ptr : KPointer = valueDeserializer.readPointer() 3591 return FrameNodeInternal.fromPtr(ptr) 3592 } 3593 readTextStyle_alert_dialog(): TextStyle_alert_dialog { 3594 let valueDeserializer : Deserializer = this 3595 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3596 let wordBreak_buf : WordBreak | undefined 3597 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 3598 { 3599 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 3600 } 3601 const wordBreak_result : WordBreak | undefined = wordBreak_buf 3602 let value : TextStyle_alert_dialog = ({wordBreak: wordBreak_result} as TextStyle_alert_dialog) 3603 return value 3604 } 3605 readCallback_DismissDialogAction_Void(isSync: boolean = false): ((parameter: DismissDialogAction) => void) { 3606 const _resource : CallbackResource = this.readCallbackResource() 3607 const _call : KPointer = this.readPointer() 3608 const _callSync : KPointer = this.readPointer() 3609 return (parameter: DismissDialogAction):void => { 3610 const _argsSerializer : Serializer = Serializer.hold(); 3611 _argsSerializer.writeInt32(_resource.resourceId); 3612 _argsSerializer.writePointer(_call); 3613 _argsSerializer.writePointer(_callSync); 3614 _argsSerializer.writeDismissDialogAction(parameter); 3615 (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asBuffer(), _argsSerializer.length())); 3616 _argsSerializer.release(); 3617 return; } 3618 } 3619 readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { 3620 let valueDeserializer : Deserializer = this 3621 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3622 let enabled_buf : boolean | undefined 3623 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 3624 { 3625 enabled_buf = valueDeserializer.readBoolean() 3626 } 3627 const enabled_result : boolean | undefined = enabled_buf 3628 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3629 let defaultFocus_buf : boolean | undefined 3630 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 3631 { 3632 defaultFocus_buf = valueDeserializer.readBoolean() 3633 } 3634 const defaultFocus_result : boolean | undefined = defaultFocus_buf 3635 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3636 let style_buf : DialogButtonStyle | undefined 3637 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 3638 { 3639 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 3640 } 3641 const style_result : DialogButtonStyle | undefined = style_buf 3642 const value_buf_selector : int32 = valueDeserializer.readInt8() 3643 let value_buf : string | Resource | undefined 3644 if (value_buf_selector == 0) { 3645 value_buf = (valueDeserializer.readString() as string) 3646 } 3647 else if (value_buf_selector == 1) { 3648 value_buf = valueDeserializer.readResource() 3649 } 3650 else { 3651 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 3652 } 3653 const value_result : ResourceStr = (value_buf as string | Resource) 3654 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3655 let fontColor_buf : ResourceColor | undefined 3656 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 3657 { 3658 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 3659 let fontColor_buf_ : Color | number | string | Resource | undefined 3660 if (fontColor_buf__selector == 0) { 3661 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 3662 } 3663 else if (fontColor_buf__selector == 1) { 3664 fontColor_buf_ = (valueDeserializer.readNumber() as number) 3665 } 3666 else if (fontColor_buf__selector == 2) { 3667 fontColor_buf_ = (valueDeserializer.readString() as string) 3668 } 3669 else if (fontColor_buf__selector == 3) { 3670 fontColor_buf_ = valueDeserializer.readResource() 3671 } 3672 else { 3673 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 3674 } 3675 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 3676 } 3677 const fontColor_result : ResourceColor | undefined = fontColor_buf 3678 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3679 let backgroundColor_buf : ResourceColor | undefined 3680 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 3681 { 3682 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 3683 let backgroundColor_buf_ : Color | number | string | Resource | undefined 3684 if (backgroundColor_buf__selector == 0) { 3685 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 3686 } 3687 else if (backgroundColor_buf__selector == 1) { 3688 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 3689 } 3690 else if (backgroundColor_buf__selector == 2) { 3691 backgroundColor_buf_ = (valueDeserializer.readString() as string) 3692 } 3693 else if (backgroundColor_buf__selector == 3) { 3694 backgroundColor_buf_ = valueDeserializer.readResource() 3695 } 3696 else { 3697 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 3698 } 3699 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 3700 } 3701 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 3702 const action_result : VoidCallback = valueDeserializer.readVoidCallback() 3703 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) 3704 return value 3705 } 3706 readActionSheetOffset(): ActionSheetOffset { 3707 let valueDeserializer : Deserializer = this 3708 const dx_buf_selector : int32 = valueDeserializer.readInt8() 3709 let dx_buf : number | string | Resource | undefined 3710 if (dx_buf_selector == 0) { 3711 dx_buf = (valueDeserializer.readNumber() as number) 3712 } 3713 else if (dx_buf_selector == 1) { 3714 dx_buf = (valueDeserializer.readString() as string) 3715 } 3716 else if (dx_buf_selector == 2) { 3717 dx_buf = valueDeserializer.readResource() 3718 } 3719 else { 3720 throw new Error("One of the branches for dx_buf has to be chosen through deserialisation.") 3721 } 3722 const dx_result : number | string | Resource = (dx_buf as number | string | Resource) 3723 const dy_buf_selector : int32 = valueDeserializer.readInt8() 3724 let dy_buf : number | string | Resource | undefined 3725 if (dy_buf_selector == 0) { 3726 dy_buf = (valueDeserializer.readNumber() as number) 3727 } 3728 else if (dy_buf_selector == 1) { 3729 dy_buf = (valueDeserializer.readString() as string) 3730 } 3731 else if (dy_buf_selector == 2) { 3732 dy_buf = valueDeserializer.readResource() 3733 } 3734 else { 3735 throw new Error("One of the branches for dy_buf has to be chosen through deserialisation.") 3736 } 3737 const dy_result : number | string | Resource = (dy_buf as number | string | Resource) 3738 let value : ActionSheetOffset = ({dx: dx_result, dy: dy_result} as ActionSheetOffset) 3739 return value 3740 } 3741 readActionSheetButtonOptions(): ActionSheetButtonOptions { 3742 let valueDeserializer : Deserializer = this 3743 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3744 let enabled_buf : boolean | undefined 3745 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 3746 { 3747 enabled_buf = valueDeserializer.readBoolean() 3748 } 3749 const enabled_result : boolean | undefined = enabled_buf 3750 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3751 let defaultFocus_buf : boolean | undefined 3752 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 3753 { 3754 defaultFocus_buf = valueDeserializer.readBoolean() 3755 } 3756 const defaultFocus_result : boolean | undefined = defaultFocus_buf 3757 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3758 let style_buf : DialogButtonStyle | undefined 3759 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 3760 { 3761 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 3762 } 3763 const style_result : DialogButtonStyle | undefined = style_buf 3764 const value_buf_selector : int32 = valueDeserializer.readInt8() 3765 let value_buf : string | Resource | undefined 3766 if (value_buf_selector == 0) { 3767 value_buf = (valueDeserializer.readString() as string) 3768 } 3769 else if (value_buf_selector == 1) { 3770 value_buf = valueDeserializer.readResource() 3771 } 3772 else { 3773 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 3774 } 3775 const value_result : string | Resource = (value_buf as string | Resource) 3776 const action_result : VoidCallback = valueDeserializer.readVoidCallback() 3777 let value : ActionSheetButtonOptions = ({enabled: enabled_result, defaultFocus: defaultFocus_result, style: style_result, value: value_result, action: action_result} as ActionSheetButtonOptions) 3778 return value 3779 } 3780 readCallback_Extender_OnFinish(isSync: boolean = false): Callback_Extender_OnFinish { 3781 const _resource : CallbackResource = this.readCallbackResource() 3782 const _call : KPointer = this.readPointer() 3783 const _callSync : KPointer = this.readPointer() 3784 return ():void => { 3785 const _argsSerializer : Serializer = Serializer.hold(); 3786 _argsSerializer.writeInt32(_resource.resourceId); 3787 _argsSerializer.writePointer(_call); 3788 _argsSerializer.writePointer(_callSync); 3789 (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asBuffer(), _argsSerializer.length())); 3790 _argsSerializer.release(); 3791 return; } 3792 } 3793 readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { 3794 const _resource : CallbackResource = this.readCallbackResource() 3795 const _call : KPointer = this.readPointer() 3796 const _callSync : KPointer = this.readPointer() 3797 return (value: float32):void => { 3798 const _argsSerializer : Serializer = Serializer.hold(); 3799 _argsSerializer.writeInt32(_resource.resourceId); 3800 _argsSerializer.writePointer(_call); 3801 _argsSerializer.writePointer(_callSync); 3802 _argsSerializer.writeFloat32(value); 3803 (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asBuffer(), _argsSerializer.length())); 3804 _argsSerializer.release(); 3805 return; } 3806 } 3807 readStyledString(): StyledString { 3808 let valueDeserializer : Deserializer = this 3809 let ptr : KPointer = valueDeserializer.readPointer() 3810 return StyledStringInternal.fromPtr(ptr) 3811 } 3812 readProfiler_Callback_String_Void(isSync: boolean = false): Callback_String_Void { 3813 const _resource : CallbackResource = this.readCallbackResource() 3814 const _call : KPointer = this.readPointer() 3815 const _callSync : KPointer = this.readPointer() 3816 return (info: string):void => { 3817 const _argsSerializer : Serializer = Serializer.hold(); 3818 _argsSerializer.writeInt32(_resource.resourceId); 3819 _argsSerializer.writePointer(_call); 3820 _argsSerializer.writePointer(_callSync); 3821 _argsSerializer.writeString(info); 3822 (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asBuffer(), _argsSerializer.length())); 3823 _argsSerializer.release(); 3824 return; } 3825 } 3826 readOnLinearIndicatorChangeCallback(isSync: boolean = false): OnLinearIndicatorChangeCallback { 3827 const _resource : CallbackResource = this.readCallbackResource() 3828 const _call : KPointer = this.readPointer() 3829 const _callSync : KPointer = this.readPointer() 3830 return (index: number, progress: number):void => { 3831 const _argsSerializer : Serializer = Serializer.hold(); 3832 _argsSerializer.writeInt32(_resource.resourceId); 3833 _argsSerializer.writePointer(_call); 3834 _argsSerializer.writePointer(_callSync); 3835 _argsSerializer.writeNumber(index); 3836 _argsSerializer.writeNumber(progress); 3837 (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asBuffer(), _argsSerializer.length())); 3838 _argsSerializer.release(); 3839 return; } 3840 } 3841 readLinearIndicatorStyle(): LinearIndicatorStyle { 3842 let valueDeserializer : Deserializer = this 3843 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3844 let space_buf : LengthMetrics | undefined 3845 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 3846 { 3847 space_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3848 } 3849 const space_result : LengthMetrics | undefined = space_buf 3850 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3851 let strokeWidth_buf : LengthMetrics | undefined 3852 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 3853 { 3854 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3855 } 3856 const strokeWidth_result : LengthMetrics | undefined = strokeWidth_buf 3857 const strokeRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3858 let strokeRadius_buf : LengthMetrics | undefined 3859 if ((RuntimeType.UNDEFINED) != (strokeRadius_buf_runtimeType)) 3860 { 3861 strokeRadius_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 3862 } 3863 const strokeRadius_result : LengthMetrics | undefined = strokeRadius_buf 3864 const trackBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3865 let trackBackgroundColor_buf : ColorMetrics | undefined 3866 if ((RuntimeType.UNDEFINED) != (trackBackgroundColor_buf_runtimeType)) 3867 { 3868 trackBackgroundColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 3869 } 3870 const trackBackgroundColor_result : ColorMetrics | undefined = trackBackgroundColor_buf 3871 const trackColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3872 let trackColor_buf : ColorMetrics | undefined 3873 if ((RuntimeType.UNDEFINED) != (trackColor_buf_runtimeType)) 3874 { 3875 trackColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 3876 } 3877 const trackColor_result : ColorMetrics | undefined = trackColor_buf 3878 let value : LinearIndicatorStyle = ({space: space_result, strokeWidth: strokeWidth_result, strokeRadius: strokeRadius_result, trackBackgroundColor: trackBackgroundColor_result, trackColor: trackColor_result} as LinearIndicatorStyle) 3879 return value 3880 } 3881 readLinearIndicatorStartOptions(): LinearIndicatorStartOptions { 3882 let valueDeserializer : Deserializer = this 3883 const interval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3884 let interval_buf : number | undefined 3885 if ((RuntimeType.UNDEFINED) != (interval_buf_runtimeType)) 3886 { 3887 interval_buf = (valueDeserializer.readNumber() as number) 3888 } 3889 const interval_result : number | undefined = interval_buf 3890 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3891 let duration_buf : number | undefined 3892 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 3893 { 3894 duration_buf = (valueDeserializer.readNumber() as number) 3895 } 3896 const duration_result : number | undefined = duration_buf 3897 let value : LinearIndicatorStartOptions = ({interval: interval_result, duration: duration_result} as LinearIndicatorStartOptions) 3898 return value 3899 } 3900 readCustomSpanDrawInfo(): CustomSpanDrawInfo { 3901 let valueDeserializer : Deserializer = this 3902 const x_result : number = (valueDeserializer.readNumber() as number) 3903 const lineTop_result : number = (valueDeserializer.readNumber() as number) 3904 const lineBottom_result : number = (valueDeserializer.readNumber() as number) 3905 const baseline_result : number = (valueDeserializer.readNumber() as number) 3906 let value : CustomSpanDrawInfo = ({x: x_result, lineTop: lineTop_result, lineBottom: lineBottom_result, baseline: baseline_result} as CustomSpanDrawInfo) 3907 return value 3908 } 3909 readDrawContext(): DrawContext { 3910 let valueDeserializer : Deserializer = this 3911 const _DrawContextStub_result : string = (valueDeserializer.readString() as string) 3912 let value : DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) 3913 return value 3914 } 3915 readCustomSpanMetrics(): CustomSpanMetrics { 3916 let valueDeserializer : Deserializer = this 3917 const width_result : number = (valueDeserializer.readNumber() as number) 3918 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3919 let height_buf : number | undefined 3920 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 3921 { 3922 height_buf = (valueDeserializer.readNumber() as number) 3923 } 3924 const height_result : number | undefined = height_buf 3925 let value : CustomSpanMetrics = ({width: width_result, height: height_result} as CustomSpanMetrics) 3926 return value 3927 } 3928 readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { 3929 let valueDeserializer : Deserializer = this 3930 const fontSize_result : number = (valueDeserializer.readNumber() as number) 3931 let value : CustomSpanMeasureInfo = ({fontSize: fontSize_result} as CustomSpanMeasureInfo) 3932 return value 3933 } 3934 readSpanStyle(): SpanStyle { 3935 let valueDeserializer : Deserializer = this 3936 const start_result : number = (valueDeserializer.readNumber() as number) 3937 const length_result : number = (valueDeserializer.readNumber() as number) 3938 const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) 3939 const styledValue_buf_selector : int32 = valueDeserializer.readInt8() 3940 let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined 3941 if (styledValue_buf_selector == 0) { 3942 styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) 3943 } 3944 else if (styledValue_buf_selector == 1) { 3945 styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) 3946 } 3947 else if (styledValue_buf_selector == 2) { 3948 styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) 3949 } 3950 else if (styledValue_buf_selector == 3) { 3951 styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) 3952 } 3953 else if (styledValue_buf_selector == 4) { 3954 styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) 3955 } 3956 else if (styledValue_buf_selector == 5) { 3957 styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) 3958 } 3959 else if (styledValue_buf_selector == 6) { 3960 styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) 3961 } 3962 else if (styledValue_buf_selector == 7) { 3963 styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) 3964 } 3965 else if (styledValue_buf_selector == 8) { 3966 styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) 3967 } 3968 else if (styledValue_buf_selector == 9) { 3969 styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) 3970 } 3971 else if (styledValue_buf_selector == 10) { 3972 styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) 3973 } 3974 else if (styledValue_buf_selector == 11) { 3975 styledValue_buf = valueDeserializer.readUserDataSpan() 3976 } 3977 else if (styledValue_buf_selector == 12) { 3978 styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) 3979 } 3980 else { 3981 throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") 3982 } 3983 const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) 3984 let value : SpanStyle = ({start: start_result, length: length_result, styledKey: styledKey_result, styledValue: styledValue_result} as SpanStyle) 3985 return value 3986 } 3987 readRestrictedWorker(): RestrictedWorker { 3988 let valueDeserializer : Deserializer = this 3989 const _RestrictedWorkerStub_result : string = (valueDeserializer.readString() as string) 3990 let value : RestrictedWorker = ({_RestrictedWorkerStub: _RestrictedWorkerStub_result} as RestrictedWorker) 3991 return value 3992 } 3993 readWant(): Want { 3994 let valueDeserializer : Deserializer = this 3995 const bundleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 3996 let bundleName_buf : string | undefined 3997 if ((RuntimeType.UNDEFINED) != (bundleName_buf_runtimeType)) 3998 { 3999 bundleName_buf = (valueDeserializer.readString() as string) 4000 } 4001 const bundleName_result : string | undefined = bundleName_buf 4002 const abilityName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4003 let abilityName_buf : string | undefined 4004 if ((RuntimeType.UNDEFINED) != (abilityName_buf_runtimeType)) 4005 { 4006 abilityName_buf = (valueDeserializer.readString() as string) 4007 } 4008 const abilityName_result : string | undefined = abilityName_buf 4009 const deviceId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4010 let deviceId_buf : string | undefined 4011 if ((RuntimeType.UNDEFINED) != (deviceId_buf_runtimeType)) 4012 { 4013 deviceId_buf = (valueDeserializer.readString() as string) 4014 } 4015 const deviceId_result : string | undefined = deviceId_buf 4016 const uri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4017 let uri_buf : string | undefined 4018 if ((RuntimeType.UNDEFINED) != (uri_buf_runtimeType)) 4019 { 4020 uri_buf = (valueDeserializer.readString() as string) 4021 } 4022 const uri_result : string | undefined = uri_buf 4023 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4024 let type_buf : string | undefined 4025 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 4026 { 4027 type_buf = (valueDeserializer.readString() as string) 4028 } 4029 const type_result : string | undefined = type_buf 4030 const flags_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4031 let flags_buf : number | undefined 4032 if ((RuntimeType.UNDEFINED) != (flags_buf_runtimeType)) 4033 { 4034 flags_buf = (valueDeserializer.readNumber() as number) 4035 } 4036 const flags_result : number | undefined = flags_buf 4037 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4038 let action_buf : string | undefined 4039 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 4040 { 4041 action_buf = (valueDeserializer.readString() as string) 4042 } 4043 const action_result : string | undefined = action_buf 4044 const parameters_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4045 let parameters_buf : Map<string, Object> | undefined 4046 if ((RuntimeType.UNDEFINED) != (parameters_buf_runtimeType)) 4047 { 4048 const parameters_buf__size : int32 = valueDeserializer.readInt32() 4049 let parameters_buf_ : Map<string, Object> = new Map<string, Object>() 4050 // TODO: TS map resize 4051 for (let parameters_buf__i = 0; parameters_buf__i < parameters_buf__size; parameters_buf__i++) { 4052 const parameters_buf__key : string = (valueDeserializer.readString() as string) 4053 const parameters_buf__value : Object = (valueDeserializer.readCustomObject("Object") as Object) 4054 parameters_buf_.set(parameters_buf__key, parameters_buf__value) 4055 } 4056 parameters_buf = parameters_buf_ 4057 } 4058 const parameters_result : Map<string, Object> | undefined = parameters_buf 4059 const entities_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4060 let entities_buf : Array<string> | undefined 4061 if ((RuntimeType.UNDEFINED) != (entities_buf_runtimeType)) 4062 { 4063 const entities_buf__length : int32 = valueDeserializer.readInt32() 4064 let entities_buf_ : Array<string> = new Array<string>(entities_buf__length) 4065 for (let entities_buf__i = 0; entities_buf__i < entities_buf__length; entities_buf__i++) { 4066 entities_buf_[entities_buf__i] = (valueDeserializer.readString() as string) 4067 } 4068 entities_buf = entities_buf_ 4069 } 4070 const entities_result : Array<string> | undefined = entities_buf 4071 const moduleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4072 let moduleName_buf : string | undefined 4073 if ((RuntimeType.UNDEFINED) != (moduleName_buf_runtimeType)) 4074 { 4075 moduleName_buf = (valueDeserializer.readString() as string) 4076 } 4077 const moduleName_result : string | undefined = moduleName_buf 4078 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) 4079 return value 4080 } 4081 readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { 4082 const _resource : CallbackResource = this.readCallbackResource() 4083 const _call : KPointer = this.readPointer() 4084 const _callSync : KPointer = this.readPointer() 4085 return (parameter: UIExtensionProxy):void => { 4086 const _argsSerializer : Serializer = Serializer.hold(); 4087 _argsSerializer.writeInt32(_resource.resourceId); 4088 _argsSerializer.writePointer(_call); 4089 _argsSerializer.writePointer(_callSync); 4090 _argsSerializer.writeUIExtensionProxy(parameter); 4091 (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asBuffer(), _argsSerializer.length())); 4092 _argsSerializer.release(); 4093 return; } 4094 } 4095 readWaterFlowAttribute(): WaterFlowAttribute { 4096 throw new Error("Interface with functions is not supported") 4097 } 4098 readWaterFlowSections(): WaterFlowSections { 4099 let valueDeserializer : Deserializer = this 4100 let ptr : KPointer = valueDeserializer.readPointer() 4101 return WaterFlowSectionsInternal.fromPtr(ptr) 4102 } 4103 readScroller(): Scroller { 4104 let valueDeserializer : Deserializer = this 4105 let ptr : KPointer = valueDeserializer.readPointer() 4106 return ScrollerInternal.fromPtr(ptr) 4107 } 4108 readSectionOptions(): SectionOptions { 4109 let valueDeserializer : Deserializer = this 4110 const itemsCount_result : number = (valueDeserializer.readNumber() as number) 4111 const crossCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4112 let crossCount_buf : number | undefined 4113 if ((RuntimeType.UNDEFINED) != (crossCount_buf_runtimeType)) 4114 { 4115 crossCount_buf = (valueDeserializer.readNumber() as number) 4116 } 4117 const crossCount_result : number | undefined = crossCount_buf 4118 const onGetItemMainSizeByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4119 let onGetItemMainSizeByIndex_buf : GetItemMainSizeByIndex | undefined 4120 if ((RuntimeType.UNDEFINED) != (onGetItemMainSizeByIndex_buf_runtimeType)) 4121 { 4122 onGetItemMainSizeByIndex_buf = valueDeserializer.readGetItemMainSizeByIndex() 4123 } 4124 const onGetItemMainSizeByIndex_result : GetItemMainSizeByIndex | undefined = onGetItemMainSizeByIndex_buf 4125 const columnsGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4126 let columnsGap_buf : Dimension | undefined 4127 if ((RuntimeType.UNDEFINED) != (columnsGap_buf_runtimeType)) 4128 { 4129 columnsGap_buf = (valueDeserializer.readLength() as Dimension) 4130 } 4131 const columnsGap_result : Dimension | undefined = columnsGap_buf 4132 const rowsGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4133 let rowsGap_buf : Dimension | undefined 4134 if ((RuntimeType.UNDEFINED) != (rowsGap_buf_runtimeType)) 4135 { 4136 rowsGap_buf = (valueDeserializer.readLength() as Dimension) 4137 } 4138 const rowsGap_result : Dimension | undefined = rowsGap_buf 4139 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4140 let margin_buf : Margin | Dimension | undefined 4141 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 4142 { 4143 const margin_buf__selector : int32 = valueDeserializer.readInt8() 4144 let margin_buf_ : Margin | Dimension | undefined 4145 if (margin_buf__selector == 0) { 4146 const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4147 let margin_buf__u_top_buf : Length | undefined 4148 if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) 4149 { 4150 margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) 4151 } 4152 const margin_buf__u_top : undefined | Length = margin_buf__u_top_buf 4153 const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4154 let margin_buf__u_right_buf : Length | undefined 4155 if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) 4156 { 4157 margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) 4158 } 4159 const margin_buf__u_right : undefined | Length = margin_buf__u_right_buf 4160 const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4161 let margin_buf__u_bottom_buf : Length | undefined 4162 if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) 4163 { 4164 margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 4165 } 4166 const margin_buf__u_bottom : undefined | Length = margin_buf__u_bottom_buf 4167 const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4168 let margin_buf__u_left_buf : Length | undefined 4169 if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) 4170 { 4171 margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) 4172 } 4173 const margin_buf__u_left : undefined | Length = margin_buf__u_left_buf 4174 margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) 4175 } 4176 else if (margin_buf__selector == 1) { 4177 margin_buf_ = (valueDeserializer.readLength() as Dimension) 4178 } 4179 else { 4180 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 4181 } 4182 margin_buf = (margin_buf_ as Margin | Dimension) 4183 } 4184 const margin_result : Margin | Dimension | undefined = margin_buf 4185 let value : SectionOptions = ({itemsCount: itemsCount_result, crossCount: crossCount_result, onGetItemMainSizeByIndex: onGetItemMainSizeByIndex_result, columnsGap: columnsGap_result, rowsGap: rowsGap_result, margin: margin_result} as SectionOptions) 4186 return value 4187 } 4188 readRRect(): RRect { 4189 let valueDeserializer : Deserializer = this 4190 const left_result : number = (valueDeserializer.readNumber() as number) 4191 const top_result : number = (valueDeserializer.readNumber() as number) 4192 const width_result : number = (valueDeserializer.readNumber() as number) 4193 const height_result : number = (valueDeserializer.readNumber() as number) 4194 const radius_result : number = (valueDeserializer.readNumber() as number) 4195 let value : RRect = ({left: left_result, top: top_result, width: width_result, height: height_result, radius: radius_result} as RRect) 4196 return value 4197 } 4198 readDividerStyle(): DividerStyle { 4199 let valueDeserializer : Deserializer = this 4200 const strokeWidth_result : Length = (valueDeserializer.readLength() as Length) 4201 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4202 let color_buf : ResourceColor | undefined 4203 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 4204 { 4205 const color_buf__selector : int32 = valueDeserializer.readInt8() 4206 let color_buf_ : Color | number | string | Resource | undefined 4207 if (color_buf__selector == 0) { 4208 color_buf_ = (valueDeserializer.readInt32() as Color) 4209 } 4210 else if (color_buf__selector == 1) { 4211 color_buf_ = (valueDeserializer.readNumber() as number) 4212 } 4213 else if (color_buf__selector == 2) { 4214 color_buf_ = (valueDeserializer.readString() as string) 4215 } 4216 else if (color_buf__selector == 3) { 4217 color_buf_ = valueDeserializer.readResource() 4218 } 4219 else { 4220 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 4221 } 4222 color_buf = (color_buf_ as Color | number | string | Resource) 4223 } 4224 const color_result : ResourceColor | undefined = color_buf 4225 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4226 let startMargin_buf : Length | undefined 4227 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 4228 { 4229 startMargin_buf = (valueDeserializer.readLength() as Length) 4230 } 4231 const startMargin_result : Length | undefined = startMargin_buf 4232 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4233 let endMargin_buf : Length | undefined 4234 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 4235 { 4236 endMargin_buf = (valueDeserializer.readLength() as Length) 4237 } 4238 const endMargin_result : Length | undefined = endMargin_buf 4239 let value : DividerStyle = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerStyle) 4240 return value 4241 } 4242 readButtonIconOptions(): ButtonIconOptions { 4243 let valueDeserializer : Deserializer = this 4244 const shown_buf_selector : int32 = valueDeserializer.readInt8() 4245 let shown_buf : string | PixelMap | Resource | undefined 4246 if (shown_buf_selector == 0) { 4247 shown_buf = (valueDeserializer.readString() as string) 4248 } 4249 else if (shown_buf_selector == 1) { 4250 shown_buf = (valueDeserializer.readPixelMap() as PixelMap) 4251 } 4252 else if (shown_buf_selector == 2) { 4253 shown_buf = valueDeserializer.readResource() 4254 } 4255 else { 4256 throw new Error("One of the branches for shown_buf has to be chosen through deserialisation.") 4257 } 4258 const shown_result : string | PixelMap | Resource = (shown_buf as string | PixelMap | Resource) 4259 const hidden_buf_selector : int32 = valueDeserializer.readInt8() 4260 let hidden_buf : string | PixelMap | Resource | undefined 4261 if (hidden_buf_selector == 0) { 4262 hidden_buf = (valueDeserializer.readString() as string) 4263 } 4264 else if (hidden_buf_selector == 1) { 4265 hidden_buf = (valueDeserializer.readPixelMap() as PixelMap) 4266 } 4267 else if (hidden_buf_selector == 2) { 4268 hidden_buf = valueDeserializer.readResource() 4269 } 4270 else { 4271 throw new Error("One of the branches for hidden_buf has to be chosen through deserialisation.") 4272 } 4273 const hidden_result : string | PixelMap | Resource = (hidden_buf as string | PixelMap | Resource) 4274 const switching_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4275 let switching_buf : string | PixelMap | Resource | undefined 4276 if ((RuntimeType.UNDEFINED) != (switching_buf_runtimeType)) 4277 { 4278 const switching_buf__selector : int32 = valueDeserializer.readInt8() 4279 let switching_buf_ : string | PixelMap | Resource | undefined 4280 if (switching_buf__selector == 0) { 4281 switching_buf_ = (valueDeserializer.readString() as string) 4282 } 4283 else if (switching_buf__selector == 1) { 4284 switching_buf_ = (valueDeserializer.readPixelMap() as PixelMap) 4285 } 4286 else if (switching_buf__selector == 2) { 4287 switching_buf_ = valueDeserializer.readResource() 4288 } 4289 else { 4290 throw new Error("One of the branches for switching_buf_ has to be chosen through deserialisation.") 4291 } 4292 switching_buf = (switching_buf_ as string | PixelMap | Resource) 4293 } 4294 const switching_result : string | PixelMap | Resource | undefined = switching_buf 4295 let value : ButtonIconOptions = ({shown: shown_result, hidden: hidden_result, switching: switching_result} as ButtonIconOptions) 4296 return value 4297 } 4298 readImageAIOptions(): ImageAIOptions { 4299 let valueDeserializer : Deserializer = this 4300 const types_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4301 let types_buf : Array<ImageAnalyzerType> | undefined 4302 if ((RuntimeType.UNDEFINED) != (types_buf_runtimeType)) 4303 { 4304 const types_buf__length : int32 = valueDeserializer.readInt32() 4305 let types_buf_ : Array<ImageAnalyzerType> = new Array<ImageAnalyzerType>(types_buf__length) 4306 for (let types_buf__i = 0; types_buf__i < types_buf__length; types_buf__i++) { 4307 types_buf_[types_buf__i] = (valueDeserializer.readInt32() as ImageAnalyzerType) 4308 } 4309 types_buf = types_buf_ 4310 } 4311 const types_result : Array<ImageAnalyzerType> | undefined = types_buf 4312 const aiController_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4313 let aiController_buf : ImageAnalyzerController | undefined 4314 if ((RuntimeType.UNDEFINED) != (aiController_buf_runtimeType)) 4315 { 4316 aiController_buf = (valueDeserializer.readImageAnalyzerController() as ImageAnalyzerController) 4317 } 4318 const aiController_result : ImageAnalyzerController | undefined = aiController_buf 4319 let value : ImageAIOptions = ({types: types_result, aiController: aiController_result} as ImageAIOptions) 4320 return value 4321 } 4322 readXComponentController(): XComponentController { 4323 let valueDeserializer : Deserializer = this 4324 let ptr : KPointer = valueDeserializer.readPointer() 4325 return XComponentControllerInternal.fromPtr(ptr) 4326 } 4327 readImageAnalyzerConfig(): ImageAnalyzerConfig { 4328 let valueDeserializer : Deserializer = this 4329 const types_buf_length : int32 = valueDeserializer.readInt32() 4330 let types_buf : Array<ImageAnalyzerType> = new Array<ImageAnalyzerType>(types_buf_length) 4331 for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { 4332 types_buf[types_buf_i] = (valueDeserializer.readInt32() as ImageAnalyzerType) 4333 } 4334 const types_result : Array<ImageAnalyzerType> = types_buf 4335 let value : ImageAnalyzerConfig = ({types: types_result} as ImageAnalyzerConfig) 4336 return value 4337 } 4338 readSurfaceRect(): SurfaceRect { 4339 let valueDeserializer : Deserializer = this 4340 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4341 let offsetX_buf : number | undefined 4342 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 4343 { 4344 offsetX_buf = (valueDeserializer.readNumber() as number) 4345 } 4346 const offsetX_result : number | undefined = offsetX_buf 4347 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4348 let offsetY_buf : number | undefined 4349 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 4350 { 4351 offsetY_buf = (valueDeserializer.readNumber() as number) 4352 } 4353 const offsetY_result : number | undefined = offsetY_buf 4354 const surfaceWidth_result : number = (valueDeserializer.readNumber() as number) 4355 const surfaceHeight_result : number = (valueDeserializer.readNumber() as number) 4356 let value : SurfaceRect = ({offsetX: offsetX_result, offsetY: offsetY_result, surfaceWidth: surfaceWidth_result, surfaceHeight: surfaceHeight_result} as SurfaceRect) 4357 return value 4358 } 4359 readSurfaceRotationOptions(): SurfaceRotationOptions { 4360 let valueDeserializer : Deserializer = this 4361 const lock_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4362 let lock_buf : boolean | undefined 4363 if ((RuntimeType.UNDEFINED) != (lock_buf_runtimeType)) 4364 { 4365 lock_buf = valueDeserializer.readBoolean() 4366 } 4367 const lock_result : boolean | undefined = lock_buf 4368 let value : SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) 4369 return value 4370 } 4371 readWindowSceneAttribute(): WindowSceneAttribute { 4372 throw new Error("Interface with functions is not supported") 4373 } 4374 readWebAttribute(): WebAttribute { 4375 throw new Error("Interface with functions is not supported") 4376 } 4377 readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { 4378 let valueDeserializer : Deserializer = this 4379 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4380 let onAppear_buf : (() => void) | undefined 4381 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 4382 { 4383 onAppear_buf = valueDeserializer.readCallback_Void() 4384 } 4385 const onAppear_result : (() => void) | undefined = onAppear_buf 4386 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4387 let onDisappear_buf : (() => void) | undefined 4388 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 4389 { 4390 onDisappear_buf = valueDeserializer.readCallback_Void() 4391 } 4392 const onDisappear_result : (() => void) | undefined = onDisappear_buf 4393 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4394 let preview_buf : CustomBuilder | undefined 4395 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 4396 { 4397 preview_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 4398 } 4399 const preview_result : CustomBuilder | undefined = preview_buf 4400 const menuType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4401 let menuType_buf : MenuType | undefined 4402 if ((RuntimeType.UNDEFINED) != (menuType_buf_runtimeType)) 4403 { 4404 menuType_buf = (valueDeserializer.readInt32() as MenuType) 4405 } 4406 const menuType_result : MenuType | undefined = menuType_buf 4407 let value : SelectionMenuOptionsExt = ({onAppear: onAppear_result, onDisappear: onDisappear_result, preview: preview_result, menuType: menuType_result} as SelectionMenuOptionsExt) 4408 return value 4409 } 4410 readCallback_Literal_String_plainText_Void(isSync: boolean = false): ((selectedText: Literal_String_plainText) => void) { 4411 const _resource : CallbackResource = this.readCallbackResource() 4412 const _call : KPointer = this.readPointer() 4413 const _callSync : KPointer = this.readPointer() 4414 return (selectedText: Literal_String_plainText):void => { 4415 const _argsSerializer : Serializer = Serializer.hold(); 4416 _argsSerializer.writeInt32(_resource.resourceId); 4417 _argsSerializer.writePointer(_call); 4418 _argsSerializer.writePointer(_callSync); 4419 const selectedText_plainText = selectedText.plainText; 4420 _argsSerializer.writeString(selectedText_plainText); 4421 (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asBuffer(), _argsSerializer.length())); 4422 _argsSerializer.release(); 4423 return; } 4424 } 4425 readNestedScrollOptionsExt(): NestedScrollOptionsExt { 4426 let valueDeserializer : Deserializer = this 4427 const scrollUp_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4428 let scrollUp_buf : NestedScrollMode | undefined 4429 if ((RuntimeType.UNDEFINED) != (scrollUp_buf_runtimeType)) 4430 { 4431 scrollUp_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4432 } 4433 const scrollUp_result : NestedScrollMode | undefined = scrollUp_buf 4434 const scrollDown_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4435 let scrollDown_buf : NestedScrollMode | undefined 4436 if ((RuntimeType.UNDEFINED) != (scrollDown_buf_runtimeType)) 4437 { 4438 scrollDown_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4439 } 4440 const scrollDown_result : NestedScrollMode | undefined = scrollDown_buf 4441 const scrollRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4442 let scrollRight_buf : NestedScrollMode | undefined 4443 if ((RuntimeType.UNDEFINED) != (scrollRight_buf_runtimeType)) 4444 { 4445 scrollRight_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4446 } 4447 const scrollRight_result : NestedScrollMode | undefined = scrollRight_buf 4448 const scrollLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4449 let scrollLeft_buf : NestedScrollMode | undefined 4450 if ((RuntimeType.UNDEFINED) != (scrollLeft_buf_runtimeType)) 4451 { 4452 scrollLeft_buf = (valueDeserializer.readInt32() as NestedScrollMode) 4453 } 4454 const scrollLeft_result : NestedScrollMode | undefined = scrollLeft_buf 4455 let value : NestedScrollOptionsExt = ({scrollUp: scrollUp_result, scrollDown: scrollDown_result, scrollRight: scrollRight_result, scrollLeft: scrollLeft_result} as NestedScrollOptionsExt) 4456 return value 4457 } 4458 readNestedScrollOptions(): NestedScrollOptions { 4459 let valueDeserializer : Deserializer = this 4460 const scrollForward_result : NestedScrollMode = (valueDeserializer.readInt32() as NestedScrollMode) 4461 const scrollBackward_result : NestedScrollMode = (valueDeserializer.readInt32() as NestedScrollMode) 4462 let value : NestedScrollOptions = ({scrollForward: scrollForward_result, scrollBackward: scrollBackward_result} as NestedScrollOptions) 4463 return value 4464 } 4465 readEventResult(): EventResult { 4466 let valueDeserializer : Deserializer = this 4467 let ptr : KPointer = valueDeserializer.readPointer() 4468 return EventResultInternal.fromPtr(ptr) 4469 } 4470 readTouchEvent(): TouchEvent { 4471 let valueDeserializer : Deserializer = this 4472 let ptr : KPointer = valueDeserializer.readPointer() 4473 return TouchEventInternal.fromPtr(ptr) 4474 } 4475 readNativeEmbedInfo(): NativeEmbedInfo { 4476 let valueDeserializer : Deserializer = this 4477 const id_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4478 let id_buf : string | undefined 4479 if ((RuntimeType.UNDEFINED) != (id_buf_runtimeType)) 4480 { 4481 id_buf = (valueDeserializer.readString() as string) 4482 } 4483 const id_result : string | undefined = id_buf 4484 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4485 let type_buf : string | undefined 4486 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 4487 { 4488 type_buf = (valueDeserializer.readString() as string) 4489 } 4490 const type_result : string | undefined = type_buf 4491 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4492 let src_buf : string | undefined 4493 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 4494 { 4495 src_buf = (valueDeserializer.readString() as string) 4496 } 4497 const src_result : string | undefined = src_buf 4498 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4499 let position_buf : Position | undefined 4500 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 4501 { 4502 position_buf = valueDeserializer.readPosition() 4503 } 4504 const position_result : Position | undefined = position_buf 4505 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4506 let width_buf : number | undefined 4507 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 4508 { 4509 width_buf = (valueDeserializer.readNumber() as number) 4510 } 4511 const width_result : number | undefined = width_buf 4512 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4513 let height_buf : number | undefined 4514 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 4515 { 4516 height_buf = (valueDeserializer.readNumber() as number) 4517 } 4518 const height_result : number | undefined = height_buf 4519 const url_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4520 let url_buf : string | undefined 4521 if ((RuntimeType.UNDEFINED) != (url_buf_runtimeType)) 4522 { 4523 url_buf = (valueDeserializer.readString() as string) 4524 } 4525 const url_result : string | undefined = url_buf 4526 const tag_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4527 let tag_buf : string | undefined 4528 if ((RuntimeType.UNDEFINED) != (tag_buf_runtimeType)) 4529 { 4530 tag_buf = (valueDeserializer.readString() as string) 4531 } 4532 const tag_result : string | undefined = tag_buf 4533 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4534 let params_buf : Map<string, string> | undefined 4535 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 4536 { 4537 const params_buf__size : int32 = valueDeserializer.readInt32() 4538 let params_buf_ : Map<string, string> = new Map<string, string>() 4539 // TODO: TS map resize 4540 for (let params_buf__i = 0; params_buf__i < params_buf__size; params_buf__i++) { 4541 const params_buf__key : string = (valueDeserializer.readString() as string) 4542 const params_buf__value : string = (valueDeserializer.readString() as string) 4543 params_buf_.set(params_buf__key, params_buf__value) 4544 } 4545 params_buf = params_buf_ 4546 } 4547 const params_result : Map<string, string> | undefined = params_buf 4548 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) 4549 return value 4550 } 4551 readDataResubmissionHandler(): DataResubmissionHandler { 4552 let valueDeserializer : Deserializer = this 4553 let ptr : KPointer = valueDeserializer.readPointer() 4554 return DataResubmissionHandlerInternal.fromPtr(ptr) 4555 } 4556 readControllerHandler(): ControllerHandler { 4557 let valueDeserializer : Deserializer = this 4558 let ptr : KPointer = valueDeserializer.readPointer() 4559 return ControllerHandlerInternal.fromPtr(ptr) 4560 } 4561 readClientAuthenticationHandler(): ClientAuthenticationHandler { 4562 let valueDeserializer : Deserializer = this 4563 let ptr : KPointer = valueDeserializer.readPointer() 4564 return ClientAuthenticationHandlerInternal.fromPtr(ptr) 4565 } 4566 readSslErrorHandler(): SslErrorHandler { 4567 let valueDeserializer : Deserializer = this 4568 let ptr : KPointer = valueDeserializer.readPointer() 4569 return SslErrorHandlerInternal.fromPtr(ptr) 4570 } 4571 readWebContextMenuResult(): WebContextMenuResult { 4572 let valueDeserializer : Deserializer = this 4573 let ptr : KPointer = valueDeserializer.readPointer() 4574 return WebContextMenuResultInternal.fromPtr(ptr) 4575 } 4576 readWebContextMenuParam(): WebContextMenuParam { 4577 let valueDeserializer : Deserializer = this 4578 let ptr : KPointer = valueDeserializer.readPointer() 4579 return WebContextMenuParamInternal.fromPtr(ptr) 4580 } 4581 readScreenCaptureHandler(): ScreenCaptureHandler { 4582 let valueDeserializer : Deserializer = this 4583 let ptr : KPointer = valueDeserializer.readPointer() 4584 return ScreenCaptureHandlerInternal.fromPtr(ptr) 4585 } 4586 readPermissionRequest(): PermissionRequest { 4587 let valueDeserializer : Deserializer = this 4588 let ptr : KPointer = valueDeserializer.readPointer() 4589 return PermissionRequestInternal.fromPtr(ptr) 4590 } 4591 readHttpAuthHandler(): HttpAuthHandler { 4592 let valueDeserializer : Deserializer = this 4593 let ptr : KPointer = valueDeserializer.readPointer() 4594 return HttpAuthHandlerInternal.fromPtr(ptr) 4595 } 4596 readFileSelectorParam(): FileSelectorParam { 4597 let valueDeserializer : Deserializer = this 4598 let ptr : KPointer = valueDeserializer.readPointer() 4599 return FileSelectorParamInternal.fromPtr(ptr) 4600 } 4601 readFileSelectorResult(): FileSelectorResult { 4602 let valueDeserializer : Deserializer = this 4603 let ptr : KPointer = valueDeserializer.readPointer() 4604 return FileSelectorResultInternal.fromPtr(ptr) 4605 } 4606 readWebResourceResponse(): WebResourceResponse { 4607 let valueDeserializer : Deserializer = this 4608 let ptr : KPointer = valueDeserializer.readPointer() 4609 return WebResourceResponseInternal.fromPtr(ptr) 4610 } 4611 readWebResourceError(): WebResourceError { 4612 let valueDeserializer : Deserializer = this 4613 let ptr : KPointer = valueDeserializer.readPointer() 4614 return WebResourceErrorInternal.fromPtr(ptr) 4615 } 4616 readConsoleMessage(): ConsoleMessage { 4617 let valueDeserializer : Deserializer = this 4618 let ptr : KPointer = valueDeserializer.readPointer() 4619 return ConsoleMessageInternal.fromPtr(ptr) 4620 } 4621 readJsResult(): JsResult { 4622 let valueDeserializer : Deserializer = this 4623 let ptr : KPointer = valueDeserializer.readPointer() 4624 return JsResultInternal.fromPtr(ptr) 4625 } 4626 readJsGeolocation(): JsGeolocation { 4627 let valueDeserializer : Deserializer = this 4628 let ptr : KPointer = valueDeserializer.readPointer() 4629 return JsGeolocationInternal.fromPtr(ptr) 4630 } 4631 readWebCookie(): WebCookie { 4632 let valueDeserializer : Deserializer = this 4633 let ptr : KPointer = valueDeserializer.readPointer() 4634 return WebCookieInternal.fromPtr(ptr) 4635 } 4636 readScreenCaptureConfig(): ScreenCaptureConfig { 4637 let valueDeserializer : Deserializer = this 4638 const captureMode_result : WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) 4639 let value : ScreenCaptureConfig = ({captureMode: captureMode_result} as ScreenCaptureConfig) 4640 return value 4641 } 4642 readFullScreenExitHandler(): FullScreenExitHandler { 4643 let valueDeserializer : Deserializer = this 4644 let ptr : KPointer = valueDeserializer.readPointer() 4645 return FullScreenExitHandlerInternal.fromPtr(ptr) 4646 } 4647 readWebKeyboardController(): WebKeyboardController { 4648 let valueDeserializer : Deserializer = this 4649 let ptr : KPointer = valueDeserializer.readPointer() 4650 return WebKeyboardControllerInternal.fromPtr(ptr) 4651 } 4652 readVideoController(): VideoController { 4653 let valueDeserializer : Deserializer = this 4654 let ptr : KPointer = valueDeserializer.readPointer() 4655 return VideoControllerInternal.fromPtr(ptr) 4656 } 4657 readCustomTheme(): CustomTheme { 4658 let valueDeserializer : Deserializer = this 4659 const _CustomThemeStub_result : string = (valueDeserializer.readString() as string) 4660 let value : CustomTheme = ({_CustomThemeStub: _CustomThemeStub_result} as CustomTheme) 4661 return value 4662 } 4663 readTimePickerDialogOptions(): TimePickerDialogOptions { 4664 let valueDeserializer : Deserializer = this 4665 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4666 let selected_buf : Date | undefined 4667 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 4668 { 4669 selected_buf = new Date(valueDeserializer.readInt64()) 4670 } 4671 const selected_result : Date | undefined = selected_buf 4672 const format_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4673 let format_buf : TimePickerFormat | undefined 4674 if ((RuntimeType.UNDEFINED) != (format_buf_runtimeType)) 4675 { 4676 format_buf = (valueDeserializer.readInt32() as TimePickerFormat) 4677 } 4678 const format_result : TimePickerFormat | undefined = format_buf 4679 const useMilitaryTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4680 let useMilitaryTime_buf : boolean | undefined 4681 if ((RuntimeType.UNDEFINED) != (useMilitaryTime_buf_runtimeType)) 4682 { 4683 useMilitaryTime_buf = valueDeserializer.readBoolean() 4684 } 4685 const useMilitaryTime_result : boolean | undefined = useMilitaryTime_buf 4686 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4687 let disappearTextStyle_buf : PickerTextStyle | undefined 4688 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 4689 { 4690 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 4691 } 4692 const disappearTextStyle_result : PickerTextStyle | undefined = disappearTextStyle_buf 4693 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4694 let textStyle_buf : PickerTextStyle | undefined 4695 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 4696 { 4697 textStyle_buf = valueDeserializer.readPickerTextStyle() 4698 } 4699 const textStyle_result : PickerTextStyle | undefined = textStyle_buf 4700 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4701 let acceptButtonStyle_buf : PickerDialogButtonStyle | undefined 4702 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 4703 { 4704 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 4705 } 4706 const acceptButtonStyle_result : PickerDialogButtonStyle | undefined = acceptButtonStyle_buf 4707 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4708 let cancelButtonStyle_buf : PickerDialogButtonStyle | undefined 4709 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 4710 { 4711 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 4712 } 4713 const cancelButtonStyle_result : PickerDialogButtonStyle | undefined = cancelButtonStyle_buf 4714 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4715 let selectedTextStyle_buf : PickerTextStyle | undefined 4716 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 4717 { 4718 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 4719 } 4720 const selectedTextStyle_result : PickerTextStyle | undefined = selectedTextStyle_buf 4721 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4722 let maskRect_buf : Rectangle | undefined 4723 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 4724 { 4725 maskRect_buf = valueDeserializer.readRectangle() 4726 } 4727 const maskRect_result : Rectangle | undefined = maskRect_buf 4728 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4729 let alignment_buf : DialogAlignment | undefined 4730 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 4731 { 4732 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 4733 } 4734 const alignment_result : DialogAlignment | undefined = alignment_buf 4735 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4736 let offset_buf : Offset | undefined 4737 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 4738 { 4739 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 4740 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 4741 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 4742 } 4743 const offset_result : Offset | undefined = offset_buf 4744 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4745 let onAccept_buf : ((value: TimePickerResult) => void) | undefined 4746 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 4747 { 4748 onAccept_buf = valueDeserializer.readCallback_TimePickerResult_Void() 4749 } 4750 const onAccept_result : ((value: TimePickerResult) => void) | undefined = onAccept_buf 4751 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4752 let onCancel_buf : (() => void) | undefined 4753 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 4754 { 4755 onCancel_buf = valueDeserializer.readCallback_Void() 4756 } 4757 const onCancel_result : (() => void) | undefined = onCancel_buf 4758 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4759 let onChange_buf : ((value: TimePickerResult) => void) | undefined 4760 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 4761 { 4762 onChange_buf = valueDeserializer.readCallback_TimePickerResult_Void() 4763 } 4764 const onChange_result : ((value: TimePickerResult) => void) | undefined = onChange_buf 4765 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4766 let backgroundColor_buf : ResourceColor | undefined 4767 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 4768 { 4769 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 4770 let backgroundColor_buf_ : Color | number | string | Resource | undefined 4771 if (backgroundColor_buf__selector == 0) { 4772 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 4773 } 4774 else if (backgroundColor_buf__selector == 1) { 4775 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 4776 } 4777 else if (backgroundColor_buf__selector == 2) { 4778 backgroundColor_buf_ = (valueDeserializer.readString() as string) 4779 } 4780 else if (backgroundColor_buf__selector == 3) { 4781 backgroundColor_buf_ = valueDeserializer.readResource() 4782 } 4783 else { 4784 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 4785 } 4786 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 4787 } 4788 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 4789 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4790 let backgroundBlurStyle_buf : BlurStyle | undefined 4791 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 4792 { 4793 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 4794 } 4795 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 4796 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4797 let onDidAppear_buf : (() => void) | undefined 4798 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 4799 { 4800 onDidAppear_buf = valueDeserializer.readCallback_Void() 4801 } 4802 const onDidAppear_result : (() => void) | undefined = onDidAppear_buf 4803 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4804 let onDidDisappear_buf : (() => void) | undefined 4805 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 4806 { 4807 onDidDisappear_buf = valueDeserializer.readCallback_Void() 4808 } 4809 const onDidDisappear_result : (() => void) | undefined = onDidDisappear_buf 4810 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4811 let onWillAppear_buf : (() => void) | undefined 4812 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 4813 { 4814 onWillAppear_buf = valueDeserializer.readCallback_Void() 4815 } 4816 const onWillAppear_result : (() => void) | undefined = onWillAppear_buf 4817 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4818 let onWillDisappear_buf : (() => void) | undefined 4819 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 4820 { 4821 onWillDisappear_buf = valueDeserializer.readCallback_Void() 4822 } 4823 const onWillDisappear_result : (() => void) | undefined = onWillDisappear_buf 4824 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4825 let shadow_buf : ShadowOptions | ShadowStyle | undefined 4826 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 4827 { 4828 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 4829 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 4830 if (shadow_buf__selector == 0) { 4831 shadow_buf_ = valueDeserializer.readShadowOptions() 4832 } 4833 else if (shadow_buf__selector == 1) { 4834 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 4835 } 4836 else { 4837 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 4838 } 4839 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 4840 } 4841 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 4842 const dateTimeOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4843 let dateTimeOptions_buf : DateTimeOptions | undefined 4844 if ((RuntimeType.UNDEFINED) != (dateTimeOptions_buf_runtimeType)) 4845 { 4846 dateTimeOptions_buf = valueDeserializer.readDateTimeOptions() 4847 } 4848 const dateTimeOptions_result : DateTimeOptions | undefined = dateTimeOptions_buf 4849 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4850 let enableHoverMode_buf : boolean | undefined 4851 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 4852 { 4853 enableHoverMode_buf = valueDeserializer.readBoolean() 4854 } 4855 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 4856 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4857 let hoverModeArea_buf : HoverModeAreaType | undefined 4858 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 4859 { 4860 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 4861 } 4862 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 4863 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) 4864 return value 4865 } 4866 readTextTimerController(): TextTimerController { 4867 let valueDeserializer : Deserializer = this 4868 let ptr : KPointer = valueDeserializer.readPointer() 4869 return TextTimerControllerInternal.fromPtr(ptr) 4870 } 4871 readTextPickerDialogOptions(): TextPickerDialogOptions { 4872 let valueDeserializer : Deserializer = this 4873 const range_buf_selector : int32 = valueDeserializer.readInt8() 4874 let range_buf : Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> | undefined 4875 if (range_buf_selector == 0) { 4876 const range_buf_u_length : int32 = valueDeserializer.readInt32() 4877 let range_buf_u : Array<string> = new Array<string>(range_buf_u_length) 4878 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4879 range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) 4880 } 4881 range_buf = range_buf_u 4882 } 4883 else if (range_buf_selector == 1) { 4884 const range_buf_u_length : int32 = valueDeserializer.readInt32() 4885 let range_buf_u : Array<Array<string>> = new Array<Array<string>>(range_buf_u_length) 4886 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4887 const range_buf_u_buf_length : int32 = valueDeserializer.readInt32() 4888 let range_buf_u_buf : Array<string> = new Array<string>(range_buf_u_buf_length) 4889 for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { 4890 range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) 4891 } 4892 range_buf_u[range_buf_u_i] = range_buf_u_buf 4893 } 4894 range_buf = range_buf_u 4895 } 4896 else if (range_buf_selector == 2) { 4897 range_buf = valueDeserializer.readResource() 4898 } 4899 else if (range_buf_selector == 3) { 4900 const range_buf_u_length : int32 = valueDeserializer.readInt32() 4901 let range_buf_u : Array<TextPickerRangeContent> = new Array<TextPickerRangeContent>(range_buf_u_length) 4902 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4903 range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() 4904 } 4905 range_buf = range_buf_u 4906 } 4907 else if (range_buf_selector == 4) { 4908 const range_buf_u_length : int32 = valueDeserializer.readInt32() 4909 let range_buf_u : Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(range_buf_u_length) 4910 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 4911 range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() 4912 } 4913 range_buf = range_buf_u 4914 } 4915 else { 4916 throw new Error("One of the branches for range_buf has to be chosen through deserialisation.") 4917 } 4918 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>) 4919 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4920 let value_buf : string | Array<string> | undefined 4921 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 4922 { 4923 const value_buf__selector : int32 = valueDeserializer.readInt8() 4924 let value_buf_ : string | Array<string> | undefined 4925 if (value_buf__selector == 0) { 4926 value_buf_ = (valueDeserializer.readString() as string) 4927 } 4928 else if (value_buf__selector == 1) { 4929 const value_buf__u_length : int32 = valueDeserializer.readInt32() 4930 let value_buf__u : Array<string> = new Array<string>(value_buf__u_length) 4931 for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { 4932 value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) 4933 } 4934 value_buf_ = value_buf__u 4935 } 4936 else { 4937 throw new Error("One of the branches for value_buf_ has to be chosen through deserialisation.") 4938 } 4939 value_buf = (value_buf_ as string | Array<string>) 4940 } 4941 const value_result : string | Array<string> | undefined = value_buf 4942 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4943 let selected_buf : number | Array<number> | undefined 4944 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 4945 { 4946 const selected_buf__selector : int32 = valueDeserializer.readInt8() 4947 let selected_buf_ : number | Array<number> | undefined 4948 if (selected_buf__selector == 0) { 4949 selected_buf_ = (valueDeserializer.readNumber() as number) 4950 } 4951 else if (selected_buf__selector == 1) { 4952 const selected_buf__u_length : int32 = valueDeserializer.readInt32() 4953 let selected_buf__u : Array<number> = new Array<number>(selected_buf__u_length) 4954 for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { 4955 selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) 4956 } 4957 selected_buf_ = selected_buf__u 4958 } 4959 else { 4960 throw new Error("One of the branches for selected_buf_ has to be chosen through deserialisation.") 4961 } 4962 selected_buf = (selected_buf_ as number | Array<number>) 4963 } 4964 const selected_result : number | Array<number> | undefined = selected_buf 4965 const defaultPickerItemHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4966 let defaultPickerItemHeight_buf : number | string | undefined 4967 if ((RuntimeType.UNDEFINED) != (defaultPickerItemHeight_buf_runtimeType)) 4968 { 4969 const defaultPickerItemHeight_buf__selector : int32 = valueDeserializer.readInt8() 4970 let defaultPickerItemHeight_buf_ : number | string | undefined 4971 if (defaultPickerItemHeight_buf__selector == 0) { 4972 defaultPickerItemHeight_buf_ = (valueDeserializer.readNumber() as number) 4973 } 4974 else if (defaultPickerItemHeight_buf__selector == 1) { 4975 defaultPickerItemHeight_buf_ = (valueDeserializer.readString() as string) 4976 } 4977 else { 4978 throw new Error("One of the branches for defaultPickerItemHeight_buf_ has to be chosen through deserialisation.") 4979 } 4980 defaultPickerItemHeight_buf = (defaultPickerItemHeight_buf_ as number | string) 4981 } 4982 const defaultPickerItemHeight_result : number | string | undefined = defaultPickerItemHeight_buf 4983 const canLoop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4984 let canLoop_buf : boolean | undefined 4985 if ((RuntimeType.UNDEFINED) != (canLoop_buf_runtimeType)) 4986 { 4987 canLoop_buf = valueDeserializer.readBoolean() 4988 } 4989 const canLoop_result : boolean | undefined = canLoop_buf 4990 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4991 let disappearTextStyle_buf : PickerTextStyle | undefined 4992 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 4993 { 4994 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 4995 } 4996 const disappearTextStyle_result : PickerTextStyle | undefined = disappearTextStyle_buf 4997 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 4998 let textStyle_buf : PickerTextStyle | undefined 4999 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 5000 { 5001 textStyle_buf = valueDeserializer.readPickerTextStyle() 5002 } 5003 const textStyle_result : PickerTextStyle | undefined = textStyle_buf 5004 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5005 let acceptButtonStyle_buf : PickerDialogButtonStyle | undefined 5006 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 5007 { 5008 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 5009 } 5010 const acceptButtonStyle_result : PickerDialogButtonStyle | undefined = acceptButtonStyle_buf 5011 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5012 let cancelButtonStyle_buf : PickerDialogButtonStyle | undefined 5013 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 5014 { 5015 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 5016 } 5017 const cancelButtonStyle_result : PickerDialogButtonStyle | undefined = cancelButtonStyle_buf 5018 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5019 let selectedTextStyle_buf : PickerTextStyle | undefined 5020 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 5021 { 5022 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 5023 } 5024 const selectedTextStyle_result : PickerTextStyle | undefined = selectedTextStyle_buf 5025 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5026 let onAccept_buf : ((value: TextPickerResult) => void) | undefined 5027 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 5028 { 5029 onAccept_buf = valueDeserializer.readCallback_TextPickerResult_Void() 5030 } 5031 const onAccept_result : ((value: TextPickerResult) => void) | undefined = onAccept_buf 5032 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5033 let onCancel_buf : (() => void) | undefined 5034 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 5035 { 5036 onCancel_buf = valueDeserializer.readCallback_Void() 5037 } 5038 const onCancel_result : (() => void) | undefined = onCancel_buf 5039 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5040 let onChange_buf : ((value: TextPickerResult) => void) | undefined 5041 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 5042 { 5043 onChange_buf = valueDeserializer.readCallback_TextPickerResult_Void() 5044 } 5045 const onChange_result : ((value: TextPickerResult) => void) | undefined = onChange_buf 5046 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5047 let maskRect_buf : Rectangle | undefined 5048 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 5049 { 5050 maskRect_buf = valueDeserializer.readRectangle() 5051 } 5052 const maskRect_result : Rectangle | undefined = maskRect_buf 5053 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5054 let alignment_buf : DialogAlignment | undefined 5055 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 5056 { 5057 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 5058 } 5059 const alignment_result : DialogAlignment | undefined = alignment_buf 5060 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5061 let offset_buf : Offset | undefined 5062 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 5063 { 5064 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 5065 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 5066 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 5067 } 5068 const offset_result : Offset | undefined = offset_buf 5069 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5070 let backgroundColor_buf : ResourceColor | undefined 5071 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 5072 { 5073 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 5074 let backgroundColor_buf_ : Color | number | string | Resource | undefined 5075 if (backgroundColor_buf__selector == 0) { 5076 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 5077 } 5078 else if (backgroundColor_buf__selector == 1) { 5079 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 5080 } 5081 else if (backgroundColor_buf__selector == 2) { 5082 backgroundColor_buf_ = (valueDeserializer.readString() as string) 5083 } 5084 else if (backgroundColor_buf__selector == 3) { 5085 backgroundColor_buf_ = valueDeserializer.readResource() 5086 } 5087 else { 5088 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 5089 } 5090 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 5091 } 5092 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 5093 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5094 let backgroundBlurStyle_buf : BlurStyle | undefined 5095 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 5096 { 5097 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 5098 } 5099 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 5100 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5101 let onDidAppear_buf : (() => void) | undefined 5102 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 5103 { 5104 onDidAppear_buf = valueDeserializer.readCallback_Void() 5105 } 5106 const onDidAppear_result : (() => void) | undefined = onDidAppear_buf 5107 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5108 let onDidDisappear_buf : (() => void) | undefined 5109 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 5110 { 5111 onDidDisappear_buf = valueDeserializer.readCallback_Void() 5112 } 5113 const onDidDisappear_result : (() => void) | undefined = onDidDisappear_buf 5114 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5115 let onWillAppear_buf : (() => void) | undefined 5116 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 5117 { 5118 onWillAppear_buf = valueDeserializer.readCallback_Void() 5119 } 5120 const onWillAppear_result : (() => void) | undefined = onWillAppear_buf 5121 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5122 let onWillDisappear_buf : (() => void) | undefined 5123 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 5124 { 5125 onWillDisappear_buf = valueDeserializer.readCallback_Void() 5126 } 5127 const onWillDisappear_result : (() => void) | undefined = onWillDisappear_buf 5128 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5129 let shadow_buf : ShadowOptions | ShadowStyle | undefined 5130 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 5131 { 5132 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 5133 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 5134 if (shadow_buf__selector == 0) { 5135 shadow_buf_ = valueDeserializer.readShadowOptions() 5136 } 5137 else if (shadow_buf__selector == 1) { 5138 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 5139 } 5140 else { 5141 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 5142 } 5143 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 5144 } 5145 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 5146 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5147 let enableHoverMode_buf : boolean | undefined 5148 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 5149 { 5150 enableHoverMode_buf = valueDeserializer.readBoolean() 5151 } 5152 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 5153 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5154 let hoverModeArea_buf : HoverModeAreaType | undefined 5155 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 5156 { 5157 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 5158 } 5159 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 5160 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) 5161 return value 5162 } 5163 readCallback_Union_String_Array_String_Void(isSync: boolean = false): ((value: string | Array<string>) => void) { 5164 const _resource : CallbackResource = this.readCallbackResource() 5165 const _call : KPointer = this.readPointer() 5166 const _callSync : KPointer = this.readPointer() 5167 return (value: string | Array<string>):void => { 5168 const _argsSerializer : Serializer = Serializer.hold(); 5169 _argsSerializer.writeInt32(_resource.resourceId); 5170 _argsSerializer.writePointer(_call); 5171 _argsSerializer.writePointer(_callSync); 5172 let value_type : int32 = RuntimeType.UNDEFINED; 5173 value_type = runtimeType(value); 5174 if (RuntimeType.STRING == value_type) { 5175 _argsSerializer.writeInt8(0 as int32); 5176 const value_0 = value as string; 5177 _argsSerializer.writeString(value_0); 5178 } 5179 else if (RuntimeType.OBJECT == value_type) { 5180 _argsSerializer.writeInt8(1 as int32); 5181 const value_1 = value as Array<string>; 5182 _argsSerializer.writeInt32(value_1.length as int32); 5183 for (let i = 0; i < value_1.length; i++) { 5184 const value_1_element : string = value_1[i]; 5185 _argsSerializer.writeString(value_1_element); 5186 } 5187 } 5188 (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asBuffer(), _argsSerializer.length())); 5189 _argsSerializer.release(); 5190 return; } 5191 } 5192 readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array<number>) => void) { 5193 const _resource : CallbackResource = this.readCallbackResource() 5194 const _call : KPointer = this.readPointer() 5195 const _callSync : KPointer = this.readPointer() 5196 return (selected: number | Array<number>):void => { 5197 const _argsSerializer : Serializer = Serializer.hold(); 5198 _argsSerializer.writeInt32(_resource.resourceId); 5199 _argsSerializer.writePointer(_call); 5200 _argsSerializer.writePointer(_callSync); 5201 let selected_type : int32 = RuntimeType.UNDEFINED; 5202 selected_type = runtimeType(selected); 5203 if (RuntimeType.NUMBER == selected_type) { 5204 _argsSerializer.writeInt8(0 as int32); 5205 const selected_0 = selected as number; 5206 _argsSerializer.writeNumber(selected_0); 5207 } 5208 else if (RuntimeType.OBJECT == selected_type) { 5209 _argsSerializer.writeInt8(1 as int32); 5210 const selected_1 = selected as Array<number>; 5211 _argsSerializer.writeInt32(selected_1.length as int32); 5212 for (let i = 0; i < selected_1.length; i++) { 5213 const selected_1_element : number = selected_1[i]; 5214 _argsSerializer.writeNumber(selected_1_element); 5215 } 5216 } 5217 (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asBuffer(), _argsSerializer.length())); 5218 _argsSerializer.release(); 5219 return; } 5220 } 5221 readDividerOptions(): DividerOptions { 5222 let valueDeserializer : Deserializer = this 5223 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5224 let strokeWidth_buf : Dimension | undefined 5225 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 5226 { 5227 strokeWidth_buf = (valueDeserializer.readLength() as Dimension) 5228 } 5229 const strokeWidth_result : Dimension | undefined = strokeWidth_buf 5230 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5231 let color_buf : ResourceColor | undefined 5232 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 5233 { 5234 const color_buf__selector : int32 = valueDeserializer.readInt8() 5235 let color_buf_ : Color | number | string | Resource | undefined 5236 if (color_buf__selector == 0) { 5237 color_buf_ = (valueDeserializer.readInt32() as Color) 5238 } 5239 else if (color_buf__selector == 1) { 5240 color_buf_ = (valueDeserializer.readNumber() as number) 5241 } 5242 else if (color_buf__selector == 2) { 5243 color_buf_ = (valueDeserializer.readString() as string) 5244 } 5245 else if (color_buf__selector == 3) { 5246 color_buf_ = valueDeserializer.readResource() 5247 } 5248 else { 5249 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 5250 } 5251 color_buf = (color_buf_ as Color | number | string | Resource) 5252 } 5253 const color_result : ResourceColor | undefined = color_buf 5254 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5255 let startMargin_buf : Dimension | undefined 5256 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 5257 { 5258 startMargin_buf = (valueDeserializer.readLength() as Dimension) 5259 } 5260 const startMargin_result : Dimension | undefined = startMargin_buf 5261 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5262 let endMargin_buf : Dimension | undefined 5263 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 5264 { 5265 endMargin_buf = (valueDeserializer.readLength() as Dimension) 5266 } 5267 const endMargin_result : Dimension | undefined = endMargin_buf 5268 let value : DividerOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerOptions) 5269 return value 5270 } 5271 readCallback_ResourceStr_Void(isSync: boolean = false): ((value: ResourceStr) => void) { 5272 const _resource : CallbackResource = this.readCallbackResource() 5273 const _call : KPointer = this.readPointer() 5274 const _callSync : KPointer = this.readPointer() 5275 return (value: ResourceStr):void => { 5276 const _argsSerializer : Serializer = Serializer.hold(); 5277 _argsSerializer.writeInt32(_resource.resourceId); 5278 _argsSerializer.writePointer(_call); 5279 _argsSerializer.writePointer(_callSync); 5280 let value_type : int32 = RuntimeType.UNDEFINED; 5281 value_type = runtimeType(value); 5282 if (RuntimeType.STRING == value_type) { 5283 _argsSerializer.writeInt8(0 as int32); 5284 const value_0 = value as string; 5285 _argsSerializer.writeString(value_0); 5286 } 5287 else if (RuntimeType.OBJECT == value_type) { 5288 _argsSerializer.writeInt8(1 as int32); 5289 const value_1 = value as Resource; 5290 _argsSerializer.writeResource(value_1); 5291 } 5292 (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asBuffer(), _argsSerializer.length())); 5293 _argsSerializer.release(); 5294 return; } 5295 } 5296 readTextInputAttribute(): TextInputAttribute { 5297 throw new Error("Interface with functions is not supported") 5298 } 5299 readInputCounterOptions(): InputCounterOptions { 5300 let valueDeserializer : Deserializer = this 5301 const thresholdPercentage_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5302 let thresholdPercentage_buf : number | undefined 5303 if ((RuntimeType.UNDEFINED) != (thresholdPercentage_buf_runtimeType)) 5304 { 5305 thresholdPercentage_buf = (valueDeserializer.readNumber() as number) 5306 } 5307 const thresholdPercentage_result : number | undefined = thresholdPercentage_buf 5308 const highlightBorder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5309 let highlightBorder_buf : boolean | undefined 5310 if ((RuntimeType.UNDEFINED) != (highlightBorder_buf_runtimeType)) 5311 { 5312 highlightBorder_buf = valueDeserializer.readBoolean() 5313 } 5314 const highlightBorder_result : boolean | undefined = highlightBorder_buf 5315 let value : InputCounterOptions = ({thresholdPercentage: thresholdPercentage_result, highlightBorder: highlightBorder_result} as InputCounterOptions) 5316 return value 5317 } 5318 readKeyboardOptions(): KeyboardOptions { 5319 let valueDeserializer : Deserializer = this 5320 const supportAvoidance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5321 let supportAvoidance_buf : boolean | undefined 5322 if ((RuntimeType.UNDEFINED) != (supportAvoidance_buf_runtimeType)) 5323 { 5324 supportAvoidance_buf = valueDeserializer.readBoolean() 5325 } 5326 const supportAvoidance_result : boolean | undefined = supportAvoidance_buf 5327 let value : KeyboardOptions = ({supportAvoidance: supportAvoidance_result} as KeyboardOptions) 5328 return value 5329 } 5330 readUnderlineColor(): UnderlineColor { 5331 let valueDeserializer : Deserializer = this 5332 const typing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5333 let typing_buf : ResourceColor | undefined 5334 if ((RuntimeType.UNDEFINED) != (typing_buf_runtimeType)) 5335 { 5336 const typing_buf__selector : int32 = valueDeserializer.readInt8() 5337 let typing_buf_ : Color | number | string | Resource | undefined 5338 if (typing_buf__selector == 0) { 5339 typing_buf_ = (valueDeserializer.readInt32() as Color) 5340 } 5341 else if (typing_buf__selector == 1) { 5342 typing_buf_ = (valueDeserializer.readNumber() as number) 5343 } 5344 else if (typing_buf__selector == 2) { 5345 typing_buf_ = (valueDeserializer.readString() as string) 5346 } 5347 else if (typing_buf__selector == 3) { 5348 typing_buf_ = valueDeserializer.readResource() 5349 } 5350 else { 5351 throw new Error("One of the branches for typing_buf_ has to be chosen through deserialisation.") 5352 } 5353 typing_buf = (typing_buf_ as Color | number | string | Resource) 5354 } 5355 const typing_result : ResourceColor | undefined = typing_buf 5356 const normal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5357 let normal_buf : ResourceColor | undefined 5358 if ((RuntimeType.UNDEFINED) != (normal_buf_runtimeType)) 5359 { 5360 const normal_buf__selector : int32 = valueDeserializer.readInt8() 5361 let normal_buf_ : Color | number | string | Resource | undefined 5362 if (normal_buf__selector == 0) { 5363 normal_buf_ = (valueDeserializer.readInt32() as Color) 5364 } 5365 else if (normal_buf__selector == 1) { 5366 normal_buf_ = (valueDeserializer.readNumber() as number) 5367 } 5368 else if (normal_buf__selector == 2) { 5369 normal_buf_ = (valueDeserializer.readString() as string) 5370 } 5371 else if (normal_buf__selector == 3) { 5372 normal_buf_ = valueDeserializer.readResource() 5373 } 5374 else { 5375 throw new Error("One of the branches for normal_buf_ has to be chosen through deserialisation.") 5376 } 5377 normal_buf = (normal_buf_ as Color | number | string | Resource) 5378 } 5379 const normal_result : ResourceColor | undefined = normal_buf 5380 const error_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5381 let error_buf : ResourceColor | undefined 5382 if ((RuntimeType.UNDEFINED) != (error_buf_runtimeType)) 5383 { 5384 const error_buf__selector : int32 = valueDeserializer.readInt8() 5385 let error_buf_ : Color | number | string | Resource | undefined 5386 if (error_buf__selector == 0) { 5387 error_buf_ = (valueDeserializer.readInt32() as Color) 5388 } 5389 else if (error_buf__selector == 1) { 5390 error_buf_ = (valueDeserializer.readNumber() as number) 5391 } 5392 else if (error_buf__selector == 2) { 5393 error_buf_ = (valueDeserializer.readString() as string) 5394 } 5395 else if (error_buf__selector == 3) { 5396 error_buf_ = valueDeserializer.readResource() 5397 } 5398 else { 5399 throw new Error("One of the branches for error_buf_ has to be chosen through deserialisation.") 5400 } 5401 error_buf = (error_buf_ as Color | number | string | Resource) 5402 } 5403 const error_result : ResourceColor | undefined = error_buf 5404 const disable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5405 let disable_buf : ResourceColor | undefined 5406 if ((RuntimeType.UNDEFINED) != (disable_buf_runtimeType)) 5407 { 5408 const disable_buf__selector : int32 = valueDeserializer.readInt8() 5409 let disable_buf_ : Color | number | string | Resource | undefined 5410 if (disable_buf__selector == 0) { 5411 disable_buf_ = (valueDeserializer.readInt32() as Color) 5412 } 5413 else if (disable_buf__selector == 1) { 5414 disable_buf_ = (valueDeserializer.readNumber() as number) 5415 } 5416 else if (disable_buf__selector == 2) { 5417 disable_buf_ = (valueDeserializer.readString() as string) 5418 } 5419 else if (disable_buf__selector == 3) { 5420 disable_buf_ = valueDeserializer.readResource() 5421 } 5422 else { 5423 throw new Error("One of the branches for disable_buf_ has to be chosen through deserialisation.") 5424 } 5425 disable_buf = (disable_buf_ as Color | number | string | Resource) 5426 } 5427 const disable_result : ResourceColor | undefined = disable_buf 5428 let value : UnderlineColor = ({typing: typing_result, normal: normal_result, error: error_result, disable: disable_result} as UnderlineColor) 5429 return value 5430 } 5431 readTextInputController(): TextInputController { 5432 let valueDeserializer : Deserializer = this 5433 let ptr : KPointer = valueDeserializer.readPointer() 5434 return TextInputControllerInternal.fromPtr(ptr) 5435 } 5436 readSelectionOptions(): SelectionOptions { 5437 let valueDeserializer : Deserializer = this 5438 const menuPolicy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5439 let menuPolicy_buf : MenuPolicy | undefined 5440 if ((RuntimeType.UNDEFINED) != (menuPolicy_buf_runtimeType)) 5441 { 5442 menuPolicy_buf = (valueDeserializer.readInt32() as MenuPolicy) 5443 } 5444 const menuPolicy_result : MenuPolicy | undefined = menuPolicy_buf 5445 let value : SelectionOptions = ({menuPolicy: menuPolicy_result} as SelectionOptions) 5446 return value 5447 } 5448 readTextRange(): TextRange { 5449 let valueDeserializer : Deserializer = this 5450 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5451 let start_buf : number | undefined 5452 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 5453 { 5454 start_buf = (valueDeserializer.readNumber() as number) 5455 } 5456 const start_result : number | undefined = start_buf 5457 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5458 let end_buf : number | undefined 5459 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 5460 { 5461 end_buf = (valueDeserializer.readNumber() as number) 5462 } 5463 const end_result : number | undefined = end_buf 5464 let value : TextRange = ({start: start_result, end: end_result} as TextRange) 5465 return value 5466 } 5467 readTextMenuItem(): TextMenuItem { 5468 let valueDeserializer : Deserializer = this 5469 const content_buf_selector : int32 = valueDeserializer.readInt8() 5470 let content_buf : string | Resource | undefined 5471 if (content_buf_selector == 0) { 5472 content_buf = (valueDeserializer.readString() as string) 5473 } 5474 else if (content_buf_selector == 1) { 5475 content_buf = valueDeserializer.readResource() 5476 } 5477 else { 5478 throw new Error("One of the branches for content_buf has to be chosen through deserialisation.") 5479 } 5480 const content_result : ResourceStr = (content_buf as string | Resource) 5481 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5482 let icon_buf : ResourceStr | undefined 5483 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 5484 { 5485 const icon_buf__selector : int32 = valueDeserializer.readInt8() 5486 let icon_buf_ : string | Resource | undefined 5487 if (icon_buf__selector == 0) { 5488 icon_buf_ = (valueDeserializer.readString() as string) 5489 } 5490 else if (icon_buf__selector == 1) { 5491 icon_buf_ = valueDeserializer.readResource() 5492 } 5493 else { 5494 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 5495 } 5496 icon_buf = (icon_buf_ as string | Resource) 5497 } 5498 const icon_result : ResourceStr | undefined = icon_buf 5499 const id_result : TextMenuItemId = (valueDeserializer.readTextMenuItemId() as TextMenuItemId) 5500 let value : TextMenuItem = ({content: content_result, icon: icon_result, id: id_result} as TextMenuItem) 5501 return value 5502 } 5503 readLineMetrics(): LineMetrics { 5504 let valueDeserializer : Deserializer = this 5505 const _LineMetricsStub_result : string = (valueDeserializer.readString() as string) 5506 let value : LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) 5507 return value 5508 } 5509 readPositionWithAffinity(): PositionWithAffinity { 5510 let valueDeserializer : Deserializer = this 5511 const position_result : number = (valueDeserializer.readNumber() as number) 5512 const affinity_result : Affinity = (valueDeserializer.readInt32() as Affinity) 5513 let value : PositionWithAffinity = ({position: position_result, affinity: affinity_result} as PositionWithAffinity) 5514 return value 5515 } 5516 readMutableStyledString(): MutableStyledString { 5517 let valueDeserializer : Deserializer = this 5518 let ptr : KPointer = valueDeserializer.readPointer() 5519 return MutableStyledStringInternal.fromPtr(ptr) 5520 } 5521 readPreviewText(): PreviewText { 5522 let valueDeserializer : Deserializer = this 5523 const offset_result : number = (valueDeserializer.readNumber() as number) 5524 const value_result : string = (valueDeserializer.readString() as string) 5525 let value : PreviewText = ({offset: offset_result, value: value_result} as PreviewText) 5526 return value 5527 } 5528 readLayoutManager(): LayoutManager { 5529 let valueDeserializer : Deserializer = this 5530 let ptr : KPointer = valueDeserializer.readPointer() 5531 return LayoutManagerInternal.fromPtr(ptr) 5532 } 5533 readTextClockController(): TextClockController { 5534 let valueDeserializer : Deserializer = this 5535 let ptr : KPointer = valueDeserializer.readPointer() 5536 return TextClockControllerInternal.fromPtr(ptr) 5537 } 5538 readTextAreaAttribute(): TextAreaAttribute { 5539 throw new Error("Interface with functions is not supported") 5540 } 5541 readTextAreaController(): TextAreaController { 5542 let valueDeserializer : Deserializer = this 5543 let ptr : KPointer = valueDeserializer.readPointer() 5544 return TextAreaControllerInternal.fromPtr(ptr) 5545 } 5546 readTextAttribute(): TextAttribute { 5547 throw new Error("Interface with functions is not supported") 5548 } 5549 readSelectionMenuOptions(): SelectionMenuOptions { 5550 let valueDeserializer : Deserializer = this 5551 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5552 let onAppear_buf : MenuOnAppearCallback | undefined 5553 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 5554 { 5555 onAppear_buf = valueDeserializer.readMenuOnAppearCallback() 5556 } 5557 const onAppear_result : MenuOnAppearCallback | undefined = onAppear_buf 5558 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5559 let onDisappear_buf : (() => void) | undefined 5560 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 5561 { 5562 onDisappear_buf = valueDeserializer.readCallback_Void() 5563 } 5564 const onDisappear_result : (() => void) | undefined = onDisappear_buf 5565 const menuType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5566 let menuType_buf : MenuType | undefined 5567 if ((RuntimeType.UNDEFINED) != (menuType_buf_runtimeType)) 5568 { 5569 menuType_buf = (valueDeserializer.readInt32() as MenuType) 5570 } 5571 const menuType_result : MenuType | undefined = menuType_buf 5572 let value : SelectionMenuOptions = ({onAppear: onAppear_result, onDisappear: onDisappear_result, menuType: menuType_result} as SelectionMenuOptions) 5573 return value 5574 } 5575 readFontSettingOptions(): FontSettingOptions { 5576 let valueDeserializer : Deserializer = this 5577 const enableVariableFontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5578 let enableVariableFontWeight_buf : boolean | undefined 5579 if ((RuntimeType.UNDEFINED) != (enableVariableFontWeight_buf_runtimeType)) 5580 { 5581 enableVariableFontWeight_buf = valueDeserializer.readBoolean() 5582 } 5583 const enableVariableFontWeight_result : boolean | undefined = enableVariableFontWeight_buf 5584 let value : FontSettingOptions = ({enableVariableFontWeight: enableVariableFontWeight_result} as FontSettingOptions) 5585 return value 5586 } 5587 readTextController(): TextController { 5588 let valueDeserializer : Deserializer = this 5589 let ptr : KPointer = valueDeserializer.readPointer() 5590 return TextControllerInternal.fromPtr(ptr) 5591 } 5592 readBottomTabBarStyle(): BottomTabBarStyle { 5593 throw new Error("Can not deserialize builder class") 5594 } 5595 readSubTabBarStyle(): SubTabBarStyle { 5596 throw new Error("Can not deserialize builder class") 5597 } 5598 readTabBarOptions(): TabBarOptions { 5599 let valueDeserializer : Deserializer = this 5600 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5601 let icon_buf : string | Resource | undefined 5602 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 5603 { 5604 const icon_buf__selector : int32 = valueDeserializer.readInt8() 5605 let icon_buf_ : string | Resource | undefined 5606 if (icon_buf__selector == 0) { 5607 icon_buf_ = (valueDeserializer.readString() as string) 5608 } 5609 else if (icon_buf__selector == 1) { 5610 icon_buf_ = valueDeserializer.readResource() 5611 } 5612 else { 5613 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 5614 } 5615 icon_buf = (icon_buf_ as string | Resource) 5616 } 5617 const icon_result : string | Resource | undefined = icon_buf 5618 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5619 let text_buf : string | Resource | undefined 5620 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 5621 { 5622 const text_buf__selector : int32 = valueDeserializer.readInt8() 5623 let text_buf_ : string | Resource | undefined 5624 if (text_buf__selector == 0) { 5625 text_buf_ = (valueDeserializer.readString() as string) 5626 } 5627 else if (text_buf__selector == 1) { 5628 text_buf_ = valueDeserializer.readResource() 5629 } 5630 else { 5631 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 5632 } 5633 text_buf = (text_buf_ as string | Resource) 5634 } 5635 const text_result : string | Resource | undefined = text_buf 5636 let value : TabBarOptions = ({icon: icon_result, text: text_result} as TabBarOptions) 5637 return value 5638 } 5639 readTabsAttribute(): TabsAttribute { 5640 throw new Error("Interface with functions is not supported") 5641 } 5642 readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { 5643 let valueDeserializer : Deserializer = this 5644 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5645 let colorMode_buf : ThemeColorMode | undefined 5646 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 5647 { 5648 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 5649 } 5650 const colorMode_result : ThemeColorMode | undefined = colorMode_buf 5651 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5652 let adaptiveColor_buf : AdaptiveColor | undefined 5653 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 5654 { 5655 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 5656 } 5657 const adaptiveColor_result : AdaptiveColor | undefined = adaptiveColor_buf 5658 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5659 let scale_buf : number | undefined 5660 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 5661 { 5662 scale_buf = (valueDeserializer.readNumber() as number) 5663 } 5664 const scale_result : number | undefined = scale_buf 5665 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5666 let blurOptions_buf : BlurOptions | undefined 5667 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 5668 { 5669 blurOptions_buf = valueDeserializer.readBlurOptions() 5670 } 5671 const blurOptions_result : BlurOptions | undefined = blurOptions_buf 5672 const policy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5673 let policy_buf : BlurStyleActivePolicy | undefined 5674 if ((RuntimeType.UNDEFINED) != (policy_buf_runtimeType)) 5675 { 5676 policy_buf = (valueDeserializer.readInt32() as BlurStyleActivePolicy) 5677 } 5678 const policy_result : BlurStyleActivePolicy | undefined = policy_buf 5679 const inactiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5680 let inactiveColor_buf : ResourceColor | undefined 5681 if ((RuntimeType.UNDEFINED) != (inactiveColor_buf_runtimeType)) 5682 { 5683 const inactiveColor_buf__selector : int32 = valueDeserializer.readInt8() 5684 let inactiveColor_buf_ : Color | number | string | Resource | undefined 5685 if (inactiveColor_buf__selector == 0) { 5686 inactiveColor_buf_ = (valueDeserializer.readInt32() as Color) 5687 } 5688 else if (inactiveColor_buf__selector == 1) { 5689 inactiveColor_buf_ = (valueDeserializer.readNumber() as number) 5690 } 5691 else if (inactiveColor_buf__selector == 2) { 5692 inactiveColor_buf_ = (valueDeserializer.readString() as string) 5693 } 5694 else if (inactiveColor_buf__selector == 3) { 5695 inactiveColor_buf_ = valueDeserializer.readResource() 5696 } 5697 else { 5698 throw new Error("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation.") 5699 } 5700 inactiveColor_buf = (inactiveColor_buf_ as Color | number | string | Resource) 5701 } 5702 const inactiveColor_result : ResourceColor | undefined = inactiveColor_buf 5703 let value : BackgroundBlurStyleOptions = ({colorMode: colorMode_result, adaptiveColor: adaptiveColor_result, scale: scale_result, blurOptions: blurOptions_result, policy: policy_result, inactiveColor: inactiveColor_result} as BackgroundBlurStyleOptions) 5704 return value 5705 } 5706 readScrollableBarModeOptions(): ScrollableBarModeOptions { 5707 let valueDeserializer : Deserializer = this 5708 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5709 let margin_buf : Dimension | undefined 5710 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 5711 { 5712 margin_buf = (valueDeserializer.readLength() as Dimension) 5713 } 5714 const margin_result : Dimension | undefined = margin_buf 5715 const nonScrollableLayoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5716 let nonScrollableLayoutStyle_buf : LayoutStyle | undefined 5717 if ((RuntimeType.UNDEFINED) != (nonScrollableLayoutStyle_buf_runtimeType)) 5718 { 5719 nonScrollableLayoutStyle_buf = (valueDeserializer.readInt32() as LayoutStyle) 5720 } 5721 const nonScrollableLayoutStyle_result : LayoutStyle | undefined = nonScrollableLayoutStyle_buf 5722 let value : ScrollableBarModeOptions = ({margin: margin_result, nonScrollableLayoutStyle: nonScrollableLayoutStyle_result} as ScrollableBarModeOptions) 5723 return value 5724 } 5725 readTabContentAnimatedTransition(): TabContentAnimatedTransition { 5726 let valueDeserializer : Deserializer = this 5727 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5728 let timeout_buf : number | undefined 5729 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 5730 { 5731 timeout_buf = (valueDeserializer.readNumber() as number) 5732 } 5733 const timeout_result : number | undefined = timeout_buf 5734 const transition_result : ((parameter: TabContentTransitionProxy) => void) = valueDeserializer.readCallback_TabContentTransitionProxy_Void() 5735 let value : TabContentAnimatedTransition = ({timeout: timeout_result, transition: transition_result} as TabContentAnimatedTransition) 5736 return value 5737 } 5738 readTabsController(): TabsController { 5739 let valueDeserializer : Deserializer = this 5740 let ptr : KPointer = valueDeserializer.readPointer() 5741 return TabsControllerInternal.fromPtr(ptr) 5742 } 5743 readSymbolGlyphAttribute(): SymbolGlyphAttribute { 5744 throw new Error("Interface with functions is not supported") 5745 } 5746 readSymbolEffect(): SymbolEffect { 5747 let valueDeserializer : Deserializer = this 5748 let ptr : KPointer = valueDeserializer.readPointer() 5749 return SymbolEffectInternal.fromPtr(ptr) 5750 } 5751 readDigitIndicator(): DigitIndicator { 5752 throw new Error("Can not deserialize builder class") 5753 } 5754 readDotIndicator(): DotIndicator { 5755 throw new Error("Can not deserialize builder class") 5756 } 5757 readSwiperAttribute(): SwiperAttribute { 5758 throw new Error("Interface with functions is not supported") 5759 } 5760 readSwiperAutoFill(): SwiperAutoFill { 5761 let valueDeserializer : Deserializer = this 5762 const minSize_buf_selector : int32 = valueDeserializer.readInt8() 5763 let minSize_buf : string | number | undefined 5764 if (minSize_buf_selector == 0) { 5765 minSize_buf = (valueDeserializer.readString() as string) 5766 } 5767 else if (minSize_buf_selector == 1) { 5768 minSize_buf = (valueDeserializer.readNumber() as number) 5769 } 5770 else { 5771 throw new Error("One of the branches for minSize_buf has to be chosen through deserialisation.") 5772 } 5773 const minSize_result : VP = (minSize_buf as string | number) 5774 let value : SwiperAutoFill = ({minSize: minSize_result} as SwiperAutoFill) 5775 return value 5776 } 5777 readArrowStyle(): ArrowStyle { 5778 let valueDeserializer : Deserializer = this 5779 const showBackground_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5780 let showBackground_buf : boolean | undefined 5781 if ((RuntimeType.UNDEFINED) != (showBackground_buf_runtimeType)) 5782 { 5783 showBackground_buf = valueDeserializer.readBoolean() 5784 } 5785 const showBackground_result : boolean | undefined = showBackground_buf 5786 const isSidebarMiddle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5787 let isSidebarMiddle_buf : boolean | undefined 5788 if ((RuntimeType.UNDEFINED) != (isSidebarMiddle_buf_runtimeType)) 5789 { 5790 isSidebarMiddle_buf = valueDeserializer.readBoolean() 5791 } 5792 const isSidebarMiddle_result : boolean | undefined = isSidebarMiddle_buf 5793 const backgroundSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5794 let backgroundSize_buf : Length | undefined 5795 if ((RuntimeType.UNDEFINED) != (backgroundSize_buf_runtimeType)) 5796 { 5797 backgroundSize_buf = (valueDeserializer.readLength() as Length) 5798 } 5799 const backgroundSize_result : Length | undefined = backgroundSize_buf 5800 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5801 let backgroundColor_buf : ResourceColor | undefined 5802 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 5803 { 5804 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 5805 let backgroundColor_buf_ : Color | number | string | Resource | undefined 5806 if (backgroundColor_buf__selector == 0) { 5807 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 5808 } 5809 else if (backgroundColor_buf__selector == 1) { 5810 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 5811 } 5812 else if (backgroundColor_buf__selector == 2) { 5813 backgroundColor_buf_ = (valueDeserializer.readString() as string) 5814 } 5815 else if (backgroundColor_buf__selector == 3) { 5816 backgroundColor_buf_ = valueDeserializer.readResource() 5817 } 5818 else { 5819 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 5820 } 5821 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 5822 } 5823 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 5824 const arrowSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5825 let arrowSize_buf : Length | undefined 5826 if ((RuntimeType.UNDEFINED) != (arrowSize_buf_runtimeType)) 5827 { 5828 arrowSize_buf = (valueDeserializer.readLength() as Length) 5829 } 5830 const arrowSize_result : Length | undefined = arrowSize_buf 5831 const arrowColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5832 let arrowColor_buf : ResourceColor | undefined 5833 if ((RuntimeType.UNDEFINED) != (arrowColor_buf_runtimeType)) 5834 { 5835 const arrowColor_buf__selector : int32 = valueDeserializer.readInt8() 5836 let arrowColor_buf_ : Color | number | string | Resource | undefined 5837 if (arrowColor_buf__selector == 0) { 5838 arrowColor_buf_ = (valueDeserializer.readInt32() as Color) 5839 } 5840 else if (arrowColor_buf__selector == 1) { 5841 arrowColor_buf_ = (valueDeserializer.readNumber() as number) 5842 } 5843 else if (arrowColor_buf__selector == 2) { 5844 arrowColor_buf_ = (valueDeserializer.readString() as string) 5845 } 5846 else if (arrowColor_buf__selector == 3) { 5847 arrowColor_buf_ = valueDeserializer.readResource() 5848 } 5849 else { 5850 throw new Error("One of the branches for arrowColor_buf_ has to be chosen through deserialisation.") 5851 } 5852 arrowColor_buf = (arrowColor_buf_ as Color | number | string | Resource) 5853 } 5854 const arrowColor_result : ResourceColor | undefined = arrowColor_buf 5855 let value : ArrowStyle = ({showBackground: showBackground_result, isSidebarMiddle: isSidebarMiddle_result, backgroundSize: backgroundSize_result, backgroundColor: backgroundColor_result, arrowSize: arrowSize_result, arrowColor: arrowColor_result} as ArrowStyle) 5856 return value 5857 } 5858 readCallback_SwiperContentTransitionProxy_Void(isSync: boolean = false): ((parameter: SwiperContentTransitionProxy) => void) { 5859 const _resource : CallbackResource = this.readCallbackResource() 5860 const _call : KPointer = this.readPointer() 5861 const _callSync : KPointer = this.readPointer() 5862 return (parameter: SwiperContentTransitionProxy):void => { 5863 const _argsSerializer : Serializer = Serializer.hold(); 5864 _argsSerializer.writeInt32(_resource.resourceId); 5865 _argsSerializer.writePointer(_call); 5866 _argsSerializer.writePointer(_callSync); 5867 _argsSerializer.writeSwiperContentTransitionProxy(parameter); 5868 (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asBuffer(), _argsSerializer.length())); 5869 _argsSerializer.release(); 5870 return; } 5871 } 5872 readSliderAttribute(): SliderAttribute { 5873 throw new Error("Interface with functions is not supported") 5874 } 5875 readShapeAttribute(): ShapeAttribute { 5876 throw new Error("Interface with functions is not supported") 5877 } 5878 readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { 5879 const _resource : CallbackResource = this.readCallbackResource() 5880 const _call : KPointer = this.readPointer() 5881 const _callSync : KPointer = this.readPointer() 5882 return (selected: number | Resource):void => { 5883 const _argsSerializer : Serializer = Serializer.hold(); 5884 _argsSerializer.writeInt32(_resource.resourceId); 5885 _argsSerializer.writePointer(_call); 5886 _argsSerializer.writePointer(_callSync); 5887 let selected_type : int32 = RuntimeType.UNDEFINED; 5888 selected_type = runtimeType(selected); 5889 if (RuntimeType.NUMBER == selected_type) { 5890 _argsSerializer.writeInt8(0 as int32); 5891 const selected_0 = selected as number; 5892 _argsSerializer.writeNumber(selected_0); 5893 } 5894 else if (RuntimeType.OBJECT == selected_type) { 5895 _argsSerializer.writeInt8(1 as int32); 5896 const selected_1 = selected as Resource; 5897 _argsSerializer.writeResource(selected_1); 5898 } 5899 (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asBuffer(), _argsSerializer.length())); 5900 _argsSerializer.release(); 5901 return; } 5902 } 5903 readSelectAttribute(): SelectAttribute { 5904 throw new Error("Interface with functions is not supported") 5905 } 5906 readLocalizedEdges(): LocalizedEdges { 5907 let valueDeserializer : Deserializer = this 5908 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5909 let top_buf : LengthMetrics | undefined 5910 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 5911 { 5912 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5913 } 5914 const top_result : LengthMetrics | undefined = top_buf 5915 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5916 let start_buf : LengthMetrics | undefined 5917 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 5918 { 5919 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5920 } 5921 const start_result : LengthMetrics | undefined = start_buf 5922 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5923 let bottom_buf : LengthMetrics | undefined 5924 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 5925 { 5926 bottom_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5927 } 5928 const bottom_result : LengthMetrics | undefined = bottom_buf 5929 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5930 let end_buf : LengthMetrics | undefined 5931 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 5932 { 5933 end_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 5934 } 5935 const end_result : LengthMetrics | undefined = end_buf 5936 let value : LocalizedEdges = ({top: top_result, start: start_result, bottom: bottom_result, end: end_result} as LocalizedEdges) 5937 return value 5938 } 5939 readEdges(): Edges { 5940 let valueDeserializer : Deserializer = this 5941 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5942 let top_buf : Dimension | undefined 5943 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 5944 { 5945 top_buf = (valueDeserializer.readLength() as Dimension) 5946 } 5947 const top_result : Dimension | undefined = top_buf 5948 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5949 let left_buf : Dimension | undefined 5950 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 5951 { 5952 left_buf = (valueDeserializer.readLength() as Dimension) 5953 } 5954 const left_result : Dimension | undefined = left_buf 5955 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5956 let bottom_buf : Dimension | undefined 5957 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 5958 { 5959 bottom_buf = (valueDeserializer.readLength() as Dimension) 5960 } 5961 const bottom_result : Dimension | undefined = bottom_buf 5962 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5963 let right_buf : Dimension | undefined 5964 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 5965 { 5966 right_buf = (valueDeserializer.readLength() as Dimension) 5967 } 5968 const right_result : Dimension | undefined = right_buf 5969 let value : Edges = ({top: top_result, left: left_result, bottom: bottom_result, right: right_result} as Edges) 5970 return value 5971 } 5972 readSearchAttribute(): SearchAttribute { 5973 throw new Error("Interface with functions is not supported") 5974 } 5975 readSearchButtonOptions(): SearchButtonOptions { 5976 let valueDeserializer : Deserializer = this 5977 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5978 let fontSize_buf : Length | undefined 5979 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 5980 { 5981 fontSize_buf = (valueDeserializer.readLength() as Length) 5982 } 5983 const fontSize_result : Length | undefined = fontSize_buf 5984 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 5985 let fontColor_buf : ResourceColor | undefined 5986 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 5987 { 5988 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 5989 let fontColor_buf_ : Color | number | string | Resource | undefined 5990 if (fontColor_buf__selector == 0) { 5991 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 5992 } 5993 else if (fontColor_buf__selector == 1) { 5994 fontColor_buf_ = (valueDeserializer.readNumber() as number) 5995 } 5996 else if (fontColor_buf__selector == 2) { 5997 fontColor_buf_ = (valueDeserializer.readString() as string) 5998 } 5999 else if (fontColor_buf__selector == 3) { 6000 fontColor_buf_ = valueDeserializer.readResource() 6001 } 6002 else { 6003 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6004 } 6005 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6006 } 6007 const fontColor_result : ResourceColor | undefined = fontColor_buf 6008 const autoDisable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6009 let autoDisable_buf : boolean | undefined 6010 if ((RuntimeType.UNDEFINED) != (autoDisable_buf_runtimeType)) 6011 { 6012 autoDisable_buf = valueDeserializer.readBoolean() 6013 } 6014 const autoDisable_result : boolean | undefined = autoDisable_buf 6015 let value : SearchButtonOptions = ({fontSize: fontSize_result, fontColor: fontColor_result, autoDisable: autoDisable_result} as SearchButtonOptions) 6016 return value 6017 } 6018 readCancelButtonSymbolOptions(): CancelButtonSymbolOptions { 6019 let valueDeserializer : Deserializer = this 6020 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6021 let style_buf : CancelButtonStyle | undefined 6022 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6023 { 6024 style_buf = (valueDeserializer.readInt32() as CancelButtonStyle) 6025 } 6026 const style_result : CancelButtonStyle | undefined = style_buf 6027 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6028 let icon_buf : SymbolGlyphModifier | undefined 6029 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 6030 { 6031 icon_buf = valueDeserializer.readSymbolGlyphModifier() 6032 } 6033 const icon_result : SymbolGlyphModifier | undefined = icon_buf 6034 let value : CancelButtonSymbolOptions = ({style: style_result, icon: icon_result} as CancelButtonSymbolOptions) 6035 return value 6036 } 6037 readCancelButtonOptions(): CancelButtonOptions { 6038 let valueDeserializer : Deserializer = this 6039 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6040 let style_buf : CancelButtonStyle | undefined 6041 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6042 { 6043 style_buf = (valueDeserializer.readInt32() as CancelButtonStyle) 6044 } 6045 const style_result : CancelButtonStyle | undefined = style_buf 6046 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6047 let icon_buf : IconOptions | undefined 6048 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 6049 { 6050 icon_buf = valueDeserializer.readIconOptions() 6051 } 6052 const icon_result : IconOptions | undefined = icon_buf 6053 let value : CancelButtonOptions = ({style: style_result, icon: icon_result} as CancelButtonOptions) 6054 return value 6055 } 6056 readSearchController(): SearchController { 6057 let valueDeserializer : Deserializer = this 6058 let ptr : KPointer = valueDeserializer.readPointer() 6059 return SearchControllerInternal.fromPtr(ptr) 6060 } 6061 readScrollAttribute(): ScrollAttribute { 6062 throw new Error("Interface with functions is not supported") 6063 } 6064 readEdgeEffectOptions(): EdgeEffectOptions { 6065 let valueDeserializer : Deserializer = this 6066 const alwaysEnabled_result : boolean = valueDeserializer.readBoolean() 6067 let value : EdgeEffectOptions = ({alwaysEnabled: alwaysEnabled_result} as EdgeEffectOptions) 6068 return value 6069 } 6070 readScrollOnWillScrollCallback(isSync: boolean = false): ScrollOnWillScrollCallback { 6071 const _resource : CallbackResource = this.readCallbackResource() 6072 const _call : KPointer = this.readPointer() 6073 const _callSync : KPointer = this.readPointer() 6074 return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource):OffsetResult => { 6075 const _argsSerializer : Serializer = Serializer.hold(); 6076 _argsSerializer.writeInt32(_resource.resourceId); 6077 _argsSerializer.writePointer(_call); 6078 _argsSerializer.writePointer(_callSync); 6079 _argsSerializer.writeNumber(xOffset); 6080 _argsSerializer.writeNumber(yOffset); 6081 _argsSerializer.writeInt32(scrollState.valueOf()); 6082 _argsSerializer.writeInt32(scrollSource.valueOf()); 6083 let _continuationValue : OffsetResult | undefined; 6084 const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } 6085 _argsSerializer.holdAndWriteCallback(_continuationCallback); 6086 (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asBuffer(), _argsSerializer.length())); 6087 _argsSerializer.release(); 6088 return (_continuationValue as OffsetResult); } 6089 } 6090 readOnWillScrollCallback(isSync: boolean = false): OnWillScrollCallback { 6091 const _resource: CallbackResource = this.readCallbackResource() 6092 const _call: KPointer = this.readPointer() 6093 const _callSync: KPointer = this.readPointer() 6094 return (scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { const _argsSerializer: Serializer = Serializer.hold(); 6095 _argsSerializer.writeInt32(_resource.resourceId); 6096 _argsSerializer.writePointer(_call); 6097 _argsSerializer.writePointer(_callSync); 6098 _argsSerializer.writeNumber(scrollOffset); 6099 _argsSerializer.writeInt32((scrollState.valueOf() as int32)); 6100 _argsSerializer.writeInt32((scrollSource.valueOf() as int32)); 6101 let _continuationValue: ScrollResult | undefined|undefined ; 6102 const _continuationCallback: ((value: ScrollResult) => void) = (value: ScrollResult): void => { _continuationValue = value; } 6103 _argsSerializer.holdAndWriteCallback(_continuationCallback); 6104 (isSync) ? (InteropNativeModule._CallCallbackSync(-150015401, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-150015401, _argsSerializer.asBuffer(), _argsSerializer.length())); 6105 _argsSerializer.release(); 6106 return (_continuationValue as ScrollResult); } 6107 } 6108 readRectResult(): RectResult { 6109 let valueDeserializer : Deserializer = this 6110 const x_result : number = (valueDeserializer.readNumber() as number) 6111 const y_result : number = (valueDeserializer.readNumber() as number) 6112 const width_result : number = (valueDeserializer.readNumber() as number) 6113 const height_result : number = (valueDeserializer.readNumber() as number) 6114 let value : RectResult = ({x: x_result, y: y_result, width: width_result, height: height_result} as RectResult) 6115 return value 6116 } 6117 readScrollToIndexOptions(): ScrollToIndexOptions { 6118 let valueDeserializer : Deserializer = this 6119 const extraOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6120 let extraOffset_buf : LengthMetrics | undefined 6121 if ((RuntimeType.UNDEFINED) != (extraOffset_buf_runtimeType)) 6122 { 6123 extraOffset_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 6124 } 6125 const extraOffset_result : LengthMetrics | undefined = extraOffset_buf 6126 let value : ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) 6127 return value 6128 } 6129 readOffsetResult(): OffsetResult { 6130 let valueDeserializer : Deserializer = this 6131 const xOffset_result : number = (valueDeserializer.readNumber() as number) 6132 const yOffset_result : number = (valueDeserializer.readNumber() as number) 6133 let value : OffsetResult = ({xOffset: xOffset_result, yOffset: yOffset_result} as OffsetResult) 6134 return value 6135 } 6136 readScrollResult(): ScrollResult { 6137 let valueDeserializer: Deserializer = this 6138 const offsetRemain_result: number = (valueDeserializer.readNumber() as number) 6139 let value: ScrollResult = ({offsetRemain: offsetRemain_result} as ScrollResult) 6140 return value 6141 } 6142 readScrollPageOptions(): ScrollPageOptions { 6143 let valueDeserializer : Deserializer = this 6144 const next_result : boolean = valueDeserializer.readBoolean() 6145 const animation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6146 let animation_buf : boolean | undefined 6147 if ((RuntimeType.UNDEFINED) != (animation_buf_runtimeType)) 6148 { 6149 animation_buf = valueDeserializer.readBoolean() 6150 } 6151 const animation_result : boolean | undefined = animation_buf 6152 let value : ScrollPageOptions = ({next: next_result, animation: animation_result} as ScrollPageOptions) 6153 return value 6154 } 6155 readScrollEdgeOptions(): ScrollEdgeOptions { 6156 let valueDeserializer : Deserializer = this 6157 const velocity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6158 let velocity_buf : number | undefined 6159 if ((RuntimeType.UNDEFINED) != (velocity_buf_runtimeType)) 6160 { 6161 velocity_buf = (valueDeserializer.readNumber() as number) 6162 } 6163 const velocity_result : number | undefined = velocity_buf 6164 let value : ScrollEdgeOptions = ({velocity: velocity_result} as ScrollEdgeOptions) 6165 return value 6166 } 6167 readScrollOptions(): ScrollOptions { 6168 let valueDeserializer : Deserializer = this 6169 const xOffset_buf_selector : int32 = valueDeserializer.readInt8() 6170 let xOffset_buf : number | string | undefined 6171 if (xOffset_buf_selector == 0) { 6172 xOffset_buf = (valueDeserializer.readNumber() as number) 6173 } 6174 else if (xOffset_buf_selector == 1) { 6175 xOffset_buf = (valueDeserializer.readString() as string) 6176 } 6177 else { 6178 throw new Error("One of the branches for xOffset_buf has to be chosen through deserialisation.") 6179 } 6180 const xOffset_result : number | string = (xOffset_buf as number | string) 6181 const yOffset_buf_selector : int32 = valueDeserializer.readInt8() 6182 let yOffset_buf : number | string | undefined 6183 if (yOffset_buf_selector == 0) { 6184 yOffset_buf = (valueDeserializer.readNumber() as number) 6185 } 6186 else if (yOffset_buf_selector == 1) { 6187 yOffset_buf = (valueDeserializer.readString() as string) 6188 } 6189 else { 6190 throw new Error("One of the branches for yOffset_buf has to be chosen through deserialisation.") 6191 } 6192 const yOffset_result : number | string = (yOffset_buf as number | string) 6193 const animation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6194 let animation_buf : ScrollAnimationOptions | boolean | undefined 6195 if ((RuntimeType.UNDEFINED) != (animation_buf_runtimeType)) 6196 { 6197 const animation_buf__selector : int32 = valueDeserializer.readInt8() 6198 let animation_buf_ : ScrollAnimationOptions | boolean | undefined 6199 if (animation_buf__selector == 0) { 6200 animation_buf_ = valueDeserializer.readScrollAnimationOptions() 6201 } 6202 else if (animation_buf__selector == 1) { 6203 animation_buf_ = valueDeserializer.readBoolean() 6204 } 6205 else { 6206 throw new Error("One of the branches for animation_buf_ has to be chosen through deserialisation.") 6207 } 6208 animation_buf = (animation_buf_ as ScrollAnimationOptions | boolean) 6209 } 6210 const animation_result : ScrollAnimationOptions | boolean | undefined = animation_buf 6211 let value : ScrollOptions = ({xOffset: xOffset_result, yOffset: yOffset_result, animation: animation_result} as ScrollOptions) 6212 return value 6213 } 6214 readRichEditorStyledStringController(): RichEditorStyledStringController { 6215 let valueDeserializer : Deserializer = this 6216 let ptr : KPointer = valueDeserializer.readPointer() 6217 return RichEditorStyledStringControllerInternal.fromPtr(ptr) 6218 } 6219 readRichEditorController(): RichEditorController { 6220 let valueDeserializer : Deserializer = this 6221 let ptr : KPointer = valueDeserializer.readPointer() 6222 return RichEditorControllerInternal.fromPtr(ptr) 6223 } 6224 readRichEditorAttribute(): RichEditorAttribute { 6225 throw new Error("Interface with functions is not supported") 6226 } 6227 readPlaceholderStyle(): PlaceholderStyle { 6228 let valueDeserializer : Deserializer = this 6229 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6230 let font_buf : Font | undefined 6231 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 6232 { 6233 font_buf = valueDeserializer.readFont() 6234 } 6235 const font_result : Font | undefined = font_buf 6236 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6237 let fontColor_buf : ResourceColor | undefined 6238 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 6239 { 6240 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 6241 let fontColor_buf_ : Color | number | string | Resource | undefined 6242 if (fontColor_buf__selector == 0) { 6243 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 6244 } 6245 else if (fontColor_buf__selector == 1) { 6246 fontColor_buf_ = (valueDeserializer.readNumber() as number) 6247 } 6248 else if (fontColor_buf__selector == 2) { 6249 fontColor_buf_ = (valueDeserializer.readString() as string) 6250 } 6251 else if (fontColor_buf__selector == 3) { 6252 fontColor_buf_ = valueDeserializer.readResource() 6253 } 6254 else { 6255 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6256 } 6257 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6258 } 6259 const fontColor_result : ResourceColor | undefined = fontColor_buf 6260 let value : PlaceholderStyle = ({font: font_result, fontColor: fontColor_result} as PlaceholderStyle) 6261 return value 6262 } 6263 readRichEditorImageSpanResult(): RichEditorImageSpanResult { 6264 let valueDeserializer : Deserializer = this 6265 const spanPosition_result : RichEditorSpanPosition = valueDeserializer.readRichEditorSpanPosition() 6266 const valuePixelMap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6267 let valuePixelMap_buf : PixelMap | undefined 6268 if ((RuntimeType.UNDEFINED) != (valuePixelMap_buf_runtimeType)) 6269 { 6270 valuePixelMap_buf = (valueDeserializer.readPixelMap() as PixelMap) 6271 } 6272 const valuePixelMap_result : PixelMap | undefined = valuePixelMap_buf 6273 const valueResourceStr_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6274 let valueResourceStr_buf : ResourceStr | undefined 6275 if ((RuntimeType.UNDEFINED) != (valueResourceStr_buf_runtimeType)) 6276 { 6277 const valueResourceStr_buf__selector : int32 = valueDeserializer.readInt8() 6278 let valueResourceStr_buf_ : string | Resource | undefined 6279 if (valueResourceStr_buf__selector == 0) { 6280 valueResourceStr_buf_ = (valueDeserializer.readString() as string) 6281 } 6282 else if (valueResourceStr_buf__selector == 1) { 6283 valueResourceStr_buf_ = valueDeserializer.readResource() 6284 } 6285 else { 6286 throw new Error("One of the branches for valueResourceStr_buf_ has to be chosen through deserialisation.") 6287 } 6288 valueResourceStr_buf = (valueResourceStr_buf_ as string | Resource) 6289 } 6290 const valueResourceStr_result : ResourceStr | undefined = valueResourceStr_buf 6291 const imageStyle_result : RichEditorImageSpanStyleResult = valueDeserializer.readRichEditorImageSpanStyleResult() 6292 const offsetInSpan_buf_value0 : number = (valueDeserializer.readNumber() as number) 6293 const offsetInSpan_buf_value1 : number = (valueDeserializer.readNumber() as number) 6294 const offsetInSpan_result : [ number, number ] = ([offsetInSpan_buf_value0, offsetInSpan_buf_value1] as [ number, number ]) 6295 let value : RichEditorImageSpanResult = ({spanPosition: spanPosition_result, valuePixelMap: valuePixelMap_result, valueResourceStr: valueResourceStr_result, imageStyle: imageStyle_result, offsetInSpan: offsetInSpan_result} as RichEditorImageSpanResult) 6296 return value 6297 } 6298 readRichEditorTextSpanResult(): RichEditorTextSpanResult { 6299 let valueDeserializer : Deserializer = this 6300 const spanPosition_result : RichEditorSpanPosition = valueDeserializer.readRichEditorSpanPosition() 6301 const value_result : string = (valueDeserializer.readString() as string) 6302 const textStyle_result : RichEditorTextStyleResult = valueDeserializer.readRichEditorTextStyleResult() 6303 const offsetInSpan_buf_value0 : number = (valueDeserializer.readNumber() as number) 6304 const offsetInSpan_buf_value1 : number = (valueDeserializer.readNumber() as number) 6305 const offsetInSpan_result : [ number, number ] = ([offsetInSpan_buf_value0, offsetInSpan_buf_value1] as [ number, number ]) 6306 const symbolSpanStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6307 let symbolSpanStyle_buf : RichEditorSymbolSpanStyle | undefined 6308 if ((RuntimeType.UNDEFINED) != (symbolSpanStyle_buf_runtimeType)) 6309 { 6310 symbolSpanStyle_buf = valueDeserializer.readRichEditorSymbolSpanStyle() 6311 } 6312 const symbolSpanStyle_result : RichEditorSymbolSpanStyle | undefined = symbolSpanStyle_buf 6313 const valueResource_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6314 let valueResource_buf : Resource | undefined 6315 if ((RuntimeType.UNDEFINED) != (valueResource_buf_runtimeType)) 6316 { 6317 valueResource_buf = valueDeserializer.readResource() 6318 } 6319 const valueResource_result : Resource | undefined = valueResource_buf 6320 const paragraphStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6321 let paragraphStyle_buf : RichEditorParagraphStyle | undefined 6322 if ((RuntimeType.UNDEFINED) != (paragraphStyle_buf_runtimeType)) 6323 { 6324 paragraphStyle_buf = valueDeserializer.readRichEditorParagraphStyle() 6325 } 6326 const paragraphStyle_result : RichEditorParagraphStyle | undefined = paragraphStyle_buf 6327 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6328 let previewText_buf : string | undefined 6329 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 6330 { 6331 previewText_buf = (valueDeserializer.readString() as string) 6332 } 6333 const previewText_result : string | undefined = previewText_buf 6334 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) 6335 return value 6336 } 6337 readStyledStringChangedListener(): StyledStringChangedListener { 6338 let valueDeserializer : Deserializer = this 6339 const onWillChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6340 let onWillChange_buf : ((parameter: StyledStringChangeValue) => boolean) | undefined 6341 if ((RuntimeType.UNDEFINED) != (onWillChange_buf_runtimeType)) 6342 { 6343 onWillChange_buf = valueDeserializer.readCallback_StyledStringChangeValue_Boolean() 6344 } 6345 const onWillChange_result : ((parameter: StyledStringChangeValue) => boolean) | undefined = onWillChange_buf 6346 const onDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6347 let onDidChange_buf : OnDidChangeCallback | undefined 6348 if ((RuntimeType.UNDEFINED) != (onDidChange_buf_runtimeType)) 6349 { 6350 onDidChange_buf = valueDeserializer.readOnDidChangeCallback() 6351 } 6352 const onDidChange_result : OnDidChangeCallback | undefined = onDidChange_buf 6353 let value : StyledStringChangedListener = ({onWillChange: onWillChange_result, onDidChange: onDidChange_result} as StyledStringChangedListener) 6354 return value 6355 } 6356 readRichEditorRange(): RichEditorRange { 6357 let valueDeserializer : Deserializer = this 6358 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6359 let start_buf : number | undefined 6360 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6361 { 6362 start_buf = (valueDeserializer.readNumber() as number) 6363 } 6364 const start_result : number | undefined = start_buf 6365 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6366 let end_buf : number | undefined 6367 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6368 { 6369 end_buf = (valueDeserializer.readNumber() as number) 6370 } 6371 const end_result : number | undefined = end_buf 6372 let value : RichEditorRange = ({start: start_result, end: end_result} as RichEditorRange) 6373 return value 6374 } 6375 readRichEditorSelection(): RichEditorSelection { 6376 let valueDeserializer : Deserializer = this 6377 const selection_buf_value0 : number = (valueDeserializer.readNumber() as number) 6378 const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) 6379 const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) 6380 const spans_buf_length : int32 = valueDeserializer.readInt32() 6381 let spans_buf : Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = new Array<RichEditorTextSpanResult | RichEditorImageSpanResult>(spans_buf_length) 6382 for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { 6383 const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() 6384 let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined 6385 if (spans_buf_buf_selector == 0) { 6386 spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() 6387 } 6388 else if (spans_buf_buf_selector == 1) { 6389 spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() 6390 } 6391 else { 6392 throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") 6393 } 6394 spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) 6395 } 6396 const spans_result : Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = spans_buf 6397 let value : RichEditorSelection = ({selection: selection_result, spans: spans_result} as RichEditorSelection) 6398 return value 6399 } 6400 readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { 6401 let valueDeserializer : Deserializer = this 6402 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6403 let start_buf : number | undefined 6404 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6405 { 6406 start_buf = (valueDeserializer.readNumber() as number) 6407 } 6408 const start_result : number | undefined = start_buf 6409 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6410 let end_buf : number | undefined 6411 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6412 { 6413 end_buf = (valueDeserializer.readNumber() as number) 6414 } 6415 const end_result : number | undefined = end_buf 6416 const style_result : RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() 6417 let value : RichEditorParagraphStyleOptions = ({start: start_result, end: end_result, style: style_result} as RichEditorParagraphStyleOptions) 6418 return value 6419 } 6420 readRichEditorUpdateSymbolSpanStyleOptions(): RichEditorUpdateSymbolSpanStyleOptions { 6421 let valueDeserializer : Deserializer = this 6422 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6423 let start_buf : number | undefined 6424 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6425 { 6426 start_buf = (valueDeserializer.readNumber() as number) 6427 } 6428 const start_result : number | undefined = start_buf 6429 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6430 let end_buf : number | undefined 6431 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6432 { 6433 end_buf = (valueDeserializer.readNumber() as number) 6434 } 6435 const end_result : number | undefined = end_buf 6436 const symbolStyle_result : RichEditorSymbolSpanStyle = valueDeserializer.readRichEditorSymbolSpanStyle() 6437 let value : RichEditorUpdateSymbolSpanStyleOptions = ({start: start_result, end: end_result, symbolStyle: symbolStyle_result} as RichEditorUpdateSymbolSpanStyleOptions) 6438 return value 6439 } 6440 readRichEditorUpdateImageSpanStyleOptions(): RichEditorUpdateImageSpanStyleOptions { 6441 let valueDeserializer : Deserializer = this 6442 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6443 let start_buf : number | undefined 6444 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6445 { 6446 start_buf = (valueDeserializer.readNumber() as number) 6447 } 6448 const start_result : number | undefined = start_buf 6449 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6450 let end_buf : number | undefined 6451 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6452 { 6453 end_buf = (valueDeserializer.readNumber() as number) 6454 } 6455 const end_result : number | undefined = end_buf 6456 const imageStyle_result : RichEditorImageSpanStyle = valueDeserializer.readRichEditorImageSpanStyle() 6457 let value : RichEditorUpdateImageSpanStyleOptions = ({start: start_result, end: end_result, imageStyle: imageStyle_result} as RichEditorUpdateImageSpanStyleOptions) 6458 return value 6459 } 6460 readRichEditorUpdateTextSpanStyleOptions(): RichEditorUpdateTextSpanStyleOptions { 6461 let valueDeserializer : Deserializer = this 6462 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6463 let start_buf : number | undefined 6464 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6465 { 6466 start_buf = (valueDeserializer.readNumber() as number) 6467 } 6468 const start_result : number | undefined = start_buf 6469 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6470 let end_buf : number | undefined 6471 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6472 { 6473 end_buf = (valueDeserializer.readNumber() as number) 6474 } 6475 const end_result : number | undefined = end_buf 6476 const textStyle_result : RichEditorTextStyle = valueDeserializer.readRichEditorTextStyle() 6477 let value : RichEditorUpdateTextSpanStyleOptions = ({start: start_result, end: end_result, textStyle: textStyle_result} as RichEditorUpdateTextSpanStyleOptions) 6478 return value 6479 } 6480 readRichEditorSymbolSpanOptions(): RichEditorSymbolSpanOptions { 6481 let valueDeserializer : Deserializer = this 6482 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6483 let offset_buf : number | undefined 6484 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6485 { 6486 offset_buf = (valueDeserializer.readNumber() as number) 6487 } 6488 const offset_result : number | undefined = offset_buf 6489 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6490 let style_buf : RichEditorSymbolSpanStyle | undefined 6491 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6492 { 6493 style_buf = valueDeserializer.readRichEditorSymbolSpanStyle() 6494 } 6495 const style_result : RichEditorSymbolSpanStyle | undefined = style_buf 6496 let value : RichEditorSymbolSpanOptions = ({offset: offset_result, style: style_result} as RichEditorSymbolSpanOptions) 6497 return value 6498 } 6499 readRichEditorBuilderSpanOptions(): RichEditorBuilderSpanOptions { 6500 let valueDeserializer : Deserializer = this 6501 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6502 let offset_buf : number | undefined 6503 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6504 { 6505 offset_buf = (valueDeserializer.readNumber() as number) 6506 } 6507 const offset_result : number | undefined = offset_buf 6508 let value : RichEditorBuilderSpanOptions = ({offset: offset_result} as RichEditorBuilderSpanOptions) 6509 return value 6510 } 6511 readRichEditorImageSpanOptions(): RichEditorImageSpanOptions { 6512 let valueDeserializer : Deserializer = this 6513 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6514 let offset_buf : number | undefined 6515 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6516 { 6517 offset_buf = (valueDeserializer.readNumber() as number) 6518 } 6519 const offset_result : number | undefined = offset_buf 6520 const imageStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6521 let imageStyle_buf : RichEditorImageSpanStyle | undefined 6522 if ((RuntimeType.UNDEFINED) != (imageStyle_buf_runtimeType)) 6523 { 6524 imageStyle_buf = valueDeserializer.readRichEditorImageSpanStyle() 6525 } 6526 const imageStyle_result : RichEditorImageSpanStyle | undefined = imageStyle_buf 6527 const gesture_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6528 let gesture_buf : RichEditorGesture | undefined 6529 if ((RuntimeType.UNDEFINED) != (gesture_buf_runtimeType)) 6530 { 6531 gesture_buf = valueDeserializer.readRichEditorGesture() 6532 } 6533 const gesture_result : RichEditorGesture | undefined = gesture_buf 6534 let value : RichEditorImageSpanOptions = ({offset: offset_result, imageStyle: imageStyle_result, gesture: gesture_result} as RichEditorImageSpanOptions) 6535 return value 6536 } 6537 readRichEditorTextSpanOptions(): RichEditorTextSpanOptions { 6538 let valueDeserializer : Deserializer = this 6539 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6540 let offset_buf : number | undefined 6541 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 6542 { 6543 offset_buf = (valueDeserializer.readNumber() as number) 6544 } 6545 const offset_result : number | undefined = offset_buf 6546 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6547 let style_buf : RichEditorTextStyle | undefined 6548 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 6549 { 6550 style_buf = valueDeserializer.readRichEditorTextStyle() 6551 } 6552 const style_result : RichEditorTextStyle | undefined = style_buf 6553 const paragraphStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6554 let paragraphStyle_buf : RichEditorParagraphStyle | undefined 6555 if ((RuntimeType.UNDEFINED) != (paragraphStyle_buf_runtimeType)) 6556 { 6557 paragraphStyle_buf = valueDeserializer.readRichEditorParagraphStyle() 6558 } 6559 const paragraphStyle_result : RichEditorParagraphStyle | undefined = paragraphStyle_buf 6560 const gesture_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6561 let gesture_buf : RichEditorGesture | undefined 6562 if ((RuntimeType.UNDEFINED) != (gesture_buf_runtimeType)) 6563 { 6564 gesture_buf = valueDeserializer.readRichEditorGesture() 6565 } 6566 const gesture_result : RichEditorGesture | undefined = gesture_buf 6567 let value : RichEditorTextSpanOptions = ({offset: offset_result, style: style_result, paragraphStyle: paragraphStyle_result, gesture: gesture_result} as RichEditorTextSpanOptions) 6568 return value 6569 } 6570 readGuideLinePosition(): GuideLinePosition { 6571 let valueDeserializer : Deserializer = this 6572 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6573 let start_buf : Dimension | undefined 6574 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 6575 { 6576 start_buf = (valueDeserializer.readLength() as Dimension) 6577 } 6578 const start_result : Dimension | undefined = start_buf 6579 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6580 let end_buf : Dimension | undefined 6581 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 6582 { 6583 end_buf = (valueDeserializer.readLength() as Dimension) 6584 } 6585 const end_result : Dimension | undefined = end_buf 6586 let value : GuideLinePosition = ({start: start_result, end: end_result} as GuideLinePosition) 6587 return value 6588 } 6589 readRoundedRectOptions(): RoundedRectOptions { 6590 let valueDeserializer : Deserializer = this 6591 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6592 let width_buf : number | string | undefined 6593 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 6594 { 6595 const width_buf__selector : int32 = valueDeserializer.readInt8() 6596 let width_buf_ : number | string | undefined 6597 if (width_buf__selector == 0) { 6598 width_buf_ = (valueDeserializer.readNumber() as number) 6599 } 6600 else if (width_buf__selector == 1) { 6601 width_buf_ = (valueDeserializer.readString() as string) 6602 } 6603 else { 6604 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 6605 } 6606 width_buf = (width_buf_ as number | string) 6607 } 6608 const width_result : number | string | undefined = width_buf 6609 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6610 let height_buf : number | string | undefined 6611 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 6612 { 6613 const height_buf__selector : int32 = valueDeserializer.readInt8() 6614 let height_buf_ : number | string | undefined 6615 if (height_buf__selector == 0) { 6616 height_buf_ = (valueDeserializer.readNumber() as number) 6617 } 6618 else if (height_buf__selector == 1) { 6619 height_buf_ = (valueDeserializer.readString() as string) 6620 } 6621 else { 6622 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 6623 } 6624 height_buf = (height_buf_ as number | string) 6625 } 6626 const height_result : number | string | undefined = height_buf 6627 const radiusWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6628 let radiusWidth_buf : number | string | undefined 6629 if ((RuntimeType.UNDEFINED) != (radiusWidth_buf_runtimeType)) 6630 { 6631 const radiusWidth_buf__selector : int32 = valueDeserializer.readInt8() 6632 let radiusWidth_buf_ : number | string | undefined 6633 if (radiusWidth_buf__selector == 0) { 6634 radiusWidth_buf_ = (valueDeserializer.readNumber() as number) 6635 } 6636 else if (radiusWidth_buf__selector == 1) { 6637 radiusWidth_buf_ = (valueDeserializer.readString() as string) 6638 } 6639 else { 6640 throw new Error("One of the branches for radiusWidth_buf_ has to be chosen through deserialisation.") 6641 } 6642 radiusWidth_buf = (radiusWidth_buf_ as number | string) 6643 } 6644 const radiusWidth_result : number | string | undefined = radiusWidth_buf 6645 const radiusHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6646 let radiusHeight_buf : number | string | undefined 6647 if ((RuntimeType.UNDEFINED) != (radiusHeight_buf_runtimeType)) 6648 { 6649 const radiusHeight_buf__selector : int32 = valueDeserializer.readInt8() 6650 let radiusHeight_buf_ : number | string | undefined 6651 if (radiusHeight_buf__selector == 0) { 6652 radiusHeight_buf_ = (valueDeserializer.readNumber() as number) 6653 } 6654 else if (radiusHeight_buf__selector == 1) { 6655 radiusHeight_buf_ = (valueDeserializer.readString() as string) 6656 } 6657 else { 6658 throw new Error("One of the branches for radiusHeight_buf_ has to be chosen through deserialisation.") 6659 } 6660 radiusHeight_buf = (radiusHeight_buf_ as number | string) 6661 } 6662 const radiusHeight_result : number | string | undefined = radiusHeight_buf 6663 let value : RoundedRectOptions = ({width: width_result, height: height_result, radiusWidth: radiusWidth_result, radiusHeight: radiusHeight_result} as RoundedRectOptions) 6664 return value 6665 } 6666 readRectOptions(): RectOptions { 6667 let valueDeserializer : Deserializer = this 6668 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6669 let width_buf : number | string | undefined 6670 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 6671 { 6672 const width_buf__selector : int32 = valueDeserializer.readInt8() 6673 let width_buf_ : number | string | undefined 6674 if (width_buf__selector == 0) { 6675 width_buf_ = (valueDeserializer.readNumber() as number) 6676 } 6677 else if (width_buf__selector == 1) { 6678 width_buf_ = (valueDeserializer.readString() as string) 6679 } 6680 else { 6681 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 6682 } 6683 width_buf = (width_buf_ as number | string) 6684 } 6685 const width_result : number | string | undefined = width_buf 6686 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6687 let height_buf : number | string | undefined 6688 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 6689 { 6690 const height_buf__selector : int32 = valueDeserializer.readInt8() 6691 let height_buf_ : number | string | undefined 6692 if (height_buf__selector == 0) { 6693 height_buf_ = (valueDeserializer.readNumber() as number) 6694 } 6695 else if (height_buf__selector == 1) { 6696 height_buf_ = (valueDeserializer.readString() as string) 6697 } 6698 else { 6699 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 6700 } 6701 height_buf = (height_buf_ as number | string) 6702 } 6703 const height_result : number | string | undefined = height_buf 6704 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6705 let radius_buf : number | string | Array<number | string> | undefined 6706 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 6707 { 6708 const radius_buf__selector : int32 = valueDeserializer.readInt8() 6709 let radius_buf_ : number | string | Array<number | string> | undefined 6710 if (radius_buf__selector == 0) { 6711 radius_buf_ = (valueDeserializer.readNumber() as number) 6712 } 6713 else if (radius_buf__selector == 1) { 6714 radius_buf_ = (valueDeserializer.readString() as string) 6715 } 6716 else if (radius_buf__selector == 2) { 6717 const radius_buf__u_length : int32 = valueDeserializer.readInt32() 6718 let radius_buf__u : Array<number | string> = new Array<number | string>(radius_buf__u_length) 6719 for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { 6720 const radius_buf__u_buf_selector : int32 = valueDeserializer.readInt8() 6721 let radius_buf__u_buf : number | string | undefined 6722 if (radius_buf__u_buf_selector == 0) { 6723 radius_buf__u_buf = (valueDeserializer.readNumber() as number) 6724 } 6725 else if (radius_buf__u_buf_selector == 1) { 6726 radius_buf__u_buf = (valueDeserializer.readString() as string) 6727 } 6728 else { 6729 throw new Error("One of the branches for radius_buf__u_buf has to be chosen through deserialisation.") 6730 } 6731 radius_buf__u[radius_buf__u_i] = (radius_buf__u_buf as number | string) 6732 } 6733 radius_buf_ = radius_buf__u 6734 } 6735 else { 6736 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 6737 } 6738 radius_buf = (radius_buf_ as number | string | Array<number | string>) 6739 } 6740 const radius_result : number | string | Array<number | string> | undefined = radius_buf 6741 let value : RectOptions = ({width: width_result, height: height_result, radius: radius_result} as RectOptions) 6742 return value 6743 } 6744 readProgressStyleOptions(): ProgressStyleOptions { 6745 let valueDeserializer : Deserializer = this 6746 const enableSmoothEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6747 let enableSmoothEffect_buf : boolean | undefined 6748 if ((RuntimeType.UNDEFINED) != (enableSmoothEffect_buf_runtimeType)) 6749 { 6750 enableSmoothEffect_buf = valueDeserializer.readBoolean() 6751 } 6752 const enableSmoothEffect_result : boolean | undefined = enableSmoothEffect_buf 6753 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6754 let strokeWidth_buf : Length | undefined 6755 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6756 { 6757 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6758 } 6759 const strokeWidth_result : Length | undefined = strokeWidth_buf 6760 const scaleCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6761 let scaleCount_buf : number | undefined 6762 if ((RuntimeType.UNDEFINED) != (scaleCount_buf_runtimeType)) 6763 { 6764 scaleCount_buf = (valueDeserializer.readNumber() as number) 6765 } 6766 const scaleCount_result : number | undefined = scaleCount_buf 6767 const scaleWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6768 let scaleWidth_buf : Length | undefined 6769 if ((RuntimeType.UNDEFINED) != (scaleWidth_buf_runtimeType)) 6770 { 6771 scaleWidth_buf = (valueDeserializer.readLength() as Length) 6772 } 6773 const scaleWidth_result : Length | undefined = scaleWidth_buf 6774 let value : ProgressStyleOptions = ({enableSmoothEffect: enableSmoothEffect_result, strokeWidth: strokeWidth_result, scaleCount: scaleCount_result, scaleWidth: scaleWidth_result} as ProgressStyleOptions) 6775 return value 6776 } 6777 readCapsuleStyleOptions(): CapsuleStyleOptions { 6778 let valueDeserializer : Deserializer = this 6779 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6780 let enableScanEffect_buf : boolean | undefined 6781 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6782 { 6783 enableScanEffect_buf = valueDeserializer.readBoolean() 6784 } 6785 const enableScanEffect_result : boolean | undefined = enableScanEffect_buf 6786 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6787 let borderColor_buf : ResourceColor | undefined 6788 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 6789 { 6790 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 6791 let borderColor_buf_ : Color | number | string | Resource | undefined 6792 if (borderColor_buf__selector == 0) { 6793 borderColor_buf_ = (valueDeserializer.readInt32() as Color) 6794 } 6795 else if (borderColor_buf__selector == 1) { 6796 borderColor_buf_ = (valueDeserializer.readNumber() as number) 6797 } 6798 else if (borderColor_buf__selector == 2) { 6799 borderColor_buf_ = (valueDeserializer.readString() as string) 6800 } 6801 else if (borderColor_buf__selector == 3) { 6802 borderColor_buf_ = valueDeserializer.readResource() 6803 } 6804 else { 6805 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 6806 } 6807 borderColor_buf = (borderColor_buf_ as Color | number | string | Resource) 6808 } 6809 const borderColor_result : ResourceColor | undefined = borderColor_buf 6810 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6811 let borderWidth_buf : Length | undefined 6812 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 6813 { 6814 borderWidth_buf = (valueDeserializer.readLength() as Length) 6815 } 6816 const borderWidth_result : Length | undefined = borderWidth_buf 6817 const content_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6818 let content_buf : string | undefined 6819 if ((RuntimeType.UNDEFINED) != (content_buf_runtimeType)) 6820 { 6821 content_buf = (valueDeserializer.readString() as string) 6822 } 6823 const content_result : string | undefined = content_buf 6824 const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6825 let font_buf : Font | undefined 6826 if ((RuntimeType.UNDEFINED) != (font_buf_runtimeType)) 6827 { 6828 font_buf = valueDeserializer.readFont() 6829 } 6830 const font_result : Font | undefined = font_buf 6831 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6832 let fontColor_buf : ResourceColor | undefined 6833 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 6834 { 6835 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 6836 let fontColor_buf_ : Color | number | string | Resource | undefined 6837 if (fontColor_buf__selector == 0) { 6838 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 6839 } 6840 else if (fontColor_buf__selector == 1) { 6841 fontColor_buf_ = (valueDeserializer.readNumber() as number) 6842 } 6843 else if (fontColor_buf__selector == 2) { 6844 fontColor_buf_ = (valueDeserializer.readString() as string) 6845 } 6846 else if (fontColor_buf__selector == 3) { 6847 fontColor_buf_ = valueDeserializer.readResource() 6848 } 6849 else { 6850 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 6851 } 6852 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 6853 } 6854 const fontColor_result : ResourceColor | undefined = fontColor_buf 6855 const showDefaultPercentage_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6856 let showDefaultPercentage_buf : boolean | undefined 6857 if ((RuntimeType.UNDEFINED) != (showDefaultPercentage_buf_runtimeType)) 6858 { 6859 showDefaultPercentage_buf = valueDeserializer.readBoolean() 6860 } 6861 const showDefaultPercentage_result : boolean | undefined = showDefaultPercentage_buf 6862 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) 6863 return value 6864 } 6865 readRingStyleOptions(): RingStyleOptions { 6866 let valueDeserializer : Deserializer = this 6867 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6868 let enableScanEffect_buf : boolean | undefined 6869 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6870 { 6871 enableScanEffect_buf = valueDeserializer.readBoolean() 6872 } 6873 const enableScanEffect_result : boolean | undefined = enableScanEffect_buf 6874 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6875 let strokeWidth_buf : Length | undefined 6876 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6877 { 6878 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6879 } 6880 const strokeWidth_result : Length | undefined = strokeWidth_buf 6881 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6882 let shadow_buf : boolean | undefined 6883 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 6884 { 6885 shadow_buf = valueDeserializer.readBoolean() 6886 } 6887 const shadow_result : boolean | undefined = shadow_buf 6888 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6889 let status_buf : ProgressStatus | undefined 6890 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 6891 { 6892 status_buf = (valueDeserializer.readInt32() as ProgressStatus) 6893 } 6894 const status_result : ProgressStatus | undefined = status_buf 6895 let value : RingStyleOptions = ({enableScanEffect: enableScanEffect_result, strokeWidth: strokeWidth_result, shadow: shadow_result, status: status_result} as RingStyleOptions) 6896 return value 6897 } 6898 readLinearStyleOptions(): LinearStyleOptions { 6899 let valueDeserializer : Deserializer = this 6900 const enableScanEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6901 let enableScanEffect_buf : boolean | undefined 6902 if ((RuntimeType.UNDEFINED) != (enableScanEffect_buf_runtimeType)) 6903 { 6904 enableScanEffect_buf = valueDeserializer.readBoolean() 6905 } 6906 const enableScanEffect_result : boolean | undefined = enableScanEffect_buf 6907 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6908 let strokeWidth_buf : Length | undefined 6909 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 6910 { 6911 strokeWidth_buf = (valueDeserializer.readLength() as Length) 6912 } 6913 const strokeWidth_result : Length | undefined = strokeWidth_buf 6914 const strokeRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6915 let strokeRadius_buf : string | number | Resource | undefined 6916 if ((RuntimeType.UNDEFINED) != (strokeRadius_buf_runtimeType)) 6917 { 6918 const strokeRadius_buf__selector : int32 = valueDeserializer.readInt8() 6919 let strokeRadius_buf_ : string | number | Resource | undefined 6920 if (strokeRadius_buf__selector == 0) { 6921 strokeRadius_buf_ = (valueDeserializer.readString() as string) 6922 } 6923 else if (strokeRadius_buf__selector == 1) { 6924 strokeRadius_buf_ = (valueDeserializer.readNumber() as number) 6925 } 6926 else if (strokeRadius_buf__selector == 2) { 6927 strokeRadius_buf_ = valueDeserializer.readResource() 6928 } 6929 else { 6930 throw new Error("One of the branches for strokeRadius_buf_ has to be chosen through deserialisation.") 6931 } 6932 strokeRadius_buf = (strokeRadius_buf_ as string | number | Resource) 6933 } 6934 const strokeRadius_result : PX | VP | LPX | Resource | undefined = strokeRadius_buf 6935 let value : LinearStyleOptions = ({enableScanEffect: enableScanEffect_result, strokeWidth: strokeWidth_result, strokeRadius: strokeRadius_result} as LinearStyleOptions) 6936 return value 6937 } 6938 readPluginComponentTemplate(): PluginComponentTemplate { 6939 let valueDeserializer : Deserializer = this 6940 const source_result : string = (valueDeserializer.readString() as string) 6941 const bundleName_result : string = (valueDeserializer.readString() as string) 6942 let value : PluginComponentTemplate = ({source: source_result, bundleName: bundleName_result} as PluginComponentTemplate) 6943 return value 6944 } 6945 readCircleStyleOptions(): CircleStyleOptions { 6946 let valueDeserializer : Deserializer = this 6947 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6948 let color_buf : ResourceColor | undefined 6949 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 6950 { 6951 const color_buf__selector : int32 = valueDeserializer.readInt8() 6952 let color_buf_ : Color | number | string | Resource | undefined 6953 if (color_buf__selector == 0) { 6954 color_buf_ = (valueDeserializer.readInt32() as Color) 6955 } 6956 else if (color_buf__selector == 1) { 6957 color_buf_ = (valueDeserializer.readNumber() as number) 6958 } 6959 else if (color_buf__selector == 2) { 6960 color_buf_ = (valueDeserializer.readString() as string) 6961 } 6962 else if (color_buf__selector == 3) { 6963 color_buf_ = valueDeserializer.readResource() 6964 } 6965 else { 6966 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 6967 } 6968 color_buf = (color_buf_ as Color | number | string | Resource) 6969 } 6970 const color_result : ResourceColor | undefined = color_buf 6971 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6972 let radius_buf : LengthMetrics | undefined 6973 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 6974 { 6975 radius_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 6976 } 6977 const radius_result : LengthMetrics | undefined = radius_buf 6978 const enableWaveEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 6979 let enableWaveEffect_buf : boolean | undefined 6980 if ((RuntimeType.UNDEFINED) != (enableWaveEffect_buf_runtimeType)) 6981 { 6982 enableWaveEffect_buf = valueDeserializer.readBoolean() 6983 } 6984 const enableWaveEffect_result : boolean | undefined = enableWaveEffect_buf 6985 let value : CircleStyleOptions = ({color: color_result, radius: radius_result, enableWaveEffect: enableWaveEffect_result} as CircleStyleOptions) 6986 return value 6987 } 6988 readCallback_PanelMode_Void(isSync: boolean = false): ((mode: PanelMode) => void) { 6989 const _resource : CallbackResource = this.readCallbackResource() 6990 const _call : KPointer = this.readPointer() 6991 const _callSync : KPointer = this.readPointer() 6992 return (mode: PanelMode):void => { 6993 const _argsSerializer : Serializer = Serializer.hold(); 6994 _argsSerializer.writeInt32(_resource.resourceId); 6995 _argsSerializer.writePointer(_call); 6996 _argsSerializer.writePointer(_callSync); 6997 _argsSerializer.writeInt32(mode.valueOf()); 6998 (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asBuffer(), _argsSerializer.length())); 6999 _argsSerializer.release(); 7000 return; } 7001 } 7002 readNavContentInfo(): NavContentInfo { 7003 let valueDeserializer : Deserializer = this 7004 const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7005 let name_buf : string | undefined 7006 if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) 7007 { 7008 name_buf = (valueDeserializer.readString() as string) 7009 } 7010 const name_result : string | undefined = name_buf 7011 const index_result : number = (valueDeserializer.readNumber() as number) 7012 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7013 let mode_buf : NavDestinationMode | undefined 7014 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 7015 { 7016 mode_buf = (valueDeserializer.readInt32() as NavDestinationMode) 7017 } 7018 const mode_result : NavDestinationMode | undefined = mode_buf 7019 const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7020 let param_buf : Object | undefined 7021 if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) 7022 { 7023 param_buf = (valueDeserializer.readCustomObject("Object") as Object) 7024 } 7025 const param_result : Object | undefined = param_buf 7026 const navDestinationId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7027 let navDestinationId_buf : string | undefined 7028 if ((RuntimeType.UNDEFINED) != (navDestinationId_buf_runtimeType)) 7029 { 7030 navDestinationId_buf = (valueDeserializer.readString() as string) 7031 } 7032 const navDestinationId_result : string | undefined = navDestinationId_buf 7033 let value : NavContentInfo = ({name: name_result, index: index_result, mode: mode_result, param: param_result, navDestinationId: navDestinationId_result} as NavContentInfo) 7034 return value 7035 } 7036 readNavigationAnimatedTransition(): NavigationAnimatedTransition { 7037 let valueDeserializer : Deserializer = this 7038 const onTransitionEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7039 let onTransitionEnd_buf : ((parameter: boolean) => void) | undefined 7040 if ((RuntimeType.UNDEFINED) != (onTransitionEnd_buf_runtimeType)) 7041 { 7042 onTransitionEnd_buf = valueDeserializer.readCallback_Boolean_Void() 7043 } 7044 const onTransitionEnd_result : ((parameter: boolean) => void) | undefined = onTransitionEnd_buf 7045 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7046 let timeout_buf : number | undefined 7047 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 7048 { 7049 timeout_buf = (valueDeserializer.readNumber() as number) 7050 } 7051 const timeout_result : number | undefined = timeout_buf 7052 const isInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7053 let isInteractive_buf : boolean | undefined 7054 if ((RuntimeType.UNDEFINED) != (isInteractive_buf_runtimeType)) 7055 { 7056 isInteractive_buf = valueDeserializer.readBoolean() 7057 } 7058 const isInteractive_result : boolean | undefined = isInteractive_buf 7059 const transition_result : ((transitionProxy: NavigationTransitionProxy) => void) = valueDeserializer.readCallback_NavigationTransitionProxy_Void() 7060 let value : NavigationAnimatedTransition = ({onTransitionEnd: onTransitionEnd_result, timeout: timeout_result, isInteractive: isInteractive_result, transition: transition_result} as NavigationAnimatedTransition) 7061 return value 7062 } 7063 readNavDestinationContext(): NavDestinationContext { 7064 let valueDeserializer : Deserializer = this 7065 let ptr : KPointer = valueDeserializer.readPointer() 7066 return NavDestinationContextInternal.fromPtr(ptr) 7067 } 7068 readNavigationInterception(): NavigationInterception { 7069 let valueDeserializer : Deserializer = this 7070 const willShow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7071 let willShow_buf : InterceptionShowCallback | undefined 7072 if ((RuntimeType.UNDEFINED) != (willShow_buf_runtimeType)) 7073 { 7074 willShow_buf = valueDeserializer.readInterceptionShowCallback() 7075 } 7076 const willShow_result : InterceptionShowCallback | undefined = willShow_buf 7077 const didShow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7078 let didShow_buf : InterceptionShowCallback | undefined 7079 if ((RuntimeType.UNDEFINED) != (didShow_buf_runtimeType)) 7080 { 7081 didShow_buf = valueDeserializer.readInterceptionShowCallback() 7082 } 7083 const didShow_result : InterceptionShowCallback | undefined = didShow_buf 7084 const modeChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7085 let modeChange_buf : InterceptionModeCallback | undefined 7086 if ((RuntimeType.UNDEFINED) != (modeChange_buf_runtimeType)) 7087 { 7088 modeChange_buf = valueDeserializer.readInterceptionModeCallback() 7089 } 7090 const modeChange_result : InterceptionModeCallback | undefined = modeChange_buf 7091 let value : NavigationInterception = ({willShow: willShow_result, didShow: didShow_result, modeChange: modeChange_result} as NavigationInterception) 7092 return value 7093 } 7094 readNavigationOptions(): NavigationOptions { 7095 let valueDeserializer : Deserializer = this 7096 const launchMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7097 let launchMode_buf : LaunchMode | undefined 7098 if ((RuntimeType.UNDEFINED) != (launchMode_buf_runtimeType)) 7099 { 7100 launchMode_buf = (valueDeserializer.readInt32() as LaunchMode) 7101 } 7102 const launchMode_result : LaunchMode | undefined = launchMode_buf 7103 const animated_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7104 let animated_buf : boolean | undefined 7105 if ((RuntimeType.UNDEFINED) != (animated_buf_runtimeType)) 7106 { 7107 animated_buf = valueDeserializer.readBoolean() 7108 } 7109 const animated_result : boolean | undefined = animated_buf 7110 let value : NavigationOptions = ({launchMode: launchMode_result, animated: animated_result} as NavigationOptions) 7111 return value 7112 } 7113 readNavDestinationAttribute(): NavDestinationAttribute { 7114 throw new Error("Interface with functions is not supported") 7115 } 7116 readNavigationToolbarOptions(): NavigationToolbarOptions { 7117 let valueDeserializer : Deserializer = this 7118 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7119 let backgroundColor_buf : ResourceColor | undefined 7120 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7121 { 7122 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 7123 let backgroundColor_buf_ : Color | number | string | Resource | undefined 7124 if (backgroundColor_buf__selector == 0) { 7125 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7126 } 7127 else if (backgroundColor_buf__selector == 1) { 7128 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7129 } 7130 else if (backgroundColor_buf__selector == 2) { 7131 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7132 } 7133 else if (backgroundColor_buf__selector == 3) { 7134 backgroundColor_buf_ = valueDeserializer.readResource() 7135 } 7136 else { 7137 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7138 } 7139 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7140 } 7141 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 7142 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7143 let backgroundBlurStyle_buf : BlurStyle | undefined 7144 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7145 { 7146 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7147 } 7148 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 7149 const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7150 let barStyle_buf : BarStyle | undefined 7151 if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) 7152 { 7153 barStyle_buf = (valueDeserializer.readInt32() as BarStyle) 7154 } 7155 const barStyle_result : BarStyle | undefined = barStyle_buf 7156 let value : NavigationToolbarOptions = ({backgroundColor: backgroundColor_result, backgroundBlurStyle: backgroundBlurStyle_result, barStyle: barStyle_result} as NavigationToolbarOptions) 7157 return value 7158 } 7159 readNavigationTitleOptions(): NavigationTitleOptions { 7160 let valueDeserializer : Deserializer = this 7161 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7162 let backgroundColor_buf : ResourceColor | undefined 7163 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7164 { 7165 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 7166 let backgroundColor_buf_ : Color | number | string | Resource | undefined 7167 if (backgroundColor_buf__selector == 0) { 7168 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7169 } 7170 else if (backgroundColor_buf__selector == 1) { 7171 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7172 } 7173 else if (backgroundColor_buf__selector == 2) { 7174 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7175 } 7176 else if (backgroundColor_buf__selector == 3) { 7177 backgroundColor_buf_ = valueDeserializer.readResource() 7178 } 7179 else { 7180 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7181 } 7182 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7183 } 7184 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 7185 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7186 let backgroundBlurStyle_buf : BlurStyle | undefined 7187 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7188 { 7189 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7190 } 7191 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 7192 const barStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7193 let barStyle_buf : BarStyle | undefined 7194 if ((RuntimeType.UNDEFINED) != (barStyle_buf_runtimeType)) 7195 { 7196 barStyle_buf = (valueDeserializer.readInt32() as BarStyle) 7197 } 7198 const barStyle_result : BarStyle | undefined = barStyle_buf 7199 const paddingStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7200 let paddingStart_buf : LengthMetrics | undefined 7201 if ((RuntimeType.UNDEFINED) != (paddingStart_buf_runtimeType)) 7202 { 7203 paddingStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7204 } 7205 const paddingStart_result : LengthMetrics | undefined = paddingStart_buf 7206 const paddingEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7207 let paddingEnd_buf : LengthMetrics | undefined 7208 if ((RuntimeType.UNDEFINED) != (paddingEnd_buf_runtimeType)) 7209 { 7210 paddingEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7211 } 7212 const paddingEnd_result : LengthMetrics | undefined = paddingEnd_buf 7213 const mainTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7214 let mainTitleModifier_buf : TextModifier | undefined 7215 if ((RuntimeType.UNDEFINED) != (mainTitleModifier_buf_runtimeType)) 7216 { 7217 mainTitleModifier_buf = valueDeserializer.readTextModifier() 7218 } 7219 const mainTitleModifier_result : TextModifier | undefined = mainTitleModifier_buf 7220 const subTitleModifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7221 let subTitleModifier_buf : TextModifier | undefined 7222 if ((RuntimeType.UNDEFINED) != (subTitleModifier_buf_runtimeType)) 7223 { 7224 subTitleModifier_buf = valueDeserializer.readTextModifier() 7225 } 7226 const subTitleModifier_result : TextModifier | undefined = subTitleModifier_buf 7227 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7228 let enableHoverMode_buf : boolean | undefined 7229 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 7230 { 7231 enableHoverMode_buf = valueDeserializer.readBoolean() 7232 } 7233 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 7234 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) 7235 return value 7236 } 7237 readNavDestinationCustomTitle(): NavDestinationCustomTitle { 7238 let valueDeserializer : Deserializer = this 7239 const builder_result : CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 7240 const height_buf_selector : int32 = valueDeserializer.readInt8() 7241 let height_buf : TitleHeight | Length | undefined 7242 if (height_buf_selector == 0) { 7243 height_buf = (valueDeserializer.readInt32() as TitleHeight) 7244 } 7245 else if (height_buf_selector == 1) { 7246 height_buf = (valueDeserializer.readLength() as Length) 7247 } 7248 else { 7249 throw new Error("One of the branches for height_buf has to be chosen through deserialisation.") 7250 } 7251 const height_result : TitleHeight | Length = (height_buf as TitleHeight | Length) 7252 let value : NavDestinationCustomTitle = ({builder: builder_result, height: height_result} as NavDestinationCustomTitle) 7253 return value 7254 } 7255 readNavDestinationCommonTitle(): NavDestinationCommonTitle { 7256 let valueDeserializer : Deserializer = this 7257 const main_buf_selector : int32 = valueDeserializer.readInt8() 7258 let main_buf : string | Resource | undefined 7259 if (main_buf_selector == 0) { 7260 main_buf = (valueDeserializer.readString() as string) 7261 } 7262 else if (main_buf_selector == 1) { 7263 main_buf = valueDeserializer.readResource() 7264 } 7265 else { 7266 throw new Error("One of the branches for main_buf has to be chosen through deserialisation.") 7267 } 7268 const main_result : string | Resource = (main_buf as string | Resource) 7269 const sub_buf_selector : int32 = valueDeserializer.readInt8() 7270 let sub_buf : string | Resource | undefined 7271 if (sub_buf_selector == 0) { 7272 sub_buf = (valueDeserializer.readString() as string) 7273 } 7274 else if (sub_buf_selector == 1) { 7275 sub_buf = valueDeserializer.readResource() 7276 } 7277 else { 7278 throw new Error("One of the branches for sub_buf has to be chosen through deserialisation.") 7279 } 7280 const sub_result : string | Resource = (sub_buf as string | Resource) 7281 let value : NavDestinationCommonTitle = ({main: main_result, sub: sub_result} as NavDestinationCommonTitle) 7282 return value 7283 } 7284 readSystemBarStyle(): SystemBarStyle { 7285 let valueDeserializer : Deserializer = this 7286 const _SystemBarStyleStub_result : string = (valueDeserializer.readString() as string) 7287 let value : SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) 7288 return value 7289 } 7290 readRouteMapConfig(): RouteMapConfig { 7291 let valueDeserializer : Deserializer = this 7292 const name_result : string = (valueDeserializer.readString() as string) 7293 const pageSourceFile_result : string = (valueDeserializer.readString() as string) 7294 const data_result : Object = (valueDeserializer.readCustomObject("Object") as Object) 7295 let value : RouteMapConfig = ({name: name_result, pageSourceFile: pageSourceFile_result, data: data_result} as RouteMapConfig) 7296 return value 7297 } 7298 readMenuItemOptions(): MenuItemOptions { 7299 let valueDeserializer : Deserializer = this 7300 const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7301 let startIcon_buf : ResourceStr | undefined 7302 if ((RuntimeType.UNDEFINED) != (startIcon_buf_runtimeType)) 7303 { 7304 const startIcon_buf__selector : int32 = valueDeserializer.readInt8() 7305 let startIcon_buf_ : string | Resource | undefined 7306 if (startIcon_buf__selector == 0) { 7307 startIcon_buf_ = (valueDeserializer.readString() as string) 7308 } 7309 else if (startIcon_buf__selector == 1) { 7310 startIcon_buf_ = valueDeserializer.readResource() 7311 } 7312 else { 7313 throw new Error("One of the branches for startIcon_buf_ has to be chosen through deserialisation.") 7314 } 7315 startIcon_buf = (startIcon_buf_ as string | Resource) 7316 } 7317 const startIcon_result : ResourceStr | undefined = startIcon_buf 7318 const symbolStartIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7319 let symbolStartIcon_buf : SymbolGlyphModifier | undefined 7320 if ((RuntimeType.UNDEFINED) != (symbolStartIcon_buf_runtimeType)) 7321 { 7322 symbolStartIcon_buf = valueDeserializer.readSymbolGlyphModifier() 7323 } 7324 const symbolStartIcon_result : SymbolGlyphModifier | undefined = symbolStartIcon_buf 7325 const content_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7326 let content_buf : ResourceStr | undefined 7327 if ((RuntimeType.UNDEFINED) != (content_buf_runtimeType)) 7328 { 7329 const content_buf__selector : int32 = valueDeserializer.readInt8() 7330 let content_buf_ : string | Resource | undefined 7331 if (content_buf__selector == 0) { 7332 content_buf_ = (valueDeserializer.readString() as string) 7333 } 7334 else if (content_buf__selector == 1) { 7335 content_buf_ = valueDeserializer.readResource() 7336 } 7337 else { 7338 throw new Error("One of the branches for content_buf_ has to be chosen through deserialisation.") 7339 } 7340 content_buf = (content_buf_ as string | Resource) 7341 } 7342 const content_result : ResourceStr | undefined = content_buf 7343 const endIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7344 let endIcon_buf : ResourceStr | undefined 7345 if ((RuntimeType.UNDEFINED) != (endIcon_buf_runtimeType)) 7346 { 7347 const endIcon_buf__selector : int32 = valueDeserializer.readInt8() 7348 let endIcon_buf_ : string | Resource | undefined 7349 if (endIcon_buf__selector == 0) { 7350 endIcon_buf_ = (valueDeserializer.readString() as string) 7351 } 7352 else if (endIcon_buf__selector == 1) { 7353 endIcon_buf_ = valueDeserializer.readResource() 7354 } 7355 else { 7356 throw new Error("One of the branches for endIcon_buf_ has to be chosen through deserialisation.") 7357 } 7358 endIcon_buf = (endIcon_buf_ as string | Resource) 7359 } 7360 const endIcon_result : ResourceStr | undefined = endIcon_buf 7361 const symbolEndIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7362 let symbolEndIcon_buf : SymbolGlyphModifier | undefined 7363 if ((RuntimeType.UNDEFINED) != (symbolEndIcon_buf_runtimeType)) 7364 { 7365 symbolEndIcon_buf = valueDeserializer.readSymbolGlyphModifier() 7366 } 7367 const symbolEndIcon_result : SymbolGlyphModifier | undefined = symbolEndIcon_buf 7368 const labelInfo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7369 let labelInfo_buf : ResourceStr | undefined 7370 if ((RuntimeType.UNDEFINED) != (labelInfo_buf_runtimeType)) 7371 { 7372 const labelInfo_buf__selector : int32 = valueDeserializer.readInt8() 7373 let labelInfo_buf_ : string | Resource | undefined 7374 if (labelInfo_buf__selector == 0) { 7375 labelInfo_buf_ = (valueDeserializer.readString() as string) 7376 } 7377 else if (labelInfo_buf__selector == 1) { 7378 labelInfo_buf_ = valueDeserializer.readResource() 7379 } 7380 else { 7381 throw new Error("One of the branches for labelInfo_buf_ has to be chosen through deserialisation.") 7382 } 7383 labelInfo_buf = (labelInfo_buf_ as string | Resource) 7384 } 7385 const labelInfo_result : ResourceStr | undefined = labelInfo_buf 7386 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7387 let builder_buf : CustomBuilder | undefined 7388 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 7389 { 7390 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 7391 } 7392 const builder_result : CustomBuilder | undefined = builder_buf 7393 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) 7394 return value 7395 } 7396 readDividerStyleOptions(): DividerStyleOptions { 7397 let valueDeserializer : Deserializer = this 7398 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7399 let strokeWidth_buf : LengthMetrics | undefined 7400 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 7401 { 7402 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7403 } 7404 const strokeWidth_result : LengthMetrics | undefined = strokeWidth_buf 7405 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7406 let color_buf : ResourceColor | undefined 7407 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 7408 { 7409 const color_buf__selector : int32 = valueDeserializer.readInt8() 7410 let color_buf_ : Color | number | string | Resource | undefined 7411 if (color_buf__selector == 0) { 7412 color_buf_ = (valueDeserializer.readInt32() as Color) 7413 } 7414 else if (color_buf__selector == 1) { 7415 color_buf_ = (valueDeserializer.readNumber() as number) 7416 } 7417 else if (color_buf__selector == 2) { 7418 color_buf_ = (valueDeserializer.readString() as string) 7419 } 7420 else if (color_buf__selector == 3) { 7421 color_buf_ = valueDeserializer.readResource() 7422 } 7423 else { 7424 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 7425 } 7426 color_buf = (color_buf_ as Color | number | string | Resource) 7427 } 7428 const color_result : ResourceColor | undefined = color_buf 7429 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7430 let startMargin_buf : LengthMetrics | undefined 7431 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 7432 { 7433 startMargin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7434 } 7435 const startMargin_result : LengthMetrics | undefined = startMargin_buf 7436 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7437 let endMargin_buf : LengthMetrics | undefined 7438 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 7439 { 7440 endMargin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7441 } 7442 const endMargin_result : LengthMetrics | undefined = endMargin_buf 7443 let value : DividerStyleOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as DividerStyleOptions) 7444 return value 7445 } 7446 readASTCResource(): ASTCResource { 7447 let valueDeserializer : Deserializer = this 7448 const sources_buf_length : int32 = valueDeserializer.readInt32() 7449 let sources_buf : Array<string> = new Array<string>(sources_buf_length) 7450 for (let sources_buf_i = 0; sources_buf_i < sources_buf_length; sources_buf_i++) { 7451 sources_buf[sources_buf_i] = (valueDeserializer.readString() as string) 7452 } 7453 const sources_result : Array<string> = sources_buf 7454 const column_result : number = (valueDeserializer.readNumber() as number) 7455 let value : ASTCResource = ({sources: sources_result, column: column_result} as ASTCResource) 7456 return value 7457 } 7458 readDrawableDescriptor(): DrawableDescriptor { 7459 let valueDeserializer : Deserializer = this 7460 let ptr : KPointer = valueDeserializer.readPointer() 7461 return DrawableDescriptorInternal.fromPtr(ptr) 7462 } 7463 readMatrix2D(): Matrix2D { 7464 let valueDeserializer : Deserializer = this 7465 let ptr : KPointer = valueDeserializer.readPointer() 7466 return Matrix2DInternal.fromPtr(ptr) 7467 } 7468 readListDividerOptions(): ListDividerOptions { 7469 let valueDeserializer : Deserializer = this 7470 const strokeWidth_result : Length = (valueDeserializer.readLength() as Length) 7471 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7472 let color_buf : ResourceColor | undefined 7473 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 7474 { 7475 const color_buf__selector : int32 = valueDeserializer.readInt8() 7476 let color_buf_ : Color | number | string | Resource | undefined 7477 if (color_buf__selector == 0) { 7478 color_buf_ = (valueDeserializer.readInt32() as Color) 7479 } 7480 else if (color_buf__selector == 1) { 7481 color_buf_ = (valueDeserializer.readNumber() as number) 7482 } 7483 else if (color_buf__selector == 2) { 7484 color_buf_ = (valueDeserializer.readString() as string) 7485 } 7486 else if (color_buf__selector == 3) { 7487 color_buf_ = valueDeserializer.readResource() 7488 } 7489 else { 7490 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 7491 } 7492 color_buf = (color_buf_ as Color | number | string | Resource) 7493 } 7494 const color_result : ResourceColor | undefined = color_buf 7495 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7496 let startMargin_buf : Length | undefined 7497 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 7498 { 7499 startMargin_buf = (valueDeserializer.readLength() as Length) 7500 } 7501 const startMargin_result : Length | undefined = startMargin_buf 7502 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7503 let endMargin_buf : Length | undefined 7504 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 7505 { 7506 endMargin_buf = (valueDeserializer.readLength() as Length) 7507 } 7508 const endMargin_result : Length | undefined = endMargin_buf 7509 let value : ListDividerOptions = ({strokeWidth: strokeWidth_result, color: color_result, startMargin: startMargin_result, endMargin: endMargin_result} as ListDividerOptions) 7510 return value 7511 } 7512 readListAttribute(): ListAttribute { 7513 throw new Error("Interface with functions is not supported") 7514 } 7515 readVisibleListContentInfo(): VisibleListContentInfo { 7516 let valueDeserializer : Deserializer = this 7517 const index_result : number = (valueDeserializer.readNumber() as number) 7518 const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7519 let itemGroupArea_buf : ListItemGroupArea | undefined 7520 if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) 7521 { 7522 itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) 7523 } 7524 const itemGroupArea_result : ListItemGroupArea | undefined = itemGroupArea_buf 7525 const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7526 let itemIndexInGroup_buf : number | undefined 7527 if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) 7528 { 7529 itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) 7530 } 7531 const itemIndexInGroup_result : number | undefined = itemIndexInGroup_buf 7532 let value : VisibleListContentInfo = ({index: index_result, itemGroupArea: itemGroupArea_result, itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) 7533 return value 7534 } 7535 readCloseSwipeActionOptions(): CloseSwipeActionOptions { 7536 let valueDeserializer : Deserializer = this 7537 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7538 let onFinish_buf : (() => void) | undefined 7539 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 7540 { 7541 onFinish_buf = valueDeserializer.readCallback_Void() 7542 } 7543 const onFinish_result : (() => void) | undefined = onFinish_buf 7544 let value : CloseSwipeActionOptions = ({onFinish: onFinish_result} as CloseSwipeActionOptions) 7545 return value 7546 } 7547 readDrawingColorFilter(): DrawingColorFilter { 7548 let valueDeserializer : Deserializer = this 7549 const _DrawingColorFilterStub_result : string = (valueDeserializer.readString() as string) 7550 let value : DrawingColorFilter = ({_DrawingColorFilterStub: _DrawingColorFilterStub_result} as DrawingColorFilter) 7551 return value 7552 } 7553 readColorFilter(): ColorFilter { 7554 let valueDeserializer : Deserializer = this 7555 let ptr : KPointer = valueDeserializer.readPointer() 7556 return ColorFilterInternal.fromPtr(ptr) 7557 } 7558 readBreakPoints(): BreakPoints { 7559 let valueDeserializer : Deserializer = this 7560 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7561 let value_buf : Array<string> | undefined 7562 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 7563 { 7564 const value_buf__length : int32 = valueDeserializer.readInt32() 7565 let value_buf_ : Array<string> = new Array<string>(value_buf__length) 7566 for (let value_buf__i = 0; value_buf__i < value_buf__length; value_buf__i++) { 7567 value_buf_[value_buf__i] = (valueDeserializer.readString() as string) 7568 } 7569 value_buf = value_buf_ 7570 } 7571 const value_result : Array<string> | undefined = value_buf 7572 const reference_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7573 let reference_buf : BreakpointsReference | undefined 7574 if ((RuntimeType.UNDEFINED) != (reference_buf_runtimeType)) 7575 { 7576 reference_buf = (valueDeserializer.readInt32() as BreakpointsReference) 7577 } 7578 const reference_result : BreakpointsReference | undefined = reference_buf 7579 let value : BreakPoints = ({value: value_result, reference: reference_result} as BreakPoints) 7580 return value 7581 } 7582 readGridAttribute(): GridAttribute { 7583 throw new Error("Interface with functions is not supported") 7584 } 7585 readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { 7586 const _resource : CallbackResource = this.readCallbackResource() 7587 const _call : KPointer = this.readPointer() 7588 const _callSync : KPointer = this.readPointer() 7589 return (index: number):[ number, number, number, number ] => { 7590 const _argsSerializer : Serializer = Serializer.hold(); 7591 _argsSerializer.writeInt32(_resource.resourceId); 7592 _argsSerializer.writePointer(_call); 7593 _argsSerializer.writePointer(_callSync); 7594 _argsSerializer.writeNumber(index); 7595 let _continuationValue : [ number, number, number, number ] | undefined; 7596 const _continuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { _continuationValue = value; } 7597 _argsSerializer.holdAndWriteCallback(_continuationCallback); 7598 (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asBuffer(), _argsSerializer.length())); 7599 _argsSerializer.release(); 7600 return (_continuationValue as [ number, number, number, number ]); } 7601 } 7602 readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { 7603 const _resource : CallbackResource = this.readCallbackResource() 7604 const _call : KPointer = this.readPointer() 7605 const _callSync : KPointer = this.readPointer() 7606 return (index: number):[ number, number ] => { 7607 const _argsSerializer : Serializer = Serializer.hold(); 7608 _argsSerializer.writeInt32(_resource.resourceId); 7609 _argsSerializer.writePointer(_call); 7610 _argsSerializer.writePointer(_callSync); 7611 _argsSerializer.writeNumber(index); 7612 let _continuationValue : [ number, number ] | undefined; 7613 const _continuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { _continuationValue = value; } 7614 _argsSerializer.holdAndWriteCallback(_continuationCallback); 7615 (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asBuffer(), _argsSerializer.length())); 7616 _argsSerializer.release(); 7617 return (_continuationValue as [ number, number ]); } 7618 } 7619 readPanGestureOptions(): PanGestureOptions { 7620 let valueDeserializer : Deserializer = this 7621 let ptr : KPointer = valueDeserializer.readPointer() 7622 return PanGestureOptionsInternal.fromPtr(ptr) 7623 } 7624 readEventTargetInfo(): EventTargetInfo { 7625 let valueDeserializer : Deserializer = this 7626 let ptr : KPointer = valueDeserializer.readPointer() 7627 return EventTargetInfoInternal.fromPtr(ptr) 7628 } 7629 readWindowStatusType(): WindowStatusType { 7630 let valueDeserializer : Deserializer = this 7631 const _WindowStatusTypeStub_result : string = (valueDeserializer.readString() as string) 7632 let value : WindowStatusType = ({_WindowStatusTypeStub: _WindowStatusTypeStub_result} as WindowStatusType) 7633 return value 7634 } 7635 readFlexSpaceOptions(): FlexSpaceOptions { 7636 let valueDeserializer : Deserializer = this 7637 const main_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7638 let main_buf : LengthMetrics | undefined 7639 if ((RuntimeType.UNDEFINED) != (main_buf_runtimeType)) 7640 { 7641 main_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7642 } 7643 const main_result : LengthMetrics | undefined = main_buf 7644 const cross_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7645 let cross_buf : LengthMetrics | undefined 7646 if ((RuntimeType.UNDEFINED) != (cross_buf_runtimeType)) 7647 { 7648 cross_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 7649 } 7650 const cross_result : LengthMetrics | undefined = cross_buf 7651 let value : FlexSpaceOptions = ({main: main_result, cross: cross_result} as FlexSpaceOptions) 7652 return value 7653 } 7654 readDatePickerDialogOptions(): DatePickerDialogOptions { 7655 let valueDeserializer : Deserializer = this 7656 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7657 let start_buf : Date | undefined 7658 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 7659 { 7660 start_buf = new Date(valueDeserializer.readInt64()) 7661 } 7662 const start_result : Date | undefined = start_buf 7663 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7664 let end_buf : Date | undefined 7665 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 7666 { 7667 end_buf = new Date(valueDeserializer.readInt64()) 7668 } 7669 const end_result : Date | undefined = end_buf 7670 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7671 let selected_buf : Date | undefined 7672 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 7673 { 7674 selected_buf = new Date(valueDeserializer.readInt64()) 7675 } 7676 const selected_result : Date | undefined = selected_buf 7677 const lunar_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7678 let lunar_buf : boolean | undefined 7679 if ((RuntimeType.UNDEFINED) != (lunar_buf_runtimeType)) 7680 { 7681 lunar_buf = valueDeserializer.readBoolean() 7682 } 7683 const lunar_result : boolean | undefined = lunar_buf 7684 const lunarSwitch_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7685 let lunarSwitch_buf : boolean | undefined 7686 if ((RuntimeType.UNDEFINED) != (lunarSwitch_buf_runtimeType)) 7687 { 7688 lunarSwitch_buf = valueDeserializer.readBoolean() 7689 } 7690 const lunarSwitch_result : boolean | undefined = lunarSwitch_buf 7691 const lunarSwitchStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7692 let lunarSwitchStyle_buf : LunarSwitchStyle | undefined 7693 if ((RuntimeType.UNDEFINED) != (lunarSwitchStyle_buf_runtimeType)) 7694 { 7695 lunarSwitchStyle_buf = valueDeserializer.readLunarSwitchStyle() 7696 } 7697 const lunarSwitchStyle_result : LunarSwitchStyle | undefined = lunarSwitchStyle_buf 7698 const showTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7699 let showTime_buf : boolean | undefined 7700 if ((RuntimeType.UNDEFINED) != (showTime_buf_runtimeType)) 7701 { 7702 showTime_buf = valueDeserializer.readBoolean() 7703 } 7704 const showTime_result : boolean | undefined = showTime_buf 7705 const useMilitaryTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7706 let useMilitaryTime_buf : boolean | undefined 7707 if ((RuntimeType.UNDEFINED) != (useMilitaryTime_buf_runtimeType)) 7708 { 7709 useMilitaryTime_buf = valueDeserializer.readBoolean() 7710 } 7711 const useMilitaryTime_result : boolean | undefined = useMilitaryTime_buf 7712 const disappearTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7713 let disappearTextStyle_buf : PickerTextStyle | undefined 7714 if ((RuntimeType.UNDEFINED) != (disappearTextStyle_buf_runtimeType)) 7715 { 7716 disappearTextStyle_buf = valueDeserializer.readPickerTextStyle() 7717 } 7718 const disappearTextStyle_result : PickerTextStyle | undefined = disappearTextStyle_buf 7719 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7720 let textStyle_buf : PickerTextStyle | undefined 7721 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 7722 { 7723 textStyle_buf = valueDeserializer.readPickerTextStyle() 7724 } 7725 const textStyle_result : PickerTextStyle | undefined = textStyle_buf 7726 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7727 let acceptButtonStyle_buf : PickerDialogButtonStyle | undefined 7728 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 7729 { 7730 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 7731 } 7732 const acceptButtonStyle_result : PickerDialogButtonStyle | undefined = acceptButtonStyle_buf 7733 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7734 let cancelButtonStyle_buf : PickerDialogButtonStyle | undefined 7735 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 7736 { 7737 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 7738 } 7739 const cancelButtonStyle_result : PickerDialogButtonStyle | undefined = cancelButtonStyle_buf 7740 const selectedTextStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7741 let selectedTextStyle_buf : PickerTextStyle | undefined 7742 if ((RuntimeType.UNDEFINED) != (selectedTextStyle_buf_runtimeType)) 7743 { 7744 selectedTextStyle_buf = valueDeserializer.readPickerTextStyle() 7745 } 7746 const selectedTextStyle_result : PickerTextStyle | undefined = selectedTextStyle_buf 7747 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7748 let maskRect_buf : Rectangle | undefined 7749 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 7750 { 7751 maskRect_buf = valueDeserializer.readRectangle() 7752 } 7753 const maskRect_result : Rectangle | undefined = maskRect_buf 7754 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7755 let alignment_buf : DialogAlignment | undefined 7756 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 7757 { 7758 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 7759 } 7760 const alignment_result : DialogAlignment | undefined = alignment_buf 7761 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7762 let offset_buf : Offset | undefined 7763 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 7764 { 7765 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 7766 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 7767 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 7768 } 7769 const offset_result : Offset | undefined = offset_buf 7770 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7771 let onAccept_buf : ((value: DatePickerResult) => void) | undefined 7772 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 7773 { 7774 onAccept_buf = valueDeserializer.readCallback_DatePickerResult_Void() 7775 } 7776 const onAccept_result : ((value: DatePickerResult) => void) | undefined = onAccept_buf 7777 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7778 let onCancel_buf : VoidCallback | undefined 7779 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 7780 { 7781 onCancel_buf = valueDeserializer.readVoidCallback() 7782 } 7783 const onCancel_result : VoidCallback | undefined = onCancel_buf 7784 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7785 let onChange_buf : ((value: DatePickerResult) => void) | undefined 7786 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 7787 { 7788 onChange_buf = valueDeserializer.readCallback_DatePickerResult_Void() 7789 } 7790 const onChange_result : ((value: DatePickerResult) => void) | undefined = onChange_buf 7791 const onDateAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7792 let onDateAccept_buf : ((parameter: Date) => void) | undefined 7793 if ((RuntimeType.UNDEFINED) != (onDateAccept_buf_runtimeType)) 7794 { 7795 onDateAccept_buf = valueDeserializer.readCallback_Date_Void() 7796 } 7797 const onDateAccept_result : ((parameter: Date) => void) | undefined = onDateAccept_buf 7798 const onDateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7799 let onDateChange_buf : ((parameter: Date) => void) | undefined 7800 if ((RuntimeType.UNDEFINED) != (onDateChange_buf_runtimeType)) 7801 { 7802 onDateChange_buf = valueDeserializer.readCallback_Date_Void() 7803 } 7804 const onDateChange_result : ((parameter: Date) => void) | undefined = onDateChange_buf 7805 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7806 let backgroundColor_buf : ResourceColor | undefined 7807 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 7808 { 7809 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 7810 let backgroundColor_buf_ : Color | number | string | Resource | undefined 7811 if (backgroundColor_buf__selector == 0) { 7812 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 7813 } 7814 else if (backgroundColor_buf__selector == 1) { 7815 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 7816 } 7817 else if (backgroundColor_buf__selector == 2) { 7818 backgroundColor_buf_ = (valueDeserializer.readString() as string) 7819 } 7820 else if (backgroundColor_buf__selector == 3) { 7821 backgroundColor_buf_ = valueDeserializer.readResource() 7822 } 7823 else { 7824 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 7825 } 7826 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 7827 } 7828 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 7829 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7830 let backgroundBlurStyle_buf : BlurStyle | undefined 7831 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 7832 { 7833 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 7834 } 7835 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 7836 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7837 let onDidAppear_buf : VoidCallback | undefined 7838 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 7839 { 7840 onDidAppear_buf = valueDeserializer.readVoidCallback() 7841 } 7842 const onDidAppear_result : VoidCallback | undefined = onDidAppear_buf 7843 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7844 let onDidDisappear_buf : VoidCallback | undefined 7845 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 7846 { 7847 onDidDisappear_buf = valueDeserializer.readVoidCallback() 7848 } 7849 const onDidDisappear_result : VoidCallback | undefined = onDidDisappear_buf 7850 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7851 let onWillAppear_buf : VoidCallback | undefined 7852 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 7853 { 7854 onWillAppear_buf = valueDeserializer.readVoidCallback() 7855 } 7856 const onWillAppear_result : VoidCallback | undefined = onWillAppear_buf 7857 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7858 let onWillDisappear_buf : VoidCallback | undefined 7859 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 7860 { 7861 onWillDisappear_buf = valueDeserializer.readVoidCallback() 7862 } 7863 const onWillDisappear_result : VoidCallback | undefined = onWillDisappear_buf 7864 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7865 let shadow_buf : ShadowOptions | ShadowStyle | undefined 7866 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 7867 { 7868 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 7869 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 7870 if (shadow_buf__selector == 0) { 7871 shadow_buf_ = valueDeserializer.readShadowOptions() 7872 } 7873 else if (shadow_buf__selector == 1) { 7874 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 7875 } 7876 else { 7877 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 7878 } 7879 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 7880 } 7881 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 7882 const dateTimeOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7883 let dateTimeOptions_buf : DateTimeOptions | undefined 7884 if ((RuntimeType.UNDEFINED) != (dateTimeOptions_buf_runtimeType)) 7885 { 7886 dateTimeOptions_buf = valueDeserializer.readDateTimeOptions() 7887 } 7888 const dateTimeOptions_result : DateTimeOptions | undefined = dateTimeOptions_buf 7889 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7890 let enableHoverMode_buf : boolean | undefined 7891 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 7892 { 7893 enableHoverMode_buf = valueDeserializer.readBoolean() 7894 } 7895 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 7896 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7897 let hoverModeArea_buf : HoverModeAreaType | undefined 7898 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 7899 { 7900 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 7901 } 7902 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 7903 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) 7904 return value 7905 } 7906 readAnimateParam(): AnimateParam { 7907 let valueDeserializer : Deserializer = this 7908 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7909 let duration_buf : number | undefined 7910 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 7911 { 7912 duration_buf = (valueDeserializer.readNumber() as number) 7913 } 7914 const duration_result : number | undefined = duration_buf 7915 const tempo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7916 let tempo_buf : number | undefined 7917 if ((RuntimeType.UNDEFINED) != (tempo_buf_runtimeType)) 7918 { 7919 tempo_buf = (valueDeserializer.readNumber() as number) 7920 } 7921 const tempo_result : number | undefined = tempo_buf 7922 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7923 let curve_buf : Curve | string | ICurve | undefined 7924 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 7925 { 7926 const curve_buf__selector : int32 = valueDeserializer.readInt8() 7927 let curve_buf_ : Curve | string | ICurve | undefined 7928 if (curve_buf__selector == 0) { 7929 curve_buf_ = (valueDeserializer.readInt32() as Curve) 7930 } 7931 else if (curve_buf__selector == 1) { 7932 curve_buf_ = (valueDeserializer.readString() as string) 7933 } 7934 else if (curve_buf__selector == 2) { 7935 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 7936 } 7937 else { 7938 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 7939 } 7940 curve_buf = (curve_buf_ as Curve | string | ICurve) 7941 } 7942 const curve_result : Curve | string | ICurve | undefined = curve_buf 7943 const delay_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7944 let delay_buf : number | undefined 7945 if ((RuntimeType.UNDEFINED) != (delay_buf_runtimeType)) 7946 { 7947 delay_buf = (valueDeserializer.readNumber() as number) 7948 } 7949 const delay_result : number | undefined = delay_buf 7950 const iterations_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7951 let iterations_buf : number | undefined 7952 if ((RuntimeType.UNDEFINED) != (iterations_buf_runtimeType)) 7953 { 7954 iterations_buf = (valueDeserializer.readNumber() as number) 7955 } 7956 const iterations_result : number | undefined = iterations_buf 7957 const playMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7958 let playMode_buf : PlayMode | undefined 7959 if ((RuntimeType.UNDEFINED) != (playMode_buf_runtimeType)) 7960 { 7961 playMode_buf = (valueDeserializer.readInt32() as PlayMode) 7962 } 7963 const playMode_result : PlayMode | undefined = playMode_buf 7964 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7965 let onFinish_buf : (() => void) | undefined 7966 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 7967 { 7968 onFinish_buf = valueDeserializer.readCallback_Void() 7969 } 7970 const onFinish_result : (() => void) | undefined = onFinish_buf 7971 const finishCallbackType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7972 let finishCallbackType_buf : FinishCallbackType | undefined 7973 if ((RuntimeType.UNDEFINED) != (finishCallbackType_buf_runtimeType)) 7974 { 7975 finishCallbackType_buf = (valueDeserializer.readInt32() as FinishCallbackType) 7976 } 7977 const finishCallbackType_result : FinishCallbackType | undefined = finishCallbackType_buf 7978 const expectedFrameRateRange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 7979 let expectedFrameRateRange_buf : ExpectedFrameRateRange | undefined 7980 if ((RuntimeType.UNDEFINED) != (expectedFrameRateRange_buf_runtimeType)) 7981 { 7982 expectedFrameRateRange_buf = valueDeserializer.readExpectedFrameRateRange() 7983 } 7984 const expectedFrameRateRange_result : ExpectedFrameRateRange | undefined = expectedFrameRateRange_buf 7985 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) 7986 return value 7987 } 7988 readComponent3DAttribute(): Component3DAttribute { 7989 throw new Error("Interface with functions is not supported") 7990 } 7991 readUIGestureEvent(): UIGestureEvent { 7992 throw new Error("Interface with functions is not supported") 7993 } 7994 readVisibleAreaChangeCallback(isSync: boolean = false): VisibleAreaChangeCallback { 7995 const _resource : CallbackResource = this.readCallbackResource() 7996 const _call : KPointer = this.readPointer() 7997 const _callSync : KPointer = this.readPointer() 7998 return (isExpanding: boolean, currentRatio: number):void => { 7999 const _argsSerializer : Serializer = Serializer.hold(); 8000 _argsSerializer.writeInt32(_resource.resourceId); 8001 _argsSerializer.writePointer(_call); 8002 _argsSerializer.writePointer(_callSync); 8003 _argsSerializer.writeBoolean(isExpanding); 8004 _argsSerializer.writeNumber(currentRatio); 8005 (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asBuffer(), _argsSerializer.length())); 8006 _argsSerializer.release(); 8007 return; } 8008 } 8009 readVisibleAreaEventOptions(): VisibleAreaEventOptions { 8010 let valueDeserializer : Deserializer = this 8011 const ratios_buf_length : int32 = valueDeserializer.readInt32() 8012 let ratios_buf : Array<number> = new Array<number>(ratios_buf_length) 8013 for (let ratios_buf_i = 0; ratios_buf_i < ratios_buf_length; ratios_buf_i++) { 8014 ratios_buf[ratios_buf_i] = (valueDeserializer.readNumber() as number) 8015 } 8016 const ratios_result : Array<number> = ratios_buf 8017 const expectedUpdateInterval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8018 let expectedUpdateInterval_buf : number | undefined 8019 if ((RuntimeType.UNDEFINED) != (expectedUpdateInterval_buf_runtimeType)) 8020 { 8021 expectedUpdateInterval_buf = (valueDeserializer.readNumber() as number) 8022 } 8023 const expectedUpdateInterval_result : number | undefined = expectedUpdateInterval_buf 8024 let value : VisibleAreaEventOptions = ({ratios: ratios_result, expectedUpdateInterval: expectedUpdateInterval_result} as VisibleAreaEventOptions) 8025 return value 8026 } 8027 readSizeChangeCallback(isSync: boolean = false): SizeChangeCallback { 8028 const _resource : CallbackResource = this.readCallbackResource() 8029 const _call : KPointer = this.readPointer() 8030 const _callSync : KPointer = this.readPointer() 8031 return (oldValue: SizeOptions, newValue: SizeOptions):void => { 8032 const _argsSerializer : Serializer = Serializer.hold(); 8033 _argsSerializer.writeInt32(_resource.resourceId); 8034 _argsSerializer.writePointer(_call); 8035 _argsSerializer.writePointer(_callSync); 8036 _argsSerializer.writeSizeOptions(oldValue); 8037 _argsSerializer.writeSizeOptions(newValue); 8038 (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asBuffer(), _argsSerializer.length())); 8039 _argsSerializer.release(); 8040 return; } 8041 } 8042 readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { 8043 const _resource : CallbackResource = this.readCallbackResource() 8044 const _call : KPointer = this.readPointer() 8045 const _callSync : KPointer = this.readPointer() 8046 return (event: MouseEvent):void => { 8047 const _argsSerializer : Serializer = Serializer.hold(); 8048 _argsSerializer.writeInt32(_resource.resourceId); 8049 _argsSerializer.writePointer(_call); 8050 _argsSerializer.writePointer(_callSync); 8051 _argsSerializer.writeMouseEvent(event); 8052 (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asBuffer(), _argsSerializer.length())); 8053 _argsSerializer.release(); 8054 return; } 8055 } 8056 readHoverCallback(isSync: boolean = false): HoverCallback { 8057 const _resource : CallbackResource = this.readCallbackResource() 8058 const _call : KPointer = this.readPointer() 8059 const _callSync : KPointer = this.readPointer() 8060 return (isHover: boolean, event: HoverEvent):void => { 8061 const _argsSerializer : Serializer = Serializer.hold(); 8062 _argsSerializer.writeInt32(_resource.resourceId); 8063 _argsSerializer.writePointer(_call); 8064 _argsSerializer.writePointer(_callSync); 8065 _argsSerializer.writeBoolean(isHover); 8066 _argsSerializer.writeHoverEvent(event); 8067 (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asBuffer(), _argsSerializer.length())); 8068 _argsSerializer.release(); 8069 return; } 8070 } 8071 readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { 8072 const _resource : CallbackResource = this.readCallbackResource() 8073 const _call : KPointer = this.readPointer() 8074 const _callSync : KPointer = this.readPointer() 8075 return (event: KeyEvent):void => { 8076 const _argsSerializer : Serializer = Serializer.hold(); 8077 _argsSerializer.writeInt32(_resource.resourceId); 8078 _argsSerializer.writePointer(_call); 8079 _argsSerializer.writePointer(_callSync); 8080 _argsSerializer.writeKeyEvent(event); 8081 (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asBuffer(), _argsSerializer.length())); 8082 _argsSerializer.release(); 8083 return; } 8084 } 8085 readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { 8086 const _resource : CallbackResource = this.readCallbackResource() 8087 const _call : KPointer = this.readPointer() 8088 const _callSync : KPointer = this.readPointer() 8089 return (event: TouchEvent):void => { 8090 const _argsSerializer : Serializer = Serializer.hold(); 8091 _argsSerializer.writeInt32(_resource.resourceId); 8092 _argsSerializer.writePointer(_call); 8093 _argsSerializer.writePointer(_callSync); 8094 _argsSerializer.writeTouchEvent(event); 8095 (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asBuffer(), _argsSerializer.length())); 8096 _argsSerializer.release(); 8097 return; } 8098 } 8099 readFadingEdgeOptions(): FadingEdgeOptions { 8100 let valueDeserializer : Deserializer = this 8101 const fadingEdgeLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8102 let fadingEdgeLength_buf : LengthMetrics | undefined 8103 if ((RuntimeType.UNDEFINED) != (fadingEdgeLength_buf_runtimeType)) 8104 { 8105 fadingEdgeLength_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 8106 } 8107 const fadingEdgeLength_result : LengthMetrics | undefined = fadingEdgeLength_buf 8108 let value : FadingEdgeOptions = ({fadingEdgeLength: fadingEdgeLength_result} as FadingEdgeOptions) 8109 return value 8110 } 8111 readRectShape(): RectShape { 8112 let valueDeserializer : Deserializer = this 8113 let ptr : KPointer = valueDeserializer.readPointer() 8114 return RectShapeInternal.fromPtr(ptr) 8115 } 8116 readCaretOffset(): CaretOffset { 8117 let valueDeserializer : Deserializer = this 8118 const index_result : number = (valueDeserializer.readNumber() as number) 8119 const x_result : number = (valueDeserializer.readNumber() as number) 8120 const y_result : number = (valueDeserializer.readNumber() as number) 8121 let value : CaretOffset = ({index: index_result, x: x_result, y: y_result} as CaretOffset) 8122 return value 8123 } 8124 readDirectionalEdgesT(): DirectionalEdgesT { 8125 let valueDeserializer : Deserializer = this 8126 const start_result : number = (valueDeserializer.readNumber() as number) 8127 const end_result : number = (valueDeserializer.readNumber() as number) 8128 const top_result : number = (valueDeserializer.readNumber() as number) 8129 const bottom_result : number = (valueDeserializer.readNumber() as number) 8130 let value : DirectionalEdgesT = ({start: start_result, end: end_result, top: top_result, bottom: bottom_result} as DirectionalEdgesT) 8131 return value 8132 } 8133 readMeasureResult(): MeasureResult { 8134 let valueDeserializer : Deserializer = this 8135 const width_result : number = (valueDeserializer.readNumber() as number) 8136 const height_result : number = (valueDeserializer.readNumber() as number) 8137 let value : MeasureResult = ({width: width_result, height: height_result} as MeasureResult) 8138 return value 8139 } 8140 readConstraintSizeOptions(): ConstraintSizeOptions { 8141 let valueDeserializer : Deserializer = this 8142 const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8143 let minWidth_buf : Length | undefined 8144 if ((RuntimeType.UNDEFINED) != (minWidth_buf_runtimeType)) 8145 { 8146 minWidth_buf = (valueDeserializer.readLength() as Length) 8147 } 8148 const minWidth_result : Length | undefined = minWidth_buf 8149 const maxWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8150 let maxWidth_buf : Length | undefined 8151 if ((RuntimeType.UNDEFINED) != (maxWidth_buf_runtimeType)) 8152 { 8153 maxWidth_buf = (valueDeserializer.readLength() as Length) 8154 } 8155 const maxWidth_result : Length | undefined = maxWidth_buf 8156 const minHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8157 let minHeight_buf : Length | undefined 8158 if ((RuntimeType.UNDEFINED) != (minHeight_buf_runtimeType)) 8159 { 8160 minHeight_buf = (valueDeserializer.readLength() as Length) 8161 } 8162 const minHeight_result : Length | undefined = minHeight_buf 8163 const maxHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8164 let maxHeight_buf : Length | undefined 8165 if ((RuntimeType.UNDEFINED) != (maxHeight_buf_runtimeType)) 8166 { 8167 maxHeight_buf = (valueDeserializer.readLength() as Length) 8168 } 8169 const maxHeight_result : Length | undefined = maxHeight_buf 8170 let value : ConstraintSizeOptions = ({minWidth: minWidth_result, maxWidth: maxWidth_result, minHeight: minHeight_result, maxHeight: maxHeight_result} as ConstraintSizeOptions) 8171 return value 8172 } 8173 readGestureRecognizerJudgeBeginCallback(isSync: boolean = false): GestureRecognizerJudgeBeginCallback { 8174 const _resource : CallbackResource = this.readCallbackResource() 8175 const _call : KPointer = this.readPointer() 8176 const _callSync : KPointer = this.readPointer() 8177 return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array<GestureRecognizer>):GestureJudgeResult => { 8178 const _argsSerializer : Serializer = Serializer.hold(); 8179 _argsSerializer.writeInt32(_resource.resourceId); 8180 _argsSerializer.writePointer(_call); 8181 _argsSerializer.writePointer(_callSync); 8182 _argsSerializer.writeBaseGestureEvent(event); 8183 _argsSerializer.writeGestureRecognizer(current); 8184 _argsSerializer.writeInt32(recognizers.length as int32); 8185 for (let i = 0; i < recognizers.length; i++) { 8186 const recognizers_element : GestureRecognizer = recognizers[i]; 8187 _argsSerializer.writeGestureRecognizer(recognizers_element); 8188 } 8189 let _continuationValue : GestureJudgeResult | undefined; 8190 const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } 8191 _argsSerializer.holdAndWriteCallback(_continuationCallback); 8192 (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asBuffer(), _argsSerializer.length())); 8193 _argsSerializer.release(); 8194 return (_continuationValue as GestureJudgeResult); } 8195 } 8196 readAccessibilityOptions(): AccessibilityOptions { 8197 let valueDeserializer : Deserializer = this 8198 const accessibilityPreferred_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8199 let accessibilityPreferred_buf : boolean | undefined 8200 if ((RuntimeType.UNDEFINED) != (accessibilityPreferred_buf_runtimeType)) 8201 { 8202 accessibilityPreferred_buf = valueDeserializer.readBoolean() 8203 } 8204 const accessibilityPreferred_result : boolean | undefined = accessibilityPreferred_buf 8205 let value : AccessibilityOptions = ({accessibilityPreferred: accessibilityPreferred_result} as AccessibilityOptions) 8206 return value 8207 } 8208 readSheetOptions(): SheetOptions { 8209 let valueDeserializer : Deserializer = this 8210 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8211 let backgroundColor_buf : ResourceColor | undefined 8212 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 8213 { 8214 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 8215 let backgroundColor_buf_ : Color | number | string | Resource | undefined 8216 if (backgroundColor_buf__selector == 0) { 8217 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 8218 } 8219 else if (backgroundColor_buf__selector == 1) { 8220 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 8221 } 8222 else if (backgroundColor_buf__selector == 2) { 8223 backgroundColor_buf_ = (valueDeserializer.readString() as string) 8224 } 8225 else if (backgroundColor_buf__selector == 3) { 8226 backgroundColor_buf_ = valueDeserializer.readResource() 8227 } 8228 else { 8229 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 8230 } 8231 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 8232 } 8233 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 8234 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8235 let onAppear_buf : (() => void) | undefined 8236 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8237 { 8238 onAppear_buf = valueDeserializer.readCallback_Void() 8239 } 8240 const onAppear_result : (() => void) | undefined = onAppear_buf 8241 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8242 let onDisappear_buf : (() => void) | undefined 8243 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8244 { 8245 onDisappear_buf = valueDeserializer.readCallback_Void() 8246 } 8247 const onDisappear_result : (() => void) | undefined = onDisappear_buf 8248 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8249 let onWillAppear_buf : (() => void) | undefined 8250 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 8251 { 8252 onWillAppear_buf = valueDeserializer.readCallback_Void() 8253 } 8254 const onWillAppear_result : (() => void) | undefined = onWillAppear_buf 8255 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8256 let onWillDisappear_buf : (() => void) | undefined 8257 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 8258 { 8259 onWillDisappear_buf = valueDeserializer.readCallback_Void() 8260 } 8261 const onWillDisappear_result : (() => void) | undefined = onWillDisappear_buf 8262 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8263 let height_buf : SheetSize | Length | undefined 8264 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 8265 { 8266 const height_buf__selector : int32 = valueDeserializer.readInt8() 8267 let height_buf_ : SheetSize | Length | undefined 8268 if (height_buf__selector == 0) { 8269 height_buf_ = (valueDeserializer.readInt32() as SheetSize) 8270 } 8271 else if (height_buf__selector == 1) { 8272 height_buf_ = (valueDeserializer.readLength() as Length) 8273 } 8274 else { 8275 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 8276 } 8277 height_buf = (height_buf_ as SheetSize | Length) 8278 } 8279 const height_result : SheetSize | Length | undefined = height_buf 8280 const dragBar_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8281 let dragBar_buf : boolean | undefined 8282 if ((RuntimeType.UNDEFINED) != (dragBar_buf_runtimeType)) 8283 { 8284 dragBar_buf = valueDeserializer.readBoolean() 8285 } 8286 const dragBar_result : boolean | undefined = dragBar_buf 8287 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8288 let maskColor_buf : ResourceColor | undefined 8289 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 8290 { 8291 const maskColor_buf__selector : int32 = valueDeserializer.readInt8() 8292 let maskColor_buf_ : Color | number | string | Resource | undefined 8293 if (maskColor_buf__selector == 0) { 8294 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 8295 } 8296 else if (maskColor_buf__selector == 1) { 8297 maskColor_buf_ = (valueDeserializer.readNumber() as number) 8298 } 8299 else if (maskColor_buf__selector == 2) { 8300 maskColor_buf_ = (valueDeserializer.readString() as string) 8301 } 8302 else if (maskColor_buf__selector == 3) { 8303 maskColor_buf_ = valueDeserializer.readResource() 8304 } 8305 else { 8306 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 8307 } 8308 maskColor_buf = (maskColor_buf_ as Color | number | string | Resource) 8309 } 8310 const maskColor_result : ResourceColor | undefined = maskColor_buf 8311 const detents_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8312 let detents_buf : [ SheetSize | Length, SheetSize | Length | undefined, SheetSize | Length | undefined ] | undefined 8313 if ((RuntimeType.UNDEFINED) != (detents_buf_runtimeType)) 8314 { 8315 const detents_buf__value0_buf_selector : int32 = valueDeserializer.readInt8() 8316 let detents_buf__value0_buf : SheetSize | Length | undefined 8317 if (detents_buf__value0_buf_selector == 0) { 8318 detents_buf__value0_buf = (valueDeserializer.readInt32() as SheetSize) 8319 } 8320 else if (detents_buf__value0_buf_selector == 1) { 8321 detents_buf__value0_buf = (valueDeserializer.readLength() as Length) 8322 } 8323 else { 8324 throw new Error("One of the branches for detents_buf__value0_buf has to be chosen through deserialisation.") 8325 } 8326 const detents_buf__value0 : SheetSize | Length = (detents_buf__value0_buf as SheetSize | Length) 8327 const detents_buf__value1_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8328 let detents_buf__value1_buf : SheetSize | Length | undefined 8329 if ((RuntimeType.UNDEFINED) != (detents_buf__value1_buf_runtimeType)) 8330 { 8331 const detents_buf__value1_buf__selector : int32 = valueDeserializer.readInt8() 8332 let detents_buf__value1_buf_ : SheetSize | Length | undefined 8333 if (detents_buf__value1_buf__selector == 0) { 8334 detents_buf__value1_buf_ = (valueDeserializer.readInt32() as SheetSize) 8335 } 8336 else if (detents_buf__value1_buf__selector == 1) { 8337 detents_buf__value1_buf_ = (valueDeserializer.readLength() as Length) 8338 } 8339 else { 8340 throw new Error("One of the branches for detents_buf__value1_buf_ has to be chosen through deserialisation.") 8341 } 8342 detents_buf__value1_buf = (detents_buf__value1_buf_ as SheetSize | Length) 8343 } 8344 const detents_buf__value1 : undefined | SheetSize | Length = detents_buf__value1_buf 8345 const detents_buf__value2_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8346 let detents_buf__value2_buf : SheetSize | Length | undefined 8347 if ((RuntimeType.UNDEFINED) != (detents_buf__value2_buf_runtimeType)) 8348 { 8349 const detents_buf__value2_buf__selector : int32 = valueDeserializer.readInt8() 8350 let detents_buf__value2_buf_ : SheetSize | Length | undefined 8351 if (detents_buf__value2_buf__selector == 0) { 8352 detents_buf__value2_buf_ = (valueDeserializer.readInt32() as SheetSize) 8353 } 8354 else if (detents_buf__value2_buf__selector == 1) { 8355 detents_buf__value2_buf_ = (valueDeserializer.readLength() as Length) 8356 } 8357 else { 8358 throw new Error("One of the branches for detents_buf__value2_buf_ has to be chosen through deserialisation.") 8359 } 8360 detents_buf__value2_buf = (detents_buf__value2_buf_ as SheetSize | Length) 8361 } 8362 const detents_buf__value2 : undefined | SheetSize | Length = detents_buf__value2_buf 8363 detents_buf = ([detents_buf__value0, detents_buf__value1, detents_buf__value2] as [ SheetSize | Length, SheetSize | Length | undefined, SheetSize | Length | undefined ]) 8364 } 8365 const detents_result : [ SheetSize | Length, SheetSize | Length | undefined, SheetSize | Length | undefined ] | undefined = detents_buf 8366 const blurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8367 let blurStyle_buf : BlurStyle | undefined 8368 if ((RuntimeType.UNDEFINED) != (blurStyle_buf_runtimeType)) 8369 { 8370 blurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 8371 } 8372 const blurStyle_result : BlurStyle | undefined = blurStyle_buf 8373 const showClose_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8374 let showClose_buf : boolean | Resource | undefined 8375 if ((RuntimeType.UNDEFINED) != (showClose_buf_runtimeType)) 8376 { 8377 const showClose_buf__selector : int32 = valueDeserializer.readInt8() 8378 let showClose_buf_ : boolean | Resource | undefined 8379 if (showClose_buf__selector == 0) { 8380 showClose_buf_ = valueDeserializer.readBoolean() 8381 } 8382 else if (showClose_buf__selector == 1) { 8383 showClose_buf_ = valueDeserializer.readResource() 8384 } 8385 else { 8386 throw new Error("One of the branches for showClose_buf_ has to be chosen through deserialisation.") 8387 } 8388 showClose_buf = (showClose_buf_ as boolean | Resource) 8389 } 8390 const showClose_result : boolean | Resource | undefined = showClose_buf 8391 const preferType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8392 let preferType_buf : SheetType | undefined 8393 if ((RuntimeType.UNDEFINED) != (preferType_buf_runtimeType)) 8394 { 8395 preferType_buf = (valueDeserializer.readInt32() as SheetType) 8396 } 8397 const preferType_result : SheetType | undefined = preferType_buf 8398 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8399 let title_buf : SheetTitleOptions | CustomBuilder | undefined 8400 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 8401 { 8402 const title_buf__selector : int32 = valueDeserializer.readInt8() 8403 let title_buf_ : SheetTitleOptions | CustomBuilder | undefined 8404 if (title_buf__selector == 0) { 8405 title_buf_ = valueDeserializer.readSheetTitleOptions() 8406 } 8407 else if (title_buf__selector == 1) { 8408 title_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 8409 } 8410 else { 8411 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 8412 } 8413 title_buf = (title_buf_ as SheetTitleOptions | CustomBuilder) 8414 } 8415 const title_result : SheetTitleOptions | CustomBuilder | undefined = title_buf 8416 const shouldDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8417 let shouldDismiss_buf : ((sheetDismiss: SheetDismiss) => void) | undefined 8418 if ((RuntimeType.UNDEFINED) != (shouldDismiss_buf_runtimeType)) 8419 { 8420 shouldDismiss_buf = valueDeserializer.readCallback_SheetDismiss_Void() 8421 } 8422 const shouldDismiss_result : ((sheetDismiss: SheetDismiss) => void) | undefined = shouldDismiss_buf 8423 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8424 let onWillDismiss_buf : ((parameter: DismissSheetAction) => void) | undefined 8425 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 8426 { 8427 onWillDismiss_buf = valueDeserializer.readCallback_DismissSheetAction_Void() 8428 } 8429 const onWillDismiss_result : ((parameter: DismissSheetAction) => void) | undefined = onWillDismiss_buf 8430 const onWillSpringBackWhenDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8431 let onWillSpringBackWhenDismiss_buf : ((parameter: SpringBackAction) => void) | undefined 8432 if ((RuntimeType.UNDEFINED) != (onWillSpringBackWhenDismiss_buf_runtimeType)) 8433 { 8434 onWillSpringBackWhenDismiss_buf = valueDeserializer.readCallback_SpringBackAction_Void() 8435 } 8436 const onWillSpringBackWhenDismiss_result : ((parameter: SpringBackAction) => void) | undefined = onWillSpringBackWhenDismiss_buf 8437 const enableOutsideInteractive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8438 let enableOutsideInteractive_buf : boolean | undefined 8439 if ((RuntimeType.UNDEFINED) != (enableOutsideInteractive_buf_runtimeType)) 8440 { 8441 enableOutsideInteractive_buf = valueDeserializer.readBoolean() 8442 } 8443 const enableOutsideInteractive_result : boolean | undefined = enableOutsideInteractive_buf 8444 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8445 let width_buf : Dimension | undefined 8446 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 8447 { 8448 width_buf = (valueDeserializer.readLength() as Dimension) 8449 } 8450 const width_result : Dimension | undefined = width_buf 8451 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8452 let borderWidth_buf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 8453 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 8454 { 8455 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 8456 let borderWidth_buf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 8457 if (borderWidth_buf__selector == 0) { 8458 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 8459 } 8460 else if (borderWidth_buf__selector == 1) { 8461 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8462 let borderWidth_buf__u_top_buf : Length | undefined 8463 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 8464 { 8465 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 8466 } 8467 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 8468 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8469 let borderWidth_buf__u_right_buf : Length | undefined 8470 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 8471 { 8472 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 8473 } 8474 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 8475 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8476 let borderWidth_buf__u_bottom_buf : Length | undefined 8477 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 8478 { 8479 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 8480 } 8481 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 8482 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8483 let borderWidth_buf__u_left_buf : Length | undefined 8484 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 8485 { 8486 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 8487 } 8488 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 8489 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 8490 } 8491 else if (borderWidth_buf__selector == 2) { 8492 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 8493 } 8494 else { 8495 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 8496 } 8497 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 8498 } 8499 const borderWidth_result : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidth_buf 8500 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8501 let borderColor_buf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 8502 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 8503 { 8504 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 8505 let borderColor_buf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 8506 if (borderColor_buf__selector == 0) { 8507 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 8508 let borderColor_buf__u : Color | number | string | Resource | undefined 8509 if (borderColor_buf__u_selector == 0) { 8510 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 8511 } 8512 else if (borderColor_buf__u_selector == 1) { 8513 borderColor_buf__u = (valueDeserializer.readNumber() as number) 8514 } 8515 else if (borderColor_buf__u_selector == 2) { 8516 borderColor_buf__u = (valueDeserializer.readString() as string) 8517 } 8518 else if (borderColor_buf__u_selector == 3) { 8519 borderColor_buf__u = valueDeserializer.readResource() 8520 } 8521 else { 8522 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 8523 } 8524 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 8525 } 8526 else if (borderColor_buf__selector == 1) { 8527 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8528 let borderColor_buf__u_top_buf : ResourceColor | undefined 8529 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 8530 { 8531 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 8532 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 8533 if (borderColor_buf__u_top_buf__selector == 0) { 8534 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 8535 } 8536 else if (borderColor_buf__u_top_buf__selector == 1) { 8537 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 8538 } 8539 else if (borderColor_buf__u_top_buf__selector == 2) { 8540 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 8541 } 8542 else if (borderColor_buf__u_top_buf__selector == 3) { 8543 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 8544 } 8545 else { 8546 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 8547 } 8548 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 8549 } 8550 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 8551 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8552 let borderColor_buf__u_right_buf : ResourceColor | undefined 8553 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 8554 { 8555 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 8556 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 8557 if (borderColor_buf__u_right_buf__selector == 0) { 8558 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 8559 } 8560 else if (borderColor_buf__u_right_buf__selector == 1) { 8561 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 8562 } 8563 else if (borderColor_buf__u_right_buf__selector == 2) { 8564 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 8565 } 8566 else if (borderColor_buf__u_right_buf__selector == 3) { 8567 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 8568 } 8569 else { 8570 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 8571 } 8572 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 8573 } 8574 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 8575 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8576 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 8577 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 8578 { 8579 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 8580 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 8581 if (borderColor_buf__u_bottom_buf__selector == 0) { 8582 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 8583 } 8584 else if (borderColor_buf__u_bottom_buf__selector == 1) { 8585 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 8586 } 8587 else if (borderColor_buf__u_bottom_buf__selector == 2) { 8588 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 8589 } 8590 else if (borderColor_buf__u_bottom_buf__selector == 3) { 8591 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 8592 } 8593 else { 8594 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 8595 } 8596 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 8597 } 8598 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 8599 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8600 let borderColor_buf__u_left_buf : ResourceColor | undefined 8601 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 8602 { 8603 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 8604 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 8605 if (borderColor_buf__u_left_buf__selector == 0) { 8606 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 8607 } 8608 else if (borderColor_buf__u_left_buf__selector == 1) { 8609 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 8610 } 8611 else if (borderColor_buf__u_left_buf__selector == 2) { 8612 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 8613 } 8614 else if (borderColor_buf__u_left_buf__selector == 3) { 8615 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 8616 } 8617 else { 8618 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 8619 } 8620 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 8621 } 8622 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 8623 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 8624 } 8625 else if (borderColor_buf__selector == 2) { 8626 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 8627 } 8628 else { 8629 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 8630 } 8631 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 8632 } 8633 const borderColor_result : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColor_buf 8634 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8635 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 8636 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 8637 { 8638 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 8639 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 8640 if (borderStyle_buf__selector == 0) { 8641 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 8642 } 8643 else if (borderStyle_buf__selector == 1) { 8644 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8645 let borderStyle_buf__u_top_buf : BorderStyle | undefined 8646 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 8647 { 8648 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 8649 } 8650 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 8651 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8652 let borderStyle_buf__u_right_buf : BorderStyle | undefined 8653 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 8654 { 8655 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 8656 } 8657 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 8658 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8659 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 8660 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 8661 { 8662 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 8663 } 8664 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 8665 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8666 let borderStyle_buf__u_left_buf : BorderStyle | undefined 8667 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 8668 { 8669 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 8670 } 8671 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 8672 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 8673 } 8674 else { 8675 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 8676 } 8677 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 8678 } 8679 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 8680 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8681 let shadow_buf : ShadowOptions | ShadowStyle | undefined 8682 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 8683 { 8684 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 8685 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 8686 if (shadow_buf__selector == 0) { 8687 shadow_buf_ = valueDeserializer.readShadowOptions() 8688 } 8689 else if (shadow_buf__selector == 1) { 8690 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 8691 } 8692 else { 8693 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 8694 } 8695 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 8696 } 8697 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 8698 const onHeightDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8699 let onHeightDidChange_buf : ((index: number) => void) | undefined 8700 if ((RuntimeType.UNDEFINED) != (onHeightDidChange_buf_runtimeType)) 8701 { 8702 onHeightDidChange_buf = valueDeserializer.readCallback_Number_Void() 8703 } 8704 const onHeightDidChange_result : ((index: number) => void) | undefined = onHeightDidChange_buf 8705 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8706 let mode_buf : SheetMode | undefined 8707 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 8708 { 8709 mode_buf = (valueDeserializer.readInt32() as SheetMode) 8710 } 8711 const mode_result : SheetMode | undefined = mode_buf 8712 const scrollSizeMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8713 let scrollSizeMode_buf : ScrollSizeMode | undefined 8714 if ((RuntimeType.UNDEFINED) != (scrollSizeMode_buf_runtimeType)) 8715 { 8716 scrollSizeMode_buf = (valueDeserializer.readInt32() as ScrollSizeMode) 8717 } 8718 const scrollSizeMode_result : ScrollSizeMode | undefined = scrollSizeMode_buf 8719 const onDetentsDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8720 let onDetentsDidChange_buf : ((index: number) => void) | undefined 8721 if ((RuntimeType.UNDEFINED) != (onDetentsDidChange_buf_runtimeType)) 8722 { 8723 onDetentsDidChange_buf = valueDeserializer.readCallback_Number_Void() 8724 } 8725 const onDetentsDidChange_result : ((index: number) => void) | undefined = onDetentsDidChange_buf 8726 const onWidthDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8727 let onWidthDidChange_buf : ((index: number) => void) | undefined 8728 if ((RuntimeType.UNDEFINED) != (onWidthDidChange_buf_runtimeType)) 8729 { 8730 onWidthDidChange_buf = valueDeserializer.readCallback_Number_Void() 8731 } 8732 const onWidthDidChange_result : ((index: number) => void) | undefined = onWidthDidChange_buf 8733 const onTypeDidChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8734 let onTypeDidChange_buf : ((parameter: SheetType) => void) | undefined 8735 if ((RuntimeType.UNDEFINED) != (onTypeDidChange_buf_runtimeType)) 8736 { 8737 onTypeDidChange_buf = valueDeserializer.readCallback_SheetType_Void() 8738 } 8739 const onTypeDidChange_result : ((parameter: SheetType) => void) | undefined = onTypeDidChange_buf 8740 const uiContext_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8741 let uiContext_buf : UIContext | undefined 8742 if ((RuntimeType.UNDEFINED) != (uiContext_buf_runtimeType)) 8743 { 8744 uiContext_buf = valueDeserializer.readUIContext() 8745 } 8746 const uiContext_result : UIContext | undefined = uiContext_buf 8747 const keyboardAvoidMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8748 let keyboardAvoidMode_buf : SheetKeyboardAvoidMode | undefined 8749 if ((RuntimeType.UNDEFINED) != (keyboardAvoidMode_buf_runtimeType)) 8750 { 8751 keyboardAvoidMode_buf = (valueDeserializer.readInt32() as SheetKeyboardAvoidMode) 8752 } 8753 const keyboardAvoidMode_result : SheetKeyboardAvoidMode | undefined = keyboardAvoidMode_buf 8754 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) 8755 return value 8756 } 8757 readContentCoverOptions(): ContentCoverOptions { 8758 let valueDeserializer : Deserializer = this 8759 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8760 let backgroundColor_buf : ResourceColor | undefined 8761 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 8762 { 8763 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 8764 let backgroundColor_buf_ : Color | number | string | Resource | undefined 8765 if (backgroundColor_buf__selector == 0) { 8766 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 8767 } 8768 else if (backgroundColor_buf__selector == 1) { 8769 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 8770 } 8771 else if (backgroundColor_buf__selector == 2) { 8772 backgroundColor_buf_ = (valueDeserializer.readString() as string) 8773 } 8774 else if (backgroundColor_buf__selector == 3) { 8775 backgroundColor_buf_ = valueDeserializer.readResource() 8776 } 8777 else { 8778 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 8779 } 8780 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 8781 } 8782 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 8783 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8784 let onAppear_buf : (() => void) | undefined 8785 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8786 { 8787 onAppear_buf = valueDeserializer.readCallback_Void() 8788 } 8789 const onAppear_result : (() => void) | undefined = onAppear_buf 8790 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8791 let onDisappear_buf : (() => void) | undefined 8792 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8793 { 8794 onDisappear_buf = valueDeserializer.readCallback_Void() 8795 } 8796 const onDisappear_result : (() => void) | undefined = onDisappear_buf 8797 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8798 let onWillAppear_buf : (() => void) | undefined 8799 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 8800 { 8801 onWillAppear_buf = valueDeserializer.readCallback_Void() 8802 } 8803 const onWillAppear_result : (() => void) | undefined = onWillAppear_buf 8804 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8805 let onWillDisappear_buf : (() => void) | undefined 8806 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 8807 { 8808 onWillDisappear_buf = valueDeserializer.readCallback_Void() 8809 } 8810 const onWillDisappear_result : (() => void) | undefined = onWillDisappear_buf 8811 const modalTransition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8812 let modalTransition_buf : ModalTransition | undefined 8813 if ((RuntimeType.UNDEFINED) != (modalTransition_buf_runtimeType)) 8814 { 8815 modalTransition_buf = (valueDeserializer.readInt32() as ModalTransition) 8816 } 8817 const modalTransition_result : ModalTransition | undefined = modalTransition_buf 8818 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8819 let onWillDismiss_buf : ((parameter: DismissContentCoverAction) => void) | undefined 8820 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 8821 { 8822 onWillDismiss_buf = valueDeserializer.readCallback_DismissContentCoverAction_Void() 8823 } 8824 const onWillDismiss_result : ((parameter: DismissContentCoverAction) => void) | undefined = onWillDismiss_buf 8825 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8826 let transition_buf : TransitionEffect | undefined 8827 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 8828 { 8829 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 8830 } 8831 const transition_result : TransitionEffect | undefined = transition_buf 8832 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) 8833 return value 8834 } 8835 readContextMenuOptions(): ContextMenuOptions { 8836 let valueDeserializer : Deserializer = this 8837 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8838 let offset_buf : Position | undefined 8839 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 8840 { 8841 offset_buf = valueDeserializer.readPosition() 8842 } 8843 const offset_result : Position | undefined = offset_buf 8844 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8845 let placement_buf : Placement | undefined 8846 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 8847 { 8848 placement_buf = (valueDeserializer.readInt32() as Placement) 8849 } 8850 const placement_result : Placement | undefined = placement_buf 8851 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8852 let enableArrow_buf : boolean | undefined 8853 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 8854 { 8855 enableArrow_buf = valueDeserializer.readBoolean() 8856 } 8857 const enableArrow_result : boolean | undefined = enableArrow_buf 8858 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8859 let arrowOffset_buf : Length | undefined 8860 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 8861 { 8862 arrowOffset_buf = (valueDeserializer.readLength() as Length) 8863 } 8864 const arrowOffset_result : Length | undefined = arrowOffset_buf 8865 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8866 let preview_buf : MenuPreviewMode | CustomBuilder | undefined 8867 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 8868 { 8869 const preview_buf__selector : int32 = valueDeserializer.readInt8() 8870 let preview_buf_ : MenuPreviewMode | CustomBuilder | undefined 8871 if (preview_buf__selector == 0) { 8872 preview_buf_ = (valueDeserializer.readInt32() as MenuPreviewMode) 8873 } 8874 else if (preview_buf__selector == 1) { 8875 preview_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 8876 } 8877 else { 8878 throw new Error("One of the branches for preview_buf_ has to be chosen through deserialisation.") 8879 } 8880 preview_buf = (preview_buf_ as MenuPreviewMode | CustomBuilder) 8881 } 8882 const preview_result : MenuPreviewMode | CustomBuilder | undefined = preview_buf 8883 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8884 let borderRadius_buf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined 8885 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 8886 { 8887 const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() 8888 let borderRadius_buf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined 8889 if (borderRadius_buf__selector == 0) { 8890 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 8891 } 8892 else if (borderRadius_buf__selector == 1) { 8893 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8894 let borderRadius_buf__u_topLeft_buf : Length | undefined 8895 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 8896 { 8897 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 8898 } 8899 const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf 8900 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8901 let borderRadius_buf__u_topRight_buf : Length | undefined 8902 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 8903 { 8904 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 8905 } 8906 const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf 8907 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8908 let borderRadius_buf__u_bottomLeft_buf : Length | undefined 8909 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 8910 { 8911 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 8912 } 8913 const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf 8914 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8915 let borderRadius_buf__u_bottomRight_buf : Length | undefined 8916 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 8917 { 8918 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 8919 } 8920 const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf 8921 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 8922 } 8923 else if (borderRadius_buf__selector == 2) { 8924 borderRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 8925 } 8926 else { 8927 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 8928 } 8929 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) 8930 } 8931 const borderRadius_result : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadius_buf 8932 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8933 let onAppear_buf : (() => void) | undefined 8934 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 8935 { 8936 onAppear_buf = valueDeserializer.readCallback_Void() 8937 } 8938 const onAppear_result : (() => void) | undefined = onAppear_buf 8939 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8940 let onDisappear_buf : (() => void) | undefined 8941 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 8942 { 8943 onDisappear_buf = valueDeserializer.readCallback_Void() 8944 } 8945 const onDisappear_result : (() => void) | undefined = onDisappear_buf 8946 const aboutToAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8947 let aboutToAppear_buf : (() => void) | undefined 8948 if ((RuntimeType.UNDEFINED) != (aboutToAppear_buf_runtimeType)) 8949 { 8950 aboutToAppear_buf = valueDeserializer.readCallback_Void() 8951 } 8952 const aboutToAppear_result : (() => void) | undefined = aboutToAppear_buf 8953 const aboutToDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8954 let aboutToDisappear_buf : (() => void) | undefined 8955 if ((RuntimeType.UNDEFINED) != (aboutToDisappear_buf_runtimeType)) 8956 { 8957 aboutToDisappear_buf = valueDeserializer.readCallback_Void() 8958 } 8959 const aboutToDisappear_result : (() => void) | undefined = aboutToDisappear_buf 8960 const layoutRegionMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8961 let layoutRegionMargin_buf : Margin | undefined 8962 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf_runtimeType)) 8963 { 8964 const layoutRegionMargin_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8965 let layoutRegionMargin_buf__top_buf : Length | undefined 8966 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__top_buf_runtimeType)) 8967 { 8968 layoutRegionMargin_buf__top_buf = (valueDeserializer.readLength() as Length) 8969 } 8970 const layoutRegionMargin_buf__top : undefined | Length = layoutRegionMargin_buf__top_buf 8971 const layoutRegionMargin_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8972 let layoutRegionMargin_buf__right_buf : Length | undefined 8973 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__right_buf_runtimeType)) 8974 { 8975 layoutRegionMargin_buf__right_buf = (valueDeserializer.readLength() as Length) 8976 } 8977 const layoutRegionMargin_buf__right : undefined | Length = layoutRegionMargin_buf__right_buf 8978 const layoutRegionMargin_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8979 let layoutRegionMargin_buf__bottom_buf : Length | undefined 8980 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__bottom_buf_runtimeType)) 8981 { 8982 layoutRegionMargin_buf__bottom_buf = (valueDeserializer.readLength() as Length) 8983 } 8984 const layoutRegionMargin_buf__bottom : undefined | Length = layoutRegionMargin_buf__bottom_buf 8985 const layoutRegionMargin_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8986 let layoutRegionMargin_buf__left_buf : Length | undefined 8987 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__left_buf_runtimeType)) 8988 { 8989 layoutRegionMargin_buf__left_buf = (valueDeserializer.readLength() as Length) 8990 } 8991 const layoutRegionMargin_buf__left : undefined | Length = layoutRegionMargin_buf__left_buf 8992 layoutRegionMargin_buf = ({top: layoutRegionMargin_buf__top, right: layoutRegionMargin_buf__right, bottom: layoutRegionMargin_buf__bottom, left: layoutRegionMargin_buf__left} as Padding) 8993 } 8994 const layoutRegionMargin_result : Margin | undefined = layoutRegionMargin_buf 8995 const previewAnimationOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 8996 let previewAnimationOptions_buf : ContextMenuAnimationOptions | undefined 8997 if ((RuntimeType.UNDEFINED) != (previewAnimationOptions_buf_runtimeType)) 8998 { 8999 previewAnimationOptions_buf = valueDeserializer.readContextMenuAnimationOptions() 9000 } 9001 const previewAnimationOptions_result : ContextMenuAnimationOptions | undefined = previewAnimationOptions_buf 9002 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9003 let backgroundColor_buf : ResourceColor | undefined 9004 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 9005 { 9006 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 9007 let backgroundColor_buf_ : Color | number | string | Resource | undefined 9008 if (backgroundColor_buf__selector == 0) { 9009 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 9010 } 9011 else if (backgroundColor_buf__selector == 1) { 9012 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 9013 } 9014 else if (backgroundColor_buf__selector == 2) { 9015 backgroundColor_buf_ = (valueDeserializer.readString() as string) 9016 } 9017 else if (backgroundColor_buf__selector == 3) { 9018 backgroundColor_buf_ = valueDeserializer.readResource() 9019 } 9020 else { 9021 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 9022 } 9023 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 9024 } 9025 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 9026 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9027 let backgroundBlurStyle_buf : BlurStyle | undefined 9028 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9029 { 9030 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9031 } 9032 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 9033 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9034 let transition_buf : TransitionEffect | undefined 9035 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9036 { 9037 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9038 } 9039 const transition_result : TransitionEffect | undefined = transition_buf 9040 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9041 let enableHoverMode_buf : boolean | undefined 9042 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9043 { 9044 enableHoverMode_buf = valueDeserializer.readBoolean() 9045 } 9046 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 9047 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) 9048 return value 9049 } 9050 readMenuOptions(): MenuOptions { 9051 let valueDeserializer : Deserializer = this 9052 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9053 let offset_buf : Position | undefined 9054 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9055 { 9056 offset_buf = valueDeserializer.readPosition() 9057 } 9058 const offset_result : Position | undefined = offset_buf 9059 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9060 let placement_buf : Placement | undefined 9061 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9062 { 9063 placement_buf = (valueDeserializer.readInt32() as Placement) 9064 } 9065 const placement_result : Placement | undefined = placement_buf 9066 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9067 let enableArrow_buf : boolean | undefined 9068 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9069 { 9070 enableArrow_buf = valueDeserializer.readBoolean() 9071 } 9072 const enableArrow_result : boolean | undefined = enableArrow_buf 9073 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9074 let arrowOffset_buf : Length | undefined 9075 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9076 { 9077 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9078 } 9079 const arrowOffset_result : Length | undefined = arrowOffset_buf 9080 const preview_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9081 let preview_buf : MenuPreviewMode | CustomBuilder | undefined 9082 if ((RuntimeType.UNDEFINED) != (preview_buf_runtimeType)) 9083 { 9084 const preview_buf__selector : int32 = valueDeserializer.readInt8() 9085 let preview_buf_ : MenuPreviewMode | CustomBuilder | undefined 9086 if (preview_buf__selector == 0) { 9087 preview_buf_ = (valueDeserializer.readInt32() as MenuPreviewMode) 9088 } 9089 else if (preview_buf__selector == 1) { 9090 preview_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 9091 } 9092 else { 9093 throw new Error("One of the branches for preview_buf_ has to be chosen through deserialisation.") 9094 } 9095 preview_buf = (preview_buf_ as MenuPreviewMode | CustomBuilder) 9096 } 9097 const preview_result : MenuPreviewMode | CustomBuilder | undefined = preview_buf 9098 const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9099 let borderRadius_buf : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined 9100 if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) 9101 { 9102 const borderRadius_buf__selector : int32 = valueDeserializer.readInt8() 9103 let borderRadius_buf_ : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined 9104 if (borderRadius_buf__selector == 0) { 9105 borderRadius_buf_ = (valueDeserializer.readLength() as Length) 9106 } 9107 else if (borderRadius_buf__selector == 1) { 9108 const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9109 let borderRadius_buf__u_topLeft_buf : Length | undefined 9110 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) 9111 { 9112 borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 9113 } 9114 const borderRadius_buf__u_topLeft : undefined | Length = borderRadius_buf__u_topLeft_buf 9115 const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9116 let borderRadius_buf__u_topRight_buf : Length | undefined 9117 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) 9118 { 9119 borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 9120 } 9121 const borderRadius_buf__u_topRight : undefined | Length = borderRadius_buf__u_topRight_buf 9122 const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9123 let borderRadius_buf__u_bottomLeft_buf : Length | undefined 9124 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) 9125 { 9126 borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 9127 } 9128 const borderRadius_buf__u_bottomLeft : undefined | Length = borderRadius_buf__u_bottomLeft_buf 9129 const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9130 let borderRadius_buf__u_bottomRight_buf : Length | undefined 9131 if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) 9132 { 9133 borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 9134 } 9135 const borderRadius_buf__u_bottomRight : undefined | Length = borderRadius_buf__u_bottomRight_buf 9136 borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) 9137 } 9138 else if (borderRadius_buf__selector == 2) { 9139 borderRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 9140 } 9141 else { 9142 throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") 9143 } 9144 borderRadius_buf = (borderRadius_buf_ as Length | BorderRadiuses | LocalizedBorderRadiuses) 9145 } 9146 const borderRadius_result : Length | BorderRadiuses | LocalizedBorderRadiuses | undefined = borderRadius_buf 9147 const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9148 let onAppear_buf : (() => void) | undefined 9149 if ((RuntimeType.UNDEFINED) != (onAppear_buf_runtimeType)) 9150 { 9151 onAppear_buf = valueDeserializer.readCallback_Void() 9152 } 9153 const onAppear_result : (() => void) | undefined = onAppear_buf 9154 const onDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9155 let onDisappear_buf : (() => void) | undefined 9156 if ((RuntimeType.UNDEFINED) != (onDisappear_buf_runtimeType)) 9157 { 9158 onDisappear_buf = valueDeserializer.readCallback_Void() 9159 } 9160 const onDisappear_result : (() => void) | undefined = onDisappear_buf 9161 const aboutToAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9162 let aboutToAppear_buf : (() => void) | undefined 9163 if ((RuntimeType.UNDEFINED) != (aboutToAppear_buf_runtimeType)) 9164 { 9165 aboutToAppear_buf = valueDeserializer.readCallback_Void() 9166 } 9167 const aboutToAppear_result : (() => void) | undefined = aboutToAppear_buf 9168 const aboutToDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9169 let aboutToDisappear_buf : (() => void) | undefined 9170 if ((RuntimeType.UNDEFINED) != (aboutToDisappear_buf_runtimeType)) 9171 { 9172 aboutToDisappear_buf = valueDeserializer.readCallback_Void() 9173 } 9174 const aboutToDisappear_result : (() => void) | undefined = aboutToDisappear_buf 9175 const layoutRegionMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9176 let layoutRegionMargin_buf : Margin | undefined 9177 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf_runtimeType)) 9178 { 9179 const layoutRegionMargin_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9180 let layoutRegionMargin_buf__top_buf : Length | undefined 9181 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__top_buf_runtimeType)) 9182 { 9183 layoutRegionMargin_buf__top_buf = (valueDeserializer.readLength() as Length) 9184 } 9185 const layoutRegionMargin_buf__top : undefined | Length = layoutRegionMargin_buf__top_buf 9186 const layoutRegionMargin_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9187 let layoutRegionMargin_buf__right_buf : Length | undefined 9188 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__right_buf_runtimeType)) 9189 { 9190 layoutRegionMargin_buf__right_buf = (valueDeserializer.readLength() as Length) 9191 } 9192 const layoutRegionMargin_buf__right : undefined | Length = layoutRegionMargin_buf__right_buf 9193 const layoutRegionMargin_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9194 let layoutRegionMargin_buf__bottom_buf : Length | undefined 9195 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__bottom_buf_runtimeType)) 9196 { 9197 layoutRegionMargin_buf__bottom_buf = (valueDeserializer.readLength() as Length) 9198 } 9199 const layoutRegionMargin_buf__bottom : undefined | Length = layoutRegionMargin_buf__bottom_buf 9200 const layoutRegionMargin_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9201 let layoutRegionMargin_buf__left_buf : Length | undefined 9202 if ((RuntimeType.UNDEFINED) != (layoutRegionMargin_buf__left_buf_runtimeType)) 9203 { 9204 layoutRegionMargin_buf__left_buf = (valueDeserializer.readLength() as Length) 9205 } 9206 const layoutRegionMargin_buf__left : undefined | Length = layoutRegionMargin_buf__left_buf 9207 layoutRegionMargin_buf = ({top: layoutRegionMargin_buf__top, right: layoutRegionMargin_buf__right, bottom: layoutRegionMargin_buf__bottom, left: layoutRegionMargin_buf__left} as Padding) 9208 } 9209 const layoutRegionMargin_result : Margin | undefined = layoutRegionMargin_buf 9210 const previewAnimationOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9211 let previewAnimationOptions_buf : ContextMenuAnimationOptions | undefined 9212 if ((RuntimeType.UNDEFINED) != (previewAnimationOptions_buf_runtimeType)) 9213 { 9214 previewAnimationOptions_buf = valueDeserializer.readContextMenuAnimationOptions() 9215 } 9216 const previewAnimationOptions_result : ContextMenuAnimationOptions | undefined = previewAnimationOptions_buf 9217 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9218 let backgroundColor_buf : ResourceColor | undefined 9219 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 9220 { 9221 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 9222 let backgroundColor_buf_ : Color | number | string | Resource | undefined 9223 if (backgroundColor_buf__selector == 0) { 9224 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 9225 } 9226 else if (backgroundColor_buf__selector == 1) { 9227 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 9228 } 9229 else if (backgroundColor_buf__selector == 2) { 9230 backgroundColor_buf_ = (valueDeserializer.readString() as string) 9231 } 9232 else if (backgroundColor_buf__selector == 3) { 9233 backgroundColor_buf_ = valueDeserializer.readResource() 9234 } 9235 else { 9236 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 9237 } 9238 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 9239 } 9240 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 9241 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9242 let backgroundBlurStyle_buf : BlurStyle | undefined 9243 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9244 { 9245 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9246 } 9247 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 9248 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9249 let transition_buf : TransitionEffect | undefined 9250 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9251 { 9252 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9253 } 9254 const transition_result : TransitionEffect | undefined = transition_buf 9255 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9256 let enableHoverMode_buf : boolean | undefined 9257 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9258 { 9259 enableHoverMode_buf = valueDeserializer.readBoolean() 9260 } 9261 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 9262 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9263 let title_buf : ResourceStr | undefined 9264 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 9265 { 9266 const title_buf__selector : int32 = valueDeserializer.readInt8() 9267 let title_buf_ : string | Resource | undefined 9268 if (title_buf__selector == 0) { 9269 title_buf_ = (valueDeserializer.readString() as string) 9270 } 9271 else if (title_buf__selector == 1) { 9272 title_buf_ = valueDeserializer.readResource() 9273 } 9274 else { 9275 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 9276 } 9277 title_buf = (title_buf_ as string | Resource) 9278 } 9279 const title_result : ResourceStr | undefined = title_buf 9280 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9281 let showInSubWindow_buf : boolean | undefined 9282 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9283 { 9284 showInSubWindow_buf = valueDeserializer.readBoolean() 9285 } 9286 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 9287 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) 9288 return value 9289 } 9290 readCustomPopupOptions(): CustomPopupOptions { 9291 let valueDeserializer : Deserializer = this 9292 const builder_result : CustomBuilder = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 9293 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9294 let placement_buf : Placement | undefined 9295 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9296 { 9297 placement_buf = (valueDeserializer.readInt32() as Placement) 9298 } 9299 const placement_result : Placement | undefined = placement_buf 9300 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9301 let maskColor_buf : Color | string | Resource | number | undefined 9302 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 9303 { 9304 const maskColor_buf__selector : int32 = valueDeserializer.readInt8() 9305 let maskColor_buf_ : Color | string | Resource | number | undefined 9306 if (maskColor_buf__selector == 0) { 9307 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 9308 } 9309 else if (maskColor_buf__selector == 1) { 9310 maskColor_buf_ = (valueDeserializer.readString() as string) 9311 } 9312 else if (maskColor_buf__selector == 2) { 9313 maskColor_buf_ = valueDeserializer.readResource() 9314 } 9315 else if (maskColor_buf__selector == 3) { 9316 maskColor_buf_ = (valueDeserializer.readNumber() as number) 9317 } 9318 else { 9319 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 9320 } 9321 maskColor_buf = (maskColor_buf_ as Color | string | Resource | number) 9322 } 9323 const maskColor_result : Color | string | Resource | number | undefined = maskColor_buf 9324 const popupColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9325 let popupColor_buf : Color | string | Resource | number | undefined 9326 if ((RuntimeType.UNDEFINED) != (popupColor_buf_runtimeType)) 9327 { 9328 const popupColor_buf__selector : int32 = valueDeserializer.readInt8() 9329 let popupColor_buf_ : Color | string | Resource | number | undefined 9330 if (popupColor_buf__selector == 0) { 9331 popupColor_buf_ = (valueDeserializer.readInt32() as Color) 9332 } 9333 else if (popupColor_buf__selector == 1) { 9334 popupColor_buf_ = (valueDeserializer.readString() as string) 9335 } 9336 else if (popupColor_buf__selector == 2) { 9337 popupColor_buf_ = valueDeserializer.readResource() 9338 } 9339 else if (popupColor_buf__selector == 3) { 9340 popupColor_buf_ = (valueDeserializer.readNumber() as number) 9341 } 9342 else { 9343 throw new Error("One of the branches for popupColor_buf_ has to be chosen through deserialisation.") 9344 } 9345 popupColor_buf = (popupColor_buf_ as Color | string | Resource | number) 9346 } 9347 const popupColor_result : Color | string | Resource | number | undefined = popupColor_buf 9348 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9349 let enableArrow_buf : boolean | undefined 9350 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9351 { 9352 enableArrow_buf = valueDeserializer.readBoolean() 9353 } 9354 const enableArrow_result : boolean | undefined = enableArrow_buf 9355 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9356 let autoCancel_buf : boolean | undefined 9357 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 9358 { 9359 autoCancel_buf = valueDeserializer.readBoolean() 9360 } 9361 const autoCancel_result : boolean | undefined = autoCancel_buf 9362 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9363 let onStateChange_buf : ((event: Literal_Boolean_isVisible) => void) | undefined 9364 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 9365 { 9366 onStateChange_buf = valueDeserializer.readCallback_Literal_Boolean_isVisible_Void() 9367 } 9368 const onStateChange_result : ((event: Literal_Boolean_isVisible) => void) | undefined = onStateChange_buf 9369 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9370 let arrowOffset_buf : Length | undefined 9371 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9372 { 9373 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9374 } 9375 const arrowOffset_result : Length | undefined = arrowOffset_buf 9376 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9377 let showInSubWindow_buf : boolean | undefined 9378 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9379 { 9380 showInSubWindow_buf = valueDeserializer.readBoolean() 9381 } 9382 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 9383 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9384 let mask_buf : boolean | Literal_ResourceColor_color | undefined 9385 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 9386 { 9387 const mask_buf__selector : int32 = valueDeserializer.readInt8() 9388 let mask_buf_ : boolean | Literal_ResourceColor_color | undefined 9389 if (mask_buf__selector == 0) { 9390 mask_buf_ = valueDeserializer.readBoolean() 9391 } 9392 else if (mask_buf__selector == 1) { 9393 const mask_buf__u_color_buf_selector : int32 = valueDeserializer.readInt8() 9394 let mask_buf__u_color_buf : Color | number | string | Resource | undefined 9395 if (mask_buf__u_color_buf_selector == 0) { 9396 mask_buf__u_color_buf = (valueDeserializer.readInt32() as Color) 9397 } 9398 else if (mask_buf__u_color_buf_selector == 1) { 9399 mask_buf__u_color_buf = (valueDeserializer.readNumber() as number) 9400 } 9401 else if (mask_buf__u_color_buf_selector == 2) { 9402 mask_buf__u_color_buf = (valueDeserializer.readString() as string) 9403 } 9404 else if (mask_buf__u_color_buf_selector == 3) { 9405 mask_buf__u_color_buf = valueDeserializer.readResource() 9406 } 9407 else { 9408 throw new Error("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation.") 9409 } 9410 const mask_buf__u_color : ResourceColor = (mask_buf__u_color_buf as Color | number | string | Resource) 9411 mask_buf_ = ({color: mask_buf__u_color} as Literal_ResourceColor_color) 9412 } 9413 else { 9414 throw new Error("One of the branches for mask_buf_ has to be chosen through deserialisation.") 9415 } 9416 mask_buf = (mask_buf_ as boolean | Literal_ResourceColor_color) 9417 } 9418 const mask_result : boolean | Literal_ResourceColor_color | undefined = mask_buf 9419 const targetSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9420 let targetSpace_buf : Length | undefined 9421 if ((RuntimeType.UNDEFINED) != (targetSpace_buf_runtimeType)) 9422 { 9423 targetSpace_buf = (valueDeserializer.readLength() as Length) 9424 } 9425 const targetSpace_result : Length | undefined = targetSpace_buf 9426 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9427 let offset_buf : Position | undefined 9428 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9429 { 9430 offset_buf = valueDeserializer.readPosition() 9431 } 9432 const offset_result : Position | undefined = offset_buf 9433 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9434 let width_buf : Dimension | undefined 9435 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 9436 { 9437 width_buf = (valueDeserializer.readLength() as Dimension) 9438 } 9439 const width_result : Dimension | undefined = width_buf 9440 const arrowPointPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9441 let arrowPointPosition_buf : ArrowPointPosition | undefined 9442 if ((RuntimeType.UNDEFINED) != (arrowPointPosition_buf_runtimeType)) 9443 { 9444 arrowPointPosition_buf = TypeChecker.ArrowPointPosition_FromOrdinal(valueDeserializer.readInt32()) 9445 } 9446 const arrowPointPosition_result : ArrowPointPosition | undefined = arrowPointPosition_buf 9447 const arrowWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9448 let arrowWidth_buf : Dimension | undefined 9449 if ((RuntimeType.UNDEFINED) != (arrowWidth_buf_runtimeType)) 9450 { 9451 arrowWidth_buf = (valueDeserializer.readLength() as Dimension) 9452 } 9453 const arrowWidth_result : Dimension | undefined = arrowWidth_buf 9454 const arrowHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9455 let arrowHeight_buf : Dimension | undefined 9456 if ((RuntimeType.UNDEFINED) != (arrowHeight_buf_runtimeType)) 9457 { 9458 arrowHeight_buf = (valueDeserializer.readLength() as Dimension) 9459 } 9460 const arrowHeight_result : Dimension | undefined = arrowHeight_buf 9461 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9462 let radius_buf : Dimension | undefined 9463 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 9464 { 9465 radius_buf = (valueDeserializer.readLength() as Dimension) 9466 } 9467 const radius_result : Dimension | undefined = radius_buf 9468 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9469 let shadow_buf : ShadowOptions | ShadowStyle | undefined 9470 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 9471 { 9472 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 9473 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 9474 if (shadow_buf__selector == 0) { 9475 shadow_buf_ = valueDeserializer.readShadowOptions() 9476 } 9477 else if (shadow_buf__selector == 1) { 9478 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 9479 } 9480 else { 9481 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 9482 } 9483 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 9484 } 9485 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 9486 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9487 let backgroundBlurStyle_buf : BlurStyle | undefined 9488 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9489 { 9490 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9491 } 9492 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 9493 const focusable_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9494 let focusable_buf : boolean | undefined 9495 if ((RuntimeType.UNDEFINED) != (focusable_buf_runtimeType)) 9496 { 9497 focusable_buf = valueDeserializer.readBoolean() 9498 } 9499 const focusable_result : boolean | undefined = focusable_buf 9500 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9501 let transition_buf : TransitionEffect | undefined 9502 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9503 { 9504 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9505 } 9506 const transition_result : TransitionEffect | undefined = transition_buf 9507 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9508 let onWillDismiss_buf : boolean | ((parameter: DismissPopupAction) => void) | undefined 9509 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 9510 { 9511 const onWillDismiss_buf__selector : int32 = valueDeserializer.readInt8() 9512 let onWillDismiss_buf_ : boolean | ((parameter: DismissPopupAction) => void) | undefined 9513 if (onWillDismiss_buf__selector == 0) { 9514 onWillDismiss_buf_ = valueDeserializer.readBoolean() 9515 } 9516 else if (onWillDismiss_buf__selector == 1) { 9517 onWillDismiss_buf_ = valueDeserializer.readCallback_DismissPopupAction_Void() 9518 } 9519 else { 9520 throw new Error("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation.") 9521 } 9522 onWillDismiss_buf = (onWillDismiss_buf_ as boolean | ((parameter: DismissPopupAction) => void)) 9523 } 9524 const onWillDismiss_result : boolean | ((parameter: DismissPopupAction) => void) | undefined = onWillDismiss_buf 9525 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9526 let enableHoverMode_buf : boolean | undefined 9527 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9528 { 9529 enableHoverMode_buf = valueDeserializer.readBoolean() 9530 } 9531 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 9532 const followTransformOfTarget_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9533 let followTransformOfTarget_buf : boolean | undefined 9534 if ((RuntimeType.UNDEFINED) != (followTransformOfTarget_buf_runtimeType)) 9535 { 9536 followTransformOfTarget_buf = valueDeserializer.readBoolean() 9537 } 9538 const followTransformOfTarget_result : boolean | undefined = followTransformOfTarget_buf 9539 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) 9540 return value 9541 } 9542 readPopupOptions(): PopupOptions { 9543 let valueDeserializer : Deserializer = this 9544 const message_result : string = (valueDeserializer.readString() as string) 9545 const placementOnTop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9546 let placementOnTop_buf : boolean | undefined 9547 if ((RuntimeType.UNDEFINED) != (placementOnTop_buf_runtimeType)) 9548 { 9549 placementOnTop_buf = valueDeserializer.readBoolean() 9550 } 9551 const placementOnTop_result : boolean | undefined = placementOnTop_buf 9552 const placement_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9553 let placement_buf : Placement | undefined 9554 if ((RuntimeType.UNDEFINED) != (placement_buf_runtimeType)) 9555 { 9556 placement_buf = (valueDeserializer.readInt32() as Placement) 9557 } 9558 const placement_result : Placement | undefined = placement_buf 9559 const primaryButton_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9560 let primaryButton_buf : Literal_String_value_Callback_Void_action | undefined 9561 if ((RuntimeType.UNDEFINED) != (primaryButton_buf_runtimeType)) 9562 { 9563 const primaryButton_buf__value : string = (valueDeserializer.readString() as string) 9564 const primaryButton_buf__action : (() => void) = valueDeserializer.readCallback_Void() 9565 primaryButton_buf = ({value: primaryButton_buf__value, action: primaryButton_buf__action} as Literal_String_value_Callback_Void_action) 9566 } 9567 const primaryButton_result : Literal_String_value_Callback_Void_action | undefined = primaryButton_buf 9568 const secondaryButton_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9569 let secondaryButton_buf : Literal_String_value_Callback_Void_action | undefined 9570 if ((RuntimeType.UNDEFINED) != (secondaryButton_buf_runtimeType)) 9571 { 9572 const secondaryButton_buf__value : string = (valueDeserializer.readString() as string) 9573 const secondaryButton_buf__action : (() => void) = valueDeserializer.readCallback_Void() 9574 secondaryButton_buf = ({value: secondaryButton_buf__value, action: secondaryButton_buf__action} as Literal_String_value_Callback_Void_action) 9575 } 9576 const secondaryButton_result : Literal_String_value_Callback_Void_action | undefined = secondaryButton_buf 9577 const onStateChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9578 let onStateChange_buf : ((event: Literal_Boolean_isVisible) => void) | undefined 9579 if ((RuntimeType.UNDEFINED) != (onStateChange_buf_runtimeType)) 9580 { 9581 onStateChange_buf = valueDeserializer.readCallback_Literal_Boolean_isVisible_Void() 9582 } 9583 const onStateChange_result : ((event: Literal_Boolean_isVisible) => void) | undefined = onStateChange_buf 9584 const arrowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9585 let arrowOffset_buf : Length | undefined 9586 if ((RuntimeType.UNDEFINED) != (arrowOffset_buf_runtimeType)) 9587 { 9588 arrowOffset_buf = (valueDeserializer.readLength() as Length) 9589 } 9590 const arrowOffset_result : Length | undefined = arrowOffset_buf 9591 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9592 let showInSubWindow_buf : boolean | undefined 9593 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 9594 { 9595 showInSubWindow_buf = valueDeserializer.readBoolean() 9596 } 9597 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 9598 const mask_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9599 let mask_buf : boolean | Literal_ResourceColor_color | undefined 9600 if ((RuntimeType.UNDEFINED) != (mask_buf_runtimeType)) 9601 { 9602 const mask_buf__selector : int32 = valueDeserializer.readInt8() 9603 let mask_buf_ : boolean | Literal_ResourceColor_color | undefined 9604 if (mask_buf__selector == 0) { 9605 mask_buf_ = valueDeserializer.readBoolean() 9606 } 9607 else if (mask_buf__selector == 1) { 9608 const mask_buf__u_color_buf_selector : int32 = valueDeserializer.readInt8() 9609 let mask_buf__u_color_buf : Color | number | string | Resource | undefined 9610 if (mask_buf__u_color_buf_selector == 0) { 9611 mask_buf__u_color_buf = (valueDeserializer.readInt32() as Color) 9612 } 9613 else if (mask_buf__u_color_buf_selector == 1) { 9614 mask_buf__u_color_buf = (valueDeserializer.readNumber() as number) 9615 } 9616 else if (mask_buf__u_color_buf_selector == 2) { 9617 mask_buf__u_color_buf = (valueDeserializer.readString() as string) 9618 } 9619 else if (mask_buf__u_color_buf_selector == 3) { 9620 mask_buf__u_color_buf = valueDeserializer.readResource() 9621 } 9622 else { 9623 throw new Error("One of the branches for mask_buf__u_color_buf has to be chosen through deserialisation.") 9624 } 9625 const mask_buf__u_color : ResourceColor = (mask_buf__u_color_buf as Color | number | string | Resource) 9626 mask_buf_ = ({color: mask_buf__u_color} as Literal_ResourceColor_color) 9627 } 9628 else { 9629 throw new Error("One of the branches for mask_buf_ has to be chosen through deserialisation.") 9630 } 9631 mask_buf = (mask_buf_ as boolean | Literal_ResourceColor_color) 9632 } 9633 const mask_result : boolean | Literal_ResourceColor_color | undefined = mask_buf 9634 const messageOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9635 let messageOptions_buf : PopupMessageOptions | undefined 9636 if ((RuntimeType.UNDEFINED) != (messageOptions_buf_runtimeType)) 9637 { 9638 messageOptions_buf = valueDeserializer.readPopupMessageOptions() 9639 } 9640 const messageOptions_result : PopupMessageOptions | undefined = messageOptions_buf 9641 const targetSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9642 let targetSpace_buf : Length | undefined 9643 if ((RuntimeType.UNDEFINED) != (targetSpace_buf_runtimeType)) 9644 { 9645 targetSpace_buf = (valueDeserializer.readLength() as Length) 9646 } 9647 const targetSpace_result : Length | undefined = targetSpace_buf 9648 const enableArrow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9649 let enableArrow_buf : boolean | undefined 9650 if ((RuntimeType.UNDEFINED) != (enableArrow_buf_runtimeType)) 9651 { 9652 enableArrow_buf = valueDeserializer.readBoolean() 9653 } 9654 const enableArrow_result : boolean | undefined = enableArrow_buf 9655 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9656 let offset_buf : Position | undefined 9657 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9658 { 9659 offset_buf = valueDeserializer.readPosition() 9660 } 9661 const offset_result : Position | undefined = offset_buf 9662 const popupColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9663 let popupColor_buf : Color | string | Resource | number | undefined 9664 if ((RuntimeType.UNDEFINED) != (popupColor_buf_runtimeType)) 9665 { 9666 const popupColor_buf__selector : int32 = valueDeserializer.readInt8() 9667 let popupColor_buf_ : Color | string | Resource | number | undefined 9668 if (popupColor_buf__selector == 0) { 9669 popupColor_buf_ = (valueDeserializer.readInt32() as Color) 9670 } 9671 else if (popupColor_buf__selector == 1) { 9672 popupColor_buf_ = (valueDeserializer.readString() as string) 9673 } 9674 else if (popupColor_buf__selector == 2) { 9675 popupColor_buf_ = valueDeserializer.readResource() 9676 } 9677 else if (popupColor_buf__selector == 3) { 9678 popupColor_buf_ = (valueDeserializer.readNumber() as number) 9679 } 9680 else { 9681 throw new Error("One of the branches for popupColor_buf_ has to be chosen through deserialisation.") 9682 } 9683 popupColor_buf = (popupColor_buf_ as Color | string | Resource | number) 9684 } 9685 const popupColor_result : Color | string | Resource | number | undefined = popupColor_buf 9686 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9687 let autoCancel_buf : boolean | undefined 9688 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 9689 { 9690 autoCancel_buf = valueDeserializer.readBoolean() 9691 } 9692 const autoCancel_result : boolean | undefined = autoCancel_buf 9693 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9694 let width_buf : Dimension | undefined 9695 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 9696 { 9697 width_buf = (valueDeserializer.readLength() as Dimension) 9698 } 9699 const width_result : Dimension | undefined = width_buf 9700 const arrowPointPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9701 let arrowPointPosition_buf : ArrowPointPosition | undefined 9702 if ((RuntimeType.UNDEFINED) != (arrowPointPosition_buf_runtimeType)) 9703 { 9704 arrowPointPosition_buf = TypeChecker.ArrowPointPosition_FromOrdinal(valueDeserializer.readInt32()) 9705 } 9706 const arrowPointPosition_result : ArrowPointPosition | undefined = arrowPointPosition_buf 9707 const arrowWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9708 let arrowWidth_buf : Dimension | undefined 9709 if ((RuntimeType.UNDEFINED) != (arrowWidth_buf_runtimeType)) 9710 { 9711 arrowWidth_buf = (valueDeserializer.readLength() as Dimension) 9712 } 9713 const arrowWidth_result : Dimension | undefined = arrowWidth_buf 9714 const arrowHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9715 let arrowHeight_buf : Dimension | undefined 9716 if ((RuntimeType.UNDEFINED) != (arrowHeight_buf_runtimeType)) 9717 { 9718 arrowHeight_buf = (valueDeserializer.readLength() as Dimension) 9719 } 9720 const arrowHeight_result : Dimension | undefined = arrowHeight_buf 9721 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9722 let radius_buf : Dimension | undefined 9723 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 9724 { 9725 radius_buf = (valueDeserializer.readLength() as Dimension) 9726 } 9727 const radius_result : Dimension | undefined = radius_buf 9728 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9729 let shadow_buf : ShadowOptions | ShadowStyle | undefined 9730 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 9731 { 9732 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 9733 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 9734 if (shadow_buf__selector == 0) { 9735 shadow_buf_ = valueDeserializer.readShadowOptions() 9736 } 9737 else if (shadow_buf__selector == 1) { 9738 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 9739 } 9740 else { 9741 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 9742 } 9743 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 9744 } 9745 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 9746 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9747 let backgroundBlurStyle_buf : BlurStyle | undefined 9748 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 9749 { 9750 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 9751 } 9752 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 9753 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9754 let transition_buf : TransitionEffect | undefined 9755 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 9756 { 9757 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 9758 } 9759 const transition_result : TransitionEffect | undefined = transition_buf 9760 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9761 let onWillDismiss_buf : boolean | ((parameter: DismissPopupAction) => void) | undefined 9762 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 9763 { 9764 const onWillDismiss_buf__selector : int32 = valueDeserializer.readInt8() 9765 let onWillDismiss_buf_ : boolean | ((parameter: DismissPopupAction) => void) | undefined 9766 if (onWillDismiss_buf__selector == 0) { 9767 onWillDismiss_buf_ = valueDeserializer.readBoolean() 9768 } 9769 else if (onWillDismiss_buf__selector == 1) { 9770 onWillDismiss_buf_ = valueDeserializer.readCallback_DismissPopupAction_Void() 9771 } 9772 else { 9773 throw new Error("One of the branches for onWillDismiss_buf_ has to be chosen through deserialisation.") 9774 } 9775 onWillDismiss_buf = (onWillDismiss_buf_ as boolean | ((parameter: DismissPopupAction) => void)) 9776 } 9777 const onWillDismiss_result : boolean | ((parameter: DismissPopupAction) => void) | undefined = onWillDismiss_buf 9778 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9779 let enableHoverMode_buf : boolean | undefined 9780 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 9781 { 9782 enableHoverMode_buf = valueDeserializer.readBoolean() 9783 } 9784 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 9785 const followTransformOfTarget_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9786 let followTransformOfTarget_buf : boolean | undefined 9787 if ((RuntimeType.UNDEFINED) != (followTransformOfTarget_buf_runtimeType)) 9788 { 9789 followTransformOfTarget_buf = valueDeserializer.readBoolean() 9790 } 9791 const followTransformOfTarget_result : boolean | undefined = followTransformOfTarget_buf 9792 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) 9793 return value 9794 } 9795 readGeometryTransitionOptions(): GeometryTransitionOptions { 9796 let valueDeserializer : Deserializer = this 9797 const follow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9798 let follow_buf : boolean | undefined 9799 if ((RuntimeType.UNDEFINED) != (follow_buf_runtimeType)) 9800 { 9801 follow_buf = valueDeserializer.readBoolean() 9802 } 9803 const follow_result : boolean | undefined = follow_buf 9804 const hierarchyStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9805 let hierarchyStrategy_buf : TransitionHierarchyStrategy | undefined 9806 if ((RuntimeType.UNDEFINED) != (hierarchyStrategy_buf_runtimeType)) 9807 { 9808 hierarchyStrategy_buf = (valueDeserializer.readInt32() as TransitionHierarchyStrategy) 9809 } 9810 const hierarchyStrategy_result : TransitionHierarchyStrategy | undefined = hierarchyStrategy_buf 9811 let value : GeometryTransitionOptions = ({follow: follow_result, hierarchyStrategy: hierarchyStrategy_result} as GeometryTransitionOptions) 9812 return value 9813 } 9814 readBlender(): Blender { 9815 let valueDeserializer : Deserializer = this 9816 const _BlenderStub_result : string = (valueDeserializer.readString() as string) 9817 let value : Blender = ({_BlenderStub: _BlenderStub_result} as Blender) 9818 return value 9819 } 9820 readOverlayOptions(): OverlayOptions { 9821 let valueDeserializer : Deserializer = this 9822 const align_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9823 let align_buf : Alignment | undefined 9824 if ((RuntimeType.UNDEFINED) != (align_buf_runtimeType)) 9825 { 9826 align_buf = (valueDeserializer.readInt32() as Alignment) 9827 } 9828 const align_result : Alignment | undefined = align_buf 9829 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9830 let offset_buf : OverlayOffset | undefined 9831 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 9832 { 9833 offset_buf = valueDeserializer.readOverlayOffset() 9834 } 9835 const offset_result : OverlayOffset | undefined = offset_buf 9836 let value : OverlayOptions = ({align: align_result, offset: offset_result} as OverlayOptions) 9837 return value 9838 } 9839 readDragInteractionOptions(): DragInteractionOptions { 9840 let valueDeserializer : Deserializer = this 9841 const isMultiSelectionEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9842 let isMultiSelectionEnabled_buf : boolean | undefined 9843 if ((RuntimeType.UNDEFINED) != (isMultiSelectionEnabled_buf_runtimeType)) 9844 { 9845 isMultiSelectionEnabled_buf = valueDeserializer.readBoolean() 9846 } 9847 const isMultiSelectionEnabled_result : boolean | undefined = isMultiSelectionEnabled_buf 9848 const defaultAnimationBeforeLifting_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9849 let defaultAnimationBeforeLifting_buf : boolean | undefined 9850 if ((RuntimeType.UNDEFINED) != (defaultAnimationBeforeLifting_buf_runtimeType)) 9851 { 9852 defaultAnimationBeforeLifting_buf = valueDeserializer.readBoolean() 9853 } 9854 const defaultAnimationBeforeLifting_result : boolean | undefined = defaultAnimationBeforeLifting_buf 9855 let value : DragInteractionOptions = ({isMultiSelectionEnabled: isMultiSelectionEnabled_result, defaultAnimationBeforeLifting: defaultAnimationBeforeLifting_result} as DragInteractionOptions) 9856 return value 9857 } 9858 readDragPreviewOptions(): DragPreviewOptions { 9859 let valueDeserializer : Deserializer = this 9860 const mode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9861 let mode_buf : DragPreviewMode | Array<DragPreviewMode> | undefined 9862 if ((RuntimeType.UNDEFINED) != (mode_buf_runtimeType)) 9863 { 9864 const mode_buf__selector : int32 = valueDeserializer.readInt8() 9865 let mode_buf_ : DragPreviewMode | Array<DragPreviewMode> | undefined 9866 if (mode_buf__selector == 0) { 9867 mode_buf_ = (valueDeserializer.readInt32() as DragPreviewMode) 9868 } 9869 else if (mode_buf__selector == 1) { 9870 const mode_buf__u_length : int32 = valueDeserializer.readInt32() 9871 let mode_buf__u : Array<DragPreviewMode> = new Array<DragPreviewMode>(mode_buf__u_length) 9872 for (let mode_buf__u_i = 0; mode_buf__u_i < mode_buf__u_length; mode_buf__u_i++) { 9873 mode_buf__u[mode_buf__u_i] = (valueDeserializer.readInt32() as DragPreviewMode) 9874 } 9875 mode_buf_ = mode_buf__u 9876 } 9877 else { 9878 throw new Error("One of the branches for mode_buf_ has to be chosen through deserialisation.") 9879 } 9880 mode_buf = (mode_buf_ as DragPreviewMode | Array<DragPreviewMode>) 9881 } 9882 const mode_result : DragPreviewMode | Array<DragPreviewMode> | undefined = mode_buf 9883 const modifier_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9884 let modifier_buf : ImageModifier | undefined 9885 if ((RuntimeType.UNDEFINED) != (modifier_buf_runtimeType)) 9886 { 9887 modifier_buf = valueDeserializer.readImageModifier() 9888 } 9889 const modifier_result : ImageModifier | undefined = modifier_buf 9890 const numberBadge_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9891 let numberBadge_buf : boolean | number | undefined 9892 if ((RuntimeType.UNDEFINED) != (numberBadge_buf_runtimeType)) 9893 { 9894 const numberBadge_buf__selector : int32 = valueDeserializer.readInt8() 9895 let numberBadge_buf_ : boolean | number | undefined 9896 if (numberBadge_buf__selector == 0) { 9897 numberBadge_buf_ = valueDeserializer.readBoolean() 9898 } 9899 else if (numberBadge_buf__selector == 1) { 9900 numberBadge_buf_ = (valueDeserializer.readNumber() as number) 9901 } 9902 else { 9903 throw new Error("One of the branches for numberBadge_buf_ has to be chosen through deserialisation.") 9904 } 9905 numberBadge_buf = (numberBadge_buf_ as boolean | number) 9906 } 9907 const numberBadge_result : boolean | number | undefined = numberBadge_buf 9908 let value : DragPreviewOptions = ({mode: mode_result, modifier: modifier_result, numberBadge: numberBadge_result} as DragPreviewOptions) 9909 return value 9910 } 9911 readsharedTransitionOptions(): sharedTransitionOptions { 9912 let valueDeserializer : Deserializer = this 9913 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9914 let duration_buf : number | undefined 9915 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 9916 { 9917 duration_buf = (valueDeserializer.readNumber() as number) 9918 } 9919 const duration_result : number | undefined = duration_buf 9920 const curve_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9921 let curve_buf : Curve | string | ICurve | undefined 9922 if ((RuntimeType.UNDEFINED) != (curve_buf_runtimeType)) 9923 { 9924 const curve_buf__selector : int32 = valueDeserializer.readInt8() 9925 let curve_buf_ : Curve | string | ICurve | undefined 9926 if (curve_buf__selector == 0) { 9927 curve_buf_ = (valueDeserializer.readInt32() as Curve) 9928 } 9929 else if (curve_buf__selector == 1) { 9930 curve_buf_ = (valueDeserializer.readString() as string) 9931 } 9932 else if (curve_buf__selector == 2) { 9933 curve_buf_ = (valueDeserializer.readICurve() as ICurve) 9934 } 9935 else { 9936 throw new Error("One of the branches for curve_buf_ has to be chosen through deserialisation.") 9937 } 9938 curve_buf = (curve_buf_ as Curve | string | ICurve) 9939 } 9940 const curve_result : Curve | string | ICurve | undefined = curve_buf 9941 const delay_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9942 let delay_buf : number | undefined 9943 if ((RuntimeType.UNDEFINED) != (delay_buf_runtimeType)) 9944 { 9945 delay_buf = (valueDeserializer.readNumber() as number) 9946 } 9947 const delay_result : number | undefined = delay_buf 9948 const motionPath_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9949 let motionPath_buf : MotionPathOptions | undefined 9950 if ((RuntimeType.UNDEFINED) != (motionPath_buf_runtimeType)) 9951 { 9952 motionPath_buf = valueDeserializer.readMotionPathOptions() 9953 } 9954 const motionPath_result : MotionPathOptions | undefined = motionPath_buf 9955 const zIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9956 let zIndex_buf : number | undefined 9957 if ((RuntimeType.UNDEFINED) != (zIndex_buf_runtimeType)) 9958 { 9959 zIndex_buf = (valueDeserializer.readNumber() as number) 9960 } 9961 const zIndex_result : number | undefined = zIndex_buf 9962 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 9963 let type_buf : SharedTransitionEffectType | undefined 9964 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 9965 { 9966 type_buf = (valueDeserializer.readInt32() as SharedTransitionEffectType) 9967 } 9968 const type_result : SharedTransitionEffectType | undefined = type_buf 9969 let value : sharedTransitionOptions = ({duration: duration_result, curve: curve_result, delay: delay_result, motionPath: motionPath_result, zIndex: zIndex_result, type: type_result} as sharedTransitionOptions) 9970 return value 9971 } 9972 readLinearGradientBlurOptions(): LinearGradientBlurOptions { 9973 let valueDeserializer : Deserializer = this 9974 const fractionStops_buf_length : int32 = valueDeserializer.readInt32() 9975 let fractionStops_buf : Array<FractionStop> = new Array<FractionStop>(fractionStops_buf_length) 9976 for (let fractionStops_buf_i = 0; fractionStops_buf_i < fractionStops_buf_length; fractionStops_buf_i++) { 9977 const fractionStops_buf_buf_value0 : number = (valueDeserializer.readNumber() as number) 9978 const fractionStops_buf_buf_value1 : number = (valueDeserializer.readNumber() as number) 9979 fractionStops_buf[fractionStops_buf_i] = ([fractionStops_buf_buf_value0, fractionStops_buf_buf_value1] as FractionStop) 9980 } 9981 const fractionStops_result : Array<FractionStop> = fractionStops_buf 9982 const direction_result : GradientDirection = (valueDeserializer.readInt32() as GradientDirection) 9983 let value : LinearGradientBlurOptions = ({fractionStops: fractionStops_result, direction: direction_result} as LinearGradientBlurOptions) 9984 return value 9985 } 9986 readTransitionFinishCallback(isSync: boolean = false): TransitionFinishCallback { 9987 const _resource : CallbackResource = this.readCallbackResource() 9988 const _call : KPointer = this.readPointer() 9989 const _callSync : KPointer = this.readPointer() 9990 return (transitionIn: boolean):void => { 9991 const _argsSerializer : Serializer = Serializer.hold(); 9992 _argsSerializer.writeInt32(_resource.resourceId); 9993 _argsSerializer.writePointer(_call); 9994 _argsSerializer.writePointer(_callSync); 9995 _argsSerializer.writeBoolean(transitionIn); 9996 (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asBuffer(), _argsSerializer.length())); 9997 _argsSerializer.release(); 9998 return; } 9999 } 10000 readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { 10001 let valueDeserializer : Deserializer = this 10002 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10003 let colorMode_buf : ThemeColorMode | undefined 10004 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 10005 { 10006 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 10007 } 10008 const colorMode_result : ThemeColorMode | undefined = colorMode_buf 10009 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10010 let adaptiveColor_buf : AdaptiveColor | undefined 10011 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 10012 { 10013 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 10014 } 10015 const adaptiveColor_result : AdaptiveColor | undefined = adaptiveColor_buf 10016 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10017 let scale_buf : number | undefined 10018 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10019 { 10020 scale_buf = (valueDeserializer.readNumber() as number) 10021 } 10022 const scale_result : number | undefined = scale_buf 10023 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10024 let blurOptions_buf : BlurOptions | undefined 10025 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 10026 { 10027 blurOptions_buf = valueDeserializer.readBlurOptions() 10028 } 10029 const blurOptions_result : BlurOptions | undefined = blurOptions_buf 10030 let value : ForegroundBlurStyleOptions = ({colorMode: colorMode_result, adaptiveColor: adaptiveColor_result, scale: scale_result, blurOptions: blurOptions_result} as ForegroundBlurStyleOptions) 10031 return value 10032 } 10033 readPathShape(): PathShape { 10034 let valueDeserializer : Deserializer = this 10035 let ptr : KPointer = valueDeserializer.readPointer() 10036 return PathShapeInternal.fromPtr(ptr) 10037 } 10038 readEllipseShape(): EllipseShape { 10039 let valueDeserializer : Deserializer = this 10040 let ptr : KPointer = valueDeserializer.readPointer() 10041 return EllipseShapeInternal.fromPtr(ptr) 10042 } 10043 readCircleShape(): CircleShape { 10044 let valueDeserializer : Deserializer = this 10045 let ptr : KPointer = valueDeserializer.readPointer() 10046 return CircleShapeInternal.fromPtr(ptr) 10047 } 10048 readProgressMask(): ProgressMask { 10049 let valueDeserializer : Deserializer = this 10050 let ptr : KPointer = valueDeserializer.readPointer() 10051 return ProgressMaskInternal.fromPtr(ptr) 10052 } 10053 readDragItemInfo(): DragItemInfo { 10054 let valueDeserializer : Deserializer = this 10055 const pixelMap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10056 let pixelMap_buf : PixelMap | undefined 10057 if ((RuntimeType.UNDEFINED) != (pixelMap_buf_runtimeType)) 10058 { 10059 pixelMap_buf = (valueDeserializer.readPixelMap() as PixelMap) 10060 } 10061 const pixelMap_result : PixelMap | undefined = pixelMap_buf 10062 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10063 let builder_buf : CustomBuilder | undefined 10064 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 10065 { 10066 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 10067 } 10068 const builder_result : CustomBuilder | undefined = builder_buf 10069 const extraInfo_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10070 let extraInfo_buf : string | undefined 10071 if ((RuntimeType.UNDEFINED) != (extraInfo_buf_runtimeType)) 10072 { 10073 extraInfo_buf = (valueDeserializer.readString() as string) 10074 } 10075 const extraInfo_result : string | undefined = extraInfo_buf 10076 let value : DragItemInfo = ({pixelMap: pixelMap_result, builder: builder_result, extraInfo: extraInfo_result} as DragItemInfo) 10077 return value 10078 } 10079 readClickEffect(): ClickEffect { 10080 let valueDeserializer : Deserializer = this 10081 const level_result : ClickEffectLevel = (valueDeserializer.readInt32() as ClickEffectLevel) 10082 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10083 let scale_buf : number | undefined 10084 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10085 { 10086 scale_buf = (valueDeserializer.readNumber() as number) 10087 } 10088 const scale_result : number | undefined = scale_buf 10089 let value : ClickEffect = ({level: level_result, scale: scale_result} as ClickEffect) 10090 return value 10091 } 10092 readBias(): Bias { 10093 let valueDeserializer : Deserializer = this 10094 const horizontal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10095 let horizontal_buf : number | undefined 10096 if ((RuntimeType.UNDEFINED) != (horizontal_buf_runtimeType)) 10097 { 10098 horizontal_buf = (valueDeserializer.readNumber() as number) 10099 } 10100 const horizontal_result : number | undefined = horizontal_buf 10101 const vertical_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10102 let vertical_buf : number | undefined 10103 if ((RuntimeType.UNDEFINED) != (vertical_buf_runtimeType)) 10104 { 10105 vertical_buf = (valueDeserializer.readNumber() as number) 10106 } 10107 const vertical_result : number | undefined = vertical_buf 10108 let value : Bias = ({horizontal: horizontal_result, vertical: vertical_result} as Bias) 10109 return value 10110 } 10111 readLocalizedVerticalAlignParam(): LocalizedVerticalAlignParam { 10112 let valueDeserializer : Deserializer = this 10113 const anchor_result : string = (valueDeserializer.readString() as string) 10114 const align_result : VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 10115 let value : LocalizedVerticalAlignParam = ({anchor: anchor_result, align: align_result} as LocalizedVerticalAlignParam) 10116 return value 10117 } 10118 readLocalizedHorizontalAlignParam(): LocalizedHorizontalAlignParam { 10119 let valueDeserializer : Deserializer = this 10120 const anchor_result : string = (valueDeserializer.readString() as string) 10121 const align_result : HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 10122 let value : LocalizedHorizontalAlignParam = ({anchor: anchor_result, align: align_result} as LocalizedHorizontalAlignParam) 10123 return value 10124 } 10125 readLocalizedPosition(): LocalizedPosition { 10126 let valueDeserializer : Deserializer = this 10127 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10128 let start_buf : LengthMetrics | undefined 10129 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 10130 { 10131 start_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 10132 } 10133 const start_result : LengthMetrics | undefined = start_buf 10134 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10135 let top_buf : LengthMetrics | undefined 10136 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 10137 { 10138 top_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 10139 } 10140 const top_result : LengthMetrics | undefined = top_buf 10141 let value : LocalizedPosition = ({start: start_result, top: top_result} as LocalizedPosition) 10142 return value 10143 } 10144 readInvertOptions(): InvertOptions { 10145 let valueDeserializer : Deserializer = this 10146 const low_result : number = (valueDeserializer.readNumber() as number) 10147 const high_result : number = (valueDeserializer.readNumber() as number) 10148 const threshold_result : number = (valueDeserializer.readNumber() as number) 10149 const thresholdRange_result : number = (valueDeserializer.readNumber() as number) 10150 let value : InvertOptions = ({low: low_result, high: high_result, threshold: threshold_result, thresholdRange: thresholdRange_result} as InvertOptions) 10151 return value 10152 } 10153 readMotionBlurAnchor(): MotionBlurAnchor { 10154 let valueDeserializer : Deserializer = this 10155 const x_result : number = (valueDeserializer.readNumber() as number) 10156 const y_result : number = (valueDeserializer.readNumber() as number) 10157 let value : MotionBlurAnchor = ({x: x_result, y: y_result} as MotionBlurAnchor) 10158 return value 10159 } 10160 readTransitionOptions(): TransitionOptions { 10161 let valueDeserializer : Deserializer = this 10162 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10163 let type_buf : TransitionType | undefined 10164 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 10165 { 10166 type_buf = (valueDeserializer.readInt32() as TransitionType) 10167 } 10168 const type_result : TransitionType | undefined = type_buf 10169 const opacity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10170 let opacity_buf : number | undefined 10171 if ((RuntimeType.UNDEFINED) != (opacity_buf_runtimeType)) 10172 { 10173 opacity_buf = (valueDeserializer.readNumber() as number) 10174 } 10175 const opacity_result : number | undefined = opacity_buf 10176 const translate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10177 let translate_buf : TranslateOptions | undefined 10178 if ((RuntimeType.UNDEFINED) != (translate_buf_runtimeType)) 10179 { 10180 translate_buf = valueDeserializer.readTranslateOptions() 10181 } 10182 const translate_result : TranslateOptions | undefined = translate_buf 10183 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10184 let scale_buf : ScaleOptions | undefined 10185 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 10186 { 10187 scale_buf = valueDeserializer.readScaleOptions() 10188 } 10189 const scale_result : ScaleOptions | undefined = scale_buf 10190 const rotate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10191 let rotate_buf : RotateOptions | undefined 10192 if ((RuntimeType.UNDEFINED) != (rotate_buf_runtimeType)) 10193 { 10194 rotate_buf = valueDeserializer.readRotateOptions() 10195 } 10196 const rotate_result : RotateOptions | undefined = rotate_buf 10197 let value : TransitionOptions = ({type: type_result, opacity: opacity_result, translate: translate_result, scale: scale_result, rotate: rotate_result} as TransitionOptions) 10198 return value 10199 } 10200 readDrawingLattice(): DrawingLattice { 10201 let valueDeserializer : Deserializer = this 10202 const _DrawingLatticeStub_result : string = (valueDeserializer.readString() as string) 10203 let value : DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) 10204 return value 10205 } 10206 readDrawModifier(): DrawModifier { 10207 let valueDeserializer : Deserializer = this 10208 let ptr : KPointer = valueDeserializer.readPointer() 10209 return DrawModifierInternal.fromPtr(ptr) 10210 } 10211 readIntentionCode(): IntentionCode { 10212 let valueDeserializer : Deserializer = this 10213 const _IntentionCodeStub_result : string = (valueDeserializer.readString() as string) 10214 let value : IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) 10215 return value 10216 } 10217 readSummary(): Summary { 10218 let valueDeserializer : Deserializer = this 10219 const _SummaryStub_result : string = (valueDeserializer.readString() as string) 10220 let value : Summary = ({_SummaryStub: _SummaryStub_result} as Summary) 10221 return value 10222 } 10223 readUnifiedData(): UnifiedData { 10224 let valueDeserializer : Deserializer = this 10225 let ptr : KPointer = valueDeserializer.readPointer() 10226 return UnifiedDataInternal.fromPtr(ptr) 10227 } 10228 readTouchObject(): TouchObject { 10229 let valueDeserializer : Deserializer = this 10230 const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) 10231 const id_result : number = (valueDeserializer.readNumber() as number) 10232 const displayX_result : number = (valueDeserializer.readNumber() as number) 10233 const displayY_result : number = (valueDeserializer.readNumber() as number) 10234 const windowX_result : number = (valueDeserializer.readNumber() as number) 10235 const windowY_result : number = (valueDeserializer.readNumber() as number) 10236 const screenX_result : number = (valueDeserializer.readNumber() as number) 10237 const screenY_result : number = (valueDeserializer.readNumber() as number) 10238 const x_result : number = (valueDeserializer.readNumber() as number) 10239 const y_result : number = (valueDeserializer.readNumber() as number) 10240 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) 10241 return value 10242 } 10243 readContext(): Context { 10244 let valueDeserializer : Deserializer = this 10245 const _ContextStub_result : string = (valueDeserializer.readString() as string) 10246 let value : Context = ({_ContextStub: _ContextStub_result} as Context) 10247 return value 10248 } 10249 readColumnSplitDividerStyle(): ColumnSplitDividerStyle { 10250 let valueDeserializer : Deserializer = this 10251 const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10252 let startMargin_buf : Dimension | undefined 10253 if ((RuntimeType.UNDEFINED) != (startMargin_buf_runtimeType)) 10254 { 10255 startMargin_buf = (valueDeserializer.readLength() as Dimension) 10256 } 10257 const startMargin_result : Dimension | undefined = startMargin_buf 10258 const endMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10259 let endMargin_buf : Dimension | undefined 10260 if ((RuntimeType.UNDEFINED) != (endMargin_buf_runtimeType)) 10261 { 10262 endMargin_buf = (valueDeserializer.readLength() as Dimension) 10263 } 10264 const endMargin_result : Dimension | undefined = endMargin_buf 10265 let value : ColumnSplitDividerStyle = ({startMargin: startMargin_result, endMargin: endMargin_result} as ColumnSplitDividerStyle) 10266 return value 10267 } 10268 readLightSource(): LightSource { 10269 let valueDeserializer : Deserializer = this 10270 const positionX_result : Dimension = (valueDeserializer.readLength() as Dimension) 10271 const positionY_result : Dimension = (valueDeserializer.readLength() as Dimension) 10272 const positionZ_result : Dimension = (valueDeserializer.readLength() as Dimension) 10273 const intensity_result : number = (valueDeserializer.readNumber() as number) 10274 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10275 let color_buf : ResourceColor | undefined 10276 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 10277 { 10278 const color_buf__selector : int32 = valueDeserializer.readInt8() 10279 let color_buf_ : Color | number | string | Resource | undefined 10280 if (color_buf__selector == 0) { 10281 color_buf_ = (valueDeserializer.readInt32() as Color) 10282 } 10283 else if (color_buf__selector == 1) { 10284 color_buf_ = (valueDeserializer.readNumber() as number) 10285 } 10286 else if (color_buf__selector == 2) { 10287 color_buf_ = (valueDeserializer.readString() as string) 10288 } 10289 else if (color_buf__selector == 3) { 10290 color_buf_ = valueDeserializer.readResource() 10291 } 10292 else { 10293 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 10294 } 10295 color_buf = (color_buf_ as Color | number | string | Resource) 10296 } 10297 const color_result : ResourceColor | undefined = color_buf 10298 let value : LightSource = ({positionX: positionX_result, positionY: positionY_result, positionZ: positionZ_result, intensity: intensity_result, color: color_result} as LightSource) 10299 return value 10300 } 10301 readDrawingRenderingContext(): DrawingRenderingContext { 10302 let valueDeserializer : Deserializer = this 10303 let ptr : KPointer = valueDeserializer.readPointer() 10304 return DrawingRenderingContextInternal.fromPtr(ptr) 10305 } 10306 readCanvasRenderingContext2D(): CanvasRenderingContext2D { 10307 let valueDeserializer : Deserializer = this 10308 let ptr : KPointer = valueDeserializer.readPointer() 10309 return CanvasRenderingContext2DInternal.fromPtr(ptr) 10310 } 10311 readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { 10312 let valueDeserializer : Deserializer = this 10313 let ptr : KPointer = valueDeserializer.readPointer() 10314 return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) 10315 } 10316 readRenderingContextSettings(): RenderingContextSettings { 10317 let valueDeserializer : Deserializer = this 10318 let ptr : KPointer = valueDeserializer.readPointer() 10319 return RenderingContextSettingsInternal.fromPtr(ptr) 10320 } 10321 readImageBitmap(): ImageBitmap { 10322 let valueDeserializer : Deserializer = this 10323 let ptr : KPointer = valueDeserializer.readPointer() 10324 return ImageBitmapInternal.fromPtr(ptr) 10325 } 10326 readTextMetrics(): TextMetrics { 10327 let valueDeserializer : Deserializer = this 10328 const actualBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) 10329 const actualBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) 10330 const actualBoundingBoxLeft_result : number = (valueDeserializer.readNumber() as number) 10331 const actualBoundingBoxRight_result : number = (valueDeserializer.readNumber() as number) 10332 const alphabeticBaseline_result : number = (valueDeserializer.readNumber() as number) 10333 const emHeightAscent_result : number = (valueDeserializer.readNumber() as number) 10334 const emHeightDescent_result : number = (valueDeserializer.readNumber() as number) 10335 const fontBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) 10336 const fontBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) 10337 const hangingBaseline_result : number = (valueDeserializer.readNumber() as number) 10338 const ideographicBaseline_result : number = (valueDeserializer.readNumber() as number) 10339 const width_result : number = (valueDeserializer.readNumber() as number) 10340 const height_result : number = (valueDeserializer.readNumber() as number) 10341 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) 10342 return value 10343 } 10344 readImageData(): ImageData { 10345 let valueDeserializer : Deserializer = this 10346 let ptr : KPointer = valueDeserializer.readPointer() 10347 return ImageDataInternal.fromPtr(ptr) 10348 } 10349 readPath2D(): Path2D { 10350 let valueDeserializer : Deserializer = this 10351 let ptr : KPointer = valueDeserializer.readPointer() 10352 return Path2DInternal.fromPtr(ptr) 10353 } 10354 readCalendarDialogOptions(): CalendarDialogOptions { 10355 let valueDeserializer : Deserializer = this 10356 const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10357 let hintRadius_buf : number | Resource | undefined 10358 if ((RuntimeType.UNDEFINED) != (hintRadius_buf_runtimeType)) 10359 { 10360 const hintRadius_buf__selector : int32 = valueDeserializer.readInt8() 10361 let hintRadius_buf_ : number | Resource | undefined 10362 if (hintRadius_buf__selector == 0) { 10363 hintRadius_buf_ = (valueDeserializer.readNumber() as number) 10364 } 10365 else if (hintRadius_buf__selector == 1) { 10366 hintRadius_buf_ = valueDeserializer.readResource() 10367 } 10368 else { 10369 throw new Error("One of the branches for hintRadius_buf_ has to be chosen through deserialisation.") 10370 } 10371 hintRadius_buf = (hintRadius_buf_ as number | Resource) 10372 } 10373 const hintRadius_result : number | Resource | undefined = hintRadius_buf 10374 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10375 let selected_buf : Date | undefined 10376 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 10377 { 10378 selected_buf = new Date(valueDeserializer.readInt64()) 10379 } 10380 const selected_result : Date | undefined = selected_buf 10381 const onAccept_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10382 let onAccept_buf : ((parameter: Date) => void) | undefined 10383 if ((RuntimeType.UNDEFINED) != (onAccept_buf_runtimeType)) 10384 { 10385 onAccept_buf = valueDeserializer.readCallback_Date_Void() 10386 } 10387 const onAccept_result : ((parameter: Date) => void) | undefined = onAccept_buf 10388 const onCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10389 let onCancel_buf : VoidCallback | undefined 10390 if ((RuntimeType.UNDEFINED) != (onCancel_buf_runtimeType)) 10391 { 10392 onCancel_buf = valueDeserializer.readVoidCallback() 10393 } 10394 const onCancel_result : VoidCallback | undefined = onCancel_buf 10395 const onChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10396 let onChange_buf : ((parameter: Date) => void) | undefined 10397 if ((RuntimeType.UNDEFINED) != (onChange_buf_runtimeType)) 10398 { 10399 onChange_buf = valueDeserializer.readCallback_Date_Void() 10400 } 10401 const onChange_result : ((parameter: Date) => void) | undefined = onChange_buf 10402 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10403 let backgroundColor_buf : ResourceColor | undefined 10404 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 10405 { 10406 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 10407 let backgroundColor_buf_ : Color | number | string | Resource | undefined 10408 if (backgroundColor_buf__selector == 0) { 10409 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 10410 } 10411 else if (backgroundColor_buf__selector == 1) { 10412 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 10413 } 10414 else if (backgroundColor_buf__selector == 2) { 10415 backgroundColor_buf_ = (valueDeserializer.readString() as string) 10416 } 10417 else if (backgroundColor_buf__selector == 3) { 10418 backgroundColor_buf_ = valueDeserializer.readResource() 10419 } 10420 else { 10421 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 10422 } 10423 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 10424 } 10425 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 10426 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10427 let backgroundBlurStyle_buf : BlurStyle | undefined 10428 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 10429 { 10430 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 10431 } 10432 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 10433 const acceptButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10434 let acceptButtonStyle_buf : PickerDialogButtonStyle | undefined 10435 if ((RuntimeType.UNDEFINED) != (acceptButtonStyle_buf_runtimeType)) 10436 { 10437 acceptButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 10438 } 10439 const acceptButtonStyle_result : PickerDialogButtonStyle | undefined = acceptButtonStyle_buf 10440 const cancelButtonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10441 let cancelButtonStyle_buf : PickerDialogButtonStyle | undefined 10442 if ((RuntimeType.UNDEFINED) != (cancelButtonStyle_buf_runtimeType)) 10443 { 10444 cancelButtonStyle_buf = valueDeserializer.readPickerDialogButtonStyle() 10445 } 10446 const cancelButtonStyle_result : PickerDialogButtonStyle | undefined = cancelButtonStyle_buf 10447 const onDidAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10448 let onDidAppear_buf : VoidCallback | undefined 10449 if ((RuntimeType.UNDEFINED) != (onDidAppear_buf_runtimeType)) 10450 { 10451 onDidAppear_buf = valueDeserializer.readVoidCallback() 10452 } 10453 const onDidAppear_result : VoidCallback | undefined = onDidAppear_buf 10454 const onDidDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10455 let onDidDisappear_buf : VoidCallback | undefined 10456 if ((RuntimeType.UNDEFINED) != (onDidDisappear_buf_runtimeType)) 10457 { 10458 onDidDisappear_buf = valueDeserializer.readVoidCallback() 10459 } 10460 const onDidDisappear_result : VoidCallback | undefined = onDidDisappear_buf 10461 const onWillAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10462 let onWillAppear_buf : VoidCallback | undefined 10463 if ((RuntimeType.UNDEFINED) != (onWillAppear_buf_runtimeType)) 10464 { 10465 onWillAppear_buf = valueDeserializer.readVoidCallback() 10466 } 10467 const onWillAppear_result : VoidCallback | undefined = onWillAppear_buf 10468 const onWillDisappear_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10469 let onWillDisappear_buf : VoidCallback | undefined 10470 if ((RuntimeType.UNDEFINED) != (onWillDisappear_buf_runtimeType)) 10471 { 10472 onWillDisappear_buf = valueDeserializer.readVoidCallback() 10473 } 10474 const onWillDisappear_result : VoidCallback | undefined = onWillDisappear_buf 10475 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10476 let shadow_buf : ShadowOptions | ShadowStyle | undefined 10477 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 10478 { 10479 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 10480 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 10481 if (shadow_buf__selector == 0) { 10482 shadow_buf_ = valueDeserializer.readShadowOptions() 10483 } 10484 else if (shadow_buf__selector == 1) { 10485 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 10486 } 10487 else { 10488 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 10489 } 10490 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 10491 } 10492 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 10493 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10494 let enableHoverMode_buf : boolean | undefined 10495 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 10496 { 10497 enableHoverMode_buf = valueDeserializer.readBoolean() 10498 } 10499 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 10500 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10501 let hoverModeArea_buf : HoverModeAreaType | undefined 10502 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 10503 { 10504 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 10505 } 10506 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 10507 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) 10508 return value 10509 } 10510 readCalendarPickerAttribute(): CalendarPickerAttribute { 10511 throw new Error("Interface with functions is not supported") 10512 } 10513 readCalendarController(): CalendarController { 10514 let valueDeserializer : Deserializer = this 10515 let ptr : KPointer = valueDeserializer.readPointer() 10516 return CalendarControllerInternal.fromPtr(ptr) 10517 } 10518 readMonthData(): MonthData { 10519 let valueDeserializer : Deserializer = this 10520 const year_result : number = (valueDeserializer.readNumber() as number) 10521 const month_result : number = (valueDeserializer.readNumber() as number) 10522 const data_buf_length : int32 = valueDeserializer.readInt32() 10523 let data_buf : Array<CalendarDay> = new Array<CalendarDay>(data_buf_length) 10524 for (let data_buf_i = 0; data_buf_i < data_buf_length; data_buf_i++) { 10525 data_buf[data_buf_i] = valueDeserializer.readCalendarDay() 10526 } 10527 const data_result : Array<CalendarDay> = data_buf 10528 let value : MonthData = ({year: year_result, month: month_result, data: data_result} as MonthData) 10529 return value 10530 } 10531 readBadgeStyle(): BadgeStyle { 10532 let valueDeserializer : Deserializer = this 10533 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10534 let color_buf : ResourceColor | undefined 10535 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 10536 { 10537 const color_buf__selector : int32 = valueDeserializer.readInt8() 10538 let color_buf_ : Color | number | string | Resource | undefined 10539 if (color_buf__selector == 0) { 10540 color_buf_ = (valueDeserializer.readInt32() as Color) 10541 } 10542 else if (color_buf__selector == 1) { 10543 color_buf_ = (valueDeserializer.readNumber() as number) 10544 } 10545 else if (color_buf__selector == 2) { 10546 color_buf_ = (valueDeserializer.readString() as string) 10547 } 10548 else if (color_buf__selector == 3) { 10549 color_buf_ = valueDeserializer.readResource() 10550 } 10551 else { 10552 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 10553 } 10554 color_buf = (color_buf_ as Color | number | string | Resource) 10555 } 10556 const color_result : ResourceColor | undefined = color_buf 10557 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10558 let fontSize_buf : number | string | undefined 10559 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 10560 { 10561 const fontSize_buf__selector : int32 = valueDeserializer.readInt8() 10562 let fontSize_buf_ : number | string | undefined 10563 if (fontSize_buf__selector == 0) { 10564 fontSize_buf_ = (valueDeserializer.readNumber() as number) 10565 } 10566 else if (fontSize_buf__selector == 1) { 10567 fontSize_buf_ = (valueDeserializer.readString() as string) 10568 } 10569 else { 10570 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 10571 } 10572 fontSize_buf = (fontSize_buf_ as number | string) 10573 } 10574 const fontSize_result : number | string | undefined = fontSize_buf 10575 const badgeSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10576 let badgeSize_buf : number | string | undefined 10577 if ((RuntimeType.UNDEFINED) != (badgeSize_buf_runtimeType)) 10578 { 10579 const badgeSize_buf__selector : int32 = valueDeserializer.readInt8() 10580 let badgeSize_buf_ : number | string | undefined 10581 if (badgeSize_buf__selector == 0) { 10582 badgeSize_buf_ = (valueDeserializer.readNumber() as number) 10583 } 10584 else if (badgeSize_buf__selector == 1) { 10585 badgeSize_buf_ = (valueDeserializer.readString() as string) 10586 } 10587 else { 10588 throw new Error("One of the branches for badgeSize_buf_ has to be chosen through deserialisation.") 10589 } 10590 badgeSize_buf = (badgeSize_buf_ as number | string) 10591 } 10592 const badgeSize_result : number | string | undefined = badgeSize_buf 10593 const badgeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10594 let badgeColor_buf : ResourceColor | undefined 10595 if ((RuntimeType.UNDEFINED) != (badgeColor_buf_runtimeType)) 10596 { 10597 const badgeColor_buf__selector : int32 = valueDeserializer.readInt8() 10598 let badgeColor_buf_ : Color | number | string | Resource | undefined 10599 if (badgeColor_buf__selector == 0) { 10600 badgeColor_buf_ = (valueDeserializer.readInt32() as Color) 10601 } 10602 else if (badgeColor_buf__selector == 1) { 10603 badgeColor_buf_ = (valueDeserializer.readNumber() as number) 10604 } 10605 else if (badgeColor_buf__selector == 2) { 10606 badgeColor_buf_ = (valueDeserializer.readString() as string) 10607 } 10608 else if (badgeColor_buf__selector == 3) { 10609 badgeColor_buf_ = valueDeserializer.readResource() 10610 } 10611 else { 10612 throw new Error("One of the branches for badgeColor_buf_ has to be chosen through deserialisation.") 10613 } 10614 badgeColor_buf = (badgeColor_buf_ as Color | number | string | Resource) 10615 } 10616 const badgeColor_result : ResourceColor | undefined = badgeColor_buf 10617 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10618 let borderColor_buf : ResourceColor | undefined 10619 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 10620 { 10621 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 10622 let borderColor_buf_ : Color | number | string | Resource | undefined 10623 if (borderColor_buf__selector == 0) { 10624 borderColor_buf_ = (valueDeserializer.readInt32() as Color) 10625 } 10626 else if (borderColor_buf__selector == 1) { 10627 borderColor_buf_ = (valueDeserializer.readNumber() as number) 10628 } 10629 else if (borderColor_buf__selector == 2) { 10630 borderColor_buf_ = (valueDeserializer.readString() as string) 10631 } 10632 else if (borderColor_buf__selector == 3) { 10633 borderColor_buf_ = valueDeserializer.readResource() 10634 } 10635 else { 10636 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 10637 } 10638 borderColor_buf = (borderColor_buf_ as Color | number | string | Resource) 10639 } 10640 const borderColor_result : ResourceColor | undefined = borderColor_buf 10641 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10642 let borderWidth_buf : Length | undefined 10643 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 10644 { 10645 borderWidth_buf = (valueDeserializer.readLength() as Length) 10646 } 10647 const borderWidth_result : Length | undefined = borderWidth_buf 10648 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10649 let fontWeight_buf : number | FontWeight | string | undefined 10650 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 10651 { 10652 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 10653 let fontWeight_buf_ : number | FontWeight | string | undefined 10654 if (fontWeight_buf__selector == 0) { 10655 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 10656 } 10657 else if (fontWeight_buf__selector == 1) { 10658 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 10659 } 10660 else if (fontWeight_buf__selector == 2) { 10661 fontWeight_buf_ = (valueDeserializer.readString() as string) 10662 } 10663 else { 10664 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 10665 } 10666 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 10667 } 10668 const fontWeight_result : number | FontWeight | string | undefined = fontWeight_buf 10669 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) 10670 return value 10671 } 10672 readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { 10673 throw new Error("Interface with functions is not supported") 10674 } 10675 readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { 10676 let valueDeserializer : Deserializer = this 10677 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10678 let title_buf : ResourceStr | undefined 10679 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 10680 { 10681 const title_buf__selector : int32 = valueDeserializer.readInt8() 10682 let title_buf_ : string | Resource | undefined 10683 if (title_buf__selector == 0) { 10684 title_buf_ = (valueDeserializer.readString() as string) 10685 } 10686 else if (title_buf__selector == 1) { 10687 title_buf_ = valueDeserializer.readResource() 10688 } 10689 else { 10690 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 10691 } 10692 title_buf = (title_buf_ as string | Resource) 10693 } 10694 const title_result : ResourceStr | undefined = title_buf 10695 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10696 let subtitle_buf : ResourceStr | undefined 10697 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 10698 { 10699 const subtitle_buf__selector : int32 = valueDeserializer.readInt8() 10700 let subtitle_buf_ : string | Resource | undefined 10701 if (subtitle_buf__selector == 0) { 10702 subtitle_buf_ = (valueDeserializer.readString() as string) 10703 } 10704 else if (subtitle_buf__selector == 1) { 10705 subtitle_buf_ = valueDeserializer.readResource() 10706 } 10707 else { 10708 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 10709 } 10710 subtitle_buf = (subtitle_buf_ as string | Resource) 10711 } 10712 const subtitle_result : ResourceStr | undefined = subtitle_buf 10713 const message_buf_selector : int32 = valueDeserializer.readInt8() 10714 let message_buf : string | Resource | undefined 10715 if (message_buf_selector == 0) { 10716 message_buf = (valueDeserializer.readString() as string) 10717 } 10718 else if (message_buf_selector == 1) { 10719 message_buf = valueDeserializer.readResource() 10720 } 10721 else { 10722 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 10723 } 10724 const message_result : ResourceStr = (message_buf as string | Resource) 10725 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10726 let autoCancel_buf : boolean | undefined 10727 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 10728 { 10729 autoCancel_buf = valueDeserializer.readBoolean() 10730 } 10731 const autoCancel_result : boolean | undefined = autoCancel_buf 10732 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10733 let cancel_buf : VoidCallback | undefined 10734 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 10735 { 10736 cancel_buf = valueDeserializer.readVoidCallback() 10737 } 10738 const cancel_result : VoidCallback | undefined = cancel_buf 10739 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10740 let alignment_buf : DialogAlignment | undefined 10741 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 10742 { 10743 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 10744 } 10745 const alignment_result : DialogAlignment | undefined = alignment_buf 10746 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10747 let offset_buf : Offset | undefined 10748 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 10749 { 10750 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 10751 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 10752 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 10753 } 10754 const offset_result : Offset | undefined = offset_buf 10755 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10756 let gridCount_buf : number | undefined 10757 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 10758 { 10759 gridCount_buf = (valueDeserializer.readNumber() as number) 10760 } 10761 const gridCount_result : number | undefined = gridCount_buf 10762 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10763 let maskRect_buf : Rectangle | undefined 10764 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 10765 { 10766 maskRect_buf = valueDeserializer.readRectangle() 10767 } 10768 const maskRect_result : Rectangle | undefined = maskRect_buf 10769 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10770 let showInSubWindow_buf : boolean | undefined 10771 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 10772 { 10773 showInSubWindow_buf = valueDeserializer.readBoolean() 10774 } 10775 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 10776 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10777 let isModal_buf : boolean | undefined 10778 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 10779 { 10780 isModal_buf = valueDeserializer.readBoolean() 10781 } 10782 const isModal_result : boolean | undefined = isModal_buf 10783 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10784 let backgroundColor_buf : ResourceColor | undefined 10785 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 10786 { 10787 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 10788 let backgroundColor_buf_ : Color | number | string | Resource | undefined 10789 if (backgroundColor_buf__selector == 0) { 10790 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 10791 } 10792 else if (backgroundColor_buf__selector == 1) { 10793 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 10794 } 10795 else if (backgroundColor_buf__selector == 2) { 10796 backgroundColor_buf_ = (valueDeserializer.readString() as string) 10797 } 10798 else if (backgroundColor_buf__selector == 3) { 10799 backgroundColor_buf_ = valueDeserializer.readResource() 10800 } 10801 else { 10802 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 10803 } 10804 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 10805 } 10806 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 10807 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10808 let backgroundBlurStyle_buf : BlurStyle | undefined 10809 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 10810 { 10811 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 10812 } 10813 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 10814 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10815 let onWillDismiss_buf : ((parameter: DismissDialogAction) => void) | undefined 10816 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 10817 { 10818 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 10819 } 10820 const onWillDismiss_result : ((parameter: DismissDialogAction) => void) | undefined = onWillDismiss_buf 10821 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10822 let transition_buf : TransitionEffect | undefined 10823 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 10824 { 10825 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 10826 } 10827 const transition_result : TransitionEffect | undefined = transition_buf 10828 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10829 let cornerRadius_buf : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 10830 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 10831 { 10832 const cornerRadius_buf__selector : int32 = valueDeserializer.readInt8() 10833 let cornerRadius_buf_ : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 10834 if (cornerRadius_buf__selector == 0) { 10835 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 10836 } 10837 else if (cornerRadius_buf__selector == 1) { 10838 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10839 let cornerRadius_buf__u_topLeft_buf : Length | undefined 10840 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 10841 { 10842 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 10843 } 10844 const cornerRadius_buf__u_topLeft : undefined | Length = cornerRadius_buf__u_topLeft_buf 10845 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10846 let cornerRadius_buf__u_topRight_buf : Length | undefined 10847 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 10848 { 10849 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 10850 } 10851 const cornerRadius_buf__u_topRight : undefined | Length = cornerRadius_buf__u_topRight_buf 10852 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10853 let cornerRadius_buf__u_bottomLeft_buf : Length | undefined 10854 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 10855 { 10856 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 10857 } 10858 const cornerRadius_buf__u_bottomLeft : undefined | Length = cornerRadius_buf__u_bottomLeft_buf 10859 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10860 let cornerRadius_buf__u_bottomRight_buf : Length | undefined 10861 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 10862 { 10863 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 10864 } 10865 const cornerRadius_buf__u_bottomRight : undefined | Length = cornerRadius_buf__u_bottomRight_buf 10866 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 10867 } 10868 else if (cornerRadius_buf__selector == 2) { 10869 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 10870 } 10871 else { 10872 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 10873 } 10874 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 10875 } 10876 const cornerRadius_result : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined = cornerRadius_buf 10877 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10878 let width_buf : Dimension | undefined 10879 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 10880 { 10881 width_buf = (valueDeserializer.readLength() as Dimension) 10882 } 10883 const width_result : Dimension | undefined = width_buf 10884 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10885 let height_buf : Dimension | undefined 10886 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 10887 { 10888 height_buf = (valueDeserializer.readLength() as Dimension) 10889 } 10890 const height_result : Dimension | undefined = height_buf 10891 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10892 let borderWidth_buf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 10893 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 10894 { 10895 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 10896 let borderWidth_buf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 10897 if (borderWidth_buf__selector == 0) { 10898 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 10899 } 10900 else if (borderWidth_buf__selector == 1) { 10901 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10902 let borderWidth_buf__u_top_buf : Length | undefined 10903 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 10904 { 10905 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 10906 } 10907 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 10908 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10909 let borderWidth_buf__u_right_buf : Length | undefined 10910 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 10911 { 10912 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 10913 } 10914 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 10915 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10916 let borderWidth_buf__u_bottom_buf : Length | undefined 10917 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 10918 { 10919 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 10920 } 10921 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 10922 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10923 let borderWidth_buf__u_left_buf : Length | undefined 10924 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 10925 { 10926 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 10927 } 10928 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 10929 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 10930 } 10931 else if (borderWidth_buf__selector == 2) { 10932 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 10933 } 10934 else { 10935 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 10936 } 10937 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 10938 } 10939 const borderWidth_result : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidth_buf 10940 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10941 let borderColor_buf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 10942 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 10943 { 10944 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 10945 let borderColor_buf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 10946 if (borderColor_buf__selector == 0) { 10947 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 10948 let borderColor_buf__u : Color | number | string | Resource | undefined 10949 if (borderColor_buf__u_selector == 0) { 10950 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 10951 } 10952 else if (borderColor_buf__u_selector == 1) { 10953 borderColor_buf__u = (valueDeserializer.readNumber() as number) 10954 } 10955 else if (borderColor_buf__u_selector == 2) { 10956 borderColor_buf__u = (valueDeserializer.readString() as string) 10957 } 10958 else if (borderColor_buf__u_selector == 3) { 10959 borderColor_buf__u = valueDeserializer.readResource() 10960 } 10961 else { 10962 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 10963 } 10964 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 10965 } 10966 else if (borderColor_buf__selector == 1) { 10967 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10968 let borderColor_buf__u_top_buf : ResourceColor | undefined 10969 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 10970 { 10971 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 10972 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 10973 if (borderColor_buf__u_top_buf__selector == 0) { 10974 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 10975 } 10976 else if (borderColor_buf__u_top_buf__selector == 1) { 10977 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 10978 } 10979 else if (borderColor_buf__u_top_buf__selector == 2) { 10980 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 10981 } 10982 else if (borderColor_buf__u_top_buf__selector == 3) { 10983 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 10984 } 10985 else { 10986 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 10987 } 10988 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 10989 } 10990 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 10991 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 10992 let borderColor_buf__u_right_buf : ResourceColor | undefined 10993 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 10994 { 10995 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 10996 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 10997 if (borderColor_buf__u_right_buf__selector == 0) { 10998 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 10999 } 11000 else if (borderColor_buf__u_right_buf__selector == 1) { 11001 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 11002 } 11003 else if (borderColor_buf__u_right_buf__selector == 2) { 11004 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 11005 } 11006 else if (borderColor_buf__u_right_buf__selector == 3) { 11007 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11008 } 11009 else { 11010 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 11011 } 11012 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 11013 } 11014 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 11015 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11016 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 11017 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 11018 { 11019 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 11020 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 11021 if (borderColor_buf__u_bottom_buf__selector == 0) { 11022 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 11023 } 11024 else if (borderColor_buf__u_bottom_buf__selector == 1) { 11025 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 11026 } 11027 else if (borderColor_buf__u_bottom_buf__selector == 2) { 11028 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 11029 } 11030 else if (borderColor_buf__u_bottom_buf__selector == 3) { 11031 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 11032 } 11033 else { 11034 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 11035 } 11036 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 11037 } 11038 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 11039 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11040 let borderColor_buf__u_left_buf : ResourceColor | undefined 11041 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 11042 { 11043 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 11044 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 11045 if (borderColor_buf__u_left_buf__selector == 0) { 11046 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 11047 } 11048 else if (borderColor_buf__u_left_buf__selector == 1) { 11049 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 11050 } 11051 else if (borderColor_buf__u_left_buf__selector == 2) { 11052 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 11053 } 11054 else if (borderColor_buf__u_left_buf__selector == 3) { 11055 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 11056 } 11057 else { 11058 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 11059 } 11060 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 11061 } 11062 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 11063 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 11064 } 11065 else if (borderColor_buf__selector == 2) { 11066 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 11067 } 11068 else { 11069 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 11070 } 11071 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 11072 } 11073 const borderColor_result : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColor_buf 11074 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11075 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 11076 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 11077 { 11078 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 11079 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 11080 if (borderStyle_buf__selector == 0) { 11081 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 11082 } 11083 else if (borderStyle_buf__selector == 1) { 11084 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11085 let borderStyle_buf__u_top_buf : BorderStyle | undefined 11086 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 11087 { 11088 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 11089 } 11090 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 11091 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11092 let borderStyle_buf__u_right_buf : BorderStyle | undefined 11093 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 11094 { 11095 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 11096 } 11097 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 11098 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11099 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 11100 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 11101 { 11102 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 11103 } 11104 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 11105 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11106 let borderStyle_buf__u_left_buf : BorderStyle | undefined 11107 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 11108 { 11109 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 11110 } 11111 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 11112 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 11113 } 11114 else { 11115 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 11116 } 11117 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 11118 } 11119 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 11120 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11121 let shadow_buf : ShadowOptions | ShadowStyle | undefined 11122 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 11123 { 11124 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 11125 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 11126 if (shadow_buf__selector == 0) { 11127 shadow_buf_ = valueDeserializer.readShadowOptions() 11128 } 11129 else if (shadow_buf__selector == 1) { 11130 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 11131 } 11132 else { 11133 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 11134 } 11135 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 11136 } 11137 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 11138 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11139 let textStyle_buf : TextStyle_alert_dialog | undefined 11140 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 11141 { 11142 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 11143 } 11144 const textStyle_result : TextStyle_alert_dialog | undefined = textStyle_buf 11145 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11146 let enableHoverMode_buf : boolean | undefined 11147 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 11148 { 11149 enableHoverMode_buf = valueDeserializer.readBoolean() 11150 } 11151 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 11152 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11153 let hoverModeArea_buf : HoverModeAreaType | undefined 11154 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 11155 { 11156 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 11157 } 11158 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 11159 const buttons_buf_length : int32 = valueDeserializer.readInt32() 11160 let buttons_buf : Array<AlertDialogButtonOptions> = new Array<AlertDialogButtonOptions>(buttons_buf_length) 11161 for (let buttons_buf_i = 0; buttons_buf_i < buttons_buf_length; buttons_buf_i++) { 11162 buttons_buf[buttons_buf_i] = valueDeserializer.readAlertDialogButtonOptions() 11163 } 11164 const buttons_result : Array<AlertDialogButtonOptions> = buttons_buf 11165 const buttonDirection_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11166 let buttonDirection_buf : DialogButtonDirection | undefined 11167 if ((RuntimeType.UNDEFINED) != (buttonDirection_buf_runtimeType)) 11168 { 11169 buttonDirection_buf = (valueDeserializer.readInt32() as DialogButtonDirection) 11170 } 11171 const buttonDirection_result : DialogButtonDirection | undefined = buttonDirection_buf 11172 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) 11173 return value 11174 } 11175 readAlertDialogParamWithButtons(): AlertDialogParamWithButtons { 11176 let valueDeserializer : Deserializer = this 11177 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11178 let title_buf : ResourceStr | undefined 11179 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 11180 { 11181 const title_buf__selector : int32 = valueDeserializer.readInt8() 11182 let title_buf_ : string | Resource | undefined 11183 if (title_buf__selector == 0) { 11184 title_buf_ = (valueDeserializer.readString() as string) 11185 } 11186 else if (title_buf__selector == 1) { 11187 title_buf_ = valueDeserializer.readResource() 11188 } 11189 else { 11190 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 11191 } 11192 title_buf = (title_buf_ as string | Resource) 11193 } 11194 const title_result : ResourceStr | undefined = title_buf 11195 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11196 let subtitle_buf : ResourceStr | undefined 11197 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 11198 { 11199 const subtitle_buf__selector : int32 = valueDeserializer.readInt8() 11200 let subtitle_buf_ : string | Resource | undefined 11201 if (subtitle_buf__selector == 0) { 11202 subtitle_buf_ = (valueDeserializer.readString() as string) 11203 } 11204 else if (subtitle_buf__selector == 1) { 11205 subtitle_buf_ = valueDeserializer.readResource() 11206 } 11207 else { 11208 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 11209 } 11210 subtitle_buf = (subtitle_buf_ as string | Resource) 11211 } 11212 const subtitle_result : ResourceStr | undefined = subtitle_buf 11213 const message_buf_selector : int32 = valueDeserializer.readInt8() 11214 let message_buf : string | Resource | undefined 11215 if (message_buf_selector == 0) { 11216 message_buf = (valueDeserializer.readString() as string) 11217 } 11218 else if (message_buf_selector == 1) { 11219 message_buf = valueDeserializer.readResource() 11220 } 11221 else { 11222 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 11223 } 11224 const message_result : ResourceStr = (message_buf as string | Resource) 11225 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11226 let autoCancel_buf : boolean | undefined 11227 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 11228 { 11229 autoCancel_buf = valueDeserializer.readBoolean() 11230 } 11231 const autoCancel_result : boolean | undefined = autoCancel_buf 11232 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11233 let cancel_buf : VoidCallback | undefined 11234 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 11235 { 11236 cancel_buf = valueDeserializer.readVoidCallback() 11237 } 11238 const cancel_result : VoidCallback | undefined = cancel_buf 11239 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11240 let alignment_buf : DialogAlignment | undefined 11241 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 11242 { 11243 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 11244 } 11245 const alignment_result : DialogAlignment | undefined = alignment_buf 11246 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11247 let offset_buf : Offset | undefined 11248 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 11249 { 11250 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 11251 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 11252 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 11253 } 11254 const offset_result : Offset | undefined = offset_buf 11255 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11256 let gridCount_buf : number | undefined 11257 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 11258 { 11259 gridCount_buf = (valueDeserializer.readNumber() as number) 11260 } 11261 const gridCount_result : number | undefined = gridCount_buf 11262 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11263 let maskRect_buf : Rectangle | undefined 11264 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 11265 { 11266 maskRect_buf = valueDeserializer.readRectangle() 11267 } 11268 const maskRect_result : Rectangle | undefined = maskRect_buf 11269 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11270 let showInSubWindow_buf : boolean | undefined 11271 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 11272 { 11273 showInSubWindow_buf = valueDeserializer.readBoolean() 11274 } 11275 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 11276 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11277 let isModal_buf : boolean | undefined 11278 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 11279 { 11280 isModal_buf = valueDeserializer.readBoolean() 11281 } 11282 const isModal_result : boolean | undefined = isModal_buf 11283 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11284 let backgroundColor_buf : ResourceColor | undefined 11285 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 11286 { 11287 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 11288 let backgroundColor_buf_ : Color | number | string | Resource | undefined 11289 if (backgroundColor_buf__selector == 0) { 11290 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 11291 } 11292 else if (backgroundColor_buf__selector == 1) { 11293 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 11294 } 11295 else if (backgroundColor_buf__selector == 2) { 11296 backgroundColor_buf_ = (valueDeserializer.readString() as string) 11297 } 11298 else if (backgroundColor_buf__selector == 3) { 11299 backgroundColor_buf_ = valueDeserializer.readResource() 11300 } 11301 else { 11302 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 11303 } 11304 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 11305 } 11306 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 11307 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11308 let backgroundBlurStyle_buf : BlurStyle | undefined 11309 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 11310 { 11311 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 11312 } 11313 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 11314 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11315 let onWillDismiss_buf : ((parameter: DismissDialogAction) => void) | undefined 11316 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 11317 { 11318 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 11319 } 11320 const onWillDismiss_result : ((parameter: DismissDialogAction) => void) | undefined = onWillDismiss_buf 11321 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11322 let transition_buf : TransitionEffect | undefined 11323 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 11324 { 11325 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 11326 } 11327 const transition_result : TransitionEffect | undefined = transition_buf 11328 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11329 let cornerRadius_buf : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 11330 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 11331 { 11332 const cornerRadius_buf__selector : int32 = valueDeserializer.readInt8() 11333 let cornerRadius_buf_ : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 11334 if (cornerRadius_buf__selector == 0) { 11335 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 11336 } 11337 else if (cornerRadius_buf__selector == 1) { 11338 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11339 let cornerRadius_buf__u_topLeft_buf : Length | undefined 11340 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 11341 { 11342 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 11343 } 11344 const cornerRadius_buf__u_topLeft : undefined | Length = cornerRadius_buf__u_topLeft_buf 11345 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11346 let cornerRadius_buf__u_topRight_buf : Length | undefined 11347 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 11348 { 11349 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 11350 } 11351 const cornerRadius_buf__u_topRight : undefined | Length = cornerRadius_buf__u_topRight_buf 11352 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11353 let cornerRadius_buf__u_bottomLeft_buf : Length | undefined 11354 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 11355 { 11356 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 11357 } 11358 const cornerRadius_buf__u_bottomLeft : undefined | Length = cornerRadius_buf__u_bottomLeft_buf 11359 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11360 let cornerRadius_buf__u_bottomRight_buf : Length | undefined 11361 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 11362 { 11363 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 11364 } 11365 const cornerRadius_buf__u_bottomRight : undefined | Length = cornerRadius_buf__u_bottomRight_buf 11366 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 11367 } 11368 else if (cornerRadius_buf__selector == 2) { 11369 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 11370 } 11371 else { 11372 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 11373 } 11374 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 11375 } 11376 const cornerRadius_result : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined = cornerRadius_buf 11377 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11378 let width_buf : Dimension | undefined 11379 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 11380 { 11381 width_buf = (valueDeserializer.readLength() as Dimension) 11382 } 11383 const width_result : Dimension | undefined = width_buf 11384 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11385 let height_buf : Dimension | undefined 11386 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 11387 { 11388 height_buf = (valueDeserializer.readLength() as Dimension) 11389 } 11390 const height_result : Dimension | undefined = height_buf 11391 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11392 let borderWidth_buf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 11393 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 11394 { 11395 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 11396 let borderWidth_buf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 11397 if (borderWidth_buf__selector == 0) { 11398 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 11399 } 11400 else if (borderWidth_buf__selector == 1) { 11401 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11402 let borderWidth_buf__u_top_buf : Length | undefined 11403 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 11404 { 11405 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 11406 } 11407 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 11408 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11409 let borderWidth_buf__u_right_buf : Length | undefined 11410 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 11411 { 11412 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 11413 } 11414 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 11415 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11416 let borderWidth_buf__u_bottom_buf : Length | undefined 11417 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 11418 { 11419 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 11420 } 11421 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 11422 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11423 let borderWidth_buf__u_left_buf : Length | undefined 11424 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 11425 { 11426 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 11427 } 11428 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 11429 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 11430 } 11431 else if (borderWidth_buf__selector == 2) { 11432 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 11433 } 11434 else { 11435 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 11436 } 11437 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 11438 } 11439 const borderWidth_result : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidth_buf 11440 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11441 let borderColor_buf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 11442 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 11443 { 11444 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 11445 let borderColor_buf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 11446 if (borderColor_buf__selector == 0) { 11447 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 11448 let borderColor_buf__u : Color | number | string | Resource | undefined 11449 if (borderColor_buf__u_selector == 0) { 11450 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 11451 } 11452 else if (borderColor_buf__u_selector == 1) { 11453 borderColor_buf__u = (valueDeserializer.readNumber() as number) 11454 } 11455 else if (borderColor_buf__u_selector == 2) { 11456 borderColor_buf__u = (valueDeserializer.readString() as string) 11457 } 11458 else if (borderColor_buf__u_selector == 3) { 11459 borderColor_buf__u = valueDeserializer.readResource() 11460 } 11461 else { 11462 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 11463 } 11464 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 11465 } 11466 else if (borderColor_buf__selector == 1) { 11467 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11468 let borderColor_buf__u_top_buf : ResourceColor | undefined 11469 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 11470 { 11471 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 11472 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 11473 if (borderColor_buf__u_top_buf__selector == 0) { 11474 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 11475 } 11476 else if (borderColor_buf__u_top_buf__selector == 1) { 11477 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 11478 } 11479 else if (borderColor_buf__u_top_buf__selector == 2) { 11480 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 11481 } 11482 else if (borderColor_buf__u_top_buf__selector == 3) { 11483 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 11484 } 11485 else { 11486 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 11487 } 11488 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 11489 } 11490 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 11491 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11492 let borderColor_buf__u_right_buf : ResourceColor | undefined 11493 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 11494 { 11495 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 11496 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 11497 if (borderColor_buf__u_right_buf__selector == 0) { 11498 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 11499 } 11500 else if (borderColor_buf__u_right_buf__selector == 1) { 11501 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 11502 } 11503 else if (borderColor_buf__u_right_buf__selector == 2) { 11504 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 11505 } 11506 else if (borderColor_buf__u_right_buf__selector == 3) { 11507 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11508 } 11509 else { 11510 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 11511 } 11512 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 11513 } 11514 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 11515 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11516 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 11517 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 11518 { 11519 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 11520 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 11521 if (borderColor_buf__u_bottom_buf__selector == 0) { 11522 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 11523 } 11524 else if (borderColor_buf__u_bottom_buf__selector == 1) { 11525 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 11526 } 11527 else if (borderColor_buf__u_bottom_buf__selector == 2) { 11528 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 11529 } 11530 else if (borderColor_buf__u_bottom_buf__selector == 3) { 11531 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 11532 } 11533 else { 11534 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 11535 } 11536 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 11537 } 11538 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 11539 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11540 let borderColor_buf__u_left_buf : ResourceColor | undefined 11541 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 11542 { 11543 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 11544 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 11545 if (borderColor_buf__u_left_buf__selector == 0) { 11546 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 11547 } 11548 else if (borderColor_buf__u_left_buf__selector == 1) { 11549 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 11550 } 11551 else if (borderColor_buf__u_left_buf__selector == 2) { 11552 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 11553 } 11554 else if (borderColor_buf__u_left_buf__selector == 3) { 11555 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 11556 } 11557 else { 11558 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 11559 } 11560 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 11561 } 11562 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 11563 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 11564 } 11565 else if (borderColor_buf__selector == 2) { 11566 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 11567 } 11568 else { 11569 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 11570 } 11571 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 11572 } 11573 const borderColor_result : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColor_buf 11574 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11575 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 11576 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 11577 { 11578 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 11579 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 11580 if (borderStyle_buf__selector == 0) { 11581 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 11582 } 11583 else if (borderStyle_buf__selector == 1) { 11584 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11585 let borderStyle_buf__u_top_buf : BorderStyle | undefined 11586 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 11587 { 11588 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 11589 } 11590 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 11591 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11592 let borderStyle_buf__u_right_buf : BorderStyle | undefined 11593 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 11594 { 11595 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 11596 } 11597 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 11598 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11599 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 11600 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 11601 { 11602 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 11603 } 11604 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 11605 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11606 let borderStyle_buf__u_left_buf : BorderStyle | undefined 11607 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 11608 { 11609 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 11610 } 11611 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 11612 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 11613 } 11614 else { 11615 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 11616 } 11617 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 11618 } 11619 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 11620 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11621 let shadow_buf : ShadowOptions | ShadowStyle | undefined 11622 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 11623 { 11624 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 11625 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 11626 if (shadow_buf__selector == 0) { 11627 shadow_buf_ = valueDeserializer.readShadowOptions() 11628 } 11629 else if (shadow_buf__selector == 1) { 11630 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 11631 } 11632 else { 11633 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 11634 } 11635 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 11636 } 11637 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 11638 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11639 let textStyle_buf : TextStyle_alert_dialog | undefined 11640 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 11641 { 11642 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 11643 } 11644 const textStyle_result : TextStyle_alert_dialog | undefined = textStyle_buf 11645 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11646 let enableHoverMode_buf : boolean | undefined 11647 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 11648 { 11649 enableHoverMode_buf = valueDeserializer.readBoolean() 11650 } 11651 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 11652 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11653 let hoverModeArea_buf : HoverModeAreaType | undefined 11654 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 11655 { 11656 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 11657 } 11658 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 11659 const primaryButton_result : AlertDialogButtonBaseOptions = valueDeserializer.readAlertDialogButtonBaseOptions() 11660 const secondaryButton_result : AlertDialogButtonBaseOptions = valueDeserializer.readAlertDialogButtonBaseOptions() 11661 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) 11662 return value 11663 } 11664 readAlertDialogParamWithConfirm(): AlertDialogParamWithConfirm { 11665 let valueDeserializer : Deserializer = this 11666 const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11667 let title_buf : ResourceStr | undefined 11668 if ((RuntimeType.UNDEFINED) != (title_buf_runtimeType)) 11669 { 11670 const title_buf__selector : int32 = valueDeserializer.readInt8() 11671 let title_buf_ : string | Resource | undefined 11672 if (title_buf__selector == 0) { 11673 title_buf_ = (valueDeserializer.readString() as string) 11674 } 11675 else if (title_buf__selector == 1) { 11676 title_buf_ = valueDeserializer.readResource() 11677 } 11678 else { 11679 throw new Error("One of the branches for title_buf_ has to be chosen through deserialisation.") 11680 } 11681 title_buf = (title_buf_ as string | Resource) 11682 } 11683 const title_result : ResourceStr | undefined = title_buf 11684 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11685 let subtitle_buf : ResourceStr | undefined 11686 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 11687 { 11688 const subtitle_buf__selector : int32 = valueDeserializer.readInt8() 11689 let subtitle_buf_ : string | Resource | undefined 11690 if (subtitle_buf__selector == 0) { 11691 subtitle_buf_ = (valueDeserializer.readString() as string) 11692 } 11693 else if (subtitle_buf__selector == 1) { 11694 subtitle_buf_ = valueDeserializer.readResource() 11695 } 11696 else { 11697 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 11698 } 11699 subtitle_buf = (subtitle_buf_ as string | Resource) 11700 } 11701 const subtitle_result : ResourceStr | undefined = subtitle_buf 11702 const message_buf_selector : int32 = valueDeserializer.readInt8() 11703 let message_buf : string | Resource | undefined 11704 if (message_buf_selector == 0) { 11705 message_buf = (valueDeserializer.readString() as string) 11706 } 11707 else if (message_buf_selector == 1) { 11708 message_buf = valueDeserializer.readResource() 11709 } 11710 else { 11711 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 11712 } 11713 const message_result : ResourceStr = (message_buf as string | Resource) 11714 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11715 let autoCancel_buf : boolean | undefined 11716 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 11717 { 11718 autoCancel_buf = valueDeserializer.readBoolean() 11719 } 11720 const autoCancel_result : boolean | undefined = autoCancel_buf 11721 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11722 let cancel_buf : VoidCallback | undefined 11723 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 11724 { 11725 cancel_buf = valueDeserializer.readVoidCallback() 11726 } 11727 const cancel_result : VoidCallback | undefined = cancel_buf 11728 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11729 let alignment_buf : DialogAlignment | undefined 11730 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 11731 { 11732 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 11733 } 11734 const alignment_result : DialogAlignment | undefined = alignment_buf 11735 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11736 let offset_buf : Offset | undefined 11737 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 11738 { 11739 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 11740 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 11741 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 11742 } 11743 const offset_result : Offset | undefined = offset_buf 11744 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11745 let gridCount_buf : number | undefined 11746 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 11747 { 11748 gridCount_buf = (valueDeserializer.readNumber() as number) 11749 } 11750 const gridCount_result : number | undefined = gridCount_buf 11751 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11752 let maskRect_buf : Rectangle | undefined 11753 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 11754 { 11755 maskRect_buf = valueDeserializer.readRectangle() 11756 } 11757 const maskRect_result : Rectangle | undefined = maskRect_buf 11758 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11759 let showInSubWindow_buf : boolean | undefined 11760 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 11761 { 11762 showInSubWindow_buf = valueDeserializer.readBoolean() 11763 } 11764 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 11765 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11766 let isModal_buf : boolean | undefined 11767 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 11768 { 11769 isModal_buf = valueDeserializer.readBoolean() 11770 } 11771 const isModal_result : boolean | undefined = isModal_buf 11772 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11773 let backgroundColor_buf : ResourceColor | undefined 11774 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 11775 { 11776 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 11777 let backgroundColor_buf_ : Color | number | string | Resource | undefined 11778 if (backgroundColor_buf__selector == 0) { 11779 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 11780 } 11781 else if (backgroundColor_buf__selector == 1) { 11782 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 11783 } 11784 else if (backgroundColor_buf__selector == 2) { 11785 backgroundColor_buf_ = (valueDeserializer.readString() as string) 11786 } 11787 else if (backgroundColor_buf__selector == 3) { 11788 backgroundColor_buf_ = valueDeserializer.readResource() 11789 } 11790 else { 11791 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 11792 } 11793 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 11794 } 11795 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 11796 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11797 let backgroundBlurStyle_buf : BlurStyle | undefined 11798 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 11799 { 11800 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 11801 } 11802 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 11803 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11804 let onWillDismiss_buf : ((parameter: DismissDialogAction) => void) | undefined 11805 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 11806 { 11807 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 11808 } 11809 const onWillDismiss_result : ((parameter: DismissDialogAction) => void) | undefined = onWillDismiss_buf 11810 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11811 let transition_buf : TransitionEffect | undefined 11812 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 11813 { 11814 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 11815 } 11816 const transition_result : TransitionEffect | undefined = transition_buf 11817 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11818 let cornerRadius_buf : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 11819 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 11820 { 11821 const cornerRadius_buf__selector : int32 = valueDeserializer.readInt8() 11822 let cornerRadius_buf_ : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 11823 if (cornerRadius_buf__selector == 0) { 11824 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 11825 } 11826 else if (cornerRadius_buf__selector == 1) { 11827 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11828 let cornerRadius_buf__u_topLeft_buf : Length | undefined 11829 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 11830 { 11831 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 11832 } 11833 const cornerRadius_buf__u_topLeft : undefined | Length = cornerRadius_buf__u_topLeft_buf 11834 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11835 let cornerRadius_buf__u_topRight_buf : Length | undefined 11836 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 11837 { 11838 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 11839 } 11840 const cornerRadius_buf__u_topRight : undefined | Length = cornerRadius_buf__u_topRight_buf 11841 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11842 let cornerRadius_buf__u_bottomLeft_buf : Length | undefined 11843 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 11844 { 11845 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 11846 } 11847 const cornerRadius_buf__u_bottomLeft : undefined | Length = cornerRadius_buf__u_bottomLeft_buf 11848 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11849 let cornerRadius_buf__u_bottomRight_buf : Length | undefined 11850 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 11851 { 11852 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 11853 } 11854 const cornerRadius_buf__u_bottomRight : undefined | Length = cornerRadius_buf__u_bottomRight_buf 11855 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 11856 } 11857 else if (cornerRadius_buf__selector == 2) { 11858 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 11859 } 11860 else { 11861 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 11862 } 11863 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 11864 } 11865 const cornerRadius_result : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined = cornerRadius_buf 11866 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11867 let width_buf : Dimension | undefined 11868 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 11869 { 11870 width_buf = (valueDeserializer.readLength() as Dimension) 11871 } 11872 const width_result : Dimension | undefined = width_buf 11873 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11874 let height_buf : Dimension | undefined 11875 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 11876 { 11877 height_buf = (valueDeserializer.readLength() as Dimension) 11878 } 11879 const height_result : Dimension | undefined = height_buf 11880 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11881 let borderWidth_buf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 11882 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 11883 { 11884 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 11885 let borderWidth_buf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 11886 if (borderWidth_buf__selector == 0) { 11887 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 11888 } 11889 else if (borderWidth_buf__selector == 1) { 11890 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11891 let borderWidth_buf__u_top_buf : Length | undefined 11892 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 11893 { 11894 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 11895 } 11896 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 11897 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11898 let borderWidth_buf__u_right_buf : Length | undefined 11899 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 11900 { 11901 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 11902 } 11903 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 11904 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11905 let borderWidth_buf__u_bottom_buf : Length | undefined 11906 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 11907 { 11908 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 11909 } 11910 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 11911 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11912 let borderWidth_buf__u_left_buf : Length | undefined 11913 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 11914 { 11915 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 11916 } 11917 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 11918 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 11919 } 11920 else if (borderWidth_buf__selector == 2) { 11921 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 11922 } 11923 else { 11924 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 11925 } 11926 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 11927 } 11928 const borderWidth_result : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidth_buf 11929 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11930 let borderColor_buf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 11931 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 11932 { 11933 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 11934 let borderColor_buf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 11935 if (borderColor_buf__selector == 0) { 11936 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 11937 let borderColor_buf__u : Color | number | string | Resource | undefined 11938 if (borderColor_buf__u_selector == 0) { 11939 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 11940 } 11941 else if (borderColor_buf__u_selector == 1) { 11942 borderColor_buf__u = (valueDeserializer.readNumber() as number) 11943 } 11944 else if (borderColor_buf__u_selector == 2) { 11945 borderColor_buf__u = (valueDeserializer.readString() as string) 11946 } 11947 else if (borderColor_buf__u_selector == 3) { 11948 borderColor_buf__u = valueDeserializer.readResource() 11949 } 11950 else { 11951 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 11952 } 11953 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 11954 } 11955 else if (borderColor_buf__selector == 1) { 11956 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11957 let borderColor_buf__u_top_buf : ResourceColor | undefined 11958 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 11959 { 11960 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 11961 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 11962 if (borderColor_buf__u_top_buf__selector == 0) { 11963 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 11964 } 11965 else if (borderColor_buf__u_top_buf__selector == 1) { 11966 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 11967 } 11968 else if (borderColor_buf__u_top_buf__selector == 2) { 11969 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 11970 } 11971 else if (borderColor_buf__u_top_buf__selector == 3) { 11972 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 11973 } 11974 else { 11975 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 11976 } 11977 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 11978 } 11979 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 11980 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 11981 let borderColor_buf__u_right_buf : ResourceColor | undefined 11982 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 11983 { 11984 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 11985 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 11986 if (borderColor_buf__u_right_buf__selector == 0) { 11987 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 11988 } 11989 else if (borderColor_buf__u_right_buf__selector == 1) { 11990 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 11991 } 11992 else if (borderColor_buf__u_right_buf__selector == 2) { 11993 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 11994 } 11995 else if (borderColor_buf__u_right_buf__selector == 3) { 11996 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 11997 } 11998 else { 11999 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 12000 } 12001 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 12002 } 12003 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 12004 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12005 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 12006 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 12007 { 12008 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 12009 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 12010 if (borderColor_buf__u_bottom_buf__selector == 0) { 12011 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 12012 } 12013 else if (borderColor_buf__u_bottom_buf__selector == 1) { 12014 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 12015 } 12016 else if (borderColor_buf__u_bottom_buf__selector == 2) { 12017 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 12018 } 12019 else if (borderColor_buf__u_bottom_buf__selector == 3) { 12020 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 12021 } 12022 else { 12023 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 12024 } 12025 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 12026 } 12027 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 12028 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12029 let borderColor_buf__u_left_buf : ResourceColor | undefined 12030 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 12031 { 12032 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 12033 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 12034 if (borderColor_buf__u_left_buf__selector == 0) { 12035 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 12036 } 12037 else if (borderColor_buf__u_left_buf__selector == 1) { 12038 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 12039 } 12040 else if (borderColor_buf__u_left_buf__selector == 2) { 12041 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 12042 } 12043 else if (borderColor_buf__u_left_buf__selector == 3) { 12044 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 12045 } 12046 else { 12047 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 12048 } 12049 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 12050 } 12051 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 12052 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 12053 } 12054 else if (borderColor_buf__selector == 2) { 12055 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 12056 } 12057 else { 12058 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 12059 } 12060 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 12061 } 12062 const borderColor_result : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColor_buf 12063 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12064 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 12065 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 12066 { 12067 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 12068 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 12069 if (borderStyle_buf__selector == 0) { 12070 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 12071 } 12072 else if (borderStyle_buf__selector == 1) { 12073 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12074 let borderStyle_buf__u_top_buf : BorderStyle | undefined 12075 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 12076 { 12077 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 12078 } 12079 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 12080 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12081 let borderStyle_buf__u_right_buf : BorderStyle | undefined 12082 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 12083 { 12084 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 12085 } 12086 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 12087 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12088 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 12089 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 12090 { 12091 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 12092 } 12093 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 12094 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12095 let borderStyle_buf__u_left_buf : BorderStyle | undefined 12096 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 12097 { 12098 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 12099 } 12100 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 12101 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 12102 } 12103 else { 12104 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 12105 } 12106 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 12107 } 12108 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 12109 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12110 let shadow_buf : ShadowOptions | ShadowStyle | undefined 12111 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 12112 { 12113 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 12114 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 12115 if (shadow_buf__selector == 0) { 12116 shadow_buf_ = valueDeserializer.readShadowOptions() 12117 } 12118 else if (shadow_buf__selector == 1) { 12119 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 12120 } 12121 else { 12122 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 12123 } 12124 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 12125 } 12126 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 12127 const textStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12128 let textStyle_buf : TextStyle_alert_dialog | undefined 12129 if ((RuntimeType.UNDEFINED) != (textStyle_buf_runtimeType)) 12130 { 12131 textStyle_buf = valueDeserializer.readTextStyle_alert_dialog() 12132 } 12133 const textStyle_result : TextStyle_alert_dialog | undefined = textStyle_buf 12134 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12135 let enableHoverMode_buf : boolean | undefined 12136 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 12137 { 12138 enableHoverMode_buf = valueDeserializer.readBoolean() 12139 } 12140 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 12141 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12142 let hoverModeArea_buf : HoverModeAreaType | undefined 12143 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 12144 { 12145 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 12146 } 12147 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 12148 const confirm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12149 let confirm_buf : AlertDialogButtonBaseOptions | undefined 12150 if ((RuntimeType.UNDEFINED) != (confirm_buf_runtimeType)) 12151 { 12152 confirm_buf = valueDeserializer.readAlertDialogButtonBaseOptions() 12153 } 12154 const confirm_result : AlertDialogButtonBaseOptions | undefined = confirm_buf 12155 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) 12156 return value 12157 } 12158 readActionSheetOptions(): ActionSheetOptions { 12159 let valueDeserializer : Deserializer = this 12160 const title_buf_selector : int32 = valueDeserializer.readInt8() 12161 let title_buf : string | Resource | undefined 12162 if (title_buf_selector == 0) { 12163 title_buf = (valueDeserializer.readString() as string) 12164 } 12165 else if (title_buf_selector == 1) { 12166 title_buf = valueDeserializer.readResource() 12167 } 12168 else { 12169 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 12170 } 12171 const title_result : string | Resource = (title_buf as string | Resource) 12172 const subtitle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12173 let subtitle_buf : ResourceStr | undefined 12174 if ((RuntimeType.UNDEFINED) != (subtitle_buf_runtimeType)) 12175 { 12176 const subtitle_buf__selector : int32 = valueDeserializer.readInt8() 12177 let subtitle_buf_ : string | Resource | undefined 12178 if (subtitle_buf__selector == 0) { 12179 subtitle_buf_ = (valueDeserializer.readString() as string) 12180 } 12181 else if (subtitle_buf__selector == 1) { 12182 subtitle_buf_ = valueDeserializer.readResource() 12183 } 12184 else { 12185 throw new Error("One of the branches for subtitle_buf_ has to be chosen through deserialisation.") 12186 } 12187 subtitle_buf = (subtitle_buf_ as string | Resource) 12188 } 12189 const subtitle_result : ResourceStr | undefined = subtitle_buf 12190 const message_buf_selector : int32 = valueDeserializer.readInt8() 12191 let message_buf : string | Resource | undefined 12192 if (message_buf_selector == 0) { 12193 message_buf = (valueDeserializer.readString() as string) 12194 } 12195 else if (message_buf_selector == 1) { 12196 message_buf = valueDeserializer.readResource() 12197 } 12198 else { 12199 throw new Error("One of the branches for message_buf has to be chosen through deserialisation.") 12200 } 12201 const message_result : string | Resource = (message_buf as string | Resource) 12202 const confirm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12203 let confirm_buf : ActionSheetButtonOptions | undefined 12204 if ((RuntimeType.UNDEFINED) != (confirm_buf_runtimeType)) 12205 { 12206 confirm_buf = valueDeserializer.readActionSheetButtonOptions() 12207 } 12208 const confirm_result : ActionSheetButtonOptions | undefined = confirm_buf 12209 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12210 let cancel_buf : VoidCallback | undefined 12211 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 12212 { 12213 cancel_buf = valueDeserializer.readVoidCallback() 12214 } 12215 const cancel_result : VoidCallback | undefined = cancel_buf 12216 const sheets_buf_length : int32 = valueDeserializer.readInt32() 12217 let sheets_buf : Array<SheetInfo> = new Array<SheetInfo>(sheets_buf_length) 12218 for (let sheets_buf_i = 0; sheets_buf_i < sheets_buf_length; sheets_buf_i++) { 12219 sheets_buf[sheets_buf_i] = valueDeserializer.readSheetInfo() 12220 } 12221 const sheets_result : Array<SheetInfo> = sheets_buf 12222 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12223 let autoCancel_buf : boolean | undefined 12224 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 12225 { 12226 autoCancel_buf = valueDeserializer.readBoolean() 12227 } 12228 const autoCancel_result : boolean | undefined = autoCancel_buf 12229 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12230 let alignment_buf : DialogAlignment | undefined 12231 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 12232 { 12233 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 12234 } 12235 const alignment_result : DialogAlignment | undefined = alignment_buf 12236 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12237 let offset_buf : ActionSheetOffset | undefined 12238 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 12239 { 12240 offset_buf = valueDeserializer.readActionSheetOffset() 12241 } 12242 const offset_result : ActionSheetOffset | undefined = offset_buf 12243 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12244 let maskRect_buf : Rectangle | undefined 12245 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 12246 { 12247 maskRect_buf = valueDeserializer.readRectangle() 12248 } 12249 const maskRect_result : Rectangle | undefined = maskRect_buf 12250 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12251 let showInSubWindow_buf : boolean | undefined 12252 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 12253 { 12254 showInSubWindow_buf = valueDeserializer.readBoolean() 12255 } 12256 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 12257 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12258 let isModal_buf : boolean | undefined 12259 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 12260 { 12261 isModal_buf = valueDeserializer.readBoolean() 12262 } 12263 const isModal_result : boolean | undefined = isModal_buf 12264 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12265 let backgroundColor_buf : ResourceColor | undefined 12266 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 12267 { 12268 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 12269 let backgroundColor_buf_ : Color | number | string | Resource | undefined 12270 if (backgroundColor_buf__selector == 0) { 12271 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 12272 } 12273 else if (backgroundColor_buf__selector == 1) { 12274 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 12275 } 12276 else if (backgroundColor_buf__selector == 2) { 12277 backgroundColor_buf_ = (valueDeserializer.readString() as string) 12278 } 12279 else if (backgroundColor_buf__selector == 3) { 12280 backgroundColor_buf_ = valueDeserializer.readResource() 12281 } 12282 else { 12283 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 12284 } 12285 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 12286 } 12287 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 12288 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12289 let backgroundBlurStyle_buf : BlurStyle | undefined 12290 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 12291 { 12292 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 12293 } 12294 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 12295 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12296 let onWillDismiss_buf : ((parameter: DismissDialogAction) => void) | undefined 12297 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 12298 { 12299 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 12300 } 12301 const onWillDismiss_result : ((parameter: DismissDialogAction) => void) | undefined = onWillDismiss_buf 12302 const transition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12303 let transition_buf : TransitionEffect | undefined 12304 if ((RuntimeType.UNDEFINED) != (transition_buf_runtimeType)) 12305 { 12306 transition_buf = (valueDeserializer.readTransitionEffect() as TransitionEffect) 12307 } 12308 const transition_result : TransitionEffect | undefined = transition_buf 12309 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12310 let cornerRadius_buf : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 12311 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 12312 { 12313 const cornerRadius_buf__selector : int32 = valueDeserializer.readInt8() 12314 let cornerRadius_buf_ : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined 12315 if (cornerRadius_buf__selector == 0) { 12316 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 12317 } 12318 else if (cornerRadius_buf__selector == 1) { 12319 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12320 let cornerRadius_buf__u_topLeft_buf : Length | undefined 12321 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 12322 { 12323 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 12324 } 12325 const cornerRadius_buf__u_topLeft : undefined | Length = cornerRadius_buf__u_topLeft_buf 12326 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12327 let cornerRadius_buf__u_topRight_buf : Length | undefined 12328 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 12329 { 12330 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 12331 } 12332 const cornerRadius_buf__u_topRight : undefined | Length = cornerRadius_buf__u_topRight_buf 12333 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12334 let cornerRadius_buf__u_bottomLeft_buf : Length | undefined 12335 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 12336 { 12337 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 12338 } 12339 const cornerRadius_buf__u_bottomLeft : undefined | Length = cornerRadius_buf__u_bottomLeft_buf 12340 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12341 let cornerRadius_buf__u_bottomRight_buf : Length | undefined 12342 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 12343 { 12344 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 12345 } 12346 const cornerRadius_buf__u_bottomRight : undefined | Length = cornerRadius_buf__u_bottomRight_buf 12347 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 12348 } 12349 else if (cornerRadius_buf__selector == 2) { 12350 cornerRadius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 12351 } 12352 else { 12353 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 12354 } 12355 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses | LocalizedBorderRadiuses) 12356 } 12357 const cornerRadius_result : Dimension | BorderRadiuses | LocalizedBorderRadiuses | undefined = cornerRadius_buf 12358 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12359 let width_buf : Dimension | undefined 12360 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 12361 { 12362 width_buf = (valueDeserializer.readLength() as Dimension) 12363 } 12364 const width_result : Dimension | undefined = width_buf 12365 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12366 let height_buf : Dimension | undefined 12367 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 12368 { 12369 height_buf = (valueDeserializer.readLength() as Dimension) 12370 } 12371 const height_result : Dimension | undefined = height_buf 12372 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12373 let borderWidth_buf : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 12374 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 12375 { 12376 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 12377 let borderWidth_buf_ : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined 12378 if (borderWidth_buf__selector == 0) { 12379 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 12380 } 12381 else if (borderWidth_buf__selector == 1) { 12382 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12383 let borderWidth_buf__u_top_buf : Length | undefined 12384 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 12385 { 12386 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 12387 } 12388 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 12389 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12390 let borderWidth_buf__u_right_buf : Length | undefined 12391 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 12392 { 12393 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 12394 } 12395 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 12396 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12397 let borderWidth_buf__u_bottom_buf : Length | undefined 12398 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 12399 { 12400 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 12401 } 12402 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 12403 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12404 let borderWidth_buf__u_left_buf : Length | undefined 12405 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 12406 { 12407 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 12408 } 12409 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 12410 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 12411 } 12412 else if (borderWidth_buf__selector == 2) { 12413 borderWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 12414 } 12415 else { 12416 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 12417 } 12418 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths | LocalizedEdgeWidths) 12419 } 12420 const borderWidth_result : Dimension | EdgeWidths | LocalizedEdgeWidths | undefined = borderWidth_buf 12421 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12422 let borderColor_buf : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 12423 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 12424 { 12425 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 12426 let borderColor_buf_ : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined 12427 if (borderColor_buf__selector == 0) { 12428 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 12429 let borderColor_buf__u : Color | number | string | Resource | undefined 12430 if (borderColor_buf__u_selector == 0) { 12431 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 12432 } 12433 else if (borderColor_buf__u_selector == 1) { 12434 borderColor_buf__u = (valueDeserializer.readNumber() as number) 12435 } 12436 else if (borderColor_buf__u_selector == 2) { 12437 borderColor_buf__u = (valueDeserializer.readString() as string) 12438 } 12439 else if (borderColor_buf__u_selector == 3) { 12440 borderColor_buf__u = valueDeserializer.readResource() 12441 } 12442 else { 12443 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 12444 } 12445 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 12446 } 12447 else if (borderColor_buf__selector == 1) { 12448 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12449 let borderColor_buf__u_top_buf : ResourceColor | undefined 12450 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 12451 { 12452 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 12453 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 12454 if (borderColor_buf__u_top_buf__selector == 0) { 12455 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 12456 } 12457 else if (borderColor_buf__u_top_buf__selector == 1) { 12458 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 12459 } 12460 else if (borderColor_buf__u_top_buf__selector == 2) { 12461 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 12462 } 12463 else if (borderColor_buf__u_top_buf__selector == 3) { 12464 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 12465 } 12466 else { 12467 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 12468 } 12469 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 12470 } 12471 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 12472 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12473 let borderColor_buf__u_right_buf : ResourceColor | undefined 12474 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 12475 { 12476 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 12477 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 12478 if (borderColor_buf__u_right_buf__selector == 0) { 12479 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 12480 } 12481 else if (borderColor_buf__u_right_buf__selector == 1) { 12482 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 12483 } 12484 else if (borderColor_buf__u_right_buf__selector == 2) { 12485 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 12486 } 12487 else if (borderColor_buf__u_right_buf__selector == 3) { 12488 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 12489 } 12490 else { 12491 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 12492 } 12493 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 12494 } 12495 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 12496 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12497 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 12498 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 12499 { 12500 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 12501 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 12502 if (borderColor_buf__u_bottom_buf__selector == 0) { 12503 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 12504 } 12505 else if (borderColor_buf__u_bottom_buf__selector == 1) { 12506 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 12507 } 12508 else if (borderColor_buf__u_bottom_buf__selector == 2) { 12509 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 12510 } 12511 else if (borderColor_buf__u_bottom_buf__selector == 3) { 12512 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 12513 } 12514 else { 12515 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 12516 } 12517 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 12518 } 12519 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 12520 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12521 let borderColor_buf__u_left_buf : ResourceColor | undefined 12522 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 12523 { 12524 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 12525 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 12526 if (borderColor_buf__u_left_buf__selector == 0) { 12527 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 12528 } 12529 else if (borderColor_buf__u_left_buf__selector == 1) { 12530 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 12531 } 12532 else if (borderColor_buf__u_left_buf__selector == 2) { 12533 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 12534 } 12535 else if (borderColor_buf__u_left_buf__selector == 3) { 12536 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 12537 } 12538 else { 12539 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 12540 } 12541 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 12542 } 12543 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 12544 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 12545 } 12546 else if (borderColor_buf__selector == 2) { 12547 borderColor_buf_ = valueDeserializer.readLocalizedEdgeColors() 12548 } 12549 else { 12550 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 12551 } 12552 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors | LocalizedEdgeColors) 12553 } 12554 const borderColor_result : ResourceColor | EdgeColors | LocalizedEdgeColors | undefined = borderColor_buf 12555 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12556 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 12557 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 12558 { 12559 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 12560 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 12561 if (borderStyle_buf__selector == 0) { 12562 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 12563 } 12564 else if (borderStyle_buf__selector == 1) { 12565 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12566 let borderStyle_buf__u_top_buf : BorderStyle | undefined 12567 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 12568 { 12569 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 12570 } 12571 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 12572 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12573 let borderStyle_buf__u_right_buf : BorderStyle | undefined 12574 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 12575 { 12576 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 12577 } 12578 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 12579 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12580 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 12581 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 12582 { 12583 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 12584 } 12585 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 12586 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12587 let borderStyle_buf__u_left_buf : BorderStyle | undefined 12588 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 12589 { 12590 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 12591 } 12592 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 12593 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 12594 } 12595 else { 12596 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 12597 } 12598 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 12599 } 12600 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 12601 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12602 let shadow_buf : ShadowOptions | ShadowStyle | undefined 12603 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 12604 { 12605 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 12606 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 12607 if (shadow_buf__selector == 0) { 12608 shadow_buf_ = valueDeserializer.readShadowOptions() 12609 } 12610 else if (shadow_buf__selector == 1) { 12611 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 12612 } 12613 else { 12614 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 12615 } 12616 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 12617 } 12618 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 12619 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12620 let enableHoverMode_buf : boolean | undefined 12621 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 12622 { 12623 enableHoverMode_buf = valueDeserializer.readBoolean() 12624 } 12625 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 12626 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12627 let hoverModeArea_buf : HoverModeAreaType | undefined 12628 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 12629 { 12630 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 12631 } 12632 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 12633 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) 12634 return value 12635 } 12636 readClickEvent(): ClickEvent { 12637 let valueDeserializer : Deserializer = this 12638 let ptr : KPointer = valueDeserializer.readPointer() 12639 return ClickEventInternal.fromPtr(ptr) 12640 } 12641 readNavExtender_OnUpdateStack(isSync: boolean = false): NavExtender_OnUpdateStack { 12642 const _resource : CallbackResource = this.readCallbackResource() 12643 const _call : KPointer = this.readPointer() 12644 const _callSync : KPointer = this.readPointer() 12645 return ():void => { 12646 const _argsSerializer : Serializer = Serializer.hold(); 12647 _argsSerializer.writeInt32(_resource.resourceId); 12648 _argsSerializer.writePointer(_call); 12649 _argsSerializer.writePointer(_callSync); 12650 (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asBuffer(), _argsSerializer.length())); 12651 _argsSerializer.release(); 12652 return; } 12653 } 12654 readMeasureOptions(): MeasureOptions { 12655 let valueDeserializer : Deserializer = this 12656 const textContent_buf_selector : int32 = valueDeserializer.readInt8() 12657 let textContent_buf : string | Resource | undefined 12658 if (textContent_buf_selector == 0) { 12659 textContent_buf = (valueDeserializer.readString() as string) 12660 } 12661 else if (textContent_buf_selector == 1) { 12662 textContent_buf = valueDeserializer.readResource() 12663 } 12664 else { 12665 throw new Error("One of the branches for textContent_buf has to be chosen through deserialisation.") 12666 } 12667 const textContent_result : string | Resource = (textContent_buf as string | Resource) 12668 const constraintWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12669 let constraintWidth_buf : number | string | Resource | undefined 12670 if ((RuntimeType.UNDEFINED) != (constraintWidth_buf_runtimeType)) 12671 { 12672 const constraintWidth_buf__selector : int32 = valueDeserializer.readInt8() 12673 let constraintWidth_buf_ : number | string | Resource | undefined 12674 if (constraintWidth_buf__selector == 0) { 12675 constraintWidth_buf_ = (valueDeserializer.readNumber() as number) 12676 } 12677 else if (constraintWidth_buf__selector == 1) { 12678 constraintWidth_buf_ = (valueDeserializer.readString() as string) 12679 } 12680 else if (constraintWidth_buf__selector == 2) { 12681 constraintWidth_buf_ = valueDeserializer.readResource() 12682 } 12683 else { 12684 throw new Error("One of the branches for constraintWidth_buf_ has to be chosen through deserialisation.") 12685 } 12686 constraintWidth_buf = (constraintWidth_buf_ as number | string | Resource) 12687 } 12688 const constraintWidth_result : number | string | Resource | undefined = constraintWidth_buf 12689 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12690 let fontSize_buf : number | string | Resource | undefined 12691 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 12692 { 12693 const fontSize_buf__selector : int32 = valueDeserializer.readInt8() 12694 let fontSize_buf_ : number | string | Resource | undefined 12695 if (fontSize_buf__selector == 0) { 12696 fontSize_buf_ = (valueDeserializer.readNumber() as number) 12697 } 12698 else if (fontSize_buf__selector == 1) { 12699 fontSize_buf_ = (valueDeserializer.readString() as string) 12700 } 12701 else if (fontSize_buf__selector == 2) { 12702 fontSize_buf_ = valueDeserializer.readResource() 12703 } 12704 else { 12705 throw new Error("One of the branches for fontSize_buf_ has to be chosen through deserialisation.") 12706 } 12707 fontSize_buf = (fontSize_buf_ as number | string | Resource) 12708 } 12709 const fontSize_result : number | string | Resource | undefined = fontSize_buf 12710 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12711 let fontStyle_buf : number | FontStyle | undefined 12712 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 12713 { 12714 const fontStyle_buf__selector : int32 = valueDeserializer.readInt8() 12715 let fontStyle_buf_ : number | FontStyle | undefined 12716 if (fontStyle_buf__selector == 0) { 12717 fontStyle_buf_ = (valueDeserializer.readNumber() as number) 12718 } 12719 else if (fontStyle_buf__selector == 1) { 12720 fontStyle_buf_ = (valueDeserializer.readInt32() as FontStyle) 12721 } 12722 else { 12723 throw new Error("One of the branches for fontStyle_buf_ has to be chosen through deserialisation.") 12724 } 12725 fontStyle_buf = (fontStyle_buf_ as number | FontStyle) 12726 } 12727 const fontStyle_result : number | FontStyle | undefined = fontStyle_buf 12728 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12729 let fontWeight_buf : number | string | FontWeight | undefined 12730 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 12731 { 12732 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 12733 let fontWeight_buf_ : number | string | FontWeight | undefined 12734 if (fontWeight_buf__selector == 0) { 12735 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 12736 } 12737 else if (fontWeight_buf__selector == 1) { 12738 fontWeight_buf_ = (valueDeserializer.readString() as string) 12739 } 12740 else if (fontWeight_buf__selector == 2) { 12741 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 12742 } 12743 else { 12744 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 12745 } 12746 fontWeight_buf = (fontWeight_buf_ as number | string | FontWeight) 12747 } 12748 const fontWeight_result : number | string | FontWeight | undefined = fontWeight_buf 12749 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12750 let fontFamily_buf : string | Resource | undefined 12751 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 12752 { 12753 const fontFamily_buf__selector : int32 = valueDeserializer.readInt8() 12754 let fontFamily_buf_ : string | Resource | undefined 12755 if (fontFamily_buf__selector == 0) { 12756 fontFamily_buf_ = (valueDeserializer.readString() as string) 12757 } 12758 else if (fontFamily_buf__selector == 1) { 12759 fontFamily_buf_ = valueDeserializer.readResource() 12760 } 12761 else { 12762 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 12763 } 12764 fontFamily_buf = (fontFamily_buf_ as string | Resource) 12765 } 12766 const fontFamily_result : string | Resource | undefined = fontFamily_buf 12767 const letterSpacing_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12768 let letterSpacing_buf : number | string | undefined 12769 if ((RuntimeType.UNDEFINED) != (letterSpacing_buf_runtimeType)) 12770 { 12771 const letterSpacing_buf__selector : int32 = valueDeserializer.readInt8() 12772 let letterSpacing_buf_ : number | string | undefined 12773 if (letterSpacing_buf__selector == 0) { 12774 letterSpacing_buf_ = (valueDeserializer.readNumber() as number) 12775 } 12776 else if (letterSpacing_buf__selector == 1) { 12777 letterSpacing_buf_ = (valueDeserializer.readString() as string) 12778 } 12779 else { 12780 throw new Error("One of the branches for letterSpacing_buf_ has to be chosen through deserialisation.") 12781 } 12782 letterSpacing_buf = (letterSpacing_buf_ as number | string) 12783 } 12784 const letterSpacing_result : number | string | undefined = letterSpacing_buf 12785 const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12786 let textAlign_buf : number | TextAlign | undefined 12787 if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) 12788 { 12789 const textAlign_buf__selector : int32 = valueDeserializer.readInt8() 12790 let textAlign_buf_ : number | TextAlign | undefined 12791 if (textAlign_buf__selector == 0) { 12792 textAlign_buf_ = (valueDeserializer.readNumber() as number) 12793 } 12794 else if (textAlign_buf__selector == 1) { 12795 textAlign_buf_ = (valueDeserializer.readInt32() as TextAlign) 12796 } 12797 else { 12798 throw new Error("One of the branches for textAlign_buf_ has to be chosen through deserialisation.") 12799 } 12800 textAlign_buf = (textAlign_buf_ as number | TextAlign) 12801 } 12802 const textAlign_result : number | TextAlign | undefined = textAlign_buf 12803 const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12804 let overflow_buf : number | TextOverflow | undefined 12805 if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) 12806 { 12807 const overflow_buf__selector : int32 = valueDeserializer.readInt8() 12808 let overflow_buf_ : number | TextOverflow | undefined 12809 if (overflow_buf__selector == 0) { 12810 overflow_buf_ = (valueDeserializer.readNumber() as number) 12811 } 12812 else if (overflow_buf__selector == 1) { 12813 overflow_buf_ = (valueDeserializer.readInt32() as TextOverflow) 12814 } 12815 else { 12816 throw new Error("One of the branches for overflow_buf_ has to be chosen through deserialisation.") 12817 } 12818 overflow_buf = (overflow_buf_ as number | TextOverflow) 12819 } 12820 const overflow_result : number | TextOverflow | undefined = overflow_buf 12821 const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12822 let maxLines_buf : number | undefined 12823 if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) 12824 { 12825 maxLines_buf = (valueDeserializer.readNumber() as number) 12826 } 12827 const maxLines_result : number | undefined = maxLines_buf 12828 const lineHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12829 let lineHeight_buf : number | string | Resource | undefined 12830 if ((RuntimeType.UNDEFINED) != (lineHeight_buf_runtimeType)) 12831 { 12832 const lineHeight_buf__selector : int32 = valueDeserializer.readInt8() 12833 let lineHeight_buf_ : number | string | Resource | undefined 12834 if (lineHeight_buf__selector == 0) { 12835 lineHeight_buf_ = (valueDeserializer.readNumber() as number) 12836 } 12837 else if (lineHeight_buf__selector == 1) { 12838 lineHeight_buf_ = (valueDeserializer.readString() as string) 12839 } 12840 else if (lineHeight_buf__selector == 2) { 12841 lineHeight_buf_ = valueDeserializer.readResource() 12842 } 12843 else { 12844 throw new Error("One of the branches for lineHeight_buf_ has to be chosen through deserialisation.") 12845 } 12846 lineHeight_buf = (lineHeight_buf_ as number | string | Resource) 12847 } 12848 const lineHeight_result : number | string | Resource | undefined = lineHeight_buf 12849 const baselineOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12850 let baselineOffset_buf : number | string | undefined 12851 if ((RuntimeType.UNDEFINED) != (baselineOffset_buf_runtimeType)) 12852 { 12853 const baselineOffset_buf__selector : int32 = valueDeserializer.readInt8() 12854 let baselineOffset_buf_ : number | string | undefined 12855 if (baselineOffset_buf__selector == 0) { 12856 baselineOffset_buf_ = (valueDeserializer.readNumber() as number) 12857 } 12858 else if (baselineOffset_buf__selector == 1) { 12859 baselineOffset_buf_ = (valueDeserializer.readString() as string) 12860 } 12861 else { 12862 throw new Error("One of the branches for baselineOffset_buf_ has to be chosen through deserialisation.") 12863 } 12864 baselineOffset_buf = (baselineOffset_buf_ as number | string) 12865 } 12866 const baselineOffset_result : number | string | undefined = baselineOffset_buf 12867 const textCase_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12868 let textCase_buf : number | TextCase | undefined 12869 if ((RuntimeType.UNDEFINED) != (textCase_buf_runtimeType)) 12870 { 12871 const textCase_buf__selector : int32 = valueDeserializer.readInt8() 12872 let textCase_buf_ : number | TextCase | undefined 12873 if (textCase_buf__selector == 0) { 12874 textCase_buf_ = (valueDeserializer.readNumber() as number) 12875 } 12876 else if (textCase_buf__selector == 1) { 12877 textCase_buf_ = (valueDeserializer.readInt32() as TextCase) 12878 } 12879 else { 12880 throw new Error("One of the branches for textCase_buf_ has to be chosen through deserialisation.") 12881 } 12882 textCase_buf = (textCase_buf_ as number | TextCase) 12883 } 12884 const textCase_result : number | TextCase | undefined = textCase_buf 12885 const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12886 let textIndent_buf : number | string | undefined 12887 if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) 12888 { 12889 const textIndent_buf__selector : int32 = valueDeserializer.readInt8() 12890 let textIndent_buf_ : number | string | undefined 12891 if (textIndent_buf__selector == 0) { 12892 textIndent_buf_ = (valueDeserializer.readNumber() as number) 12893 } 12894 else if (textIndent_buf__selector == 1) { 12895 textIndent_buf_ = (valueDeserializer.readString() as string) 12896 } 12897 else { 12898 throw new Error("One of the branches for textIndent_buf_ has to be chosen through deserialisation.") 12899 } 12900 textIndent_buf = (textIndent_buf_ as number | string) 12901 } 12902 const textIndent_result : number | string | undefined = textIndent_buf 12903 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12904 let wordBreak_buf : WordBreak | undefined 12905 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 12906 { 12907 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 12908 } 12909 const wordBreak_result : WordBreak | undefined = wordBreak_buf 12910 let value : MeasureOptions = ({textContent: textContent_result, constraintWidth: constraintWidth_result, fontSize: fontSize_result, fontStyle: fontStyle_result, fontWeight: fontWeight_result, fontFamily: fontFamily_result, letterSpacing: letterSpacing_result, textAlign: textAlign_result, overflow: overflow_result, maxLines: maxLines_result, lineHeight: lineHeight_result, baselineOffset: baselineOffset_result, textCase: textCase_result, textIndent: textIndent_result, wordBreak: wordBreak_result} as MeasureOptions) 12911 return value 12912 } 12913 readFontInfo(): FontInfo { 12914 let valueDeserializer : Deserializer = this 12915 const path_result : string = (valueDeserializer.readString() as string) 12916 const postScriptName_result : string = (valueDeserializer.readString() as string) 12917 const fullName_result : string = (valueDeserializer.readString() as string) 12918 const family_result : string = (valueDeserializer.readString() as string) 12919 const subfamily_result : string = (valueDeserializer.readString() as string) 12920 const weight_result : number = (valueDeserializer.readNumber() as number) 12921 const width_result : number = (valueDeserializer.readNumber() as number) 12922 const italic_result : boolean = valueDeserializer.readBoolean() 12923 const monoSpace_result : boolean = valueDeserializer.readBoolean() 12924 const symbolic_result : boolean = valueDeserializer.readBoolean() 12925 let value : FontInfo = ({path: path_result, postScriptName: postScriptName_result, fullName: fullName_result, family: family_result, subfamily: subfamily_result, weight: weight_result, width: width_result, italic: italic_result, monoSpace: monoSpace_result, symbolic: symbolic_result} as FontInfo) 12926 return value 12927 } 12928 readFontOptions(): FontOptions { 12929 let valueDeserializer : Deserializer = this 12930 const familyName_buf_selector : int32 = valueDeserializer.readInt8() 12931 let familyName_buf : string | Resource | undefined 12932 if (familyName_buf_selector == 0) { 12933 familyName_buf = (valueDeserializer.readString() as string) 12934 } 12935 else if (familyName_buf_selector == 1) { 12936 familyName_buf = valueDeserializer.readResource() 12937 } 12938 else { 12939 throw new Error("One of the branches for familyName_buf has to be chosen through deserialisation.") 12940 } 12941 const familyName_result : string | Resource = (familyName_buf as string | Resource) 12942 const familySrc_buf_selector : int32 = valueDeserializer.readInt8() 12943 let familySrc_buf : string | Resource | undefined 12944 if (familySrc_buf_selector == 0) { 12945 familySrc_buf = (valueDeserializer.readString() as string) 12946 } 12947 else if (familySrc_buf_selector == 1) { 12948 familySrc_buf = valueDeserializer.readResource() 12949 } 12950 else { 12951 throw new Error("One of the branches for familySrc_buf has to be chosen through deserialisation.") 12952 } 12953 const familySrc_result : string | Resource = (familySrc_buf as string | Resource) 12954 let value : FontOptions = ({familyName: familyName_result, familySrc: familySrc_result} as FontOptions) 12955 return value 12956 } 12957 readRoundRectShapeOptions(): RoundRectShapeOptions { 12958 let valueDeserializer : Deserializer = this 12959 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12960 let width_buf : number | string | undefined 12961 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 12962 { 12963 const width_buf__selector : int32 = valueDeserializer.readInt8() 12964 let width_buf_ : number | string | undefined 12965 if (width_buf__selector == 0) { 12966 width_buf_ = (valueDeserializer.readNumber() as number) 12967 } 12968 else if (width_buf__selector == 1) { 12969 width_buf_ = (valueDeserializer.readString() as string) 12970 } 12971 else { 12972 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 12973 } 12974 width_buf = (width_buf_ as number | string) 12975 } 12976 const width_result : number | string | undefined = width_buf 12977 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12978 let height_buf : number | string | undefined 12979 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 12980 { 12981 const height_buf__selector : int32 = valueDeserializer.readInt8() 12982 let height_buf_ : number | string | undefined 12983 if (height_buf__selector == 0) { 12984 height_buf_ = (valueDeserializer.readNumber() as number) 12985 } 12986 else if (height_buf__selector == 1) { 12987 height_buf_ = (valueDeserializer.readString() as string) 12988 } 12989 else { 12990 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 12991 } 12992 height_buf = (height_buf_ as number | string) 12993 } 12994 const height_result : number | string | undefined = height_buf 12995 const radiusWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 12996 let radiusWidth_buf : number | string | undefined 12997 if ((RuntimeType.UNDEFINED) != (radiusWidth_buf_runtimeType)) 12998 { 12999 const radiusWidth_buf__selector : int32 = valueDeserializer.readInt8() 13000 let radiusWidth_buf_ : number | string | undefined 13001 if (radiusWidth_buf__selector == 0) { 13002 radiusWidth_buf_ = (valueDeserializer.readNumber() as number) 13003 } 13004 else if (radiusWidth_buf__selector == 1) { 13005 radiusWidth_buf_ = (valueDeserializer.readString() as string) 13006 } 13007 else { 13008 throw new Error("One of the branches for radiusWidth_buf_ has to be chosen through deserialisation.") 13009 } 13010 radiusWidth_buf = (radiusWidth_buf_ as number | string) 13011 } 13012 const radiusWidth_result : number | string | undefined = radiusWidth_buf 13013 const radiusHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13014 let radiusHeight_buf : number | string | undefined 13015 if ((RuntimeType.UNDEFINED) != (radiusHeight_buf_runtimeType)) 13016 { 13017 const radiusHeight_buf__selector : int32 = valueDeserializer.readInt8() 13018 let radiusHeight_buf_ : number | string | undefined 13019 if (radiusHeight_buf__selector == 0) { 13020 radiusHeight_buf_ = (valueDeserializer.readNumber() as number) 13021 } 13022 else if (radiusHeight_buf__selector == 1) { 13023 radiusHeight_buf_ = (valueDeserializer.readString() as string) 13024 } 13025 else { 13026 throw new Error("One of the branches for radiusHeight_buf_ has to be chosen through deserialisation.") 13027 } 13028 radiusHeight_buf = (radiusHeight_buf_ as number | string) 13029 } 13030 const radiusHeight_result : number | string | undefined = radiusHeight_buf 13031 let value : RoundRectShapeOptions = ({width: width_result, height: height_result, radiusWidth: radiusWidth_result, radiusHeight: radiusHeight_result} as RoundRectShapeOptions) 13032 return value 13033 } 13034 readRectShapeOptions(): RectShapeOptions { 13035 let valueDeserializer : Deserializer = this 13036 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13037 let width_buf : number | string | undefined 13038 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 13039 { 13040 const width_buf__selector : int32 = valueDeserializer.readInt8() 13041 let width_buf_ : number | string | undefined 13042 if (width_buf__selector == 0) { 13043 width_buf_ = (valueDeserializer.readNumber() as number) 13044 } 13045 else if (width_buf__selector == 1) { 13046 width_buf_ = (valueDeserializer.readString() as string) 13047 } 13048 else { 13049 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 13050 } 13051 width_buf = (width_buf_ as number | string) 13052 } 13053 const width_result : number | string | undefined = width_buf 13054 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13055 let height_buf : number | string | undefined 13056 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 13057 { 13058 const height_buf__selector : int32 = valueDeserializer.readInt8() 13059 let height_buf_ : number | string | undefined 13060 if (height_buf__selector == 0) { 13061 height_buf_ = (valueDeserializer.readNumber() as number) 13062 } 13063 else if (height_buf__selector == 1) { 13064 height_buf_ = (valueDeserializer.readString() as string) 13065 } 13066 else { 13067 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 13068 } 13069 height_buf = (height_buf_ as number | string) 13070 } 13071 const height_result : number | string | undefined = height_buf 13072 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13073 let radius_buf : number | string | Array<number | string> | undefined 13074 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 13075 { 13076 const radius_buf__selector : int32 = valueDeserializer.readInt8() 13077 let radius_buf_ : number | string | Array<number | string> | undefined 13078 if (radius_buf__selector == 0) { 13079 radius_buf_ = (valueDeserializer.readNumber() as number) 13080 } 13081 else if (radius_buf__selector == 1) { 13082 radius_buf_ = (valueDeserializer.readString() as string) 13083 } 13084 else if (radius_buf__selector == 2) { 13085 const radius_buf__u_length : int32 = valueDeserializer.readInt32() 13086 let radius_buf__u : Array<number | string> = new Array<number | string>(radius_buf__u_length) 13087 for (let radius_buf__u_i = 0; radius_buf__u_i < radius_buf__u_length; radius_buf__u_i++) { 13088 const radius_buf__u_buf_selector : int32 = valueDeserializer.readInt8() 13089 let radius_buf__u_buf : number | string | undefined 13090 if (radius_buf__u_buf_selector == 0) { 13091 radius_buf__u_buf = (valueDeserializer.readNumber() as number) 13092 } 13093 else if (radius_buf__u_buf_selector == 1) { 13094 radius_buf__u_buf = (valueDeserializer.readString() as string) 13095 } 13096 else { 13097 throw new Error("One of the branches for radius_buf__u_buf has to be chosen through deserialisation.") 13098 } 13099 radius_buf__u[radius_buf__u_i] = (radius_buf__u_buf as number | string) 13100 } 13101 radius_buf_ = radius_buf__u 13102 } 13103 else { 13104 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 13105 } 13106 radius_buf = (radius_buf_ as number | string | Array<number | string>) 13107 } 13108 const radius_result : number | string | Array<number | string> | undefined = radius_buf 13109 let value : RectShapeOptions = ({width: width_result, height: height_result, radius: radius_result} as RectShapeOptions) 13110 return value 13111 } 13112 readBaseShape(): BaseShape { 13113 let valueDeserializer : Deserializer = this 13114 let ptr : KPointer = valueDeserializer.readPointer() 13115 return BaseShapeInternal.fromPtr(ptr) 13116 } 13117 readCommonShape(): CommonShape { 13118 let valueDeserializer : Deserializer = this 13119 let ptr : KPointer = valueDeserializer.readPointer() 13120 return CommonShapeInternal.fromPtr(ptr) 13121 } 13122 readSnapshotOptions(): SnapshotOptions { 13123 let valueDeserializer : Deserializer = this 13124 const scale_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13125 let scale_buf : number | undefined 13126 if ((RuntimeType.UNDEFINED) != (scale_buf_runtimeType)) 13127 { 13128 scale_buf = (valueDeserializer.readNumber() as number) 13129 } 13130 const scale_result : number | undefined = scale_buf 13131 const waitUntilRenderFinished_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13132 let waitUntilRenderFinished_buf : boolean | undefined 13133 if ((RuntimeType.UNDEFINED) != (waitUntilRenderFinished_buf_runtimeType)) 13134 { 13135 waitUntilRenderFinished_buf = valueDeserializer.readBoolean() 13136 } 13137 const waitUntilRenderFinished_result : boolean | undefined = waitUntilRenderFinished_buf 13138 let value : SnapshotOptions = ({scale: scale_result, waitUntilRenderFinished: waitUntilRenderFinished_result} as SnapshotOptions) 13139 return value 13140 } 13141 readAsyncCallback_image_PixelMap_Void(isSync: boolean = false): ((result: PixelMap) => void) { 13142 const _resource : CallbackResource = this.readCallbackResource() 13143 const _call : KPointer = this.readPointer() 13144 const _callSync : KPointer = this.readPointer() 13145 return (result: PixelMap):void => { 13146 const _argsSerializer : Serializer = Serializer.hold(); 13147 _argsSerializer.writeInt32(_resource.resourceId); 13148 _argsSerializer.writePointer(_call); 13149 _argsSerializer.writePointer(_callSync); 13150 _argsSerializer.writePixelMap(result); 13151 (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asBuffer(), _argsSerializer.length())); 13152 _argsSerializer.release(); 13153 return; } 13154 } 13155 readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { 13156 const _resource : CallbackResource = this.readCallbackResource() 13157 const _call : KPointer = this.readPointer() 13158 const _callSync : KPointer = this.readPointer() 13159 return (index: int32, mark: KPointer, end: int32):void => { 13160 const _argsSerializer : Serializer = Serializer.hold(); 13161 _argsSerializer.writeInt32(_resource.resourceId); 13162 _argsSerializer.writePointer(_call); 13163 _argsSerializer.writePointer(_callSync); 13164 _argsSerializer.writeInt32(index); 13165 _argsSerializer.writePointer(mark); 13166 _argsSerializer.writeInt32(end); 13167 (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asBuffer(), _argsSerializer.length())); 13168 _argsSerializer.release(); 13169 return; } 13170 } 13171 readDoubleAnimationParam(): DoubleAnimationParam { 13172 let valueDeserializer : Deserializer = this 13173 const propertyName_result : string = (valueDeserializer.readString() as string) 13174 const startValue_result : float32 = valueDeserializer.readFloat32() 13175 const endValue_result : float32 = valueDeserializer.readFloat32() 13176 const duration_result : int32 = valueDeserializer.readInt32() 13177 const delay_result : int32 = valueDeserializer.readInt32() 13178 const curve_buf_selector : int32 = valueDeserializer.readInt8() 13179 let curve_buf : Curve | string | ICurve | undefined 13180 if (curve_buf_selector == 0) { 13181 curve_buf = (valueDeserializer.readInt32() as Curve) 13182 } 13183 else if (curve_buf_selector == 1) { 13184 curve_buf = (valueDeserializer.readString() as string) 13185 } 13186 else if (curve_buf_selector == 2) { 13187 curve_buf = (valueDeserializer.readICurve() as ICurve) 13188 } 13189 else { 13190 throw new Error("One of the branches for curve_buf has to be chosen through deserialisation.") 13191 } 13192 const curve_result : Curve | string | ICurve = (curve_buf as Curve | string | ICurve) 13193 const onProgress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13194 let onProgress_buf : Callback_Extender_OnProgress | undefined 13195 if ((RuntimeType.UNDEFINED) != (onProgress_buf_runtimeType)) 13196 { 13197 onProgress_buf = valueDeserializer.readCallback_Extender_OnProgress() 13198 } 13199 const onProgress_result : Callback_Extender_OnProgress | undefined = onProgress_buf 13200 const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13201 let onFinish_buf : Callback_Extender_OnFinish | undefined 13202 if ((RuntimeType.UNDEFINED) != (onFinish_buf_runtimeType)) 13203 { 13204 onFinish_buf = valueDeserializer.readCallback_Extender_OnFinish() 13205 } 13206 const onFinish_result : Callback_Extender_OnFinish | undefined = onFinish_buf 13207 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) 13208 return value 13209 } 13210 readCallback_WithThemeAttribute_Void(isSync: boolean = false): ((value: WithThemeAttribute) => void) { 13211 const _resource : CallbackResource = this.readCallbackResource() 13212 const _call : KPointer = this.readPointer() 13213 const _callSync : KPointer = this.readPointer() 13214 return (value: WithThemeAttribute):void => { 13215 const _argsSerializer : Serializer = Serializer.hold(); 13216 _argsSerializer.writeInt32(_resource.resourceId); 13217 _argsSerializer.writePointer(_call); 13218 _argsSerializer.writePointer(_callSync); 13219 _argsSerializer.writeWithThemeAttribute(value); 13220 (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asBuffer(), _argsSerializer.length())); 13221 _argsSerializer.release(); 13222 return; } 13223 } 13224 readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { 13225 const _resource : CallbackResource = this.readCallbackResource() 13226 const _call : KPointer = this.readPointer() 13227 const _callSync : KPointer = this.readPointer() 13228 return (value: WebResourceResponse):void => { 13229 const _argsSerializer : Serializer = Serializer.hold(); 13230 _argsSerializer.writeInt32(_resource.resourceId); 13231 _argsSerializer.writePointer(_call); 13232 _argsSerializer.writePointer(_callSync); 13233 _argsSerializer.writeWebResourceResponse(value); 13234 (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asBuffer(), _argsSerializer.length())); 13235 _argsSerializer.release(); 13236 return; } 13237 } 13238 readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { 13239 const _resource : CallbackResource = this.readCallbackResource() 13240 const _call : KPointer = this.readPointer() 13241 const _callSync : KPointer = this.readPointer() 13242 return (value: WebKeyboardOptions):void => { 13243 const _argsSerializer : Serializer = Serializer.hold(); 13244 _argsSerializer.writeInt32(_resource.resourceId); 13245 _argsSerializer.writePointer(_call); 13246 _argsSerializer.writePointer(_callSync); 13247 _argsSerializer.writeWebKeyboardOptions(value); 13248 (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asBuffer(), _argsSerializer.length())); 13249 _argsSerializer.release(); 13250 return; } 13251 } 13252 readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { 13253 const _resource : CallbackResource = this.readCallbackResource() 13254 const _call : KPointer = this.readPointer() 13255 const _callSync : KPointer = this.readPointer() 13256 return (value: CustomBuilder | DragItemInfo):void => { 13257 const _argsSerializer : Serializer = Serializer.hold(); 13258 _argsSerializer.writeInt32(_resource.resourceId); 13259 _argsSerializer.writePointer(_call); 13260 _argsSerializer.writePointer(_callSync); 13261 let value_type : int32 = RuntimeType.UNDEFINED; 13262 value_type = runtimeType(value); 13263 if (RuntimeType.FUNCTION == value_type) { 13264 _argsSerializer.writeInt8(0 as int32); 13265 const value_0 = value as CustomBuilder; 13266 _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); 13267 } 13268 else if (RuntimeType.OBJECT == value_type) { 13269 _argsSerializer.writeInt8(1 as int32); 13270 const value_1 = value as DragItemInfo; 13271 _argsSerializer.writeDragItemInfo(value_1); 13272 } 13273 (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asBuffer(), _argsSerializer.length())); 13274 _argsSerializer.release(); 13275 return; } 13276 } 13277 readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { 13278 const _resource : CallbackResource = this.readCallbackResource() 13279 const _call : KPointer = this.readPointer() 13280 const _callSync : KPointer = this.readPointer() 13281 return (value: [ number, number ]):void => { 13282 const _argsSerializer : Serializer = Serializer.hold(); 13283 _argsSerializer.writeInt32(_resource.resourceId); 13284 _argsSerializer.writePointer(_call); 13285 _argsSerializer.writePointer(_callSync); 13286 const value_0 = value[0]; 13287 _argsSerializer.writeNumber(value_0); 13288 const value_1 = value[1]; 13289 _argsSerializer.writeNumber(value_1); 13290 (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asBuffer(), _argsSerializer.length())); 13291 _argsSerializer.release(); 13292 return; } 13293 } 13294 readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { 13295 const _resource : CallbackResource = this.readCallbackResource() 13296 const _call : KPointer = this.readPointer() 13297 const _callSync : KPointer = this.readPointer() 13298 return (value: [ number, number, number, number ]):void => { 13299 const _argsSerializer : Serializer = Serializer.hold(); 13300 _argsSerializer.writeInt32(_resource.resourceId); 13301 _argsSerializer.writePointer(_call); 13302 _argsSerializer.writePointer(_callSync); 13303 const value_0 = value[0]; 13304 _argsSerializer.writeNumber(value_0); 13305 const value_1 = value[1]; 13306 _argsSerializer.writeNumber(value_1); 13307 const value_2 = value[2]; 13308 _argsSerializer.writeNumber(value_2); 13309 const value_3 = value[3]; 13310 _argsSerializer.writeNumber(value_3); 13311 (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asBuffer(), _argsSerializer.length())); 13312 _argsSerializer.release(); 13313 return; } 13314 } 13315 readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { 13316 const _resource : CallbackResource = this.readCallbackResource() 13317 const _call : KPointer = this.readPointer() 13318 const _callSync : KPointer = this.readPointer() 13319 return (value: TouchResult):void => { 13320 const _argsSerializer : Serializer = Serializer.hold(); 13321 _argsSerializer.writeInt32(_resource.resourceId); 13322 _argsSerializer.writePointer(_call); 13323 _argsSerializer.writePointer(_callSync); 13324 _argsSerializer.writeTouchResult(value); 13325 (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asBuffer(), _argsSerializer.length())); 13326 _argsSerializer.release(); 13327 return; } 13328 } 13329 readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { 13330 const _resource : CallbackResource = this.readCallbackResource() 13331 const _call : KPointer = this.readPointer() 13332 const _callSync : KPointer = this.readPointer() 13333 return (value: KPointer):void => { 13334 const _argsSerializer : Serializer = Serializer.hold(); 13335 _argsSerializer.writeInt32(_resource.resourceId); 13336 _argsSerializer.writePointer(_call); 13337 _argsSerializer.writePointer(_callSync); 13338 _argsSerializer.writePointer(value); 13339 (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asBuffer(), _argsSerializer.length())); 13340 _argsSerializer.release(); 13341 return; } 13342 } 13343 readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { 13344 const _resource : CallbackResource = this.readCallbackResource() 13345 const _call : KPointer = this.readPointer() 13346 const _callSync : KPointer = this.readPointer() 13347 return (value?: TabContentAnimatedTransition | undefined):void => { 13348 const _argsSerializer : Serializer = Serializer.hold(); 13349 _argsSerializer.writeInt32(_resource.resourceId); 13350 _argsSerializer.writePointer(_call); 13351 _argsSerializer.writePointer(_callSync); 13352 let value_type : int32 = RuntimeType.UNDEFINED; 13353 value_type = runtimeType(value); 13354 _argsSerializer.writeInt8(value_type as int32); 13355 if ((RuntimeType.UNDEFINED) != (value_type)) { 13356 const value_value = value!; 13357 _argsSerializer.writeTabContentAnimatedTransition(value_value); 13358 } 13359 (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asBuffer(), _argsSerializer.length())); 13360 _argsSerializer.release(); 13361 return; } 13362 } 13363 readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined,error?: Array<string> | undefined) => void) { 13364 const _resource : CallbackResource = this.readCallbackResource() 13365 const _call : KPointer = this.readPointer() 13366 const _callSync : KPointer = this.readPointer() 13367 return (value?: StyledString | undefined, error?: Array<string> | undefined):void => { 13368 const _argsSerializer : Serializer = Serializer.hold(); 13369 _argsSerializer.writeInt32(_resource.resourceId); 13370 _argsSerializer.writePointer(_call); 13371 _argsSerializer.writePointer(_callSync); 13372 let value_type : int32 = RuntimeType.UNDEFINED; 13373 value_type = runtimeType(value); 13374 _argsSerializer.writeInt8(value_type as int32); 13375 if ((RuntimeType.UNDEFINED) != (value_type)) { 13376 const value_value = value!; 13377 _argsSerializer.writeStyledString(value_value); 13378 } 13379 let error_type : int32 = RuntimeType.UNDEFINED; 13380 error_type = runtimeType(error); 13381 _argsSerializer.writeInt8(error_type as int32); 13382 if ((RuntimeType.UNDEFINED) != (error_type)) { 13383 const error_value = error!; 13384 _argsSerializer.writeInt32(error_value.length as int32); 13385 for (let i = 0; i < error_value.length; i++) { 13386 const error_value_element : string = error_value[i]; 13387 _argsSerializer.writeString(error_value_element); 13388 } 13389 } 13390 (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asBuffer(), _argsSerializer.length())); 13391 _argsSerializer.release(); 13392 return; } 13393 } 13394 readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { 13395 const _resource : CallbackResource = this.readCallbackResource() 13396 const _call : KPointer = this.readPointer() 13397 const _callSync : KPointer = this.readPointer() 13398 return (value?: NavigationAnimatedTransition | undefined):void => { 13399 const _argsSerializer : Serializer = Serializer.hold(); 13400 _argsSerializer.writeInt32(_resource.resourceId); 13401 _argsSerializer.writePointer(_call); 13402 _argsSerializer.writePointer(_callSync); 13403 let value_type : int32 = RuntimeType.UNDEFINED; 13404 value_type = runtimeType(value); 13405 _argsSerializer.writeInt8(value_type as int32); 13406 if ((RuntimeType.UNDEFINED) != (value_type)) { 13407 const value_value = value!; 13408 _argsSerializer.writeNavigationAnimatedTransition(value_value); 13409 } 13410 (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asBuffer(), _argsSerializer.length())); 13411 _argsSerializer.release(); 13412 return; } 13413 } 13414 readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array<string> | undefined) => void) { 13415 const _resource : CallbackResource = this.readCallbackResource() 13416 const _call : KPointer = this.readPointer() 13417 const _callSync : KPointer = this.readPointer() 13418 return (error?: Array<string> | undefined):void => { 13419 const _argsSerializer : Serializer = Serializer.hold(); 13420 _argsSerializer.writeInt32(_resource.resourceId); 13421 _argsSerializer.writePointer(_call); 13422 _argsSerializer.writePointer(_callSync); 13423 let error_type : int32 = RuntimeType.UNDEFINED; 13424 error_type = runtimeType(error); 13425 _argsSerializer.writeInt8(error_type as int32); 13426 if ((RuntimeType.UNDEFINED) != (error_type)) { 13427 const error_value = error!; 13428 _argsSerializer.writeInt32(error_value.length as int32); 13429 for (let i = 0; i < error_value.length; i++) { 13430 const error_value_element : string = error_value[i]; 13431 _argsSerializer.writeString(error_value_element); 13432 } 13433 } 13434 (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asBuffer(), _argsSerializer.length())); 13435 _argsSerializer.release(); 13436 return; } 13437 } 13438 readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { 13439 const _resource : CallbackResource = this.readCallbackResource() 13440 const _call : KPointer = this.readPointer() 13441 const _callSync : KPointer = this.readPointer() 13442 return (value: OnScrollFrameBeginHandlerResult):void => { 13443 const _argsSerializer : Serializer = Serializer.hold(); 13444 _argsSerializer.writeInt32(_resource.resourceId); 13445 _argsSerializer.writePointer(_call); 13446 _argsSerializer.writePointer(_callSync); 13447 _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); 13448 (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asBuffer(), _argsSerializer.length())); 13449 _argsSerializer.release(); 13450 return; } 13451 } 13452 readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { 13453 const _resource : CallbackResource = this.readCallbackResource() 13454 const _call : KPointer = this.readPointer() 13455 const _callSync : KPointer = this.readPointer() 13456 return (value: OffsetResult):void => { 13457 const _argsSerializer : Serializer = Serializer.hold(); 13458 _argsSerializer.writeInt32(_resource.resourceId); 13459 _argsSerializer.writePointer(_call); 13460 _argsSerializer.writePointer(_callSync); 13461 _argsSerializer.writeOffsetResult(value); 13462 (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asBuffer(), _argsSerializer.length())); 13463 _argsSerializer.release(); 13464 return; } 13465 } 13466 readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: Literal_Number_offsetRemain) => void) { 13467 const _resource : CallbackResource = this.readCallbackResource() 13468 const _call : KPointer = this.readPointer() 13469 const _callSync : KPointer = this.readPointer() 13470 return (value: Literal_Number_offsetRemain):void => { 13471 const _argsSerializer : Serializer = Serializer.hold(); 13472 _argsSerializer.writeInt32(_resource.resourceId); 13473 _argsSerializer.writePointer(_call); 13474 _argsSerializer.writePointer(_callSync); 13475 const value_offsetRemain = value.offsetRemain; 13476 _argsSerializer.writeNumber(value_offsetRemain); 13477 (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asBuffer(), _argsSerializer.length())); 13478 _argsSerializer.release(); 13479 return; } 13480 } 13481 readCallback_IsolatedComponentAttribute_Void(isSync: boolean = false): ((value: IsolatedComponentAttribute) => void) { 13482 const _resource : CallbackResource = this.readCallbackResource() 13483 const _call : KPointer = this.readPointer() 13484 const _callSync : KPointer = this.readPointer() 13485 return (value: IsolatedComponentAttribute):void => { 13486 const _argsSerializer : Serializer = Serializer.hold(); 13487 _argsSerializer.writeInt32(_resource.resourceId); 13488 _argsSerializer.writePointer(_call); 13489 _argsSerializer.writePointer(_callSync); 13490 _argsSerializer.writeIsolatedComponentAttribute(value); 13491 (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asBuffer(), _argsSerializer.length())); 13492 _argsSerializer.release(); 13493 return; } 13494 } 13495 readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { 13496 const _resource : CallbackResource = this.readCallbackResource() 13497 const _call : KPointer = this.readPointer() 13498 const _callSync : KPointer = this.readPointer() 13499 return (value: HitTestMode):void => { 13500 const _argsSerializer : Serializer = Serializer.hold(); 13501 _argsSerializer.writeInt32(_resource.resourceId); 13502 _argsSerializer.writePointer(_call); 13503 _argsSerializer.writePointer(_callSync); 13504 _argsSerializer.writeInt32(value.valueOf()); 13505 (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asBuffer(), _argsSerializer.length())); 13506 _argsSerializer.release(); 13507 return; } 13508 } 13509 readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { 13510 const _resource : CallbackResource = this.readCallbackResource() 13511 const _call : KPointer = this.readPointer() 13512 const _callSync : KPointer = this.readPointer() 13513 return (value: GestureRecognizer):void => { 13514 const _argsSerializer : Serializer = Serializer.hold(); 13515 _argsSerializer.writeInt32(_resource.resourceId); 13516 _argsSerializer.writePointer(_call); 13517 _argsSerializer.writePointer(_callSync); 13518 _argsSerializer.writeGestureRecognizer(value); 13519 (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asBuffer(), _argsSerializer.length())); 13520 _argsSerializer.release(); 13521 return; } 13522 } 13523 readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { 13524 const _resource : CallbackResource = this.readCallbackResource() 13525 const _call : KPointer = this.readPointer() 13526 const _callSync : KPointer = this.readPointer() 13527 return (value: GestureJudgeResult):void => { 13528 const _argsSerializer : Serializer = Serializer.hold(); 13529 _argsSerializer.writeInt32(_resource.resourceId); 13530 _argsSerializer.writePointer(_call); 13531 _argsSerializer.writePointer(_callSync); 13532 _argsSerializer.writeInt32(value.valueOf()); 13533 (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asBuffer(), _argsSerializer.length())); 13534 _argsSerializer.release(); 13535 return; } 13536 } 13537 readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { 13538 const _resource : CallbackResource = this.readCallbackResource() 13539 const _call : KPointer = this.readPointer() 13540 const _callSync : KPointer = this.readPointer() 13541 return (value: CustomBuilder):void => { 13542 const _argsSerializer : Serializer = Serializer.hold(); 13543 _argsSerializer.writeInt32(_resource.resourceId); 13544 _argsSerializer.writePointer(_call); 13545 _argsSerializer.writePointer(_callSync); 13546 _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); 13547 (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asBuffer(), _argsSerializer.length())); 13548 _argsSerializer.release(); 13549 return; } 13550 } 13551 readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { 13552 const _resource : CallbackResource = this.readCallbackResource() 13553 const _call : KPointer = this.readPointer() 13554 const _callSync : KPointer = this.readPointer() 13555 return (value: ComputedBarAttribute):void => { 13556 const _argsSerializer : Serializer = Serializer.hold(); 13557 _argsSerializer.writeInt32(_resource.resourceId); 13558 _argsSerializer.writePointer(_call); 13559 _argsSerializer.writePointer(_callSync); 13560 _argsSerializer.writeComputedBarAttribute(value); 13561 (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asBuffer(), _argsSerializer.length())); 13562 _argsSerializer.release(); 13563 return; } 13564 } 13565 readCallback_Array_String_Void(isSync: boolean = false): ((value: Array<string>) => void) { 13566 const _resource : CallbackResource = this.readCallbackResource() 13567 const _call : KPointer = this.readPointer() 13568 const _callSync : KPointer = this.readPointer() 13569 return (value: Array<string>):void => { 13570 const _argsSerializer : Serializer = Serializer.hold(); 13571 _argsSerializer.writeInt32(_resource.resourceId); 13572 _argsSerializer.writePointer(_call); 13573 _argsSerializer.writePointer(_callSync); 13574 _argsSerializer.writeInt32(value.length as int32); 13575 for (let i = 0; i < value.length; i++) { 13576 const value_element : string = value[i]; 13577 _argsSerializer.writeString(value_element); 13578 } 13579 (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asBuffer(), _argsSerializer.length())); 13580 _argsSerializer.release(); 13581 return; } 13582 } 13583 readLinearIndicatorController(): LinearIndicatorController { 13584 let valueDeserializer : Deserializer = this 13585 let ptr : KPointer = valueDeserializer.readPointer() 13586 return LinearIndicatorControllerInternal.fromPtr(ptr) 13587 } 13588 readImageAttachmentInterface(): ImageAttachmentInterface { 13589 let valueDeserializer : Deserializer = this 13590 const value_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 13591 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13592 let size_buf : SizeOptions | undefined 13593 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 13594 { 13595 size_buf = valueDeserializer.readSizeOptions() 13596 } 13597 const size_result : SizeOptions | undefined = size_buf 13598 const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13599 let verticalAlign_buf : ImageSpanAlignment | undefined 13600 if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) 13601 { 13602 verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) 13603 } 13604 const verticalAlign_result : ImageSpanAlignment | undefined = verticalAlign_buf 13605 const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13606 let objectFit_buf : ImageFit | undefined 13607 if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) 13608 { 13609 objectFit_buf = (valueDeserializer.readInt32() as ImageFit) 13610 } 13611 const objectFit_result : ImageFit | undefined = objectFit_buf 13612 const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13613 let layoutStyle_buf : ImageAttachmentLayoutStyle | undefined 13614 if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) 13615 { 13616 layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() 13617 } 13618 const layoutStyle_result : ImageAttachmentLayoutStyle | undefined = layoutStyle_buf 13619 let value : ImageAttachmentInterface = ({value: value_result, size: size_result, verticalAlign: verticalAlign_result, objectFit: objectFit_result, layoutStyle: layoutStyle_result} as ImageAttachmentInterface) 13620 return value 13621 } 13622 readParagraphStyleInterface(): ParagraphStyleInterface { 13623 let valueDeserializer : Deserializer = this 13624 const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13625 let textAlign_buf : TextAlign | undefined 13626 if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) 13627 { 13628 textAlign_buf = (valueDeserializer.readInt32() as TextAlign) 13629 } 13630 const textAlign_result : TextAlign | undefined = textAlign_buf 13631 const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13632 let textIndent_buf : LengthMetrics | undefined 13633 if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) 13634 { 13635 textIndent_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13636 } 13637 const textIndent_result : LengthMetrics | undefined = textIndent_buf 13638 const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13639 let maxLines_buf : number | undefined 13640 if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) 13641 { 13642 maxLines_buf = (valueDeserializer.readNumber() as number) 13643 } 13644 const maxLines_result : number | undefined = maxLines_buf 13645 const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13646 let overflow_buf : TextOverflow | undefined 13647 if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) 13648 { 13649 overflow_buf = (valueDeserializer.readInt32() as TextOverflow) 13650 } 13651 const overflow_result : TextOverflow | undefined = overflow_buf 13652 const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13653 let wordBreak_buf : WordBreak | undefined 13654 if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) 13655 { 13656 wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) 13657 } 13658 const wordBreak_result : WordBreak | undefined = wordBreak_buf 13659 const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13660 let leadingMargin_buf : LengthMetrics | LeadingMarginPlaceholder | undefined 13661 if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) 13662 { 13663 const leadingMargin_buf__selector : int32 = valueDeserializer.readInt8() 13664 let leadingMargin_buf_ : LengthMetrics | LeadingMarginPlaceholder | undefined 13665 if (leadingMargin_buf__selector == 0) { 13666 leadingMargin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13667 } 13668 else if (leadingMargin_buf__selector == 1) { 13669 leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() 13670 } 13671 else { 13672 throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") 13673 } 13674 leadingMargin_buf = (leadingMargin_buf_ as LengthMetrics | LeadingMarginPlaceholder) 13675 } 13676 const leadingMargin_result : LengthMetrics | LeadingMarginPlaceholder | undefined = leadingMargin_buf 13677 let value : ParagraphStyleInterface = ({textAlign: textAlign_result, textIndent: textIndent_result, maxLines: maxLines_result, overflow: overflow_result, wordBreak: wordBreak_result, leadingMargin: leadingMargin_result} as ParagraphStyleInterface) 13678 return value 13679 } 13680 readGestureStyleInterface(): GestureStyleInterface { 13681 let valueDeserializer : Deserializer = this 13682 const onClick_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13683 let onClick_buf : ((event: ClickEvent) => void) | undefined 13684 if ((RuntimeType.UNDEFINED) != (onClick_buf_runtimeType)) 13685 { 13686 onClick_buf = valueDeserializer.readCallback_ClickEvent_Void() 13687 } 13688 const onClick_result : ((event: ClickEvent) => void) | undefined = onClick_buf 13689 const onLongPress_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13690 let onLongPress_buf : ((event: GestureEvent) => void) | undefined 13691 if ((RuntimeType.UNDEFINED) != (onLongPress_buf_runtimeType)) 13692 { 13693 onLongPress_buf = valueDeserializer.readCallback_GestureEvent_Void() 13694 } 13695 const onLongPress_result : ((event: GestureEvent) => void) | undefined = onLongPress_buf 13696 let value : GestureStyleInterface = ({onClick: onClick_result, onLongPress: onLongPress_result} as GestureStyleInterface) 13697 return value 13698 } 13699 readTextStyleInterface(): TextStyleInterface { 13700 let valueDeserializer : Deserializer = this 13701 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13702 let fontColor_buf : ResourceColor | undefined 13703 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 13704 { 13705 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 13706 let fontColor_buf_ : Color | number | string | Resource | undefined 13707 if (fontColor_buf__selector == 0) { 13708 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 13709 } 13710 else if (fontColor_buf__selector == 1) { 13711 fontColor_buf_ = (valueDeserializer.readNumber() as number) 13712 } 13713 else if (fontColor_buf__selector == 2) { 13714 fontColor_buf_ = (valueDeserializer.readString() as string) 13715 } 13716 else if (fontColor_buf__selector == 3) { 13717 fontColor_buf_ = valueDeserializer.readResource() 13718 } 13719 else { 13720 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 13721 } 13722 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 13723 } 13724 const fontColor_result : ResourceColor | undefined = fontColor_buf 13725 const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13726 let fontFamily_buf : ResourceStr | undefined 13727 if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) 13728 { 13729 const fontFamily_buf__selector : int32 = valueDeserializer.readInt8() 13730 let fontFamily_buf_ : string | Resource | undefined 13731 if (fontFamily_buf__selector == 0) { 13732 fontFamily_buf_ = (valueDeserializer.readString() as string) 13733 } 13734 else if (fontFamily_buf__selector == 1) { 13735 fontFamily_buf_ = valueDeserializer.readResource() 13736 } 13737 else { 13738 throw new Error("One of the branches for fontFamily_buf_ has to be chosen through deserialisation.") 13739 } 13740 fontFamily_buf = (fontFamily_buf_ as string | Resource) 13741 } 13742 const fontFamily_result : ResourceStr | undefined = fontFamily_buf 13743 const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13744 let fontSize_buf : LengthMetrics | undefined 13745 if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) 13746 { 13747 fontSize_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 13748 } 13749 const fontSize_result : LengthMetrics | undefined = fontSize_buf 13750 const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13751 let fontWeight_buf : number | FontWeight | string | undefined 13752 if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) 13753 { 13754 const fontWeight_buf__selector : int32 = valueDeserializer.readInt8() 13755 let fontWeight_buf_ : number | FontWeight | string | undefined 13756 if (fontWeight_buf__selector == 0) { 13757 fontWeight_buf_ = (valueDeserializer.readNumber() as number) 13758 } 13759 else if (fontWeight_buf__selector == 1) { 13760 fontWeight_buf_ = (valueDeserializer.readInt32() as FontWeight) 13761 } 13762 else if (fontWeight_buf__selector == 2) { 13763 fontWeight_buf_ = (valueDeserializer.readString() as string) 13764 } 13765 else { 13766 throw new Error("One of the branches for fontWeight_buf_ has to be chosen through deserialisation.") 13767 } 13768 fontWeight_buf = (fontWeight_buf_ as number | FontWeight | string) 13769 } 13770 const fontWeight_result : number | FontWeight | string | undefined = fontWeight_buf 13771 const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13772 let fontStyle_buf : FontStyle | undefined 13773 if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) 13774 { 13775 fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) 13776 } 13777 const fontStyle_result : FontStyle | undefined = fontStyle_buf 13778 let value : TextStyleInterface = ({fontColor: fontColor_result, fontFamily: fontFamily_result, fontSize: fontSize_result, fontWeight: fontWeight_result, fontStyle: fontStyle_result} as TextStyleInterface) 13779 return value 13780 } 13781 readStyleOptions(): StyleOptions { 13782 let valueDeserializer : Deserializer = this 13783 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13784 let start_buf : number | undefined 13785 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 13786 { 13787 start_buf = (valueDeserializer.readNumber() as number) 13788 } 13789 const start_result : number | undefined = start_buf 13790 const length_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13791 let length_buf : number | undefined 13792 if ((RuntimeType.UNDEFINED) != (length_buf_runtimeType)) 13793 { 13794 length_buf = (valueDeserializer.readNumber() as number) 13795 } 13796 const length_result : number | undefined = length_buf 13797 const styledKey_result : StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) 13798 const styledValue_buf_selector : int32 = valueDeserializer.readInt8() 13799 let styledValue_buf : TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined 13800 if (styledValue_buf_selector == 0) { 13801 styledValue_buf = (valueDeserializer.readTextStyle_styled_string() as TextStyle_styled_string) 13802 } 13803 else if (styledValue_buf_selector == 1) { 13804 styledValue_buf = (valueDeserializer.readDecorationStyle() as DecorationStyle) 13805 } 13806 else if (styledValue_buf_selector == 2) { 13807 styledValue_buf = (valueDeserializer.readBaselineOffsetStyle() as BaselineOffsetStyle) 13808 } 13809 else if (styledValue_buf_selector == 3) { 13810 styledValue_buf = (valueDeserializer.readLetterSpacingStyle() as LetterSpacingStyle) 13811 } 13812 else if (styledValue_buf_selector == 4) { 13813 styledValue_buf = (valueDeserializer.readTextShadowStyle() as TextShadowStyle) 13814 } 13815 else if (styledValue_buf_selector == 5) { 13816 styledValue_buf = (valueDeserializer.readGestureStyle() as GestureStyle) 13817 } 13818 else if (styledValue_buf_selector == 6) { 13819 styledValue_buf = (valueDeserializer.readImageAttachment() as ImageAttachment) 13820 } 13821 else if (styledValue_buf_selector == 7) { 13822 styledValue_buf = (valueDeserializer.readParagraphStyle() as ParagraphStyle) 13823 } 13824 else if (styledValue_buf_selector == 8) { 13825 styledValue_buf = (valueDeserializer.readLineHeightStyle() as LineHeightStyle) 13826 } 13827 else if (styledValue_buf_selector == 9) { 13828 styledValue_buf = (valueDeserializer.readUrlStyle() as UrlStyle) 13829 } 13830 else if (styledValue_buf_selector == 10) { 13831 styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) 13832 } 13833 else if (styledValue_buf_selector == 11) { 13834 styledValue_buf = valueDeserializer.readUserDataSpan() 13835 } 13836 else if (styledValue_buf_selector == 12) { 13837 styledValue_buf = (valueDeserializer.readBackgroundColorStyle() as BackgroundColorStyle) 13838 } 13839 else { 13840 throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") 13841 } 13842 const styledValue_result : StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) 13843 let value : StyleOptions = ({start: start_result, length: length_result, styledKey: styledKey_result, styledValue: styledValue_result} as StyleOptions) 13844 return value 13845 } 13846 readIsolatedComponentAttribute(): IsolatedComponentAttribute { 13847 throw new Error("Interface with functions is not supported") 13848 } 13849 readIsolatedOptions(): IsolatedOptions { 13850 let valueDeserializer : Deserializer = this 13851 const want_result : Want = valueDeserializer.readWant() 13852 const worker_result : RestrictedWorker = valueDeserializer.readRestrictedWorker() 13853 let value : IsolatedOptions = ({want: want_result, worker: worker_result} as IsolatedOptions) 13854 return value 13855 } 13856 readIsolatedComponentInterface(isSync: boolean = false): IsolatedComponentInterface { 13857 const _resource : CallbackResource = this.readCallbackResource() 13858 const _call : KPointer = this.readPointer() 13859 const _callSync : KPointer = this.readPointer() 13860 return (options: IsolatedOptions):IsolatedComponentAttribute => { 13861 const _argsSerializer : Serializer = Serializer.hold(); 13862 _argsSerializer.writeInt32(_resource.resourceId); 13863 _argsSerializer.writePointer(_call); 13864 _argsSerializer.writePointer(_callSync); 13865 _argsSerializer.writeIsolatedOptions(options); 13866 let _continuationValue : IsolatedComponentAttribute | undefined; 13867 const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; } 13868 _argsSerializer.holdAndWriteCallback(_continuationCallback); 13869 (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asBuffer(), _argsSerializer.length())); 13870 _argsSerializer.release(); 13871 return (_continuationValue as IsolatedComponentAttribute); } 13872 } 13873 readReceiveCallback(): ReceiveCallback { 13874 let valueDeserializer : Deserializer = this 13875 const _ReceiveCallbackStub_result : string = (valueDeserializer.readString() as string) 13876 let value : ReceiveCallback = ({_ReceiveCallbackStub: _ReceiveCallbackStub_result} as ReceiveCallback) 13877 return value 13878 } 13879 readCallback_Literal_Number_code_Want_want_Void(isSync: boolean = false): ((parameter: Literal_Number_code_Want_want) => void) { 13880 const _resource : CallbackResource = this.readCallbackResource() 13881 const _call : KPointer = this.readPointer() 13882 const _callSync : KPointer = this.readPointer() 13883 return (parameter: Literal_Number_code_Want_want):void => { 13884 const _argsSerializer : Serializer = Serializer.hold(); 13885 _argsSerializer.writeInt32(_resource.resourceId); 13886 _argsSerializer.writePointer(_call); 13887 _argsSerializer.writePointer(_callSync); 13888 const parameter_code = parameter.code; 13889 _argsSerializer.writeNumber(parameter_code); 13890 const parameter_want = parameter.want; 13891 let parameter_want_type : int32 = RuntimeType.UNDEFINED; 13892 parameter_want_type = runtimeType(parameter_want); 13893 _argsSerializer.writeInt8(parameter_want_type as int32); 13894 if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { 13895 const parameter_want_value = parameter_want!; 13896 _argsSerializer.writeWant(parameter_want_value); 13897 } 13898 (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asBuffer(), _argsSerializer.length())); 13899 _argsSerializer.release(); 13900 return; } 13901 } 13902 readUIExtensionOptions(): UIExtensionOptions { 13903 let valueDeserializer : Deserializer = this 13904 const isTransferringCaller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13905 let isTransferringCaller_buf : boolean | undefined 13906 if ((RuntimeType.UNDEFINED) != (isTransferringCaller_buf_runtimeType)) 13907 { 13908 isTransferringCaller_buf = valueDeserializer.readBoolean() 13909 } 13910 const isTransferringCaller_result : boolean | undefined = isTransferringCaller_buf 13911 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13912 let placeholder_buf : ComponentContent | undefined 13913 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 13914 { 13915 placeholder_buf = valueDeserializer.readComponentContent() 13916 } 13917 const placeholder_result : ComponentContent | undefined = placeholder_buf 13918 const areaChangePlaceholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13919 let areaChangePlaceholder_buf : Map<string, ComponentContent> | undefined 13920 if ((RuntimeType.UNDEFINED) != (areaChangePlaceholder_buf_runtimeType)) 13921 { 13922 const areaChangePlaceholder_buf__size : int32 = valueDeserializer.readInt32() 13923 let areaChangePlaceholder_buf_ : Map<string, ComponentContent> = new Map<string, ComponentContent>() 13924 // TODO: TS map resize 13925 for (let areaChangePlaceholder_buf__i = 0; areaChangePlaceholder_buf__i < areaChangePlaceholder_buf__size; areaChangePlaceholder_buf__i++) { 13926 const areaChangePlaceholder_buf__key : string = (valueDeserializer.readString() as string) 13927 const areaChangePlaceholder_buf__value : ComponentContent = valueDeserializer.readComponentContent() 13928 areaChangePlaceholder_buf_.set(areaChangePlaceholder_buf__key, areaChangePlaceholder_buf__value) 13929 } 13930 areaChangePlaceholder_buf = areaChangePlaceholder_buf_ 13931 } 13932 const areaChangePlaceholder_result : Map<string, ComponentContent> | undefined = areaChangePlaceholder_buf 13933 const dpiFollowStrategy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13934 let dpiFollowStrategy_buf : DpiFollowStrategy | undefined 13935 if ((RuntimeType.UNDEFINED) != (dpiFollowStrategy_buf_runtimeType)) 13936 { 13937 dpiFollowStrategy_buf = (valueDeserializer.readInt32() as DpiFollowStrategy) 13938 } 13939 const dpiFollowStrategy_result : DpiFollowStrategy | undefined = dpiFollowStrategy_buf 13940 let value : UIExtensionOptions = ({isTransferringCaller: isTransferringCaller_result, placeholder: placeholder_result, areaChangePlaceholder: areaChangePlaceholder_result, dpiFollowStrategy: dpiFollowStrategy_result} as UIExtensionOptions) 13941 return value 13942 } 13943 readUIExtensionProxy(): UIExtensionProxy { 13944 let valueDeserializer : Deserializer = this 13945 let ptr : KPointer = valueDeserializer.readPointer() 13946 return UIExtensionProxyInternal.fromPtr(ptr) 13947 } 13948 readWaterFlowOptions(): WaterFlowOptions { 13949 let valueDeserializer : Deserializer = this 13950 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13951 let footer_buf : CustomBuilder | undefined 13952 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 13953 { 13954 footer_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 13955 } 13956 const footer_result : CustomBuilder | undefined = footer_buf 13957 const scroller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13958 let scroller_buf : Scroller | undefined 13959 if ((RuntimeType.UNDEFINED) != (scroller_buf_runtimeType)) 13960 { 13961 scroller_buf = (valueDeserializer.readScroller() as Scroller) 13962 } 13963 const scroller_result : Scroller | undefined = scroller_buf 13964 const sections_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13965 let sections_buf : WaterFlowSections | undefined 13966 if ((RuntimeType.UNDEFINED) != (sections_buf_runtimeType)) 13967 { 13968 sections_buf = (valueDeserializer.readWaterFlowSections() as WaterFlowSections) 13969 } 13970 const sections_result : WaterFlowSections | undefined = sections_buf 13971 const layoutMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13972 let layoutMode_buf : WaterFlowLayoutMode | undefined 13973 if ((RuntimeType.UNDEFINED) != (layoutMode_buf_runtimeType)) 13974 { 13975 layoutMode_buf = (valueDeserializer.readInt32() as WaterFlowLayoutMode) 13976 } 13977 const layoutMode_result : WaterFlowLayoutMode | undefined = layoutMode_buf 13978 let value : WaterFlowOptions = ({footer: footer_result, scroller: scroller_result, sections: sections_result, layoutMode: layoutMode_result} as WaterFlowOptions) 13979 return value 13980 } 13981 readWindowAnimationTarget(): WindowAnimationTarget { 13982 let valueDeserializer : Deserializer = this 13983 const bundleName_result : string = (valueDeserializer.readString() as string) 13984 const abilityName_result : string = (valueDeserializer.readString() as string) 13985 const windowBounds_result : RRect = valueDeserializer.readRRect() 13986 const missionId_result : number = (valueDeserializer.readNumber() as number) 13987 let value : WindowAnimationTarget = ({bundleName: bundleName_result, abilityName: abilityName_result, windowBounds: windowBounds_result, missionId: missionId_result} as WindowAnimationTarget) 13988 return value 13989 } 13990 readButtonStyle(): ButtonStyle { 13991 let valueDeserializer : Deserializer = this 13992 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 13993 let left_buf : number | undefined 13994 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 13995 { 13996 left_buf = (valueDeserializer.readNumber() as number) 13997 } 13998 const left_result : number | undefined = left_buf 13999 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14000 let top_buf : number | undefined 14001 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 14002 { 14003 top_buf = (valueDeserializer.readNumber() as number) 14004 } 14005 const top_result : number | undefined = top_buf 14006 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14007 let width_buf : number | undefined 14008 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 14009 { 14010 width_buf = (valueDeserializer.readNumber() as number) 14011 } 14012 const width_result : number | undefined = width_buf 14013 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14014 let height_buf : number | undefined 14015 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 14016 { 14017 height_buf = (valueDeserializer.readNumber() as number) 14018 } 14019 const height_result : number | undefined = height_buf 14020 const icons_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14021 let icons_buf : ButtonIconOptions | undefined 14022 if ((RuntimeType.UNDEFINED) != (icons_buf_runtimeType)) 14023 { 14024 icons_buf = valueDeserializer.readButtonIconOptions() 14025 } 14026 const icons_result : ButtonIconOptions | undefined = icons_buf 14027 let value : ButtonStyle = ({left: left_result, top: top_result, width: width_result, height: height_result, icons: icons_result} as ButtonStyle) 14028 return value 14029 } 14030 readOnNativeLoadCallback(isSync: boolean = false): OnNativeLoadCallback { 14031 const _resource : CallbackResource = this.readCallbackResource() 14032 const _call : KPointer = this.readPointer() 14033 const _callSync : KPointer = this.readPointer() 14034 return (event?: Object | undefined):void => { 14035 const _argsSerializer : Serializer = Serializer.hold(); 14036 _argsSerializer.writeInt32(_resource.resourceId); 14037 _argsSerializer.writePointer(_call); 14038 _argsSerializer.writePointer(_callSync); 14039 let event_type : int32 = RuntimeType.UNDEFINED; 14040 event_type = runtimeType(event); 14041 _argsSerializer.writeInt8(event_type as int32); 14042 if ((RuntimeType.UNDEFINED) != (event_type)) { 14043 const event_value = event!; 14044 _argsSerializer.writeCustomObject("Object", event_value); 14045 } 14046 (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asBuffer(), _argsSerializer.length())); 14047 _argsSerializer.release(); 14048 return; } 14049 } 14050 readXComponentOptions(): XComponentOptions { 14051 let valueDeserializer : Deserializer = this 14052 const type_result : XComponentType = (valueDeserializer.readInt32() as XComponentType) 14053 const controller_result : XComponentController = (valueDeserializer.readXComponentController() as XComponentController) 14054 const imageAIOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14055 let imageAIOptions_buf : ImageAIOptions | undefined 14056 if ((RuntimeType.UNDEFINED) != (imageAIOptions_buf_runtimeType)) 14057 { 14058 imageAIOptions_buf = valueDeserializer.readImageAIOptions() 14059 } 14060 const imageAIOptions_result : ImageAIOptions | undefined = imageAIOptions_buf 14061 let value : XComponentOptions = ({type: type_result, controller: controller_result, imageAIOptions: imageAIOptions_result} as XComponentOptions) 14062 return value 14063 } 14064 readExpandedMenuItemOptions(): ExpandedMenuItemOptions { 14065 let valueDeserializer : Deserializer = this 14066 const content_buf_selector : int32 = valueDeserializer.readInt8() 14067 let content_buf : string | Resource | undefined 14068 if (content_buf_selector == 0) { 14069 content_buf = (valueDeserializer.readString() as string) 14070 } 14071 else if (content_buf_selector == 1) { 14072 content_buf = valueDeserializer.readResource() 14073 } 14074 else { 14075 throw new Error("One of the branches for content_buf has to be chosen through deserialisation.") 14076 } 14077 const content_result : ResourceStr = (content_buf as string | Resource) 14078 const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14079 let startIcon_buf : ResourceStr | undefined 14080 if ((RuntimeType.UNDEFINED) != (startIcon_buf_runtimeType)) 14081 { 14082 const startIcon_buf__selector : int32 = valueDeserializer.readInt8() 14083 let startIcon_buf_ : string | Resource | undefined 14084 if (startIcon_buf__selector == 0) { 14085 startIcon_buf_ = (valueDeserializer.readString() as string) 14086 } 14087 else if (startIcon_buf__selector == 1) { 14088 startIcon_buf_ = valueDeserializer.readResource() 14089 } 14090 else { 14091 throw new Error("One of the branches for startIcon_buf_ has to be chosen through deserialisation.") 14092 } 14093 startIcon_buf = (startIcon_buf_ as string | Resource) 14094 } 14095 const startIcon_result : ResourceStr | undefined = startIcon_buf 14096 const action_result : ((selectedText: Literal_String_plainText) => void) = valueDeserializer.readCallback_Literal_String_plainText_Void() 14097 let value : ExpandedMenuItemOptions = ({content: content_result, startIcon: startIcon_result, action: action_result} as ExpandedMenuItemOptions) 14098 return value 14099 } 14100 readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { 14101 let valueDeserializer : Deserializer = this 14102 const enable_result : boolean = valueDeserializer.readBoolean() 14103 const shouldOverlay_result : boolean = valueDeserializer.readBoolean() 14104 let value : NativeMediaPlayerConfig = ({enable: enable_result, shouldOverlay: shouldOverlay_result} as NativeMediaPlayerConfig) 14105 return value 14106 } 14107 readScriptItem(): ScriptItem { 14108 let valueDeserializer : Deserializer = this 14109 const script_result : string = (valueDeserializer.readString() as string) 14110 const scriptRules_buf_length : int32 = valueDeserializer.readInt32() 14111 let scriptRules_buf : Array<string> = new Array<string>(scriptRules_buf_length) 14112 for (let scriptRules_buf_i = 0; scriptRules_buf_i < scriptRules_buf_length; scriptRules_buf_i++) { 14113 scriptRules_buf[scriptRules_buf_i] = (valueDeserializer.readString() as string) 14114 } 14115 const scriptRules_result : Array<string> = scriptRules_buf 14116 let value : ScriptItem = ({script: script_result, scriptRules: scriptRules_result} as ScriptItem) 14117 return value 14118 } 14119 readWebMediaOptions(): WebMediaOptions { 14120 let valueDeserializer : Deserializer = this 14121 const resumeInterval_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14122 let resumeInterval_buf : number | undefined 14123 if ((RuntimeType.UNDEFINED) != (resumeInterval_buf_runtimeType)) 14124 { 14125 resumeInterval_buf = (valueDeserializer.readNumber() as number) 14126 } 14127 const resumeInterval_result : number | undefined = resumeInterval_buf 14128 const audioExclusive_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14129 let audioExclusive_buf : boolean | undefined 14130 if ((RuntimeType.UNDEFINED) != (audioExclusive_buf_runtimeType)) 14131 { 14132 audioExclusive_buf = valueDeserializer.readBoolean() 14133 } 14134 const audioExclusive_result : boolean | undefined = audioExclusive_buf 14135 let value : WebMediaOptions = ({resumeInterval: resumeInterval_result, audioExclusive: audioExclusive_result} as WebMediaOptions) 14136 return value 14137 } 14138 readJavaScriptProxy(): JavaScriptProxy { 14139 let valueDeserializer : Deserializer = this 14140 const object__result : Object = (valueDeserializer.readCustomObject("Object") as Object) 14141 const name_result : string = (valueDeserializer.readString() as string) 14142 const methodList_buf_length : int32 = valueDeserializer.readInt32() 14143 let methodList_buf : Array<string> = new Array<string>(methodList_buf_length) 14144 for (let methodList_buf_i = 0; methodList_buf_i < methodList_buf_length; methodList_buf_i++) { 14145 methodList_buf[methodList_buf_i] = (valueDeserializer.readString() as string) 14146 } 14147 const methodList_result : Array<string> = methodList_buf 14148 const controller_buf_selector : int32 = valueDeserializer.readInt8() 14149 let controller_buf : WebController | WebviewController | undefined 14150 if (controller_buf_selector == 0) { 14151 controller_buf = (valueDeserializer.readWebController() as WebController) 14152 } 14153 else if (controller_buf_selector == 1) { 14154 controller_buf = (valueDeserializer.readWebviewController() as WebviewController) 14155 } 14156 else { 14157 throw new Error("One of the branches for controller_buf has to be chosen through deserialisation.") 14158 } 14159 const controller_result : WebController | WebviewController = (controller_buf as WebController | WebviewController) 14160 const asyncMethodList_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14161 let asyncMethodList_buf : Array<string> | undefined 14162 if ((RuntimeType.UNDEFINED) != (asyncMethodList_buf_runtimeType)) 14163 { 14164 const asyncMethodList_buf__length : int32 = valueDeserializer.readInt32() 14165 let asyncMethodList_buf_ : Array<string> = new Array<string>(asyncMethodList_buf__length) 14166 for (let asyncMethodList_buf__i = 0; asyncMethodList_buf__i < asyncMethodList_buf__length; asyncMethodList_buf__i++) { 14167 asyncMethodList_buf_[asyncMethodList_buf__i] = (valueDeserializer.readString() as string) 14168 } 14169 asyncMethodList_buf = asyncMethodList_buf_ 14170 } 14171 const asyncMethodList_result : Array<string> | undefined = asyncMethodList_buf 14172 const permission_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14173 let permission_buf : string | undefined 14174 if ((RuntimeType.UNDEFINED) != (permission_buf_runtimeType)) 14175 { 14176 permission_buf = (valueDeserializer.readString() as string) 14177 } 14178 const permission_result : string | undefined = permission_buf 14179 let value : JavaScriptProxy = ({object_: object__result, name: name_result, methodList: methodList_result, controller: controller_result, asyncMethodList: asyncMethodList_result, permission: permission_result} as JavaScriptProxy) 14180 return value 14181 } 14182 readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { 14183 let valueDeserializer : Deserializer = this 14184 const embedId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14185 let embedId_buf : string | undefined 14186 if ((RuntimeType.UNDEFINED) != (embedId_buf_runtimeType)) 14187 { 14188 embedId_buf = (valueDeserializer.readString() as string) 14189 } 14190 const embedId_result : string | undefined = embedId_buf 14191 const touchEvent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14192 let touchEvent_buf : TouchEvent | undefined 14193 if ((RuntimeType.UNDEFINED) != (touchEvent_buf_runtimeType)) 14194 { 14195 touchEvent_buf = (valueDeserializer.readTouchEvent() as TouchEvent) 14196 } 14197 const touchEvent_result : TouchEvent | undefined = touchEvent_buf 14198 const result_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14199 let result_buf : EventResult | undefined 14200 if ((RuntimeType.UNDEFINED) != (result_buf_runtimeType)) 14201 { 14202 result_buf = (valueDeserializer.readEventResult() as EventResult) 14203 } 14204 const result_result : EventResult | undefined = result_buf 14205 let value : NativeEmbedTouchInfo = ({embedId: embedId_result, touchEvent: touchEvent_result, result: result_result} as NativeEmbedTouchInfo) 14206 return value 14207 } 14208 readCallback_NativeEmbedTouchInfo_Void(isSync: boolean = false): ((event: NativeEmbedTouchInfo) => void) { 14209 const _resource : CallbackResource = this.readCallbackResource() 14210 const _call : KPointer = this.readPointer() 14211 const _callSync : KPointer = this.readPointer() 14212 return (event: NativeEmbedTouchInfo):void => { 14213 const _argsSerializer : Serializer = Serializer.hold(); 14214 _argsSerializer.writeInt32(_resource.resourceId); 14215 _argsSerializer.writePointer(_call); 14216 _argsSerializer.writePointer(_callSync); 14217 _argsSerializer.writeNativeEmbedTouchInfo(event); 14218 (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asBuffer(), _argsSerializer.length())); 14219 _argsSerializer.release(); 14220 return; } 14221 } 14222 readNativeEmbedDataInfo(): NativeEmbedDataInfo { 14223 let valueDeserializer : Deserializer = this 14224 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14225 let status_buf : NativeEmbedStatus | undefined 14226 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 14227 { 14228 status_buf = (valueDeserializer.readInt32() as NativeEmbedStatus) 14229 } 14230 const status_result : NativeEmbedStatus | undefined = status_buf 14231 const surfaceId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14232 let surfaceId_buf : string | undefined 14233 if ((RuntimeType.UNDEFINED) != (surfaceId_buf_runtimeType)) 14234 { 14235 surfaceId_buf = (valueDeserializer.readString() as string) 14236 } 14237 const surfaceId_result : string | undefined = surfaceId_buf 14238 const embedId_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14239 let embedId_buf : string | undefined 14240 if ((RuntimeType.UNDEFINED) != (embedId_buf_runtimeType)) 14241 { 14242 embedId_buf = (valueDeserializer.readString() as string) 14243 } 14244 const embedId_result : string | undefined = embedId_buf 14245 const info_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14246 let info_buf : NativeEmbedInfo | undefined 14247 if ((RuntimeType.UNDEFINED) != (info_buf_runtimeType)) 14248 { 14249 info_buf = valueDeserializer.readNativeEmbedInfo() 14250 } 14251 const info_result : NativeEmbedInfo | undefined = info_buf 14252 let value : NativeEmbedDataInfo = ({status: status_result, surfaceId: surfaceId_result, embedId: embedId_result, info: info_result} as NativeEmbedDataInfo) 14253 return value 14254 } 14255 readCallback_NativeEmbedDataInfo_Void(isSync: boolean = false): ((event: NativeEmbedDataInfo) => void) { 14256 const _resource : CallbackResource = this.readCallbackResource() 14257 const _call : KPointer = this.readPointer() 14258 const _callSync : KPointer = this.readPointer() 14259 return (event: NativeEmbedDataInfo):void => { 14260 const _argsSerializer : Serializer = Serializer.hold(); 14261 _argsSerializer.writeInt32(_resource.resourceId); 14262 _argsSerializer.writePointer(_call); 14263 _argsSerializer.writePointer(_callSync); 14264 _argsSerializer.writeNativeEmbedDataInfo(event); 14265 (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asBuffer(), _argsSerializer.length())); 14266 _argsSerializer.release(); 14267 return; } 14268 } 14269 readOnOverScrollEvent(): OnOverScrollEvent { 14270 let valueDeserializer : Deserializer = this 14271 const xOffset_result : number = (valueDeserializer.readNumber() as number) 14272 const yOffset_result : number = (valueDeserializer.readNumber() as number) 14273 let value : OnOverScrollEvent = ({xOffset: xOffset_result, yOffset: yOffset_result} as OnOverScrollEvent) 14274 return value 14275 } 14276 readCallback_OnOverScrollEvent_Void(isSync: boolean = false): ((parameter: OnOverScrollEvent) => void) { 14277 const _resource : CallbackResource = this.readCallbackResource() 14278 const _call : KPointer = this.readPointer() 14279 const _callSync : KPointer = this.readPointer() 14280 return (parameter: OnOverScrollEvent):void => { 14281 const _argsSerializer : Serializer = Serializer.hold(); 14282 _argsSerializer.writeInt32(_resource.resourceId); 14283 _argsSerializer.writePointer(_call); 14284 _argsSerializer.writePointer(_callSync); 14285 _argsSerializer.writeOnOverScrollEvent(parameter); 14286 (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asBuffer(), _argsSerializer.length())); 14287 _argsSerializer.release(); 14288 return; } 14289 } 14290 readOnLoadInterceptEvent(): OnLoadInterceptEvent { 14291 let valueDeserializer : Deserializer = this 14292 const data_result : WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14293 let value : OnLoadInterceptEvent = ({data: data_result} as OnLoadInterceptEvent) 14294 return value 14295 } 14296 readCallback_OnLoadInterceptEvent_Boolean(isSync: boolean = false): ((parameter: OnLoadInterceptEvent) => boolean) { 14297 const _resource : CallbackResource = this.readCallbackResource() 14298 const _call : KPointer = this.readPointer() 14299 const _callSync : KPointer = this.readPointer() 14300 return (parameter: OnLoadInterceptEvent):boolean => { 14301 const _argsSerializer : Serializer = Serializer.hold(); 14302 _argsSerializer.writeInt32(_resource.resourceId); 14303 _argsSerializer.writePointer(_call); 14304 _argsSerializer.writePointer(_callSync); 14305 _argsSerializer.writeOnLoadInterceptEvent(parameter); 14306 let _continuationValue : boolean | undefined; 14307 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14308 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14309 (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asBuffer(), _argsSerializer.length())); 14310 _argsSerializer.release(); 14311 return (_continuationValue as boolean); } 14312 } 14313 readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { 14314 let valueDeserializer : Deserializer = this 14315 const navigationStartTick_result : number = (valueDeserializer.readNumber() as number) 14316 const firstContentfulPaintMs_result : number = (valueDeserializer.readNumber() as number) 14317 let value : OnFirstContentfulPaintEvent = ({navigationStartTick: navigationStartTick_result, firstContentfulPaintMs: firstContentfulPaintMs_result} as OnFirstContentfulPaintEvent) 14318 return value 14319 } 14320 readCallback_OnFirstContentfulPaintEvent_Void(isSync: boolean = false): ((parameter: OnFirstContentfulPaintEvent) => void) { 14321 const _resource : CallbackResource = this.readCallbackResource() 14322 const _call : KPointer = this.readPointer() 14323 const _callSync : KPointer = this.readPointer() 14324 return (parameter: OnFirstContentfulPaintEvent):void => { 14325 const _argsSerializer : Serializer = Serializer.hold(); 14326 _argsSerializer.writeInt32(_resource.resourceId); 14327 _argsSerializer.writePointer(_call); 14328 _argsSerializer.writePointer(_callSync); 14329 _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); 14330 (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asBuffer(), _argsSerializer.length())); 14331 _argsSerializer.release(); 14332 return; } 14333 } 14334 readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { 14335 let valueDeserializer : Deserializer = this 14336 const playing_result : boolean = valueDeserializer.readBoolean() 14337 let value : OnAudioStateChangedEvent = ({playing: playing_result} as OnAudioStateChangedEvent) 14338 return value 14339 } 14340 readCallback_OnAudioStateChangedEvent_Void(isSync: boolean = false): ((parameter: OnAudioStateChangedEvent) => void) { 14341 const _resource : CallbackResource = this.readCallbackResource() 14342 const _call : KPointer = this.readPointer() 14343 const _callSync : KPointer = this.readPointer() 14344 return (parameter: OnAudioStateChangedEvent):void => { 14345 const _argsSerializer : Serializer = Serializer.hold(); 14346 _argsSerializer.writeInt32(_resource.resourceId); 14347 _argsSerializer.writePointer(_call); 14348 _argsSerializer.writePointer(_callSync); 14349 _argsSerializer.writeOnAudioStateChangedEvent(parameter); 14350 (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asBuffer(), _argsSerializer.length())); 14351 _argsSerializer.release(); 14352 return; } 14353 } 14354 readOnDataResubmittedEvent(): OnDataResubmittedEvent { 14355 let valueDeserializer : Deserializer = this 14356 const handler_result : DataResubmissionHandler = (valueDeserializer.readDataResubmissionHandler() as DataResubmissionHandler) 14357 let value : OnDataResubmittedEvent = ({handler: handler_result} as OnDataResubmittedEvent) 14358 return value 14359 } 14360 readCallback_OnDataResubmittedEvent_Void(isSync: boolean = false): ((parameter: OnDataResubmittedEvent) => void) { 14361 const _resource : CallbackResource = this.readCallbackResource() 14362 const _call : KPointer = this.readPointer() 14363 const _callSync : KPointer = this.readPointer() 14364 return (parameter: OnDataResubmittedEvent):void => { 14365 const _argsSerializer : Serializer = Serializer.hold(); 14366 _argsSerializer.writeInt32(_resource.resourceId); 14367 _argsSerializer.writePointer(_call); 14368 _argsSerializer.writePointer(_callSync); 14369 _argsSerializer.writeOnDataResubmittedEvent(parameter); 14370 (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asBuffer(), _argsSerializer.length())); 14371 _argsSerializer.release(); 14372 return; } 14373 } 14374 readOnPageVisibleEvent(): OnPageVisibleEvent { 14375 let valueDeserializer : Deserializer = this 14376 const url_result : string = (valueDeserializer.readString() as string) 14377 let value : OnPageVisibleEvent = ({url: url_result} as OnPageVisibleEvent) 14378 return value 14379 } 14380 readCallback_OnPageVisibleEvent_Void(isSync: boolean = false): ((parameter: OnPageVisibleEvent) => void) { 14381 const _resource : CallbackResource = this.readCallbackResource() 14382 const _call : KPointer = this.readPointer() 14383 const _callSync : KPointer = this.readPointer() 14384 return (parameter: OnPageVisibleEvent):void => { 14385 const _argsSerializer : Serializer = Serializer.hold(); 14386 _argsSerializer.writeInt32(_resource.resourceId); 14387 _argsSerializer.writePointer(_call); 14388 _argsSerializer.writePointer(_callSync); 14389 _argsSerializer.writeOnPageVisibleEvent(parameter); 14390 (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asBuffer(), _argsSerializer.length())); 14391 _argsSerializer.release(); 14392 return; } 14393 } 14394 readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { 14395 let valueDeserializer : Deserializer = this 14396 const favicon_result : PixelMap = (valueDeserializer.readPixelMap() as PixelMap) 14397 let value : OnFaviconReceivedEvent = ({favicon: favicon_result} as OnFaviconReceivedEvent) 14398 return value 14399 } 14400 readCallback_OnFaviconReceivedEvent_Void(isSync: boolean = false): ((parameter: OnFaviconReceivedEvent) => void) { 14401 const _resource : CallbackResource = this.readCallbackResource() 14402 const _call : KPointer = this.readPointer() 14403 const _callSync : KPointer = this.readPointer() 14404 return (parameter: OnFaviconReceivedEvent):void => { 14405 const _argsSerializer : Serializer = Serializer.hold(); 14406 _argsSerializer.writeInt32(_resource.resourceId); 14407 _argsSerializer.writePointer(_call); 14408 _argsSerializer.writePointer(_callSync); 14409 _argsSerializer.writeOnFaviconReceivedEvent(parameter); 14410 (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asBuffer(), _argsSerializer.length())); 14411 _argsSerializer.release(); 14412 return; } 14413 } 14414 readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { 14415 let valueDeserializer : Deserializer = this 14416 const url_result : string = (valueDeserializer.readString() as string) 14417 const precomposed_result : boolean = valueDeserializer.readBoolean() 14418 let value : OnTouchIconUrlReceivedEvent = ({url: url_result, precomposed: precomposed_result} as OnTouchIconUrlReceivedEvent) 14419 return value 14420 } 14421 readCallback_OnTouchIconUrlReceivedEvent_Void(isSync: boolean = false): ((parameter: OnTouchIconUrlReceivedEvent) => void) { 14422 const _resource : CallbackResource = this.readCallbackResource() 14423 const _call : KPointer = this.readPointer() 14424 const _callSync : KPointer = this.readPointer() 14425 return (parameter: OnTouchIconUrlReceivedEvent):void => { 14426 const _argsSerializer : Serializer = Serializer.hold(); 14427 _argsSerializer.writeInt32(_resource.resourceId); 14428 _argsSerializer.writePointer(_call); 14429 _argsSerializer.writePointer(_callSync); 14430 _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); 14431 (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asBuffer(), _argsSerializer.length())); 14432 _argsSerializer.release(); 14433 return; } 14434 } 14435 readOnWindowNewEvent(): OnWindowNewEvent { 14436 let valueDeserializer : Deserializer = this 14437 const isAlert_result : boolean = valueDeserializer.readBoolean() 14438 const isUserTrigger_result : boolean = valueDeserializer.readBoolean() 14439 const targetUrl_result : string = (valueDeserializer.readString() as string) 14440 const handler_result : ControllerHandler = (valueDeserializer.readControllerHandler() as ControllerHandler) 14441 let value : OnWindowNewEvent = ({isAlert: isAlert_result, isUserTrigger: isUserTrigger_result, targetUrl: targetUrl_result, handler: handler_result} as OnWindowNewEvent) 14442 return value 14443 } 14444 readCallback_OnWindowNewEvent_Void(isSync: boolean = false): ((parameter: OnWindowNewEvent) => void) { 14445 const _resource : CallbackResource = this.readCallbackResource() 14446 const _call : KPointer = this.readPointer() 14447 const _callSync : KPointer = this.readPointer() 14448 return (parameter: OnWindowNewEvent):void => { 14449 const _argsSerializer : Serializer = Serializer.hold(); 14450 _argsSerializer.writeInt32(_resource.resourceId); 14451 _argsSerializer.writePointer(_call); 14452 _argsSerializer.writePointer(_callSync); 14453 _argsSerializer.writeOnWindowNewEvent(parameter); 14454 (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asBuffer(), _argsSerializer.length())); 14455 _argsSerializer.release(); 14456 return; } 14457 } 14458 readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { 14459 let valueDeserializer : Deserializer = this 14460 const handler_result : ClientAuthenticationHandler = (valueDeserializer.readClientAuthenticationHandler() as ClientAuthenticationHandler) 14461 const host_result : string = (valueDeserializer.readString() as string) 14462 const port_result : number = (valueDeserializer.readNumber() as number) 14463 const keyTypes_buf_length : int32 = valueDeserializer.readInt32() 14464 let keyTypes_buf : Array<string> = new Array<string>(keyTypes_buf_length) 14465 for (let keyTypes_buf_i = 0; keyTypes_buf_i < keyTypes_buf_length; keyTypes_buf_i++) { 14466 keyTypes_buf[keyTypes_buf_i] = (valueDeserializer.readString() as string) 14467 } 14468 const keyTypes_result : Array<string> = keyTypes_buf 14469 const issuers_buf_length : int32 = valueDeserializer.readInt32() 14470 let issuers_buf : Array<string> = new Array<string>(issuers_buf_length) 14471 for (let issuers_buf_i = 0; issuers_buf_i < issuers_buf_length; issuers_buf_i++) { 14472 issuers_buf[issuers_buf_i] = (valueDeserializer.readString() as string) 14473 } 14474 const issuers_result : Array<string> = issuers_buf 14475 let value : OnClientAuthenticationEvent = ({handler: handler_result, host: host_result, port: port_result, keyTypes: keyTypes_result, issuers: issuers_result} as OnClientAuthenticationEvent) 14476 return value 14477 } 14478 readCallback_OnClientAuthenticationEvent_Void(isSync: boolean = false): ((parameter: OnClientAuthenticationEvent) => void) { 14479 const _resource : CallbackResource = this.readCallbackResource() 14480 const _call : KPointer = this.readPointer() 14481 const _callSync : KPointer = this.readPointer() 14482 return (parameter: OnClientAuthenticationEvent):void => { 14483 const _argsSerializer : Serializer = Serializer.hold(); 14484 _argsSerializer.writeInt32(_resource.resourceId); 14485 _argsSerializer.writePointer(_call); 14486 _argsSerializer.writePointer(_callSync); 14487 _argsSerializer.writeOnClientAuthenticationEvent(parameter); 14488 (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asBuffer(), _argsSerializer.length())); 14489 _argsSerializer.release(); 14490 return; } 14491 } 14492 readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { 14493 let valueDeserializer : Deserializer = this 14494 const handler_result : SslErrorHandler = (valueDeserializer.readSslErrorHandler() as SslErrorHandler) 14495 const error_result : SslError = (valueDeserializer.readInt32() as SslError) 14496 const certChainData_buf_runtimeType = (valueDeserializer.readInt8() as int32) 14497 let certChainData_buf : Array<NativeBuffer> | undefined 14498 if ((RuntimeType.UNDEFINED) != (certChainData_buf_runtimeType)) 14499 { 14500 const certChainData_buf__length : int32 = valueDeserializer.readInt32() 14501 let certChainData_buf_ : Array<NativeBuffer> = new Array<NativeBuffer>(certChainData_buf__length) 14502 for (let certChainData_buf__i = 0; certChainData_buf__i < certChainData_buf__length; certChainData_buf__i++) { 14503 certChainData_buf_[certChainData_buf__i] = (valueDeserializer.readBuffer() as NativeBuffer) 14504 } 14505 certChainData_buf = certChainData_buf_ 14506 } 14507 const certChainData_result : Array<NativeBuffer> | undefined = certChainData_buf 14508 let value : OnSslErrorEventReceiveEvent = ({handler: handler_result, error: error_result, certChainData: certChainData_result} as OnSslErrorEventReceiveEvent) 14509 return value 14510 } 14511 readCallback_OnSslErrorEventReceiveEvent_Void(isSync: boolean = false): ((parameter: OnSslErrorEventReceiveEvent) => void) { 14512 const _resource : CallbackResource = this.readCallbackResource() 14513 const _call : KPointer = this.readPointer() 14514 const _callSync : KPointer = this.readPointer() 14515 return (parameter: OnSslErrorEventReceiveEvent):void => { 14516 const _argsSerializer : Serializer = Serializer.hold(); 14517 _argsSerializer.writeInt32(_resource.resourceId); 14518 _argsSerializer.writePointer(_call); 14519 _argsSerializer.writePointer(_callSync); 14520 _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); 14521 (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asBuffer(), _argsSerializer.length())); 14522 _argsSerializer.release(); 14523 return; } 14524 } 14525 readOnScrollEvent(): OnScrollEvent { 14526 let valueDeserializer : Deserializer = this 14527 const xOffset_result : number = (valueDeserializer.readNumber() as number) 14528 const yOffset_result : number = (valueDeserializer.readNumber() as number) 14529 let value : OnScrollEvent = ({xOffset: xOffset_result, yOffset: yOffset_result} as OnScrollEvent) 14530 return value 14531 } 14532 readCallback_OnScrollEvent_Void(isSync: boolean = false): ((parameter: OnScrollEvent) => void) { 14533 const _resource : CallbackResource = this.readCallbackResource() 14534 const _call : KPointer = this.readPointer() 14535 const _callSync : KPointer = this.readPointer() 14536 return (parameter: OnScrollEvent):void => { 14537 const _argsSerializer : Serializer = Serializer.hold(); 14538 _argsSerializer.writeInt32(_resource.resourceId); 14539 _argsSerializer.writePointer(_call); 14540 _argsSerializer.writePointer(_callSync); 14541 _argsSerializer.writeOnScrollEvent(parameter); 14542 (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asBuffer(), _argsSerializer.length())); 14543 _argsSerializer.release(); 14544 return; } 14545 } 14546 readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { 14547 let valueDeserializer : Deserializer = this 14548 const activeMatchOrdinal_result : number = (valueDeserializer.readNumber() as number) 14549 const numberOfMatches_result : number = (valueDeserializer.readNumber() as number) 14550 const isDoneCounting_result : boolean = valueDeserializer.readBoolean() 14551 let value : OnSearchResultReceiveEvent = ({activeMatchOrdinal: activeMatchOrdinal_result, numberOfMatches: numberOfMatches_result, isDoneCounting: isDoneCounting_result} as OnSearchResultReceiveEvent) 14552 return value 14553 } 14554 readCallback_OnSearchResultReceiveEvent_Void(isSync: boolean = false): ((parameter: OnSearchResultReceiveEvent) => void) { 14555 const _resource : CallbackResource = this.readCallbackResource() 14556 const _call : KPointer = this.readPointer() 14557 const _callSync : KPointer = this.readPointer() 14558 return (parameter: OnSearchResultReceiveEvent):void => { 14559 const _argsSerializer : Serializer = Serializer.hold(); 14560 _argsSerializer.writeInt32(_resource.resourceId); 14561 _argsSerializer.writePointer(_call); 14562 _argsSerializer.writePointer(_callSync); 14563 _argsSerializer.writeOnSearchResultReceiveEvent(parameter); 14564 (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asBuffer(), _argsSerializer.length())); 14565 _argsSerializer.release(); 14566 return; } 14567 } 14568 readOnContextMenuShowEvent(): OnContextMenuShowEvent { 14569 let valueDeserializer : Deserializer = this 14570 const param_result : WebContextMenuParam = (valueDeserializer.readWebContextMenuParam() as WebContextMenuParam) 14571 const result_result : WebContextMenuResult = (valueDeserializer.readWebContextMenuResult() as WebContextMenuResult) 14572 let value : OnContextMenuShowEvent = ({param: param_result, result: result_result} as OnContextMenuShowEvent) 14573 return value 14574 } 14575 readCallback_OnContextMenuShowEvent_Boolean(isSync: boolean = false): ((parameter: OnContextMenuShowEvent) => boolean) { 14576 const _resource : CallbackResource = this.readCallbackResource() 14577 const _call : KPointer = this.readPointer() 14578 const _callSync : KPointer = this.readPointer() 14579 return (parameter: OnContextMenuShowEvent):boolean => { 14580 const _argsSerializer : Serializer = Serializer.hold(); 14581 _argsSerializer.writeInt32(_resource.resourceId); 14582 _argsSerializer.writePointer(_call); 14583 _argsSerializer.writePointer(_callSync); 14584 _argsSerializer.writeOnContextMenuShowEvent(parameter); 14585 let _continuationValue : boolean | undefined; 14586 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14587 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14588 (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asBuffer(), _argsSerializer.length())); 14589 _argsSerializer.release(); 14590 return (_continuationValue as boolean); } 14591 } 14592 readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { 14593 let valueDeserializer : Deserializer = this 14594 const handler_result : ScreenCaptureHandler = (valueDeserializer.readScreenCaptureHandler() as ScreenCaptureHandler) 14595 let value : OnScreenCaptureRequestEvent = ({handler: handler_result} as OnScreenCaptureRequestEvent) 14596 return value 14597 } 14598 readCallback_OnScreenCaptureRequestEvent_Void(isSync: boolean = false): ((parameter: OnScreenCaptureRequestEvent) => void) { 14599 const _resource : CallbackResource = this.readCallbackResource() 14600 const _call : KPointer = this.readPointer() 14601 const _callSync : KPointer = this.readPointer() 14602 return (parameter: OnScreenCaptureRequestEvent):void => { 14603 const _argsSerializer : Serializer = Serializer.hold(); 14604 _argsSerializer.writeInt32(_resource.resourceId); 14605 _argsSerializer.writePointer(_call); 14606 _argsSerializer.writePointer(_callSync); 14607 _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); 14608 (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asBuffer(), _argsSerializer.length())); 14609 _argsSerializer.release(); 14610 return; } 14611 } 14612 readOnPermissionRequestEvent(): OnPermissionRequestEvent { 14613 let valueDeserializer : Deserializer = this 14614 const request_result : PermissionRequest = (valueDeserializer.readPermissionRequest() as PermissionRequest) 14615 let value : OnPermissionRequestEvent = ({request: request_result} as OnPermissionRequestEvent) 14616 return value 14617 } 14618 readCallback_OnPermissionRequestEvent_Void(isSync: boolean = false): ((parameter: OnPermissionRequestEvent) => void) { 14619 const _resource : CallbackResource = this.readCallbackResource() 14620 const _call : KPointer = this.readPointer() 14621 const _callSync : KPointer = this.readPointer() 14622 return (parameter: OnPermissionRequestEvent):void => { 14623 const _argsSerializer : Serializer = Serializer.hold(); 14624 _argsSerializer.writeInt32(_resource.resourceId); 14625 _argsSerializer.writePointer(_call); 14626 _argsSerializer.writePointer(_callSync); 14627 _argsSerializer.writeOnPermissionRequestEvent(parameter); 14628 (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asBuffer(), _argsSerializer.length())); 14629 _argsSerializer.release(); 14630 return; } 14631 } 14632 readOnInterceptRequestEvent(): OnInterceptRequestEvent { 14633 let valueDeserializer : Deserializer = this 14634 const request_result : WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14635 let value : OnInterceptRequestEvent = ({request: request_result} as OnInterceptRequestEvent) 14636 return value 14637 } 14638 readCallback_OnInterceptRequestEvent_WebResourceResponse(isSync: boolean = false): ((parameter: OnInterceptRequestEvent) => WebResourceResponse) { 14639 const _resource : CallbackResource = this.readCallbackResource() 14640 const _call : KPointer = this.readPointer() 14641 const _callSync : KPointer = this.readPointer() 14642 return (parameter: OnInterceptRequestEvent):WebResourceResponse => { 14643 const _argsSerializer : Serializer = Serializer.hold(); 14644 _argsSerializer.writeInt32(_resource.resourceId); 14645 _argsSerializer.writePointer(_call); 14646 _argsSerializer.writePointer(_callSync); 14647 _argsSerializer.writeOnInterceptRequestEvent(parameter); 14648 let _continuationValue : WebResourceResponse | undefined; 14649 const _continuationCallback : ((value: WebResourceResponse) => void) = (value: WebResourceResponse):void => { _continuationValue = value; } 14650 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14651 (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asBuffer(), _argsSerializer.length())); 14652 _argsSerializer.release(); 14653 return (_continuationValue as WebResourceResponse); } 14654 } 14655 readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { 14656 let valueDeserializer : Deserializer = this 14657 const handler_result : HttpAuthHandler = (valueDeserializer.readHttpAuthHandler() as HttpAuthHandler) 14658 const host_result : string = (valueDeserializer.readString() as string) 14659 const realm_result : string = (valueDeserializer.readString() as string) 14660 let value : OnHttpAuthRequestEvent = ({handler: handler_result, host: host_result, realm: realm_result} as OnHttpAuthRequestEvent) 14661 return value 14662 } 14663 readCallback_OnHttpAuthRequestEvent_Boolean(isSync: boolean = false): ((parameter: OnHttpAuthRequestEvent) => boolean) { 14664 const _resource : CallbackResource = this.readCallbackResource() 14665 const _call : KPointer = this.readPointer() 14666 const _callSync : KPointer = this.readPointer() 14667 return (parameter: OnHttpAuthRequestEvent):boolean => { 14668 const _argsSerializer : Serializer = Serializer.hold(); 14669 _argsSerializer.writeInt32(_resource.resourceId); 14670 _argsSerializer.writePointer(_call); 14671 _argsSerializer.writePointer(_callSync); 14672 _argsSerializer.writeOnHttpAuthRequestEvent(parameter); 14673 let _continuationValue : boolean | undefined; 14674 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14675 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14676 (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asBuffer(), _argsSerializer.length())); 14677 _argsSerializer.release(); 14678 return (_continuationValue as boolean); } 14679 } 14680 readOnScaleChangeEvent(): OnScaleChangeEvent { 14681 let valueDeserializer : Deserializer = this 14682 const oldScale_result : number = (valueDeserializer.readNumber() as number) 14683 const newScale_result : number = (valueDeserializer.readNumber() as number) 14684 let value : OnScaleChangeEvent = ({oldScale: oldScale_result, newScale: newScale_result} as OnScaleChangeEvent) 14685 return value 14686 } 14687 readCallback_OnScaleChangeEvent_Void(isSync: boolean = false): ((parameter: OnScaleChangeEvent) => void) { 14688 const _resource : CallbackResource = this.readCallbackResource() 14689 const _call : KPointer = this.readPointer() 14690 const _callSync : KPointer = this.readPointer() 14691 return (parameter: OnScaleChangeEvent):void => { 14692 const _argsSerializer : Serializer = Serializer.hold(); 14693 _argsSerializer.writeInt32(_resource.resourceId); 14694 _argsSerializer.writePointer(_call); 14695 _argsSerializer.writePointer(_callSync); 14696 _argsSerializer.writeOnScaleChangeEvent(parameter); 14697 (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asBuffer(), _argsSerializer.length())); 14698 _argsSerializer.release(); 14699 return; } 14700 } 14701 readOnResourceLoadEvent(): OnResourceLoadEvent { 14702 let valueDeserializer : Deserializer = this 14703 const url_result : string = (valueDeserializer.readString() as string) 14704 let value : OnResourceLoadEvent = ({url: url_result} as OnResourceLoadEvent) 14705 return value 14706 } 14707 readCallback_OnResourceLoadEvent_Void(isSync: boolean = false): ((parameter: OnResourceLoadEvent) => void) { 14708 const _resource : CallbackResource = this.readCallbackResource() 14709 const _call : KPointer = this.readPointer() 14710 const _callSync : KPointer = this.readPointer() 14711 return (parameter: OnResourceLoadEvent):void => { 14712 const _argsSerializer : Serializer = Serializer.hold(); 14713 _argsSerializer.writeInt32(_resource.resourceId); 14714 _argsSerializer.writePointer(_call); 14715 _argsSerializer.writePointer(_callSync); 14716 _argsSerializer.writeOnResourceLoadEvent(parameter); 14717 (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asBuffer(), _argsSerializer.length())); 14718 _argsSerializer.release(); 14719 return; } 14720 } 14721 readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: Literal_Function_callback__Object_fileSelector) => void) { 14722 const _resource : CallbackResource = this.readCallbackResource() 14723 const _call : KPointer = this.readPointer() 14724 const _callSync : KPointer = this.readPointer() 14725 return (event?: Literal_Function_callback__Object_fileSelector | undefined):void => { 14726 const _argsSerializer : Serializer = Serializer.hold(); 14727 _argsSerializer.writeInt32(_resource.resourceId); 14728 _argsSerializer.writePointer(_call); 14729 _argsSerializer.writePointer(_callSync); 14730 let event_type : int32 = RuntimeType.UNDEFINED; 14731 event_type = runtimeType(event); 14732 _argsSerializer.writeInt8(event_type as int32); 14733 if ((RuntimeType.UNDEFINED) != (event_type)) { 14734 const event_value = event!; 14735 const event_value_callback_ = event_value.callback_; 14736 _argsSerializer.writeFunction(event_value_callback_); 14737 const event_value_fileSelector = event_value.fileSelector; 14738 _argsSerializer.writeCustomObject("Object", event_value_fileSelector); 14739 } 14740 (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asBuffer(), _argsSerializer.length())); 14741 _argsSerializer.release(); 14742 return; } 14743 } 14744 readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: Literal_Object_detail) => boolean) { 14745 const _resource : CallbackResource = this.readCallbackResource() 14746 const _call : KPointer = this.readPointer() 14747 const _callSync : KPointer = this.readPointer() 14748 return (event?: Literal_Object_detail | undefined):boolean => { 14749 const _argsSerializer : Serializer = Serializer.hold(); 14750 _argsSerializer.writeInt32(_resource.resourceId); 14751 _argsSerializer.writePointer(_call); 14752 _argsSerializer.writePointer(_callSync); 14753 let event_type : int32 = RuntimeType.UNDEFINED; 14754 event_type = runtimeType(event); 14755 _argsSerializer.writeInt8(event_type as int32); 14756 if ((RuntimeType.UNDEFINED) != (event_type)) { 14757 const event_value = event!; 14758 const event_value_detail = event_value.detail; 14759 _argsSerializer.writeCustomObject("Object", event_value_detail); 14760 } 14761 let _continuationValue : boolean | undefined; 14762 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14763 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14764 (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asBuffer(), _argsSerializer.length())); 14765 _argsSerializer.release(); 14766 return (_continuationValue as boolean); } 14767 } 14768 readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { 14769 let valueDeserializer : Deserializer = this 14770 const result_result : FileSelectorResult = (valueDeserializer.readFileSelectorResult() as FileSelectorResult) 14771 const fileSelector_result : FileSelectorParam = (valueDeserializer.readFileSelectorParam() as FileSelectorParam) 14772 let value : OnShowFileSelectorEvent = ({result: result_result, fileSelector: fileSelector_result} as OnShowFileSelectorEvent) 14773 return value 14774 } 14775 readCallback_OnShowFileSelectorEvent_Boolean(isSync: boolean = false): ((parameter: OnShowFileSelectorEvent) => boolean) { 14776 const _resource : CallbackResource = this.readCallbackResource() 14777 const _call : KPointer = this.readPointer() 14778 const _callSync : KPointer = this.readPointer() 14779 return (parameter: OnShowFileSelectorEvent):boolean => { 14780 const _argsSerializer : Serializer = Serializer.hold(); 14781 _argsSerializer.writeInt32(_resource.resourceId); 14782 _argsSerializer.writePointer(_call); 14783 _argsSerializer.writePointer(_callSync); 14784 _argsSerializer.writeOnShowFileSelectorEvent(parameter); 14785 let _continuationValue : boolean | undefined; 14786 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14787 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14788 (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asBuffer(), _argsSerializer.length())); 14789 _argsSerializer.release(); 14790 return (_continuationValue as boolean); } 14791 } 14792 readOnRenderExitedEvent(): OnRenderExitedEvent { 14793 let valueDeserializer : Deserializer = this 14794 const renderExitReason_result : RenderExitReason = (valueDeserializer.readInt32() as RenderExitReason) 14795 let value : OnRenderExitedEvent = ({renderExitReason: renderExitReason_result} as OnRenderExitedEvent) 14796 return value 14797 } 14798 readCallback_OnRenderExitedEvent_Void(isSync: boolean = false): ((parameter: OnRenderExitedEvent) => void) { 14799 const _resource : CallbackResource = this.readCallbackResource() 14800 const _call : KPointer = this.readPointer() 14801 const _callSync : KPointer = this.readPointer() 14802 return (parameter: OnRenderExitedEvent):void => { 14803 const _argsSerializer : Serializer = Serializer.hold(); 14804 _argsSerializer.writeInt32(_resource.resourceId); 14805 _argsSerializer.writePointer(_call); 14806 _argsSerializer.writePointer(_callSync); 14807 _argsSerializer.writeOnRenderExitedEvent(parameter); 14808 (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asBuffer(), _argsSerializer.length())); 14809 _argsSerializer.release(); 14810 return; } 14811 } 14812 readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: Literal_Function_handler_Object_error) => void) { 14813 const _resource : CallbackResource = this.readCallbackResource() 14814 const _call : KPointer = this.readPointer() 14815 const _callSync : KPointer = this.readPointer() 14816 return (event?: Literal_Function_handler_Object_error | undefined):void => { 14817 const _argsSerializer : Serializer = Serializer.hold(); 14818 _argsSerializer.writeInt32(_resource.resourceId); 14819 _argsSerializer.writePointer(_call); 14820 _argsSerializer.writePointer(_callSync); 14821 let event_type : int32 = RuntimeType.UNDEFINED; 14822 event_type = runtimeType(event); 14823 _argsSerializer.writeInt8(event_type as int32); 14824 if ((RuntimeType.UNDEFINED) != (event_type)) { 14825 const event_value = event!; 14826 const event_value_handler = event_value.handler; 14827 _argsSerializer.writeFunction(event_value_handler); 14828 const event_value_error = event_value.error; 14829 _argsSerializer.writeCustomObject("Object", event_value_error); 14830 } 14831 (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asBuffer(), _argsSerializer.length())); 14832 _argsSerializer.release(); 14833 return; } 14834 } 14835 readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: Literal_Union_String_WebResourceRequest_data) => boolean) { 14836 const _resource : CallbackResource = this.readCallbackResource() 14837 const _call : KPointer = this.readPointer() 14838 const _callSync : KPointer = this.readPointer() 14839 return (event?: Literal_Union_String_WebResourceRequest_data | undefined):boolean => { 14840 const _argsSerializer : Serializer = Serializer.hold(); 14841 _argsSerializer.writeInt32(_resource.resourceId); 14842 _argsSerializer.writePointer(_call); 14843 _argsSerializer.writePointer(_callSync); 14844 let event_type : int32 = RuntimeType.UNDEFINED; 14845 event_type = runtimeType(event); 14846 _argsSerializer.writeInt8(event_type as int32); 14847 if ((RuntimeType.UNDEFINED) != (event_type)) { 14848 const event_value = event!; 14849 const event_value_data = event_value.data; 14850 let event_value_data_type : int32 = RuntimeType.UNDEFINED; 14851 event_value_data_type = runtimeType(event_value_data); 14852 if (RuntimeType.STRING == event_value_data_type) { 14853 _argsSerializer.writeInt8(0 as int32); 14854 const event_value_data_0 = event_value_data as string; 14855 _argsSerializer.writeString(event_value_data_0); 14856 } 14857 else if (RuntimeType.OBJECT == event_value_data_type) { 14858 _argsSerializer.writeInt8(1 as int32); 14859 const event_value_data_1 = event_value_data as WebResourceRequest; 14860 _argsSerializer.writeWebResourceRequest(event_value_data_1); 14861 } 14862 } 14863 let _continuationValue : boolean | undefined; 14864 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14865 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14866 (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asBuffer(), _argsSerializer.length())); 14867 _argsSerializer.release(); 14868 return (_continuationValue as boolean); } 14869 } 14870 readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { 14871 let valueDeserializer : Deserializer = this 14872 const url_result : string = (valueDeserializer.readString() as string) 14873 const isRefreshed_result : boolean = valueDeserializer.readBoolean() 14874 let value : OnRefreshAccessedHistoryEvent = ({url: url_result, isRefreshed: isRefreshed_result} as OnRefreshAccessedHistoryEvent) 14875 return value 14876 } 14877 readCallback_OnRefreshAccessedHistoryEvent_Void(isSync: boolean = false): ((parameter: OnRefreshAccessedHistoryEvent) => void) { 14878 const _resource : CallbackResource = this.readCallbackResource() 14879 const _call : KPointer = this.readPointer() 14880 const _callSync : KPointer = this.readPointer() 14881 return (parameter: OnRefreshAccessedHistoryEvent):void => { 14882 const _argsSerializer : Serializer = Serializer.hold(); 14883 _argsSerializer.writeInt32(_resource.resourceId); 14884 _argsSerializer.writePointer(_call); 14885 _argsSerializer.writePointer(_callSync); 14886 _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); 14887 (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asBuffer(), _argsSerializer.length())); 14888 _argsSerializer.release(); 14889 return; } 14890 } 14891 readOnDownloadStartEvent(): OnDownloadStartEvent { 14892 let valueDeserializer : Deserializer = this 14893 const url_result : string = (valueDeserializer.readString() as string) 14894 const userAgent_result : string = (valueDeserializer.readString() as string) 14895 const contentDisposition_result : string = (valueDeserializer.readString() as string) 14896 const mimetype_result : string = (valueDeserializer.readString() as string) 14897 const contentLength_result : number = (valueDeserializer.readNumber() as number) 14898 let value : OnDownloadStartEvent = ({url: url_result, userAgent: userAgent_result, contentDisposition: contentDisposition_result, mimetype: mimetype_result, contentLength: contentLength_result} as OnDownloadStartEvent) 14899 return value 14900 } 14901 readCallback_OnDownloadStartEvent_Void(isSync: boolean = false): ((parameter: OnDownloadStartEvent) => void) { 14902 const _resource : CallbackResource = this.readCallbackResource() 14903 const _call : KPointer = this.readPointer() 14904 const _callSync : KPointer = this.readPointer() 14905 return (parameter: OnDownloadStartEvent):void => { 14906 const _argsSerializer : Serializer = Serializer.hold(); 14907 _argsSerializer.writeInt32(_resource.resourceId); 14908 _argsSerializer.writePointer(_call); 14909 _argsSerializer.writePointer(_callSync); 14910 _argsSerializer.writeOnDownloadStartEvent(parameter); 14911 (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asBuffer(), _argsSerializer.length())); 14912 _argsSerializer.release(); 14913 return; } 14914 } 14915 readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { 14916 let valueDeserializer : Deserializer = this 14917 const request_result : WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14918 const response_result : WebResourceResponse = (valueDeserializer.readWebResourceResponse() as WebResourceResponse) 14919 let value : OnHttpErrorReceiveEvent = ({request: request_result, response: response_result} as OnHttpErrorReceiveEvent) 14920 return value 14921 } 14922 readCallback_OnHttpErrorReceiveEvent_Void(isSync: boolean = false): ((parameter: OnHttpErrorReceiveEvent) => void) { 14923 const _resource : CallbackResource = this.readCallbackResource() 14924 const _call : KPointer = this.readPointer() 14925 const _callSync : KPointer = this.readPointer() 14926 return (parameter: OnHttpErrorReceiveEvent):void => { 14927 const _argsSerializer : Serializer = Serializer.hold(); 14928 _argsSerializer.writeInt32(_resource.resourceId); 14929 _argsSerializer.writePointer(_call); 14930 _argsSerializer.writePointer(_callSync); 14931 _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); 14932 (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asBuffer(), _argsSerializer.length())); 14933 _argsSerializer.release(); 14934 return; } 14935 } 14936 readOnErrorReceiveEvent(): OnErrorReceiveEvent { 14937 let valueDeserializer : Deserializer = this 14938 const request_result : WebResourceRequest = (valueDeserializer.readWebResourceRequest() as WebResourceRequest) 14939 const error_result : WebResourceError = (valueDeserializer.readWebResourceError() as WebResourceError) 14940 let value : OnErrorReceiveEvent = ({request: request_result, error: error_result} as OnErrorReceiveEvent) 14941 return value 14942 } 14943 readCallback_OnErrorReceiveEvent_Void(isSync: boolean = false): ((parameter: OnErrorReceiveEvent) => void) { 14944 const _resource : CallbackResource = this.readCallbackResource() 14945 const _call : KPointer = this.readPointer() 14946 const _callSync : KPointer = this.readPointer() 14947 return (parameter: OnErrorReceiveEvent):void => { 14948 const _argsSerializer : Serializer = Serializer.hold(); 14949 _argsSerializer.writeInt32(_resource.resourceId); 14950 _argsSerializer.writePointer(_call); 14951 _argsSerializer.writePointer(_callSync); 14952 _argsSerializer.writeOnErrorReceiveEvent(parameter); 14953 (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asBuffer(), _argsSerializer.length())); 14954 _argsSerializer.release(); 14955 return; } 14956 } 14957 readOnConsoleEvent(): OnConsoleEvent { 14958 let valueDeserializer : Deserializer = this 14959 const message_result : ConsoleMessage = (valueDeserializer.readConsoleMessage() as ConsoleMessage) 14960 let value : OnConsoleEvent = ({message: message_result} as OnConsoleEvent) 14961 return value 14962 } 14963 readCallback_OnConsoleEvent_Boolean(isSync: boolean = false): ((parameter: OnConsoleEvent) => boolean) { 14964 const _resource : CallbackResource = this.readCallbackResource() 14965 const _call : KPointer = this.readPointer() 14966 const _callSync : KPointer = this.readPointer() 14967 return (parameter: OnConsoleEvent):boolean => { 14968 const _argsSerializer : Serializer = Serializer.hold(); 14969 _argsSerializer.writeInt32(_resource.resourceId); 14970 _argsSerializer.writePointer(_call); 14971 _argsSerializer.writePointer(_callSync); 14972 _argsSerializer.writeOnConsoleEvent(parameter); 14973 let _continuationValue : boolean | undefined; 14974 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 14975 _argsSerializer.holdAndWriteCallback(_continuationCallback); 14976 (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asBuffer(), _argsSerializer.length())); 14977 _argsSerializer.release(); 14978 return (_continuationValue as boolean); } 14979 } 14980 readOnPromptEvent(): OnPromptEvent { 14981 let valueDeserializer : Deserializer = this 14982 const url_result : string = (valueDeserializer.readString() as string) 14983 const message_result : string = (valueDeserializer.readString() as string) 14984 const value_result : string = (valueDeserializer.readString() as string) 14985 const result_result : JsResult = (valueDeserializer.readJsResult() as JsResult) 14986 let value : OnPromptEvent = ({url: url_result, message: message_result, value: value_result, result: result_result} as OnPromptEvent) 14987 return value 14988 } 14989 readCallback_OnPromptEvent_Boolean(isSync: boolean = false): ((parameter: OnPromptEvent) => boolean) { 14990 const _resource : CallbackResource = this.readCallbackResource() 14991 const _call : KPointer = this.readPointer() 14992 const _callSync : KPointer = this.readPointer() 14993 return (parameter: OnPromptEvent):boolean => { 14994 const _argsSerializer : Serializer = Serializer.hold(); 14995 _argsSerializer.writeInt32(_resource.resourceId); 14996 _argsSerializer.writePointer(_call); 14997 _argsSerializer.writePointer(_callSync); 14998 _argsSerializer.writeOnPromptEvent(parameter); 14999 let _continuationValue : boolean | undefined; 15000 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 15001 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15002 (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asBuffer(), _argsSerializer.length())); 15003 _argsSerializer.release(); 15004 return (_continuationValue as boolean); } 15005 } 15006 readOnConfirmEvent(): OnConfirmEvent { 15007 let valueDeserializer : Deserializer = this 15008 const url_result : string = (valueDeserializer.readString() as string) 15009 const message_result : string = (valueDeserializer.readString() as string) 15010 const result_result : JsResult = (valueDeserializer.readJsResult() as JsResult) 15011 let value : OnConfirmEvent = ({url: url_result, message: message_result, result: result_result} as OnConfirmEvent) 15012 return value 15013 } 15014 readCallback_OnConfirmEvent_Boolean(isSync: boolean = false): ((parameter: OnConfirmEvent) => boolean) { 15015 const _resource : CallbackResource = this.readCallbackResource() 15016 const _call : KPointer = this.readPointer() 15017 const _callSync : KPointer = this.readPointer() 15018 return (parameter: OnConfirmEvent):boolean => { 15019 const _argsSerializer : Serializer = Serializer.hold(); 15020 _argsSerializer.writeInt32(_resource.resourceId); 15021 _argsSerializer.writePointer(_call); 15022 _argsSerializer.writePointer(_callSync); 15023 _argsSerializer.writeOnConfirmEvent(parameter); 15024 let _continuationValue : boolean | undefined; 15025 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 15026 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15027 (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asBuffer(), _argsSerializer.length())); 15028 _argsSerializer.release(); 15029 return (_continuationValue as boolean); } 15030 } 15031 readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { 15032 let valueDeserializer : Deserializer = this 15033 const url_result : string = (valueDeserializer.readString() as string) 15034 const message_result : string = (valueDeserializer.readString() as string) 15035 const result_result : JsResult = (valueDeserializer.readJsResult() as JsResult) 15036 let value : OnBeforeUnloadEvent = ({url: url_result, message: message_result, result: result_result} as OnBeforeUnloadEvent) 15037 return value 15038 } 15039 readCallback_OnBeforeUnloadEvent_Boolean(isSync: boolean = false): ((parameter: OnBeforeUnloadEvent) => boolean) { 15040 const _resource : CallbackResource = this.readCallbackResource() 15041 const _call : KPointer = this.readPointer() 15042 const _callSync : KPointer = this.readPointer() 15043 return (parameter: OnBeforeUnloadEvent):boolean => { 15044 const _argsSerializer : Serializer = Serializer.hold(); 15045 _argsSerializer.writeInt32(_resource.resourceId); 15046 _argsSerializer.writePointer(_call); 15047 _argsSerializer.writePointer(_callSync); 15048 _argsSerializer.writeOnBeforeUnloadEvent(parameter); 15049 let _continuationValue : boolean | undefined; 15050 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 15051 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15052 (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asBuffer(), _argsSerializer.length())); 15053 _argsSerializer.release(); 15054 return (_continuationValue as boolean); } 15055 } 15056 readOnAlertEvent(): OnAlertEvent { 15057 let valueDeserializer : Deserializer = this 15058 const url_result : string = (valueDeserializer.readString() as string) 15059 const message_result : string = (valueDeserializer.readString() as string) 15060 const result_result : JsResult = (valueDeserializer.readJsResult() as JsResult) 15061 let value : OnAlertEvent = ({url: url_result, message: message_result, result: result_result} as OnAlertEvent) 15062 return value 15063 } 15064 readCallback_OnAlertEvent_Boolean(isSync: boolean = false): ((parameter: OnAlertEvent) => boolean) { 15065 const _resource : CallbackResource = this.readCallbackResource() 15066 const _call : KPointer = this.readPointer() 15067 const _callSync : KPointer = this.readPointer() 15068 return (parameter: OnAlertEvent):boolean => { 15069 const _argsSerializer : Serializer = Serializer.hold(); 15070 _argsSerializer.writeInt32(_resource.resourceId); 15071 _argsSerializer.writePointer(_call); 15072 _argsSerializer.writePointer(_callSync); 15073 _argsSerializer.writeOnAlertEvent(parameter); 15074 let _continuationValue : boolean | undefined; 15075 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 15076 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15077 (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asBuffer(), _argsSerializer.length())); 15078 _argsSerializer.release(); 15079 return (_continuationValue as boolean); } 15080 } 15081 readOnGeolocationShowEvent(): OnGeolocationShowEvent { 15082 let valueDeserializer : Deserializer = this 15083 const origin_result : string = (valueDeserializer.readString() as string) 15084 const geolocation_result : JsGeolocation = (valueDeserializer.readJsGeolocation() as JsGeolocation) 15085 let value : OnGeolocationShowEvent = ({origin: origin_result, geolocation: geolocation_result} as OnGeolocationShowEvent) 15086 return value 15087 } 15088 readCallback_OnGeolocationShowEvent_Void(isSync: boolean = false): ((parameter: OnGeolocationShowEvent) => void) { 15089 const _resource : CallbackResource = this.readCallbackResource() 15090 const _call : KPointer = this.readPointer() 15091 const _callSync : KPointer = this.readPointer() 15092 return (parameter: OnGeolocationShowEvent):void => { 15093 const _argsSerializer : Serializer = Serializer.hold(); 15094 _argsSerializer.writeInt32(_resource.resourceId); 15095 _argsSerializer.writePointer(_call); 15096 _argsSerializer.writePointer(_callSync); 15097 _argsSerializer.writeOnGeolocationShowEvent(parameter); 15098 (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asBuffer(), _argsSerializer.length())); 15099 _argsSerializer.release(); 15100 return; } 15101 } 15102 readOnTitleReceiveEvent(): OnTitleReceiveEvent { 15103 let valueDeserializer : Deserializer = this 15104 const title_result : string = (valueDeserializer.readString() as string) 15105 let value : OnTitleReceiveEvent = ({title: title_result} as OnTitleReceiveEvent) 15106 return value 15107 } 15108 readCallback_OnTitleReceiveEvent_Void(isSync: boolean = false): ((parameter: OnTitleReceiveEvent) => void) { 15109 const _resource : CallbackResource = this.readCallbackResource() 15110 const _call : KPointer = this.readPointer() 15111 const _callSync : KPointer = this.readPointer() 15112 return (parameter: OnTitleReceiveEvent):void => { 15113 const _argsSerializer : Serializer = Serializer.hold(); 15114 _argsSerializer.writeInt32(_resource.resourceId); 15115 _argsSerializer.writePointer(_call); 15116 _argsSerializer.writePointer(_callSync); 15117 _argsSerializer.writeOnTitleReceiveEvent(parameter); 15118 (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asBuffer(), _argsSerializer.length())); 15119 _argsSerializer.release(); 15120 return; } 15121 } 15122 readOnProgressChangeEvent(): OnProgressChangeEvent { 15123 let valueDeserializer : Deserializer = this 15124 const newProgress_result : number = (valueDeserializer.readNumber() as number) 15125 let value : OnProgressChangeEvent = ({newProgress: newProgress_result} as OnProgressChangeEvent) 15126 return value 15127 } 15128 readCallback_OnProgressChangeEvent_Void(isSync: boolean = false): ((parameter: OnProgressChangeEvent) => void) { 15129 const _resource : CallbackResource = this.readCallbackResource() 15130 const _call : KPointer = this.readPointer() 15131 const _callSync : KPointer = this.readPointer() 15132 return (parameter: OnProgressChangeEvent):void => { 15133 const _argsSerializer : Serializer = Serializer.hold(); 15134 _argsSerializer.writeInt32(_resource.resourceId); 15135 _argsSerializer.writePointer(_call); 15136 _argsSerializer.writePointer(_callSync); 15137 _argsSerializer.writeOnProgressChangeEvent(parameter); 15138 (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asBuffer(), _argsSerializer.length())); 15139 _argsSerializer.release(); 15140 return; } 15141 } 15142 readOnPageBeginEvent(): OnPageBeginEvent { 15143 let valueDeserializer : Deserializer = this 15144 const url_result : string = (valueDeserializer.readString() as string) 15145 let value : OnPageBeginEvent = ({url: url_result} as OnPageBeginEvent) 15146 return value 15147 } 15148 readCallback_OnPageBeginEvent_Void(isSync: boolean = false): ((parameter: OnPageBeginEvent) => void) { 15149 const _resource : CallbackResource = this.readCallbackResource() 15150 const _call : KPointer = this.readPointer() 15151 const _callSync : KPointer = this.readPointer() 15152 return (parameter: OnPageBeginEvent):void => { 15153 const _argsSerializer : Serializer = Serializer.hold(); 15154 _argsSerializer.writeInt32(_resource.resourceId); 15155 _argsSerializer.writePointer(_call); 15156 _argsSerializer.writePointer(_callSync); 15157 _argsSerializer.writeOnPageBeginEvent(parameter); 15158 (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asBuffer(), _argsSerializer.length())); 15159 _argsSerializer.release(); 15160 return; } 15161 } 15162 readOnPageEndEvent(): OnPageEndEvent { 15163 let valueDeserializer : Deserializer = this 15164 const url_result : string = (valueDeserializer.readString() as string) 15165 let value : OnPageEndEvent = ({url: url_result} as OnPageEndEvent) 15166 return value 15167 } 15168 readCallback_OnPageEndEvent_Void(isSync: boolean = false): ((parameter: OnPageEndEvent) => void) { 15169 const _resource : CallbackResource = this.readCallbackResource() 15170 const _call : KPointer = this.readPointer() 15171 const _callSync : KPointer = this.readPointer() 15172 return (parameter: OnPageEndEvent):void => { 15173 const _argsSerializer : Serializer = Serializer.hold(); 15174 _argsSerializer.writeInt32(_resource.resourceId); 15175 _argsSerializer.writePointer(_call); 15176 _argsSerializer.writePointer(_callSync); 15177 _argsSerializer.writeOnPageEndEvent(parameter); 15178 (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asBuffer(), _argsSerializer.length())); 15179 _argsSerializer.release(); 15180 return; } 15181 } 15182 readWebOptions(): WebOptions { 15183 let valueDeserializer : Deserializer = this 15184 const src_buf_selector : int32 = valueDeserializer.readInt8() 15185 let src_buf : string | Resource | undefined 15186 if (src_buf_selector == 0) { 15187 src_buf = (valueDeserializer.readString() as string) 15188 } 15189 else if (src_buf_selector == 1) { 15190 src_buf = valueDeserializer.readResource() 15191 } 15192 else { 15193 throw new Error("One of the branches for src_buf has to be chosen through deserialisation.") 15194 } 15195 const src_result : string | Resource = (src_buf as string | Resource) 15196 const controller_buf_selector : int32 = valueDeserializer.readInt8() 15197 let controller_buf : WebController | WebviewController | undefined 15198 if (controller_buf_selector == 0) { 15199 controller_buf = (valueDeserializer.readWebController() as WebController) 15200 } 15201 else if (controller_buf_selector == 1) { 15202 controller_buf = (valueDeserializer.readWebviewController() as WebviewController) 15203 } 15204 else { 15205 throw new Error("One of the branches for controller_buf has to be chosen through deserialisation.") 15206 } 15207 const controller_result : WebController | WebviewController = (controller_buf as WebController | WebviewController) 15208 const renderMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15209 let renderMode_buf : RenderMode | undefined 15210 if ((RuntimeType.UNDEFINED) != (renderMode_buf_runtimeType)) 15211 { 15212 renderMode_buf = (valueDeserializer.readInt32() as RenderMode) 15213 } 15214 const renderMode_result : RenderMode | undefined = renderMode_buf 15215 const incognitoMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15216 let incognitoMode_buf : boolean | undefined 15217 if ((RuntimeType.UNDEFINED) != (incognitoMode_buf_runtimeType)) 15218 { 15219 incognitoMode_buf = valueDeserializer.readBoolean() 15220 } 15221 const incognitoMode_result : boolean | undefined = incognitoMode_buf 15222 const sharedRenderProcessToken_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15223 let sharedRenderProcessToken_buf : string | undefined 15224 if ((RuntimeType.UNDEFINED) != (sharedRenderProcessToken_buf_runtimeType)) 15225 { 15226 sharedRenderProcessToken_buf = (valueDeserializer.readString() as string) 15227 } 15228 const sharedRenderProcessToken_result : string | undefined = sharedRenderProcessToken_buf 15229 let value : WebOptions = ({src: src_result, controller: controller_result, renderMode: renderMode_result, incognitoMode: incognitoMode_result, sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) 15230 return value 15231 } 15232 readHeader(): Header { 15233 let valueDeserializer : Deserializer = this 15234 const headerKey_result : string = (valueDeserializer.readString() as string) 15235 const headerValue_result : string = (valueDeserializer.readString() as string) 15236 let value : Header = ({headerKey: headerKey_result, headerValue: headerValue_result} as Header) 15237 return value 15238 } 15239 readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { 15240 const _resource : CallbackResource = this.readCallbackResource() 15241 const _call : KPointer = this.readPointer() 15242 const _callSync : KPointer = this.readPointer() 15243 return ():void => { 15244 const _argsSerializer : Serializer = Serializer.hold(); 15245 _argsSerializer.writeInt32(_resource.resourceId); 15246 _argsSerializer.writePointer(_call); 15247 _argsSerializer.writePointer(_callSync); 15248 (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asBuffer(), _argsSerializer.length())); 15249 _argsSerializer.release(); 15250 return; } 15251 } 15252 readFullScreenEnterEvent(): FullScreenEnterEvent { 15253 let valueDeserializer : Deserializer = this 15254 const handler_result : FullScreenExitHandler = (valueDeserializer.readFullScreenExitHandler() as FullScreenExitHandler) 15255 const videoWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15256 let videoWidth_buf : number | undefined 15257 if ((RuntimeType.UNDEFINED) != (videoWidth_buf_runtimeType)) 15258 { 15259 videoWidth_buf = (valueDeserializer.readNumber() as number) 15260 } 15261 const videoWidth_result : number | undefined = videoWidth_buf 15262 const videoHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15263 let videoHeight_buf : number | undefined 15264 if ((RuntimeType.UNDEFINED) != (videoHeight_buf_runtimeType)) 15265 { 15266 videoHeight_buf = (valueDeserializer.readNumber() as number) 15267 } 15268 const videoHeight_result : number | undefined = videoHeight_buf 15269 let value : FullScreenEnterEvent = ({handler: handler_result, videoWidth: videoWidth_result, videoHeight: videoHeight_result} as FullScreenEnterEvent) 15270 return value 15271 } 15272 readOnFullScreenEnterCallback(isSync: boolean = false): OnFullScreenEnterCallback { 15273 const _resource : CallbackResource = this.readCallbackResource() 15274 const _call : KPointer = this.readPointer() 15275 const _callSync : KPointer = this.readPointer() 15276 return (event: FullScreenEnterEvent):void => { 15277 const _argsSerializer : Serializer = Serializer.hold(); 15278 _argsSerializer.writeInt32(_resource.resourceId); 15279 _argsSerializer.writePointer(_call); 15280 _argsSerializer.writePointer(_callSync); 15281 _argsSerializer.writeFullScreenEnterEvent(event); 15282 (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asBuffer(), _argsSerializer.length())); 15283 _argsSerializer.release(); 15284 return; } 15285 } 15286 readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { 15287 const _resource : CallbackResource = this.readCallbackResource() 15288 const _call : KPointer = this.readPointer() 15289 const _callSync : KPointer = this.readPointer() 15290 return (threatType: ThreatType):void => { 15291 const _argsSerializer : Serializer = Serializer.hold(); 15292 _argsSerializer.writeInt32(_resource.resourceId); 15293 _argsSerializer.writePointer(_call); 15294 _argsSerializer.writePointer(_callSync); 15295 _argsSerializer.writeInt32(threatType.valueOf()); 15296 (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asBuffer(), _argsSerializer.length())); 15297 _argsSerializer.release(); 15298 return; } 15299 } 15300 readWebKeyboardOptions(): WebKeyboardOptions { 15301 let valueDeserializer : Deserializer = this 15302 const useSystemKeyboard_result : boolean = valueDeserializer.readBoolean() 15303 const enterKeyType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15304 let enterKeyType_buf : number | undefined 15305 if ((RuntimeType.UNDEFINED) != (enterKeyType_buf_runtimeType)) 15306 { 15307 enterKeyType_buf = (valueDeserializer.readNumber() as number) 15308 } 15309 const enterKeyType_result : number | undefined = enterKeyType_buf 15310 const customKeyboard_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15311 let customKeyboard_buf : CustomBuilder | undefined 15312 if ((RuntimeType.UNDEFINED) != (customKeyboard_buf_runtimeType)) 15313 { 15314 customKeyboard_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 15315 } 15316 const customKeyboard_result : CustomBuilder | undefined = customKeyboard_buf 15317 let value : WebKeyboardOptions = ({useSystemKeyboard: useSystemKeyboard_result, enterKeyType: enterKeyType_result, customKeyboard: customKeyboard_result} as WebKeyboardOptions) 15318 return value 15319 } 15320 readWebKeyboardCallbackInfo(): WebKeyboardCallbackInfo { 15321 let valueDeserializer : Deserializer = this 15322 const controller_result : WebKeyboardController = (valueDeserializer.readWebKeyboardController() as WebKeyboardController) 15323 const attributes_buf_size : int32 = valueDeserializer.readInt32() 15324 let attributes_buf : Map<string, string> = new Map<string, string>() 15325 // TODO: TS map resize 15326 for (let attributes_buf_i = 0; attributes_buf_i < attributes_buf_size; attributes_buf_i++) { 15327 const attributes_buf_key : string = (valueDeserializer.readString() as string) 15328 const attributes_buf_value : string = (valueDeserializer.readString() as string) 15329 attributes_buf.set(attributes_buf_key, attributes_buf_value) 15330 } 15331 const attributes_result : Map<string, string> = attributes_buf 15332 let value : WebKeyboardCallbackInfo = ({controller: controller_result, attributes: attributes_result} as WebKeyboardCallbackInfo) 15333 return value 15334 } 15335 readWebKeyboardCallback(isSync: boolean = false): WebKeyboardCallback { 15336 const _resource : CallbackResource = this.readCallbackResource() 15337 const _call : KPointer = this.readPointer() 15338 const _callSync : KPointer = this.readPointer() 15339 return (keyboardCallbackInfo: WebKeyboardCallbackInfo):WebKeyboardOptions => { 15340 const _argsSerializer : Serializer = Serializer.hold(); 15341 _argsSerializer.writeInt32(_resource.resourceId); 15342 _argsSerializer.writePointer(_call); 15343 _argsSerializer.writePointer(_callSync); 15344 _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); 15345 let _continuationValue : WebKeyboardOptions | undefined; 15346 const _continuationCallback : ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions):void => { _continuationValue = value; } 15347 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15348 (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asBuffer(), _argsSerializer.length())); 15349 _argsSerializer.release(); 15350 return (_continuationValue as WebKeyboardOptions); } 15351 } 15352 readAdsBlockedDetails(): AdsBlockedDetails { 15353 let valueDeserializer : Deserializer = this 15354 const url_result : string = (valueDeserializer.readString() as string) 15355 const adsBlocked_buf_length : int32 = valueDeserializer.readInt32() 15356 let adsBlocked_buf : Array<string> = new Array<string>(adsBlocked_buf_length) 15357 for (let adsBlocked_buf_i = 0; adsBlocked_buf_i < adsBlocked_buf_length; adsBlocked_buf_i++) { 15358 adsBlocked_buf[adsBlocked_buf_i] = (valueDeserializer.readString() as string) 15359 } 15360 const adsBlocked_result : Array<string> = adsBlocked_buf 15361 let value : AdsBlockedDetails = ({url: url_result, adsBlocked: adsBlocked_result} as AdsBlockedDetails) 15362 return value 15363 } 15364 readOnAdsBlockedCallback(isSync: boolean = false): OnAdsBlockedCallback { 15365 const _resource : CallbackResource = this.readCallbackResource() 15366 const _call : KPointer = this.readPointer() 15367 const _callSync : KPointer = this.readPointer() 15368 return (details: AdsBlockedDetails):void => { 15369 const _argsSerializer : Serializer = Serializer.hold(); 15370 _argsSerializer.writeInt32(_resource.resourceId); 15371 _argsSerializer.writePointer(_call); 15372 _argsSerializer.writePointer(_callSync); 15373 _argsSerializer.writeAdsBlockedDetails(details); 15374 (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asBuffer(), _argsSerializer.length())); 15375 _argsSerializer.release(); 15376 return; } 15377 } 15378 readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { 15379 const _resource : CallbackResource = this.readCallbackResource() 15380 const _call : KPointer = this.readPointer() 15381 const _callSync : KPointer = this.readPointer() 15382 return (viewportFit: ViewportFit):void => { 15383 const _argsSerializer : Serializer = Serializer.hold(); 15384 _argsSerializer.writeInt32(_resource.resourceId); 15385 _argsSerializer.writePointer(_call); 15386 _argsSerializer.writePointer(_callSync); 15387 _argsSerializer.writeInt32(viewportFit.valueOf()); 15388 (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asBuffer(), _argsSerializer.length())); 15389 _argsSerializer.release(); 15390 return; } 15391 } 15392 readOnRenderProcessRespondingCallback(isSync: boolean = false): OnRenderProcessRespondingCallback { 15393 const _resource : CallbackResource = this.readCallbackResource() 15394 const _call : KPointer = this.readPointer() 15395 const _callSync : KPointer = this.readPointer() 15396 return ():void => { 15397 const _argsSerializer : Serializer = Serializer.hold(); 15398 _argsSerializer.writeInt32(_resource.resourceId); 15399 _argsSerializer.writePointer(_call); 15400 _argsSerializer.writePointer(_callSync); 15401 (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asBuffer(), _argsSerializer.length())); 15402 _argsSerializer.release(); 15403 return; } 15404 } 15405 readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { 15406 let valueDeserializer : Deserializer = this 15407 const jsStack_result : string = (valueDeserializer.readString() as string) 15408 const pid_result : number = (valueDeserializer.readNumber() as number) 15409 const reason_result : RenderProcessNotRespondingReason = (valueDeserializer.readInt32() as RenderProcessNotRespondingReason) 15410 let value : RenderProcessNotRespondingData = ({jsStack: jsStack_result, pid: pid_result, reason: reason_result} as RenderProcessNotRespondingData) 15411 return value 15412 } 15413 readOnRenderProcessNotRespondingCallback(isSync: boolean = false): OnRenderProcessNotRespondingCallback { 15414 const _resource : CallbackResource = this.readCallbackResource() 15415 const _call : KPointer = this.readPointer() 15416 const _callSync : KPointer = this.readPointer() 15417 return (data: RenderProcessNotRespondingData):void => { 15418 const _argsSerializer : Serializer = Serializer.hold(); 15419 _argsSerializer.writeInt32(_resource.resourceId); 15420 _argsSerializer.writePointer(_call); 15421 _argsSerializer.writePointer(_callSync); 15422 _argsSerializer.writeRenderProcessNotRespondingData(data); 15423 (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asBuffer(), _argsSerializer.length())); 15424 _argsSerializer.release(); 15425 return; } 15426 } 15427 readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { 15428 let valueDeserializer : Deserializer = this 15429 const visibility_result : boolean = valueDeserializer.readBoolean() 15430 const embedId_result : string = (valueDeserializer.readString() as string) 15431 let value : NativeEmbedVisibilityInfo = ({visibility: visibility_result, embedId: embedId_result} as NativeEmbedVisibilityInfo) 15432 return value 15433 } 15434 readOnNativeEmbedVisibilityChangeCallback(isSync: boolean = false): OnNativeEmbedVisibilityChangeCallback { 15435 const _resource : CallbackResource = this.readCallbackResource() 15436 const _call : KPointer = this.readPointer() 15437 const _callSync : KPointer = this.readPointer() 15438 return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo):void => { 15439 const _argsSerializer : Serializer = Serializer.hold(); 15440 _argsSerializer.writeInt32(_resource.resourceId); 15441 _argsSerializer.writePointer(_call); 15442 _argsSerializer.writePointer(_callSync); 15443 _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); 15444 (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asBuffer(), _argsSerializer.length())); 15445 _argsSerializer.release(); 15446 return; } 15447 } 15448 readIntelligentTrackingPreventionDetails(): IntelligentTrackingPreventionDetails { 15449 let valueDeserializer : Deserializer = this 15450 const host_result : string = (valueDeserializer.readString() as string) 15451 const trackerHost_result : string = (valueDeserializer.readString() as string) 15452 let value : IntelligentTrackingPreventionDetails = ({host: host_result, trackerHost: trackerHost_result} as IntelligentTrackingPreventionDetails) 15453 return value 15454 } 15455 readOnIntelligentTrackingPreventionCallback(isSync: boolean = false): OnIntelligentTrackingPreventionCallback { 15456 const _resource : CallbackResource = this.readCallbackResource() 15457 const _call : KPointer = this.readPointer() 15458 const _callSync : KPointer = this.readPointer() 15459 return (details: IntelligentTrackingPreventionDetails):void => { 15460 const _argsSerializer : Serializer = Serializer.hold(); 15461 _argsSerializer.writeInt32(_resource.resourceId); 15462 _argsSerializer.writePointer(_call); 15463 _argsSerializer.writePointer(_callSync); 15464 _argsSerializer.writeIntelligentTrackingPreventionDetails(details); 15465 (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asBuffer(), _argsSerializer.length())); 15466 _argsSerializer.release(); 15467 return; } 15468 } 15469 readOnOverrideUrlLoadingCallback(isSync: boolean = false): OnOverrideUrlLoadingCallback { 15470 const _resource : CallbackResource = this.readCallbackResource() 15471 const _call : KPointer = this.readPointer() 15472 const _callSync : KPointer = this.readPointer() 15473 return (webResourceRequest: WebResourceRequest):boolean => { 15474 const _argsSerializer : Serializer = Serializer.hold(); 15475 _argsSerializer.writeInt32(_resource.resourceId); 15476 _argsSerializer.writePointer(_call); 15477 _argsSerializer.writePointer(_callSync); 15478 _argsSerializer.writeWebResourceRequest(webResourceRequest); 15479 let _continuationValue : boolean | undefined; 15480 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 15481 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15482 (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asBuffer(), _argsSerializer.length())); 15483 _argsSerializer.release(); 15484 return (_continuationValue as boolean); } 15485 } 15486 readFirstMeaningfulPaint(): FirstMeaningfulPaint { 15487 let valueDeserializer : Deserializer = this 15488 const navigationStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15489 let navigationStartTime_buf : number | undefined 15490 if ((RuntimeType.UNDEFINED) != (navigationStartTime_buf_runtimeType)) 15491 { 15492 navigationStartTime_buf = (valueDeserializer.readNumber() as number) 15493 } 15494 const navigationStartTime_result : number | undefined = navigationStartTime_buf 15495 const firstMeaningfulPaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15496 let firstMeaningfulPaintTime_buf : number | undefined 15497 if ((RuntimeType.UNDEFINED) != (firstMeaningfulPaintTime_buf_runtimeType)) 15498 { 15499 firstMeaningfulPaintTime_buf = (valueDeserializer.readNumber() as number) 15500 } 15501 const firstMeaningfulPaintTime_result : number | undefined = firstMeaningfulPaintTime_buf 15502 let value : FirstMeaningfulPaint = ({navigationStartTime: navigationStartTime_result, firstMeaningfulPaintTime: firstMeaningfulPaintTime_result} as FirstMeaningfulPaint) 15503 return value 15504 } 15505 readOnFirstMeaningfulPaintCallback(isSync: boolean = false): OnFirstMeaningfulPaintCallback { 15506 const _resource : CallbackResource = this.readCallbackResource() 15507 const _call : KPointer = this.readPointer() 15508 const _callSync : KPointer = this.readPointer() 15509 return (firstMeaningfulPaint: FirstMeaningfulPaint):void => { 15510 const _argsSerializer : Serializer = Serializer.hold(); 15511 _argsSerializer.writeInt32(_resource.resourceId); 15512 _argsSerializer.writePointer(_call); 15513 _argsSerializer.writePointer(_callSync); 15514 _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); 15515 (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asBuffer(), _argsSerializer.length())); 15516 _argsSerializer.release(); 15517 return; } 15518 } 15519 readLargestContentfulPaint(): LargestContentfulPaint { 15520 let valueDeserializer : Deserializer = this 15521 const navigationStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15522 let navigationStartTime_buf : number | undefined 15523 if ((RuntimeType.UNDEFINED) != (navigationStartTime_buf_runtimeType)) 15524 { 15525 navigationStartTime_buf = (valueDeserializer.readNumber() as number) 15526 } 15527 const navigationStartTime_result : number | undefined = navigationStartTime_buf 15528 const largestImagePaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15529 let largestImagePaintTime_buf : number | undefined 15530 if ((RuntimeType.UNDEFINED) != (largestImagePaintTime_buf_runtimeType)) 15531 { 15532 largestImagePaintTime_buf = (valueDeserializer.readNumber() as number) 15533 } 15534 const largestImagePaintTime_result : number | undefined = largestImagePaintTime_buf 15535 const largestTextPaintTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15536 let largestTextPaintTime_buf : number | undefined 15537 if ((RuntimeType.UNDEFINED) != (largestTextPaintTime_buf_runtimeType)) 15538 { 15539 largestTextPaintTime_buf = (valueDeserializer.readNumber() as number) 15540 } 15541 const largestTextPaintTime_result : number | undefined = largestTextPaintTime_buf 15542 const imageBPP_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15543 let imageBPP_buf : number | undefined 15544 if ((RuntimeType.UNDEFINED) != (imageBPP_buf_runtimeType)) 15545 { 15546 imageBPP_buf = (valueDeserializer.readNumber() as number) 15547 } 15548 const imageBPP_result : number | undefined = imageBPP_buf 15549 const largestImageLoadStartTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15550 let largestImageLoadStartTime_buf : number | undefined 15551 if ((RuntimeType.UNDEFINED) != (largestImageLoadStartTime_buf_runtimeType)) 15552 { 15553 largestImageLoadStartTime_buf = (valueDeserializer.readNumber() as number) 15554 } 15555 const largestImageLoadStartTime_result : number | undefined = largestImageLoadStartTime_buf 15556 const largestImageLoadEndTime_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15557 let largestImageLoadEndTime_buf : number | undefined 15558 if ((RuntimeType.UNDEFINED) != (largestImageLoadEndTime_buf_runtimeType)) 15559 { 15560 largestImageLoadEndTime_buf = (valueDeserializer.readNumber() as number) 15561 } 15562 const largestImageLoadEndTime_result : number | undefined = largestImageLoadEndTime_buf 15563 let value : LargestContentfulPaint = ({navigationStartTime: navigationStartTime_result, largestImagePaintTime: largestImagePaintTime_result, largestTextPaintTime: largestTextPaintTime_result, imageBPP: imageBPP_result, largestImageLoadStartTime: largestImageLoadStartTime_result, largestImageLoadEndTime: largestImageLoadEndTime_result} as LargestContentfulPaint) 15564 return value 15565 } 15566 readOnLargestContentfulPaintCallback(isSync: boolean = false): OnLargestContentfulPaintCallback { 15567 const _resource : CallbackResource = this.readCallbackResource() 15568 const _call : KPointer = this.readPointer() 15569 const _callSync : KPointer = this.readPointer() 15570 return (largestContentfulPaint: LargestContentfulPaint):void => { 15571 const _argsSerializer : Serializer = Serializer.hold(); 15572 _argsSerializer.writeInt32(_resource.resourceId); 15573 _argsSerializer.writePointer(_call); 15574 _argsSerializer.writePointer(_callSync); 15575 _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); 15576 (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asBuffer(), _argsSerializer.length())); 15577 _argsSerializer.release(); 15578 return; } 15579 } 15580 readSslErrorEvent(): SslErrorEvent { 15581 let valueDeserializer : Deserializer = this 15582 const handler_result : SslErrorHandler = (valueDeserializer.readSslErrorHandler() as SslErrorHandler) 15583 const error_result : SslError = (valueDeserializer.readInt32() as SslError) 15584 const url_result : string = (valueDeserializer.readString() as string) 15585 const originalUrl_result : string = (valueDeserializer.readString() as string) 15586 const referrer_result : string = (valueDeserializer.readString() as string) 15587 const isFatalError_result : boolean = valueDeserializer.readBoolean() 15588 const isMainFrame_result : boolean = valueDeserializer.readBoolean() 15589 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) 15590 return value 15591 } 15592 readOnSslErrorEventCallback(isSync: boolean = false): OnSslErrorEventCallback { 15593 const _resource : CallbackResource = this.readCallbackResource() 15594 const _call : KPointer = this.readPointer() 15595 const _callSync : KPointer = this.readPointer() 15596 return (sslErrorEvent: SslErrorEvent):void => { 15597 const _argsSerializer : Serializer = Serializer.hold(); 15598 _argsSerializer.writeInt32(_resource.resourceId); 15599 _argsSerializer.writePointer(_call); 15600 _argsSerializer.writePointer(_callSync); 15601 _argsSerializer.writeSslErrorEvent(sslErrorEvent); 15602 (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asBuffer(), _argsSerializer.length())); 15603 _argsSerializer.release(); 15604 return; } 15605 } 15606 readLoadCommittedDetails(): LoadCommittedDetails { 15607 let valueDeserializer : Deserializer = this 15608 const isMainFrame_result : boolean = valueDeserializer.readBoolean() 15609 const isSameDocument_result : boolean = valueDeserializer.readBoolean() 15610 const didReplaceEntry_result : boolean = valueDeserializer.readBoolean() 15611 const navigationType_result : WebNavigationType = (valueDeserializer.readInt32() as WebNavigationType) 15612 const url_result : string = (valueDeserializer.readString() as string) 15613 let value : LoadCommittedDetails = ({isMainFrame: isMainFrame_result, isSameDocument: isSameDocument_result, didReplaceEntry: didReplaceEntry_result, navigationType: navigationType_result, url: url_result} as LoadCommittedDetails) 15614 return value 15615 } 15616 readOnNavigationEntryCommittedCallback(isSync: boolean = false): OnNavigationEntryCommittedCallback { 15617 const _resource : CallbackResource = this.readCallbackResource() 15618 const _call : KPointer = this.readPointer() 15619 const _callSync : KPointer = this.readPointer() 15620 return (loadCommittedDetails: LoadCommittedDetails):void => { 15621 const _argsSerializer : Serializer = Serializer.hold(); 15622 _argsSerializer.writeInt32(_resource.resourceId); 15623 _argsSerializer.writePointer(_call); 15624 _argsSerializer.writePointer(_callSync); 15625 _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); 15626 (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asBuffer(), _argsSerializer.length())); 15627 _argsSerializer.release(); 15628 return; } 15629 } 15630 readPlaybackInfo(): PlaybackInfo { 15631 let valueDeserializer : Deserializer = this 15632 const time_result : number = (valueDeserializer.readNumber() as number) 15633 let value : PlaybackInfo = ({time: time_result} as PlaybackInfo) 15634 return value 15635 } 15636 readCallback_PlaybackInfo_Void(isSync: boolean = false): ((parameter: PlaybackInfo) => void) { 15637 const _resource : CallbackResource = this.readCallbackResource() 15638 const _call : KPointer = this.readPointer() 15639 const _callSync : KPointer = this.readPointer() 15640 return (parameter: PlaybackInfo):void => { 15641 const _argsSerializer : Serializer = Serializer.hold(); 15642 _argsSerializer.writeInt32(_resource.resourceId); 15643 _argsSerializer.writePointer(_call); 15644 _argsSerializer.writePointer(_callSync); 15645 _argsSerializer.writePlaybackInfo(parameter); 15646 (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asBuffer(), _argsSerializer.length())); 15647 _argsSerializer.release(); 15648 return; } 15649 } 15650 readPreparedInfo(): PreparedInfo { 15651 let valueDeserializer : Deserializer = this 15652 const duration_result : number = (valueDeserializer.readNumber() as number) 15653 let value : PreparedInfo = ({duration: duration_result} as PreparedInfo) 15654 return value 15655 } 15656 readCallback_PreparedInfo_Void(isSync: boolean = false): ((parameter: PreparedInfo) => void) { 15657 const _resource : CallbackResource = this.readCallbackResource() 15658 const _call : KPointer = this.readPointer() 15659 const _callSync : KPointer = this.readPointer() 15660 return (parameter: PreparedInfo):void => { 15661 const _argsSerializer : Serializer = Serializer.hold(); 15662 _argsSerializer.writeInt32(_resource.resourceId); 15663 _argsSerializer.writePointer(_call); 15664 _argsSerializer.writePointer(_callSync); 15665 _argsSerializer.writePreparedInfo(parameter); 15666 (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asBuffer(), _argsSerializer.length())); 15667 _argsSerializer.release(); 15668 return; } 15669 } 15670 readFullscreenInfo(): FullscreenInfo { 15671 let valueDeserializer : Deserializer = this 15672 const fullscreen_result : boolean = valueDeserializer.readBoolean() 15673 let value : FullscreenInfo = ({fullscreen: fullscreen_result} as FullscreenInfo) 15674 return value 15675 } 15676 readCallback_FullscreenInfo_Void(isSync: boolean = false): ((parameter: FullscreenInfo) => void) { 15677 const _resource : CallbackResource = this.readCallbackResource() 15678 const _call : KPointer = this.readPointer() 15679 const _callSync : KPointer = this.readPointer() 15680 return (parameter: FullscreenInfo):void => { 15681 const _argsSerializer : Serializer = Serializer.hold(); 15682 _argsSerializer.writeInt32(_resource.resourceId); 15683 _argsSerializer.writePointer(_call); 15684 _argsSerializer.writePointer(_callSync); 15685 _argsSerializer.writeFullscreenInfo(parameter); 15686 (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asBuffer(), _argsSerializer.length())); 15687 _argsSerializer.release(); 15688 return; } 15689 } 15690 readVideoOptions(): VideoOptions { 15691 let valueDeserializer : Deserializer = this 15692 const src_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15693 let src_buf : string | Resource | undefined 15694 if ((RuntimeType.UNDEFINED) != (src_buf_runtimeType)) 15695 { 15696 const src_buf__selector : int32 = valueDeserializer.readInt8() 15697 let src_buf_ : string | Resource | undefined 15698 if (src_buf__selector == 0) { 15699 src_buf_ = (valueDeserializer.readString() as string) 15700 } 15701 else if (src_buf__selector == 1) { 15702 src_buf_ = valueDeserializer.readResource() 15703 } 15704 else { 15705 throw new Error("One of the branches for src_buf_ has to be chosen through deserialisation.") 15706 } 15707 src_buf = (src_buf_ as string | Resource) 15708 } 15709 const src_result : string | Resource | undefined = src_buf 15710 const currentProgressRate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15711 let currentProgressRate_buf : number | string | PlaybackSpeed | undefined 15712 if ((RuntimeType.UNDEFINED) != (currentProgressRate_buf_runtimeType)) 15713 { 15714 const currentProgressRate_buf__selector : int32 = valueDeserializer.readInt8() 15715 let currentProgressRate_buf_ : number | string | PlaybackSpeed | undefined 15716 if (currentProgressRate_buf__selector == 0) { 15717 currentProgressRate_buf_ = (valueDeserializer.readNumber() as number) 15718 } 15719 else if (currentProgressRate_buf__selector == 1) { 15720 currentProgressRate_buf_ = (valueDeserializer.readString() as string) 15721 } 15722 else if (currentProgressRate_buf__selector == 2) { 15723 currentProgressRate_buf_ = (valueDeserializer.readInt32() as PlaybackSpeed) 15724 } 15725 else { 15726 throw new Error("One of the branches for currentProgressRate_buf_ has to be chosen through deserialisation.") 15727 } 15728 currentProgressRate_buf = (currentProgressRate_buf_ as number | string | PlaybackSpeed) 15729 } 15730 const currentProgressRate_result : number | string | PlaybackSpeed | undefined = currentProgressRate_buf 15731 const previewUri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15732 let previewUri_buf : string | PixelMap | Resource | undefined 15733 if ((RuntimeType.UNDEFINED) != (previewUri_buf_runtimeType)) 15734 { 15735 const previewUri_buf__selector : int32 = valueDeserializer.readInt8() 15736 let previewUri_buf_ : string | PixelMap | Resource | undefined 15737 if (previewUri_buf__selector == 0) { 15738 previewUri_buf_ = (valueDeserializer.readString() as string) 15739 } 15740 else if (previewUri_buf__selector == 1) { 15741 previewUri_buf_ = (valueDeserializer.readPixelMap() as PixelMap) 15742 } 15743 else if (previewUri_buf__selector == 2) { 15744 previewUri_buf_ = valueDeserializer.readResource() 15745 } 15746 else { 15747 throw new Error("One of the branches for previewUri_buf_ has to be chosen through deserialisation.") 15748 } 15749 previewUri_buf = (previewUri_buf_ as string | PixelMap | Resource) 15750 } 15751 const previewUri_result : string | PixelMap | Resource | undefined = previewUri_buf 15752 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15753 let controller_buf : VideoController | undefined 15754 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 15755 { 15756 controller_buf = (valueDeserializer.readVideoController() as VideoController) 15757 } 15758 const controller_result : VideoController | undefined = controller_buf 15759 const imageAIOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15760 let imageAIOptions_buf : ImageAIOptions | undefined 15761 if ((RuntimeType.UNDEFINED) != (imageAIOptions_buf_runtimeType)) 15762 { 15763 imageAIOptions_buf = valueDeserializer.readImageAIOptions() 15764 } 15765 const imageAIOptions_result : ImageAIOptions | undefined = imageAIOptions_buf 15766 let value : VideoOptions = ({src: src_result, currentProgressRate: currentProgressRate_result, previewUri: previewUri_result, controller: controller_result, imageAIOptions: imageAIOptions_result} as VideoOptions) 15767 return value 15768 } 15769 readWithThemeAttribute(): WithThemeAttribute { 15770 let value : WithThemeAttribute = ({} as WithThemeAttribute) 15771 return value 15772 } 15773 readWithThemeOptions(): WithThemeOptions { 15774 let valueDeserializer : Deserializer = this 15775 const theme_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15776 let theme_buf : CustomTheme | undefined 15777 if ((RuntimeType.UNDEFINED) != (theme_buf_runtimeType)) 15778 { 15779 theme_buf = valueDeserializer.readCustomTheme() 15780 } 15781 const theme_result : CustomTheme | undefined = theme_buf 15782 const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15783 let colorMode_buf : ThemeColorMode | undefined 15784 if ((RuntimeType.UNDEFINED) != (colorMode_buf_runtimeType)) 15785 { 15786 colorMode_buf = (valueDeserializer.readInt32() as ThemeColorMode) 15787 } 15788 const colorMode_result : ThemeColorMode | undefined = colorMode_buf 15789 let value : WithThemeOptions = ({theme: theme_result, colorMode: colorMode_result} as WithThemeOptions) 15790 return value 15791 } 15792 readWithThemeInterface(isSync: boolean = false): WithThemeInterface { 15793 const _resource : CallbackResource = this.readCallbackResource() 15794 const _call : KPointer = this.readPointer() 15795 const _callSync : KPointer = this.readPointer() 15796 return (options: WithThemeOptions):WithThemeAttribute => { 15797 const _argsSerializer : Serializer = Serializer.hold(); 15798 _argsSerializer.writeInt32(_resource.resourceId); 15799 _argsSerializer.writePointer(_call); 15800 _argsSerializer.writePointer(_callSync); 15801 _argsSerializer.writeWithThemeOptions(options); 15802 let _continuationValue : WithThemeAttribute | undefined; 15803 const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; } 15804 _argsSerializer.holdAndWriteCallback(_continuationCallback); 15805 (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asBuffer(), _argsSerializer.length())); 15806 _argsSerializer.release(); 15807 return (_continuationValue as WithThemeAttribute); } 15808 } 15809 readSwitchStyle(): SwitchStyle { 15810 let valueDeserializer : Deserializer = this 15811 const pointRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15812 let pointRadius_buf : number | Resource | undefined 15813 if ((RuntimeType.UNDEFINED) != (pointRadius_buf_runtimeType)) 15814 { 15815 const pointRadius_buf__selector : int32 = valueDeserializer.readInt8() 15816 let pointRadius_buf_ : number | Resource | undefined 15817 if (pointRadius_buf__selector == 0) { 15818 pointRadius_buf_ = (valueDeserializer.readNumber() as number) 15819 } 15820 else if (pointRadius_buf__selector == 1) { 15821 pointRadius_buf_ = valueDeserializer.readResource() 15822 } 15823 else { 15824 throw new Error("One of the branches for pointRadius_buf_ has to be chosen through deserialisation.") 15825 } 15826 pointRadius_buf = (pointRadius_buf_ as number | Resource) 15827 } 15828 const pointRadius_result : number | Resource | undefined = pointRadius_buf 15829 const unselectedColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15830 let unselectedColor_buf : ResourceColor | undefined 15831 if ((RuntimeType.UNDEFINED) != (unselectedColor_buf_runtimeType)) 15832 { 15833 const unselectedColor_buf__selector : int32 = valueDeserializer.readInt8() 15834 let unselectedColor_buf_ : Color | number | string | Resource | undefined 15835 if (unselectedColor_buf__selector == 0) { 15836 unselectedColor_buf_ = (valueDeserializer.readInt32() as Color) 15837 } 15838 else if (unselectedColor_buf__selector == 1) { 15839 unselectedColor_buf_ = (valueDeserializer.readNumber() as number) 15840 } 15841 else if (unselectedColor_buf__selector == 2) { 15842 unselectedColor_buf_ = (valueDeserializer.readString() as string) 15843 } 15844 else if (unselectedColor_buf__selector == 3) { 15845 unselectedColor_buf_ = valueDeserializer.readResource() 15846 } 15847 else { 15848 throw new Error("One of the branches for unselectedColor_buf_ has to be chosen through deserialisation.") 15849 } 15850 unselectedColor_buf = (unselectedColor_buf_ as Color | number | string | Resource) 15851 } 15852 const unselectedColor_result : ResourceColor | undefined = unselectedColor_buf 15853 const pointColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15854 let pointColor_buf : ResourceColor | undefined 15855 if ((RuntimeType.UNDEFINED) != (pointColor_buf_runtimeType)) 15856 { 15857 const pointColor_buf__selector : int32 = valueDeserializer.readInt8() 15858 let pointColor_buf_ : Color | number | string | Resource | undefined 15859 if (pointColor_buf__selector == 0) { 15860 pointColor_buf_ = (valueDeserializer.readInt32() as Color) 15861 } 15862 else if (pointColor_buf__selector == 1) { 15863 pointColor_buf_ = (valueDeserializer.readNumber() as number) 15864 } 15865 else if (pointColor_buf__selector == 2) { 15866 pointColor_buf_ = (valueDeserializer.readString() as string) 15867 } 15868 else if (pointColor_buf__selector == 3) { 15869 pointColor_buf_ = valueDeserializer.readResource() 15870 } 15871 else { 15872 throw new Error("One of the branches for pointColor_buf_ has to be chosen through deserialisation.") 15873 } 15874 pointColor_buf = (pointColor_buf_ as Color | number | string | Resource) 15875 } 15876 const pointColor_result : ResourceColor | undefined = pointColor_buf 15877 const trackBorderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15878 let trackBorderRadius_buf : number | Resource | undefined 15879 if ((RuntimeType.UNDEFINED) != (trackBorderRadius_buf_runtimeType)) 15880 { 15881 const trackBorderRadius_buf__selector : int32 = valueDeserializer.readInt8() 15882 let trackBorderRadius_buf_ : number | Resource | undefined 15883 if (trackBorderRadius_buf__selector == 0) { 15884 trackBorderRadius_buf_ = (valueDeserializer.readNumber() as number) 15885 } 15886 else if (trackBorderRadius_buf__selector == 1) { 15887 trackBorderRadius_buf_ = valueDeserializer.readResource() 15888 } 15889 else { 15890 throw new Error("One of the branches for trackBorderRadius_buf_ has to be chosen through deserialisation.") 15891 } 15892 trackBorderRadius_buf = (trackBorderRadius_buf_ as number | Resource) 15893 } 15894 const trackBorderRadius_result : number | Resource | undefined = trackBorderRadius_buf 15895 let value : SwitchStyle = ({pointRadius: pointRadius_result, unselectedColor: unselectedColor_result, pointColor: pointColor_result, trackBorderRadius: trackBorderRadius_result} as SwitchStyle) 15896 return value 15897 } 15898 readToggleOptions(): ToggleOptions { 15899 let valueDeserializer : Deserializer = this 15900 const type_result : ToggleType = (valueDeserializer.readInt32() as ToggleType) 15901 const isOn_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15902 let isOn_buf : boolean | undefined 15903 if ((RuntimeType.UNDEFINED) != (isOn_buf_runtimeType)) 15904 { 15905 isOn_buf = valueDeserializer.readBoolean() 15906 } 15907 const isOn_result : boolean | undefined = isOn_buf 15908 let value : ToggleOptions = ({type: type_result, isOn: isOn_result} as ToggleOptions) 15909 return value 15910 } 15911 readTimePickerResult(): TimePickerResult { 15912 let valueDeserializer : Deserializer = this 15913 const hour_result : number = (valueDeserializer.readNumber() as number) 15914 const minute_result : number = (valueDeserializer.readNumber() as number) 15915 const second_result : number = (valueDeserializer.readNumber() as number) 15916 let value : TimePickerResult = ({hour: hour_result, minute: minute_result, second: second_result} as TimePickerResult) 15917 return value 15918 } 15919 readTimePickerOptions(): TimePickerOptions { 15920 let valueDeserializer : Deserializer = this 15921 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15922 let selected_buf : Date | undefined 15923 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 15924 { 15925 selected_buf = new Date(valueDeserializer.readInt64()) 15926 } 15927 const selected_result : Date | undefined = selected_buf 15928 const format_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15929 let format_buf : TimePickerFormat | undefined 15930 if ((RuntimeType.UNDEFINED) != (format_buf_runtimeType)) 15931 { 15932 format_buf = (valueDeserializer.readInt32() as TimePickerFormat) 15933 } 15934 const format_result : TimePickerFormat | undefined = format_buf 15935 let value : TimePickerOptions = ({selected: selected_result, format: format_result} as TimePickerOptions) 15936 return value 15937 } 15938 readTextTimerOptions(): TextTimerOptions { 15939 let valueDeserializer : Deserializer = this 15940 const isCountDown_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15941 let isCountDown_buf : boolean | undefined 15942 if ((RuntimeType.UNDEFINED) != (isCountDown_buf_runtimeType)) 15943 { 15944 isCountDown_buf = valueDeserializer.readBoolean() 15945 } 15946 const isCountDown_result : boolean | undefined = isCountDown_buf 15947 const count_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15948 let count_buf : number | undefined 15949 if ((RuntimeType.UNDEFINED) != (count_buf_runtimeType)) 15950 { 15951 count_buf = (valueDeserializer.readNumber() as number) 15952 } 15953 const count_result : number | undefined = count_buf 15954 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 15955 let controller_buf : TextTimerController | undefined 15956 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 15957 { 15958 controller_buf = (valueDeserializer.readTextTimerController() as TextTimerController) 15959 } 15960 const controller_result : TextTimerController | undefined = controller_buf 15961 let value : TextTimerOptions = ({isCountDown: isCountDown_result, count: count_result, controller: controller_result} as TextTimerOptions) 15962 return value 15963 } 15964 readTextPickerResult(): TextPickerResult { 15965 let valueDeserializer : Deserializer = this 15966 const value_buf_selector : int32 = valueDeserializer.readInt8() 15967 let value_buf : string | Array<string> | undefined 15968 if (value_buf_selector == 0) { 15969 value_buf = (valueDeserializer.readString() as string) 15970 } 15971 else if (value_buf_selector == 1) { 15972 const value_buf_u_length : int32 = valueDeserializer.readInt32() 15973 let value_buf_u : Array<string> = new Array<string>(value_buf_u_length) 15974 for (let value_buf_u_i = 0; value_buf_u_i < value_buf_u_length; value_buf_u_i++) { 15975 value_buf_u[value_buf_u_i] = (valueDeserializer.readString() as string) 15976 } 15977 value_buf = value_buf_u 15978 } 15979 else { 15980 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 15981 } 15982 const value_result : string | Array<string> = (value_buf as string | Array<string>) 15983 const index_buf_selector : int32 = valueDeserializer.readInt8() 15984 let index_buf : number | Array<number> | undefined 15985 if (index_buf_selector == 0) { 15986 index_buf = (valueDeserializer.readNumber() as number) 15987 } 15988 else if (index_buf_selector == 1) { 15989 const index_buf_u_length : int32 = valueDeserializer.readInt32() 15990 let index_buf_u : Array<number> = new Array<number>(index_buf_u_length) 15991 for (let index_buf_u_i = 0; index_buf_u_i < index_buf_u_length; index_buf_u_i++) { 15992 index_buf_u[index_buf_u_i] = (valueDeserializer.readNumber() as number) 15993 } 15994 index_buf = index_buf_u 15995 } 15996 else { 15997 throw new Error("One of the branches for index_buf has to be chosen through deserialisation.") 15998 } 15999 const index_result : number | Array<number> = (index_buf as number | Array<number>) 16000 let value : TextPickerResult = ({value: value_result, index: index_result} as TextPickerResult) 16001 return value 16002 } 16003 readType_TextPickerAttribute_onChange_callback(isSync: boolean = false): ((value: string | Array<string>,index: number | Array<number>) => void) { 16004 const _resource : CallbackResource = this.readCallbackResource() 16005 const _call : KPointer = this.readPointer() 16006 const _callSync : KPointer = this.readPointer() 16007 return (value: string | Array<string>, index: number | Array<number>):void => { 16008 const _argsSerializer : Serializer = Serializer.hold(); 16009 _argsSerializer.writeInt32(_resource.resourceId); 16010 _argsSerializer.writePointer(_call); 16011 _argsSerializer.writePointer(_callSync); 16012 let value_type : int32 = RuntimeType.UNDEFINED; 16013 value_type = runtimeType(value); 16014 if (RuntimeType.STRING == value_type) { 16015 _argsSerializer.writeInt8(0 as int32); 16016 const value_0 = value as string; 16017 _argsSerializer.writeString(value_0); 16018 } 16019 else if (RuntimeType.OBJECT == value_type) { 16020 _argsSerializer.writeInt8(1 as int32); 16021 const value_1 = value as Array<string>; 16022 _argsSerializer.writeInt32(value_1.length as int32); 16023 for (let i = 0; i < value_1.length; i++) { 16024 const value_1_element : string = value_1[i]; 16025 _argsSerializer.writeString(value_1_element); 16026 } 16027 } 16028 let index_type : int32 = RuntimeType.UNDEFINED; 16029 index_type = runtimeType(index); 16030 if (RuntimeType.NUMBER == index_type) { 16031 _argsSerializer.writeInt8(0 as int32); 16032 const index_0 = index as number; 16033 _argsSerializer.writeNumber(index_0); 16034 } 16035 else if (RuntimeType.OBJECT == index_type) { 16036 _argsSerializer.writeInt8(1 as int32); 16037 const index_1 = index as Array<number>; 16038 _argsSerializer.writeInt32(index_1.length as int32); 16039 for (let i = 0; i < index_1.length; i++) { 16040 const index_1_element : number = index_1[i]; 16041 _argsSerializer.writeNumber(index_1_element); 16042 } 16043 } 16044 (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asBuffer(), _argsSerializer.length())); 16045 _argsSerializer.release(); 16046 return; } 16047 } 16048 readCallback_String_Number_Void(isSync: boolean = false): ((value: string,index: number) => void) { 16049 const _resource : CallbackResource = this.readCallbackResource() 16050 const _call : KPointer = this.readPointer() 16051 const _callSync : KPointer = this.readPointer() 16052 return (value: string, index: number):void => { 16053 const _argsSerializer : Serializer = Serializer.hold(); 16054 _argsSerializer.writeInt32(_resource.resourceId); 16055 _argsSerializer.writePointer(_call); 16056 _argsSerializer.writePointer(_callSync); 16057 _argsSerializer.writeString(value); 16058 _argsSerializer.writeNumber(index); 16059 (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asBuffer(), _argsSerializer.length())); 16060 _argsSerializer.release(); 16061 return; } 16062 } 16063 readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { 16064 let valueDeserializer : Deserializer = this 16065 const text_buf_selector : int32 = valueDeserializer.readInt8() 16066 let text_buf : string | Resource | undefined 16067 if (text_buf_selector == 0) { 16068 text_buf = (valueDeserializer.readString() as string) 16069 } 16070 else if (text_buf_selector == 1) { 16071 text_buf = valueDeserializer.readResource() 16072 } 16073 else { 16074 throw new Error("One of the branches for text_buf has to be chosen through deserialisation.") 16075 } 16076 const text_result : string | Resource = (text_buf as string | Resource) 16077 const children_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16078 let children_buf : Array<TextCascadePickerRangeContent> | undefined 16079 if ((RuntimeType.UNDEFINED) != (children_buf_runtimeType)) 16080 { 16081 const children_buf__length : int32 = valueDeserializer.readInt32() 16082 let children_buf_ : Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(children_buf__length) 16083 for (let children_buf__i = 0; children_buf__i < children_buf__length; children_buf__i++) { 16084 children_buf_[children_buf__i] = valueDeserializer.readTextCascadePickerRangeContent() 16085 } 16086 children_buf = children_buf_ 16087 } 16088 const children_result : Array<TextCascadePickerRangeContent> | undefined = children_buf 16089 let value : TextCascadePickerRangeContent = ({text: text_result, children: children_result} as TextCascadePickerRangeContent) 16090 return value 16091 } 16092 readTextPickerRangeContent(): TextPickerRangeContent { 16093 let valueDeserializer : Deserializer = this 16094 const icon_buf_selector : int32 = valueDeserializer.readInt8() 16095 let icon_buf : string | Resource | undefined 16096 if (icon_buf_selector == 0) { 16097 icon_buf = (valueDeserializer.readString() as string) 16098 } 16099 else if (icon_buf_selector == 1) { 16100 icon_buf = valueDeserializer.readResource() 16101 } 16102 else { 16103 throw new Error("One of the branches for icon_buf has to be chosen through deserialisation.") 16104 } 16105 const icon_result : string | Resource = (icon_buf as string | Resource) 16106 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16107 let text_buf : string | Resource | undefined 16108 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 16109 { 16110 const text_buf__selector : int32 = valueDeserializer.readInt8() 16111 let text_buf_ : string | Resource | undefined 16112 if (text_buf__selector == 0) { 16113 text_buf_ = (valueDeserializer.readString() as string) 16114 } 16115 else if (text_buf__selector == 1) { 16116 text_buf_ = valueDeserializer.readResource() 16117 } 16118 else { 16119 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 16120 } 16121 text_buf = (text_buf_ as string | Resource) 16122 } 16123 const text_result : string | Resource | undefined = text_buf 16124 let value : TextPickerRangeContent = ({icon: icon_result, text: text_result} as TextPickerRangeContent) 16125 return value 16126 } 16127 readTextPickerOptions(): TextPickerOptions { 16128 let valueDeserializer : Deserializer = this 16129 const range_buf_selector : int32 = valueDeserializer.readInt8() 16130 let range_buf : Array<string> | Array<Array<string>> | Resource | Array<TextPickerRangeContent> | Array<TextCascadePickerRangeContent> | undefined 16131 if (range_buf_selector == 0) { 16132 const range_buf_u_length : int32 = valueDeserializer.readInt32() 16133 let range_buf_u : Array<string> = new Array<string>(range_buf_u_length) 16134 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16135 range_buf_u[range_buf_u_i] = (valueDeserializer.readString() as string) 16136 } 16137 range_buf = range_buf_u 16138 } 16139 else if (range_buf_selector == 1) { 16140 const range_buf_u_length : int32 = valueDeserializer.readInt32() 16141 let range_buf_u : Array<Array<string>> = new Array<Array<string>>(range_buf_u_length) 16142 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16143 const range_buf_u_buf_length : int32 = valueDeserializer.readInt32() 16144 let range_buf_u_buf : Array<string> = new Array<string>(range_buf_u_buf_length) 16145 for (let range_buf_u_buf_i = 0; range_buf_u_buf_i < range_buf_u_buf_length; range_buf_u_buf_i++) { 16146 range_buf_u_buf[range_buf_u_buf_i] = (valueDeserializer.readString() as string) 16147 } 16148 range_buf_u[range_buf_u_i] = range_buf_u_buf 16149 } 16150 range_buf = range_buf_u 16151 } 16152 else if (range_buf_selector == 2) { 16153 range_buf = valueDeserializer.readResource() 16154 } 16155 else if (range_buf_selector == 3) { 16156 const range_buf_u_length : int32 = valueDeserializer.readInt32() 16157 let range_buf_u : Array<TextPickerRangeContent> = new Array<TextPickerRangeContent>(range_buf_u_length) 16158 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16159 range_buf_u[range_buf_u_i] = valueDeserializer.readTextPickerRangeContent() 16160 } 16161 range_buf = range_buf_u 16162 } 16163 else if (range_buf_selector == 4) { 16164 const range_buf_u_length : int32 = valueDeserializer.readInt32() 16165 let range_buf_u : Array<TextCascadePickerRangeContent> = new Array<TextCascadePickerRangeContent>(range_buf_u_length) 16166 for (let range_buf_u_i = 0; range_buf_u_i < range_buf_u_length; range_buf_u_i++) { 16167 range_buf_u[range_buf_u_i] = valueDeserializer.readTextCascadePickerRangeContent() 16168 } 16169 range_buf = range_buf_u 16170 } 16171 else { 16172 throw new Error("One of the branches for range_buf has to be chosen through deserialisation.") 16173 } 16174 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>) 16175 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16176 let value_buf : string | Array<string> | undefined 16177 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 16178 { 16179 const value_buf__selector : int32 = valueDeserializer.readInt8() 16180 let value_buf_ : string | Array<string> | undefined 16181 if (value_buf__selector == 0) { 16182 value_buf_ = (valueDeserializer.readString() as string) 16183 } 16184 else if (value_buf__selector == 1) { 16185 const value_buf__u_length : int32 = valueDeserializer.readInt32() 16186 let value_buf__u : Array<string> = new Array<string>(value_buf__u_length) 16187 for (let value_buf__u_i = 0; value_buf__u_i < value_buf__u_length; value_buf__u_i++) { 16188 value_buf__u[value_buf__u_i] = (valueDeserializer.readString() as string) 16189 } 16190 value_buf_ = value_buf__u 16191 } 16192 else { 16193 throw new Error("One of the branches for value_buf_ has to be chosen through deserialisation.") 16194 } 16195 value_buf = (value_buf_ as string | Array<string>) 16196 } 16197 const value_result : string | Array<string> | undefined = value_buf 16198 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16199 let selected_buf : number | Array<number> | undefined 16200 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 16201 { 16202 const selected_buf__selector : int32 = valueDeserializer.readInt8() 16203 let selected_buf_ : number | Array<number> | undefined 16204 if (selected_buf__selector == 0) { 16205 selected_buf_ = (valueDeserializer.readNumber() as number) 16206 } 16207 else if (selected_buf__selector == 1) { 16208 const selected_buf__u_length : int32 = valueDeserializer.readInt32() 16209 let selected_buf__u : Array<number> = new Array<number>(selected_buf__u_length) 16210 for (let selected_buf__u_i = 0; selected_buf__u_i < selected_buf__u_length; selected_buf__u_i++) { 16211 selected_buf__u[selected_buf__u_i] = (valueDeserializer.readNumber() as number) 16212 } 16213 selected_buf_ = selected_buf__u 16214 } 16215 else { 16216 throw new Error("One of the branches for selected_buf_ has to be chosen through deserialisation.") 16217 } 16218 selected_buf = (selected_buf_ as number | Array<number>) 16219 } 16220 const selected_result : number | Array<number> | undefined = selected_buf 16221 let value : TextPickerOptions = ({range: range_result, value: value_result, selected: selected_result} as TextPickerOptions) 16222 return value 16223 } 16224 readPasswordIcon(): PasswordIcon { 16225 let valueDeserializer : Deserializer = this 16226 const onIconSrc_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16227 let onIconSrc_buf : string | Resource | undefined 16228 if ((RuntimeType.UNDEFINED) != (onIconSrc_buf_runtimeType)) 16229 { 16230 const onIconSrc_buf__selector : int32 = valueDeserializer.readInt8() 16231 let onIconSrc_buf_ : string | Resource | undefined 16232 if (onIconSrc_buf__selector == 0) { 16233 onIconSrc_buf_ = (valueDeserializer.readString() as string) 16234 } 16235 else if (onIconSrc_buf__selector == 1) { 16236 onIconSrc_buf_ = valueDeserializer.readResource() 16237 } 16238 else { 16239 throw new Error("One of the branches for onIconSrc_buf_ has to be chosen through deserialisation.") 16240 } 16241 onIconSrc_buf = (onIconSrc_buf_ as string | Resource) 16242 } 16243 const onIconSrc_result : string | Resource | undefined = onIconSrc_buf 16244 const offIconSrc_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16245 let offIconSrc_buf : string | Resource | undefined 16246 if ((RuntimeType.UNDEFINED) != (offIconSrc_buf_runtimeType)) 16247 { 16248 const offIconSrc_buf__selector : int32 = valueDeserializer.readInt8() 16249 let offIconSrc_buf_ : string | Resource | undefined 16250 if (offIconSrc_buf__selector == 0) { 16251 offIconSrc_buf_ = (valueDeserializer.readString() as string) 16252 } 16253 else if (offIconSrc_buf__selector == 1) { 16254 offIconSrc_buf_ = valueDeserializer.readResource() 16255 } 16256 else { 16257 throw new Error("One of the branches for offIconSrc_buf_ has to be chosen through deserialisation.") 16258 } 16259 offIconSrc_buf = (offIconSrc_buf_ as string | Resource) 16260 } 16261 const offIconSrc_result : string | Resource | undefined = offIconSrc_buf 16262 let value : PasswordIcon = ({onIconSrc: onIconSrc_result, offIconSrc: offIconSrc_result} as PasswordIcon) 16263 return value 16264 } 16265 readOnSubmitCallback(isSync: boolean = false): OnSubmitCallback { 16266 const _resource : CallbackResource = this.readCallbackResource() 16267 const _call : KPointer = this.readPointer() 16268 const _callSync : KPointer = this.readPointer() 16269 return (enterKey: EnterKeyType, event: SubmitEvent):void => { 16270 const _argsSerializer : Serializer = Serializer.hold(); 16271 _argsSerializer.writeInt32(_resource.resourceId); 16272 _argsSerializer.writePointer(_call); 16273 _argsSerializer.writePointer(_callSync); 16274 _argsSerializer.writeInt32(enterKey.valueOf()); 16275 _argsSerializer.writeSubmitEvent(event); 16276 (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asBuffer(), _argsSerializer.length())); 16277 _argsSerializer.release(); 16278 return; } 16279 } 16280 readTextInputOptions(): TextInputOptions { 16281 let valueDeserializer : Deserializer = this 16282 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16283 let placeholder_buf : ResourceStr | undefined 16284 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 16285 { 16286 const placeholder_buf__selector : int32 = valueDeserializer.readInt8() 16287 let placeholder_buf_ : string | Resource | undefined 16288 if (placeholder_buf__selector == 0) { 16289 placeholder_buf_ = (valueDeserializer.readString() as string) 16290 } 16291 else if (placeholder_buf__selector == 1) { 16292 placeholder_buf_ = valueDeserializer.readResource() 16293 } 16294 else { 16295 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 16296 } 16297 placeholder_buf = (placeholder_buf_ as string | Resource) 16298 } 16299 const placeholder_result : ResourceStr | undefined = placeholder_buf 16300 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16301 let text_buf : ResourceStr | undefined 16302 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 16303 { 16304 const text_buf__selector : int32 = valueDeserializer.readInt8() 16305 let text_buf_ : string | Resource | undefined 16306 if (text_buf__selector == 0) { 16307 text_buf_ = (valueDeserializer.readString() as string) 16308 } 16309 else if (text_buf__selector == 1) { 16310 text_buf_ = valueDeserializer.readResource() 16311 } 16312 else { 16313 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 16314 } 16315 text_buf = (text_buf_ as string | Resource) 16316 } 16317 const text_result : ResourceStr | undefined = text_buf 16318 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16319 let controller_buf : TextInputController | undefined 16320 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16321 { 16322 controller_buf = (valueDeserializer.readTextInputController() as TextInputController) 16323 } 16324 const controller_result : TextInputController | undefined = controller_buf 16325 let value : TextInputOptions = ({placeholder: placeholder_result, text: text_result, controller: controller_result} as TextInputOptions) 16326 return value 16327 } 16328 readTextBox(): TextBox { 16329 let valueDeserializer : Deserializer = this 16330 const _TextBoxStub_result : string = (valueDeserializer.readString() as string) 16331 let value : TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) 16332 return value 16333 } 16334 readStyledStringController(): StyledStringController { 16335 let valueDeserializer : Deserializer = this 16336 let ptr : KPointer = valueDeserializer.readPointer() 16337 return StyledStringControllerInternal.fromPtr(ptr) 16338 } 16339 readTextEditControllerEx(): TextEditControllerEx { 16340 let valueDeserializer : Deserializer = this 16341 let ptr : KPointer = valueDeserializer.readPointer() 16342 return TextEditControllerExInternal.fromPtr(ptr) 16343 } 16344 readTextBaseController(): TextBaseController { 16345 let valueDeserializer : Deserializer = this 16346 let ptr : KPointer = valueDeserializer.readPointer() 16347 return TextBaseControllerInternal.fromPtr(ptr) 16348 } 16349 readTextClockOptions(): TextClockOptions { 16350 let valueDeserializer : Deserializer = this 16351 const timeZoneOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16352 let timeZoneOffset_buf : number | undefined 16353 if ((RuntimeType.UNDEFINED) != (timeZoneOffset_buf_runtimeType)) 16354 { 16355 timeZoneOffset_buf = (valueDeserializer.readNumber() as number) 16356 } 16357 const timeZoneOffset_result : number | undefined = timeZoneOffset_buf 16358 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16359 let controller_buf : TextClockController | undefined 16360 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16361 { 16362 controller_buf = (valueDeserializer.readTextClockController() as TextClockController) 16363 } 16364 const controller_result : TextClockController | undefined = controller_buf 16365 let value : TextClockOptions = ({timeZoneOffset: timeZoneOffset_result, controller: controller_result} as TextClockOptions) 16366 return value 16367 } 16368 readCallback_String_PasteEvent_Void(isSync: boolean = false): ((value: string,event: PasteEvent) => void) { 16369 const _resource : CallbackResource = this.readCallbackResource() 16370 const _call : KPointer = this.readPointer() 16371 const _callSync : KPointer = this.readPointer() 16372 return (value: string, event: PasteEvent):void => { 16373 const _argsSerializer : Serializer = Serializer.hold(); 16374 _argsSerializer.writeInt32(_resource.resourceId); 16375 _argsSerializer.writePointer(_call); 16376 _argsSerializer.writePointer(_callSync); 16377 _argsSerializer.writeString(value); 16378 _argsSerializer.writePasteEvent(event); 16379 (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asBuffer(), _argsSerializer.length())); 16380 _argsSerializer.release(); 16381 return; } 16382 } 16383 readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { 16384 const _resource : CallbackResource = this.readCallbackResource() 16385 const _call : KPointer = this.readPointer() 16386 const _callSync : KPointer = this.readPointer() 16387 return (enterKey: EnterKeyType):void => { 16388 const _argsSerializer : Serializer = Serializer.hold(); 16389 _argsSerializer.writeInt32(_resource.resourceId); 16390 _argsSerializer.writePointer(_call); 16391 _argsSerializer.writePointer(_callSync); 16392 _argsSerializer.writeInt32(enterKey.valueOf()); 16393 (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asBuffer(), _argsSerializer.length())); 16394 _argsSerializer.release(); 16395 return; } 16396 } 16397 readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { 16398 const _resource : CallbackResource = this.readCallbackResource() 16399 const _call : KPointer = this.readPointer() 16400 const _callSync : KPointer = this.readPointer() 16401 return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined):void => { 16402 const _argsSerializer : Serializer = Serializer.hold(); 16403 _argsSerializer.writeInt32(_resource.resourceId); 16404 _argsSerializer.writePointer(_call); 16405 _argsSerializer.writePointer(_callSync); 16406 _argsSerializer.writeInt32(enterKeyType.valueOf()); 16407 let event_type : int32 = RuntimeType.UNDEFINED; 16408 event_type = runtimeType(event); 16409 _argsSerializer.writeInt8(event_type as int32); 16410 if ((RuntimeType.UNDEFINED) != (event_type)) { 16411 const event_value = event!; 16412 _argsSerializer.writeSubmitEvent(event_value); 16413 } 16414 (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asBuffer(), _argsSerializer.length())); 16415 _argsSerializer.release(); 16416 return; } 16417 } 16418 readTextAreaOptions(): TextAreaOptions { 16419 let valueDeserializer : Deserializer = this 16420 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16421 let placeholder_buf : ResourceStr | undefined 16422 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 16423 { 16424 const placeholder_buf__selector : int32 = valueDeserializer.readInt8() 16425 let placeholder_buf_ : string | Resource | undefined 16426 if (placeholder_buf__selector == 0) { 16427 placeholder_buf_ = (valueDeserializer.readString() as string) 16428 } 16429 else if (placeholder_buf__selector == 1) { 16430 placeholder_buf_ = valueDeserializer.readResource() 16431 } 16432 else { 16433 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 16434 } 16435 placeholder_buf = (placeholder_buf_ as string | Resource) 16436 } 16437 const placeholder_result : ResourceStr | undefined = placeholder_buf 16438 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16439 let text_buf : ResourceStr | undefined 16440 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 16441 { 16442 const text_buf__selector : int32 = valueDeserializer.readInt8() 16443 let text_buf_ : string | Resource | undefined 16444 if (text_buf__selector == 0) { 16445 text_buf_ = (valueDeserializer.readString() as string) 16446 } 16447 else if (text_buf__selector == 1) { 16448 text_buf_ = valueDeserializer.readResource() 16449 } 16450 else { 16451 throw new Error("One of the branches for text_buf_ has to be chosen through deserialisation.") 16452 } 16453 text_buf = (text_buf_ as string | Resource) 16454 } 16455 const text_result : ResourceStr | undefined = text_buf 16456 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16457 let controller_buf : TextAreaController | undefined 16458 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16459 { 16460 controller_buf = (valueDeserializer.readTextAreaController() as TextAreaController) 16461 } 16462 const controller_result : TextAreaController | undefined = controller_buf 16463 let value : TextAreaOptions = ({placeholder: placeholder_result, text: text_result, controller: controller_result} as TextAreaOptions) 16464 return value 16465 } 16466 readTextOverflowOptions(): TextOverflowOptions { 16467 let valueDeserializer : Deserializer = this 16468 const overflow_result : TextOverflow = (valueDeserializer.readInt32() as TextOverflow) 16469 let value : TextOverflowOptions = ({overflow: overflow_result} as TextOverflowOptions) 16470 return value 16471 } 16472 readTextOptions(): TextOptions { 16473 let valueDeserializer : Deserializer = this 16474 const controller_result : TextController = (valueDeserializer.readTextController() as TextController) 16475 let value : TextOptions = ({controller: controller_result} as TextOptions) 16476 return value 16477 } 16478 readBarGridColumnOptions(): BarGridColumnOptions { 16479 let valueDeserializer : Deserializer = this 16480 const sm_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16481 let sm_buf : number | undefined 16482 if ((RuntimeType.UNDEFINED) != (sm_buf_runtimeType)) 16483 { 16484 sm_buf = (valueDeserializer.readNumber() as number) 16485 } 16486 const sm_result : number | undefined = sm_buf 16487 const md_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16488 let md_buf : number | undefined 16489 if ((RuntimeType.UNDEFINED) != (md_buf_runtimeType)) 16490 { 16491 md_buf = (valueDeserializer.readNumber() as number) 16492 } 16493 const md_result : number | undefined = md_buf 16494 const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16495 let lg_buf : number | undefined 16496 if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) 16497 { 16498 lg_buf = (valueDeserializer.readNumber() as number) 16499 } 16500 const lg_result : number | undefined = lg_buf 16501 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16502 let margin_buf : Dimension | undefined 16503 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 16504 { 16505 margin_buf = (valueDeserializer.readLength() as Dimension) 16506 } 16507 const margin_result : Dimension | undefined = margin_buf 16508 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16509 let gutter_buf : Dimension | undefined 16510 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 16511 { 16512 gutter_buf = (valueDeserializer.readLength() as Dimension) 16513 } 16514 const gutter_result : Dimension | undefined = gutter_buf 16515 let value : BarGridColumnOptions = ({sm: sm_result, md: md_result, lg: lg_result, margin: margin_result, gutter: gutter_result} as BarGridColumnOptions) 16516 return value 16517 } 16518 readOnTabsContentWillChangeCallback(isSync: boolean = false): OnTabsContentWillChangeCallback { 16519 const _resource : CallbackResource = this.readCallbackResource() 16520 const _call : KPointer = this.readPointer() 16521 const _callSync : KPointer = this.readPointer() 16522 return (currentIndex: number, comingIndex: number):boolean => { 16523 const _argsSerializer : Serializer = Serializer.hold(); 16524 _argsSerializer.writeInt32(_resource.resourceId); 16525 _argsSerializer.writePointer(_call); 16526 _argsSerializer.writePointer(_callSync); 16527 _argsSerializer.writeNumber(currentIndex); 16528 _argsSerializer.writeNumber(comingIndex); 16529 let _continuationValue : boolean | undefined; 16530 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 16531 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16532 (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asBuffer(), _argsSerializer.length())); 16533 _argsSerializer.release(); 16534 return (_continuationValue as boolean); } 16535 } 16536 readTabContentTransitionProxy(): TabContentTransitionProxy { 16537 let valueDeserializer : Deserializer = this 16538 let ptr : KPointer = valueDeserializer.readPointer() 16539 return TabContentTransitionProxyInternal.fromPtr(ptr) 16540 } 16541 readTabsCustomContentTransitionCallback(isSync: boolean = false): TabsCustomContentTransitionCallback { 16542 const _resource : CallbackResource = this.readCallbackResource() 16543 const _call : KPointer = this.readPointer() 16544 const _callSync : KPointer = this.readPointer() 16545 return (from: number, to: number):TabContentAnimatedTransition | undefined => { 16546 const _argsSerializer : Serializer = Serializer.hold(); 16547 _argsSerializer.writeInt32(_resource.resourceId); 16548 _argsSerializer.writePointer(_call); 16549 _argsSerializer.writePointer(_callSync); 16550 _argsSerializer.writeNumber(from); 16551 _argsSerializer.writeNumber(to); 16552 let _continuationValue : TabContentAnimatedTransition | undefined; 16553 const _continuationCallback : ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined):void => { _continuationValue = value; } 16554 _argsSerializer.holdAndWriteCallback(_continuationCallback); 16555 (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asBuffer(), _argsSerializer.length())); 16556 _argsSerializer.release(); 16557 return (_continuationValue as TabContentAnimatedTransition | undefined); } 16558 } 16559 readOnTabsGestureSwipeCallback(isSync: boolean = false): OnTabsGestureSwipeCallback { 16560 const _resource : CallbackResource = this.readCallbackResource() 16561 const _call : KPointer = this.readPointer() 16562 const _callSync : KPointer = this.readPointer() 16563 return (index: number, extraInfo: TabsAnimationEvent):void => { 16564 const _argsSerializer : Serializer = Serializer.hold(); 16565 _argsSerializer.writeInt32(_resource.resourceId); 16566 _argsSerializer.writePointer(_call); 16567 _argsSerializer.writePointer(_callSync); 16568 _argsSerializer.writeNumber(index); 16569 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16570 (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asBuffer(), _argsSerializer.length())); 16571 _argsSerializer.release(); 16572 return; } 16573 } 16574 readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { 16575 const _resource : CallbackResource = this.readCallbackResource() 16576 const _call : KPointer = this.readPointer() 16577 const _callSync : KPointer = this.readPointer() 16578 return (index: number, extraInfo: TabsAnimationEvent):void => { 16579 const _argsSerializer : Serializer = Serializer.hold(); 16580 _argsSerializer.writeInt32(_resource.resourceId); 16581 _argsSerializer.writePointer(_call); 16582 _argsSerializer.writePointer(_callSync); 16583 _argsSerializer.writeNumber(index); 16584 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16585 (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asBuffer(), _argsSerializer.length())); 16586 _argsSerializer.release(); 16587 return; } 16588 } 16589 readTabsAnimationEvent(): TabsAnimationEvent { 16590 let valueDeserializer : Deserializer = this 16591 const currentOffset_result : number = (valueDeserializer.readNumber() as number) 16592 const targetOffset_result : number = (valueDeserializer.readNumber() as number) 16593 const velocity_result : number = (valueDeserializer.readNumber() as number) 16594 let value : TabsAnimationEvent = ({currentOffset: currentOffset_result, targetOffset: targetOffset_result, velocity: velocity_result} as TabsAnimationEvent) 16595 return value 16596 } 16597 readOnTabsAnimationStartCallback(isSync: boolean = false): OnTabsAnimationStartCallback { 16598 const _resource : CallbackResource = this.readCallbackResource() 16599 const _call : KPointer = this.readPointer() 16600 const _callSync : KPointer = this.readPointer() 16601 return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent):void => { 16602 const _argsSerializer : Serializer = Serializer.hold(); 16603 _argsSerializer.writeInt32(_resource.resourceId); 16604 _argsSerializer.writePointer(_call); 16605 _argsSerializer.writePointer(_callSync); 16606 _argsSerializer.writeNumber(index); 16607 _argsSerializer.writeNumber(targetIndex); 16608 _argsSerializer.writeTabsAnimationEvent(extraInfo); 16609 (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asBuffer(), _argsSerializer.length())); 16610 _argsSerializer.release(); 16611 return; } 16612 } 16613 readTabsOptions(): TabsOptions { 16614 let valueDeserializer : Deserializer = this 16615 const barPosition_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16616 let barPosition_buf : BarPosition | undefined 16617 if ((RuntimeType.UNDEFINED) != (barPosition_buf_runtimeType)) 16618 { 16619 barPosition_buf = (valueDeserializer.readInt32() as BarPosition) 16620 } 16621 const barPosition_result : BarPosition | undefined = barPosition_buf 16622 const index_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16623 let index_buf : number | undefined 16624 if ((RuntimeType.UNDEFINED) != (index_buf_runtimeType)) 16625 { 16626 index_buf = (valueDeserializer.readNumber() as number) 16627 } 16628 const index_result : number | undefined = index_buf 16629 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16630 let controller_buf : TabsController | undefined 16631 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 16632 { 16633 controller_buf = (valueDeserializer.readTabsController() as TabsController) 16634 } 16635 const controller_result : TabsController | undefined = controller_buf 16636 let value : TabsOptions = ({barPosition: barPosition_result, index: index_result, controller: controller_result} as TabsOptions) 16637 return value 16638 } 16639 readPulseSymbolEffect(): PulseSymbolEffect { 16640 let valueDeserializer : Deserializer = this 16641 let ptr : KPointer = valueDeserializer.readPointer() 16642 return PulseSymbolEffectInternal.fromPtr(ptr) 16643 } 16644 readBounceSymbolEffect(): BounceSymbolEffect { 16645 let valueDeserializer : Deserializer = this 16646 let ptr : KPointer = valueDeserializer.readPointer() 16647 return BounceSymbolEffectInternal.fromPtr(ptr) 16648 } 16649 readDisappearSymbolEffect(): DisappearSymbolEffect { 16650 let valueDeserializer : Deserializer = this 16651 let ptr : KPointer = valueDeserializer.readPointer() 16652 return DisappearSymbolEffectInternal.fromPtr(ptr) 16653 } 16654 readAppearSymbolEffect(): AppearSymbolEffect { 16655 let valueDeserializer : Deserializer = this 16656 let ptr : KPointer = valueDeserializer.readPointer() 16657 return AppearSymbolEffectInternal.fromPtr(ptr) 16658 } 16659 readHierarchicalSymbolEffect(): HierarchicalSymbolEffect { 16660 let valueDeserializer : Deserializer = this 16661 let ptr : KPointer = valueDeserializer.readPointer() 16662 return HierarchicalSymbolEffectInternal.fromPtr(ptr) 16663 } 16664 readContentDidScrollCallback(isSync: boolean = false): ContentDidScrollCallback { 16665 const _resource : CallbackResource = this.readCallbackResource() 16666 const _call : KPointer = this.readPointer() 16667 const _callSync : KPointer = this.readPointer() 16668 return (selectedIndex: number, index: number, position: number, mainAxisLength: number):void => { 16669 const _argsSerializer : Serializer = Serializer.hold(); 16670 _argsSerializer.writeInt32(_resource.resourceId); 16671 _argsSerializer.writePointer(_call); 16672 _argsSerializer.writePointer(_callSync); 16673 _argsSerializer.writeNumber(selectedIndex); 16674 _argsSerializer.writeNumber(index); 16675 _argsSerializer.writeNumber(position); 16676 _argsSerializer.writeNumber(mainAxisLength); 16677 (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asBuffer(), _argsSerializer.length())); 16678 _argsSerializer.release(); 16679 return; } 16680 } 16681 readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { 16682 let valueDeserializer : Deserializer = this 16683 let ptr : KPointer = valueDeserializer.readPointer() 16684 return SwiperContentTransitionProxyInternal.fromPtr(ptr) 16685 } 16686 readSwiperContentAnimatedTransition(): SwiperContentAnimatedTransition { 16687 let valueDeserializer : Deserializer = this 16688 const timeout_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16689 let timeout_buf : number | undefined 16690 if ((RuntimeType.UNDEFINED) != (timeout_buf_runtimeType)) 16691 { 16692 timeout_buf = (valueDeserializer.readNumber() as number) 16693 } 16694 const timeout_result : number | undefined = timeout_buf 16695 const transition_result : ((parameter: SwiperContentTransitionProxy) => void) = valueDeserializer.readCallback_SwiperContentTransitionProxy_Void() 16696 let value : SwiperContentAnimatedTransition = ({timeout: timeout_result, transition: transition_result} as SwiperContentAnimatedTransition) 16697 return value 16698 } 16699 readIndicatorComponentController(): IndicatorComponentController { 16700 let valueDeserializer : Deserializer = this 16701 let ptr : KPointer = valueDeserializer.readPointer() 16702 return IndicatorComponentControllerInternal.fromPtr(ptr) 16703 } 16704 readOnSwiperGestureSwipeCallback(isSync: boolean = false): OnSwiperGestureSwipeCallback { 16705 const _resource : CallbackResource = this.readCallbackResource() 16706 const _call : KPointer = this.readPointer() 16707 const _callSync : KPointer = this.readPointer() 16708 return (index: number, extraInfo: SwiperAnimationEvent):void => { 16709 const _argsSerializer : Serializer = Serializer.hold(); 16710 _argsSerializer.writeInt32(_resource.resourceId); 16711 _argsSerializer.writePointer(_call); 16712 _argsSerializer.writePointer(_callSync); 16713 _argsSerializer.writeNumber(index); 16714 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16715 (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asBuffer(), _argsSerializer.length())); 16716 _argsSerializer.release(); 16717 return; } 16718 } 16719 readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { 16720 const _resource : CallbackResource = this.readCallbackResource() 16721 const _call : KPointer = this.readPointer() 16722 const _callSync : KPointer = this.readPointer() 16723 return (index: number, extraInfo: SwiperAnimationEvent):void => { 16724 const _argsSerializer : Serializer = Serializer.hold(); 16725 _argsSerializer.writeInt32(_resource.resourceId); 16726 _argsSerializer.writePointer(_call); 16727 _argsSerializer.writePointer(_callSync); 16728 _argsSerializer.writeNumber(index); 16729 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16730 (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asBuffer(), _argsSerializer.length())); 16731 _argsSerializer.release(); 16732 return; } 16733 } 16734 readSwiperAnimationEvent(): SwiperAnimationEvent { 16735 let valueDeserializer : Deserializer = this 16736 const currentOffset_result : number = (valueDeserializer.readNumber() as number) 16737 const targetOffset_result : number = (valueDeserializer.readNumber() as number) 16738 const velocity_result : number = (valueDeserializer.readNumber() as number) 16739 let value : SwiperAnimationEvent = ({currentOffset: currentOffset_result, targetOffset: targetOffset_result, velocity: velocity_result} as SwiperAnimationEvent) 16740 return value 16741 } 16742 readOnSwiperAnimationStartCallback(isSync: boolean = false): OnSwiperAnimationStartCallback { 16743 const _resource : CallbackResource = this.readCallbackResource() 16744 const _call : KPointer = this.readPointer() 16745 const _callSync : KPointer = this.readPointer() 16746 return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent):void => { 16747 const _argsSerializer : Serializer = Serializer.hold(); 16748 _argsSerializer.writeInt32(_resource.resourceId); 16749 _argsSerializer.writePointer(_call); 16750 _argsSerializer.writePointer(_callSync); 16751 _argsSerializer.writeNumber(index); 16752 _argsSerializer.writeNumber(targetIndex); 16753 _argsSerializer.writeSwiperAnimationEvent(extraInfo); 16754 (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asBuffer(), _argsSerializer.length())); 16755 _argsSerializer.release(); 16756 return; } 16757 } 16758 readSwiperController(): SwiperController { 16759 let valueDeserializer : Deserializer = this 16760 let ptr : KPointer = valueDeserializer.readPointer() 16761 return SwiperControllerInternal.fromPtr(ptr) 16762 } 16763 readStackOptions(): StackOptions { 16764 let valueDeserializer : Deserializer = this 16765 const alignContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16766 let alignContent_buf : Alignment | undefined 16767 if ((RuntimeType.UNDEFINED) != (alignContent_buf_runtimeType)) 16768 { 16769 alignContent_buf = (valueDeserializer.readInt32() as Alignment) 16770 } 16771 const alignContent_result : Alignment | undefined = alignContent_buf 16772 let value : StackOptions = ({alignContent: alignContent_result} as StackOptions) 16773 return value 16774 } 16775 readSlideRange(): SlideRange { 16776 let valueDeserializer : Deserializer = this 16777 const from_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16778 let from_buf : number | undefined 16779 if ((RuntimeType.UNDEFINED) != (from_buf_runtimeType)) 16780 { 16781 from_buf = (valueDeserializer.readNumber() as number) 16782 } 16783 const from_result : number | undefined = from_buf 16784 const to_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16785 let to_buf : number | undefined 16786 if ((RuntimeType.UNDEFINED) != (to_buf_runtimeType)) 16787 { 16788 to_buf = (valueDeserializer.readNumber() as number) 16789 } 16790 const to_result : number | undefined = to_buf 16791 let value : SlideRange = ({from: from_result, to: to_result} as SlideRange) 16792 return value 16793 } 16794 readSliderBlockStyle(): SliderBlockStyle { 16795 let valueDeserializer : Deserializer = this 16796 const type_result : SliderBlockType = (valueDeserializer.readInt32() as SliderBlockType) 16797 const image_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16798 let image_buf : ResourceStr | undefined 16799 if ((RuntimeType.UNDEFINED) != (image_buf_runtimeType)) 16800 { 16801 const image_buf__selector : int32 = valueDeserializer.readInt8() 16802 let image_buf_ : string | Resource | undefined 16803 if (image_buf__selector == 0) { 16804 image_buf_ = (valueDeserializer.readString() as string) 16805 } 16806 else if (image_buf__selector == 1) { 16807 image_buf_ = valueDeserializer.readResource() 16808 } 16809 else { 16810 throw new Error("One of the branches for image_buf_ has to be chosen through deserialisation.") 16811 } 16812 image_buf = (image_buf_ as string | Resource) 16813 } 16814 const image_result : ResourceStr | undefined = image_buf 16815 const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16816 let shape_buf : string | undefined 16817 if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) 16818 { 16819 shape_buf = (valueDeserializer.readString() as string) 16820 } 16821 const shape_result : string | undefined = shape_buf 16822 let value : SliderBlockStyle = ({type: type_result, image: image_result, shape: shape_result} as SliderBlockStyle) 16823 return value 16824 } 16825 readCallback_Number_SliderChangeMode_Void(isSync: boolean = false): ((value: number,mode: SliderChangeMode) => void) { 16826 const _resource : CallbackResource = this.readCallbackResource() 16827 const _call : KPointer = this.readPointer() 16828 const _callSync : KPointer = this.readPointer() 16829 return (value: number, mode: SliderChangeMode):void => { 16830 const _argsSerializer : Serializer = Serializer.hold(); 16831 _argsSerializer.writeInt32(_resource.resourceId); 16832 _argsSerializer.writePointer(_call); 16833 _argsSerializer.writePointer(_callSync); 16834 _argsSerializer.writeNumber(value); 16835 _argsSerializer.writeInt32(mode.valueOf()); 16836 (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asBuffer(), _argsSerializer.length())); 16837 _argsSerializer.release(); 16838 return; } 16839 } 16840 readSliderOptions(): SliderOptions { 16841 let valueDeserializer : Deserializer = this 16842 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16843 let value_buf : number | undefined 16844 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 16845 { 16846 value_buf = (valueDeserializer.readNumber() as number) 16847 } 16848 const value_result : number | undefined = value_buf 16849 const min_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16850 let min_buf : number | undefined 16851 if ((RuntimeType.UNDEFINED) != (min_buf_runtimeType)) 16852 { 16853 min_buf = (valueDeserializer.readNumber() as number) 16854 } 16855 const min_result : number | undefined = min_buf 16856 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16857 let max_buf : number | undefined 16858 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 16859 { 16860 max_buf = (valueDeserializer.readNumber() as number) 16861 } 16862 const max_result : number | undefined = max_buf 16863 const step_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16864 let step_buf : number | undefined 16865 if ((RuntimeType.UNDEFINED) != (step_buf_runtimeType)) 16866 { 16867 step_buf = (valueDeserializer.readNumber() as number) 16868 } 16869 const step_result : number | undefined = step_buf 16870 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16871 let style_buf : SliderStyle | undefined 16872 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 16873 { 16874 style_buf = (valueDeserializer.readInt32() as SliderStyle) 16875 } 16876 const style_result : SliderStyle | undefined = style_buf 16877 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16878 let direction_buf : Axis | undefined 16879 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 16880 { 16881 direction_buf = (valueDeserializer.readInt32() as Axis) 16882 } 16883 const direction_result : Axis | undefined = direction_buf 16884 const reverse_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16885 let reverse_buf : boolean | undefined 16886 if ((RuntimeType.UNDEFINED) != (reverse_buf_runtimeType)) 16887 { 16888 reverse_buf = valueDeserializer.readBoolean() 16889 } 16890 const reverse_result : boolean | undefined = reverse_buf 16891 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) 16892 return value 16893 } 16894 readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { 16895 const _resource : CallbackResource = this.readCallbackResource() 16896 const _call : KPointer = this.readPointer() 16897 const _callSync : KPointer = this.readPointer() 16898 return (value: number, mode: SliderChangeMode):void => { 16899 const _argsSerializer : Serializer = Serializer.hold(); 16900 _argsSerializer.writeInt32(_resource.resourceId); 16901 _argsSerializer.writePointer(_call); 16902 _argsSerializer.writePointer(_callSync); 16903 _argsSerializer.writeNumber(value); 16904 _argsSerializer.writeInt32(mode.valueOf()); 16905 (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asBuffer(), _argsSerializer.length())); 16906 _argsSerializer.release(); 16907 return; } 16908 } 16909 readViewportRect(): ViewportRect { 16910 let valueDeserializer : Deserializer = this 16911 const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16912 let x_buf : number | string | undefined 16913 if ((RuntimeType.UNDEFINED) != (x_buf_runtimeType)) 16914 { 16915 const x_buf__selector : int32 = valueDeserializer.readInt8() 16916 let x_buf_ : number | string | undefined 16917 if (x_buf__selector == 0) { 16918 x_buf_ = (valueDeserializer.readNumber() as number) 16919 } 16920 else if (x_buf__selector == 1) { 16921 x_buf_ = (valueDeserializer.readString() as string) 16922 } 16923 else { 16924 throw new Error("One of the branches for x_buf_ has to be chosen through deserialisation.") 16925 } 16926 x_buf = (x_buf_ as number | string) 16927 } 16928 const x_result : number | string | undefined = x_buf 16929 const y_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16930 let y_buf : number | string | undefined 16931 if ((RuntimeType.UNDEFINED) != (y_buf_runtimeType)) 16932 { 16933 const y_buf__selector : int32 = valueDeserializer.readInt8() 16934 let y_buf_ : number | string | undefined 16935 if (y_buf__selector == 0) { 16936 y_buf_ = (valueDeserializer.readNumber() as number) 16937 } 16938 else if (y_buf__selector == 1) { 16939 y_buf_ = (valueDeserializer.readString() as string) 16940 } 16941 else { 16942 throw new Error("One of the branches for y_buf_ has to be chosen through deserialisation.") 16943 } 16944 y_buf = (y_buf_ as number | string) 16945 } 16946 const y_result : number | string | undefined = y_buf 16947 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16948 let width_buf : number | string | undefined 16949 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 16950 { 16951 const width_buf__selector : int32 = valueDeserializer.readInt8() 16952 let width_buf_ : number | string | undefined 16953 if (width_buf__selector == 0) { 16954 width_buf_ = (valueDeserializer.readNumber() as number) 16955 } 16956 else if (width_buf__selector == 1) { 16957 width_buf_ = (valueDeserializer.readString() as string) 16958 } 16959 else { 16960 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 16961 } 16962 width_buf = (width_buf_ as number | string) 16963 } 16964 const width_result : number | string | undefined = width_buf 16965 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 16966 let height_buf : number | string | undefined 16967 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 16968 { 16969 const height_buf__selector : int32 = valueDeserializer.readInt8() 16970 let height_buf_ : number | string | undefined 16971 if (height_buf__selector == 0) { 16972 height_buf_ = (valueDeserializer.readNumber() as number) 16973 } 16974 else if (height_buf__selector == 1) { 16975 height_buf_ = (valueDeserializer.readString() as string) 16976 } 16977 else { 16978 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 16979 } 16980 height_buf = (height_buf_ as number | string) 16981 } 16982 const height_result : number | string | undefined = height_buf 16983 let value : ViewportRect = ({x: x_result, y: y_result, width: width_result, height: height_result} as ViewportRect) 16984 return value 16985 } 16986 readCallback_Number_String_Void(isSync: boolean = false): ((index: number,value: string) => void) { 16987 const _resource : CallbackResource = this.readCallbackResource() 16988 const _call : KPointer = this.readPointer() 16989 const _callSync : KPointer = this.readPointer() 16990 return (index: number, value: string):void => { 16991 const _argsSerializer : Serializer = Serializer.hold(); 16992 _argsSerializer.writeInt32(_resource.resourceId); 16993 _argsSerializer.writePointer(_call); 16994 _argsSerializer.writePointer(_callSync); 16995 _argsSerializer.writeNumber(index); 16996 _argsSerializer.writeString(value); 16997 (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asBuffer(), _argsSerializer.length())); 16998 _argsSerializer.release(); 16999 return; } 17000 } 17001 readSelectOption(): SelectOption { 17002 let valueDeserializer : Deserializer = this 17003 const value_buf_selector : int32 = valueDeserializer.readInt8() 17004 let value_buf : string | Resource | undefined 17005 if (value_buf_selector == 0) { 17006 value_buf = (valueDeserializer.readString() as string) 17007 } 17008 else if (value_buf_selector == 1) { 17009 value_buf = valueDeserializer.readResource() 17010 } 17011 else { 17012 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 17013 } 17014 const value_result : ResourceStr = (value_buf as string | Resource) 17015 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17016 let icon_buf : ResourceStr | undefined 17017 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 17018 { 17019 const icon_buf__selector : int32 = valueDeserializer.readInt8() 17020 let icon_buf_ : string | Resource | undefined 17021 if (icon_buf__selector == 0) { 17022 icon_buf_ = (valueDeserializer.readString() as string) 17023 } 17024 else if (icon_buf__selector == 1) { 17025 icon_buf_ = valueDeserializer.readResource() 17026 } 17027 else { 17028 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 17029 } 17030 icon_buf = (icon_buf_ as string | Resource) 17031 } 17032 const icon_result : ResourceStr | undefined = icon_buf 17033 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17034 let symbolIcon_buf : SymbolGlyphModifier | undefined 17035 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 17036 { 17037 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 17038 } 17039 const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf 17040 let value : SelectOption = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result} as SelectOption) 17041 return value 17042 } 17043 readTextDecorationOptions(): TextDecorationOptions { 17044 let valueDeserializer : Deserializer = this 17045 const type_result : TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) 17046 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17047 let color_buf : ResourceColor | undefined 17048 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 17049 { 17050 const color_buf__selector : int32 = valueDeserializer.readInt8() 17051 let color_buf_ : Color | number | string | Resource | undefined 17052 if (color_buf__selector == 0) { 17053 color_buf_ = (valueDeserializer.readInt32() as Color) 17054 } 17055 else if (color_buf__selector == 1) { 17056 color_buf_ = (valueDeserializer.readNumber() as number) 17057 } 17058 else if (color_buf__selector == 2) { 17059 color_buf_ = (valueDeserializer.readString() as string) 17060 } 17061 else if (color_buf__selector == 3) { 17062 color_buf_ = valueDeserializer.readResource() 17063 } 17064 else { 17065 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 17066 } 17067 color_buf = (color_buf_ as Color | number | string | Resource) 17068 } 17069 const color_result : ResourceColor | undefined = color_buf 17070 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17071 let style_buf : TextDecorationStyle | undefined 17072 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 17073 { 17074 style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) 17075 } 17076 const style_result : TextDecorationStyle | undefined = style_buf 17077 let value : TextDecorationOptions = ({type: type_result, color: color_result, style: style_result} as TextDecorationOptions) 17078 return value 17079 } 17080 readOnPasteCallback(isSync: boolean = false): OnPasteCallback { 17081 const _resource : CallbackResource = this.readCallbackResource() 17082 const _call : KPointer = this.readPointer() 17083 const _callSync : KPointer = this.readPointer() 17084 return (content: string, event: PasteEvent):void => { 17085 const _argsSerializer : Serializer = Serializer.hold(); 17086 _argsSerializer.writeInt32(_resource.resourceId); 17087 _argsSerializer.writePointer(_call); 17088 _argsSerializer.writePointer(_callSync); 17089 _argsSerializer.writeString(content); 17090 _argsSerializer.writePasteEvent(event); 17091 (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asBuffer(), _argsSerializer.length())); 17092 _argsSerializer.release(); 17093 return; } 17094 } 17095 readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { 17096 const _resource : CallbackResource = this.readCallbackResource() 17097 const _call : KPointer = this.readPointer() 17098 const _callSync : KPointer = this.readPointer() 17099 return (totalOffsetX: number, totalOffsetY: number):void => { 17100 const _argsSerializer : Serializer = Serializer.hold(); 17101 _argsSerializer.writeInt32(_resource.resourceId); 17102 _argsSerializer.writePointer(_call); 17103 _argsSerializer.writePointer(_callSync); 17104 _argsSerializer.writeNumber(totalOffsetX); 17105 _argsSerializer.writeNumber(totalOffsetY); 17106 (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asBuffer(), _argsSerializer.length())); 17107 _argsSerializer.release(); 17108 return; } 17109 } 17110 readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { 17111 const _resource : CallbackResource = this.readCallbackResource() 17112 const _call : KPointer = this.readPointer() 17113 const _callSync : KPointer = this.readPointer() 17114 return (selectionStart: number, selectionEnd: number):void => { 17115 const _argsSerializer : Serializer = Serializer.hold(); 17116 _argsSerializer.writeInt32(_resource.resourceId); 17117 _argsSerializer.writePointer(_call); 17118 _argsSerializer.writePointer(_callSync); 17119 _argsSerializer.writeNumber(selectionStart); 17120 _argsSerializer.writeNumber(selectionEnd); 17121 (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asBuffer(), _argsSerializer.length())); 17122 _argsSerializer.release(); 17123 return; } 17124 } 17125 readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { 17126 const _resource : CallbackResource = this.readCallbackResource() 17127 const _call : KPointer = this.readPointer() 17128 const _callSync : KPointer = this.readPointer() 17129 return (value: string, previewText?: PreviewText | undefined):void => { 17130 const _argsSerializer : Serializer = Serializer.hold(); 17131 _argsSerializer.writeInt32(_resource.resourceId); 17132 _argsSerializer.writePointer(_call); 17133 _argsSerializer.writePointer(_callSync); 17134 _argsSerializer.writeString(value); 17135 let previewText_type : int32 = RuntimeType.UNDEFINED; 17136 previewText_type = runtimeType(previewText); 17137 _argsSerializer.writeInt8(previewText_type as int32); 17138 if ((RuntimeType.UNDEFINED) != (previewText_type)) { 17139 const previewText_value = previewText!; 17140 _argsSerializer.writePreviewText(previewText_value); 17141 } 17142 (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asBuffer(), _argsSerializer.length())); 17143 _argsSerializer.release(); 17144 return; } 17145 } 17146 readCaretStyle(): CaretStyle { 17147 let valueDeserializer : Deserializer = this 17148 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17149 let width_buf : Length | undefined 17150 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 17151 { 17152 width_buf = (valueDeserializer.readLength() as Length) 17153 } 17154 const width_result : Length | undefined = width_buf 17155 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17156 let color_buf : ResourceColor | undefined 17157 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 17158 { 17159 const color_buf__selector : int32 = valueDeserializer.readInt8() 17160 let color_buf_ : Color | number | string | Resource | undefined 17161 if (color_buf__selector == 0) { 17162 color_buf_ = (valueDeserializer.readInt32() as Color) 17163 } 17164 else if (color_buf__selector == 1) { 17165 color_buf_ = (valueDeserializer.readNumber() as number) 17166 } 17167 else if (color_buf__selector == 2) { 17168 color_buf_ = (valueDeserializer.readString() as string) 17169 } 17170 else if (color_buf__selector == 3) { 17171 color_buf_ = valueDeserializer.readResource() 17172 } 17173 else { 17174 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 17175 } 17176 color_buf = (color_buf_ as Color | number | string | Resource) 17177 } 17178 const color_result : ResourceColor | undefined = color_buf 17179 let value : CaretStyle = ({width: width_result, color: color_result} as CaretStyle) 17180 return value 17181 } 17182 readCallback_DeleteValue_Void(isSync: boolean = false): ((parameter: DeleteValue) => void) { 17183 const _resource : CallbackResource = this.readCallbackResource() 17184 const _call : KPointer = this.readPointer() 17185 const _callSync : KPointer = this.readPointer() 17186 return (parameter: DeleteValue):void => { 17187 const _argsSerializer : Serializer = Serializer.hold(); 17188 _argsSerializer.writeInt32(_resource.resourceId); 17189 _argsSerializer.writePointer(_call); 17190 _argsSerializer.writePointer(_callSync); 17191 _argsSerializer.writeDeleteValue(parameter); 17192 (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asBuffer(), _argsSerializer.length())); 17193 _argsSerializer.release(); 17194 return; } 17195 } 17196 readDeleteValue(): DeleteValue { 17197 let valueDeserializer : Deserializer = this 17198 const deleteOffset_result : number = (valueDeserializer.readNumber() as number) 17199 const direction_result : TextDeleteDirection = (valueDeserializer.readInt32() as TextDeleteDirection) 17200 const deleteValue_result : string = (valueDeserializer.readString() as string) 17201 let value : DeleteValue = ({deleteOffset: deleteOffset_result, direction: direction_result, deleteValue: deleteValue_result} as DeleteValue) 17202 return value 17203 } 17204 readCallback_DeleteValue_Boolean(isSync: boolean = false): ((parameter: DeleteValue) => boolean) { 17205 const _resource : CallbackResource = this.readCallbackResource() 17206 const _call : KPointer = this.readPointer() 17207 const _callSync : KPointer = this.readPointer() 17208 return (parameter: DeleteValue):boolean => { 17209 const _argsSerializer : Serializer = Serializer.hold(); 17210 _argsSerializer.writeInt32(_resource.resourceId); 17211 _argsSerializer.writePointer(_call); 17212 _argsSerializer.writePointer(_callSync); 17213 _argsSerializer.writeDeleteValue(parameter); 17214 let _continuationValue : boolean | undefined; 17215 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 17216 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17217 (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asBuffer(), _argsSerializer.length())); 17218 _argsSerializer.release(); 17219 return (_continuationValue as boolean); } 17220 } 17221 readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { 17222 const _resource : CallbackResource = this.readCallbackResource() 17223 const _call : KPointer = this.readPointer() 17224 const _callSync : KPointer = this.readPointer() 17225 return (parameter: InsertValue):void => { 17226 const _argsSerializer : Serializer = Serializer.hold(); 17227 _argsSerializer.writeInt32(_resource.resourceId); 17228 _argsSerializer.writePointer(_call); 17229 _argsSerializer.writePointer(_callSync); 17230 _argsSerializer.writeInsertValue(parameter); 17231 (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asBuffer(), _argsSerializer.length())); 17232 _argsSerializer.release(); 17233 return; } 17234 } 17235 readInsertValue(): InsertValue { 17236 let valueDeserializer : Deserializer = this 17237 const insertOffset_result : number = (valueDeserializer.readNumber() as number) 17238 const insertValue_result : string = (valueDeserializer.readString() as string) 17239 let value : InsertValue = ({insertOffset: insertOffset_result, insertValue: insertValue_result} as InsertValue) 17240 return value 17241 } 17242 readCallback_InsertValue_Boolean(isSync: boolean = false): ((parameter: InsertValue) => boolean) { 17243 const _resource : CallbackResource = this.readCallbackResource() 17244 const _call : KPointer = this.readPointer() 17245 const _callSync : KPointer = this.readPointer() 17246 return (parameter: InsertValue):boolean => { 17247 const _argsSerializer : Serializer = Serializer.hold(); 17248 _argsSerializer.writeInt32(_resource.resourceId); 17249 _argsSerializer.writePointer(_call); 17250 _argsSerializer.writePointer(_callSync); 17251 _argsSerializer.writeInsertValue(parameter); 17252 let _continuationValue : boolean | undefined; 17253 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 17254 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17255 (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asBuffer(), _argsSerializer.length())); 17256 _argsSerializer.release(); 17257 return (_continuationValue as boolean); } 17258 } 17259 readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { 17260 const _resource : CallbackResource = this.readCallbackResource() 17261 const _call : KPointer = this.readPointer() 17262 const _callSync : KPointer = this.readPointer() 17263 return (searchContent: string, event?: SubmitEvent | undefined):void => { 17264 const _argsSerializer : Serializer = Serializer.hold(); 17265 _argsSerializer.writeInt32(_resource.resourceId); 17266 _argsSerializer.writePointer(_call); 17267 _argsSerializer.writePointer(_callSync); 17268 _argsSerializer.writeString(searchContent); 17269 let event_type : int32 = RuntimeType.UNDEFINED; 17270 event_type = runtimeType(event); 17271 _argsSerializer.writeInt8(event_type as int32); 17272 if ((RuntimeType.UNDEFINED) != (event_type)) { 17273 const event_value = event!; 17274 _argsSerializer.writeSubmitEvent(event_value); 17275 } 17276 (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asBuffer(), _argsSerializer.length())); 17277 _argsSerializer.release(); 17278 return; } 17279 } 17280 readSearchOptions(): SearchOptions { 17281 let valueDeserializer : Deserializer = this 17282 const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17283 let value_buf : string | undefined 17284 if ((RuntimeType.UNDEFINED) != (value_buf_runtimeType)) 17285 { 17286 value_buf = (valueDeserializer.readString() as string) 17287 } 17288 const value_result : string | undefined = value_buf 17289 const placeholder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17290 let placeholder_buf : ResourceStr | undefined 17291 if ((RuntimeType.UNDEFINED) != (placeholder_buf_runtimeType)) 17292 { 17293 const placeholder_buf__selector : int32 = valueDeserializer.readInt8() 17294 let placeholder_buf_ : string | Resource | undefined 17295 if (placeholder_buf__selector == 0) { 17296 placeholder_buf_ = (valueDeserializer.readString() as string) 17297 } 17298 else if (placeholder_buf__selector == 1) { 17299 placeholder_buf_ = valueDeserializer.readResource() 17300 } 17301 else { 17302 throw new Error("One of the branches for placeholder_buf_ has to be chosen through deserialisation.") 17303 } 17304 placeholder_buf = (placeholder_buf_ as string | Resource) 17305 } 17306 const placeholder_result : ResourceStr | undefined = placeholder_buf 17307 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17308 let icon_buf : string | undefined 17309 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 17310 { 17311 icon_buf = (valueDeserializer.readString() as string) 17312 } 17313 const icon_result : string | undefined = icon_buf 17314 const controller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17315 let controller_buf : SearchController | undefined 17316 if ((RuntimeType.UNDEFINED) != (controller_buf_runtimeType)) 17317 { 17318 controller_buf = (valueDeserializer.readSearchController() as SearchController) 17319 } 17320 const controller_result : SearchController | undefined = controller_buf 17321 let value : SearchOptions = ({value: value_result, placeholder: placeholder_result, icon: icon_result, controller: controller_result} as SearchOptions) 17322 return value 17323 } 17324 readScrollBarOptions(): ScrollBarOptions { 17325 let valueDeserializer : Deserializer = this 17326 const scroller_result : Scroller = (valueDeserializer.readScroller() as Scroller) 17327 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17328 let direction_buf : ScrollBarDirection | undefined 17329 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 17330 { 17331 direction_buf = (valueDeserializer.readInt32() as ScrollBarDirection) 17332 } 17333 const direction_result : ScrollBarDirection | undefined = direction_buf 17334 const state_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17335 let state_buf : BarState | undefined 17336 if ((RuntimeType.UNDEFINED) != (state_buf_runtimeType)) 17337 { 17338 state_buf = (valueDeserializer.readInt32() as BarState) 17339 } 17340 const state_result : BarState | undefined = state_buf 17341 let value : ScrollBarOptions = ({scroller: scroller_result, direction: direction_result, state: state_result} as ScrollBarOptions) 17342 return value 17343 } 17344 readOffsetOptions(): OffsetOptions { 17345 let valueDeserializer : Deserializer = this 17346 const xOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17347 let xOffset_buf : Dimension | undefined 17348 if ((RuntimeType.UNDEFINED) != (xOffset_buf_runtimeType)) 17349 { 17350 xOffset_buf = (valueDeserializer.readLength() as Dimension) 17351 } 17352 const xOffset_result : Dimension | undefined = xOffset_buf 17353 const yOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17354 let yOffset_buf : Dimension | undefined 17355 if ((RuntimeType.UNDEFINED) != (yOffset_buf_runtimeType)) 17356 { 17357 yOffset_buf = (valueDeserializer.readLength() as Dimension) 17358 } 17359 const yOffset_result : Dimension | undefined = yOffset_buf 17360 let value : OffsetOptions = ({xOffset: xOffset_result, yOffset: yOffset_result} as OffsetOptions) 17361 return value 17362 } 17363 readScrollSnapOptions(): ScrollSnapOptions { 17364 let valueDeserializer : Deserializer = this 17365 const snapAlign_result : ScrollSnapAlign = (valueDeserializer.readInt32() as ScrollSnapAlign) 17366 const snapPagination_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17367 let snapPagination_buf : Dimension | Array<Dimension> | undefined 17368 if ((RuntimeType.UNDEFINED) != (snapPagination_buf_runtimeType)) 17369 { 17370 const snapPagination_buf__selector : int32 = valueDeserializer.readInt8() 17371 let snapPagination_buf_ : Dimension | Array<Dimension> | undefined 17372 if (snapPagination_buf__selector == 0) { 17373 snapPagination_buf_ = (valueDeserializer.readLength() as Dimension) 17374 } 17375 else if (snapPagination_buf__selector == 1) { 17376 const snapPagination_buf__u_length : int32 = valueDeserializer.readInt32() 17377 let snapPagination_buf__u : Array<Dimension> = new Array<Dimension>(snapPagination_buf__u_length) 17378 for (let snapPagination_buf__u_i = 0; snapPagination_buf__u_i < snapPagination_buf__u_length; snapPagination_buf__u_i++) { 17379 snapPagination_buf__u[snapPagination_buf__u_i] = (valueDeserializer.readLength() as Dimension) 17380 } 17381 snapPagination_buf_ = snapPagination_buf__u 17382 } 17383 else { 17384 throw new Error("One of the branches for snapPagination_buf_ has to be chosen through deserialisation.") 17385 } 17386 snapPagination_buf = (snapPagination_buf_ as Dimension | Array<Dimension>) 17387 } 17388 const snapPagination_result : Dimension | Array<Dimension> | undefined = snapPagination_buf 17389 const enableSnapToStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17390 let enableSnapToStart_buf : boolean | undefined 17391 if ((RuntimeType.UNDEFINED) != (enableSnapToStart_buf_runtimeType)) 17392 { 17393 enableSnapToStart_buf = valueDeserializer.readBoolean() 17394 } 17395 const enableSnapToStart_result : boolean | undefined = enableSnapToStart_buf 17396 const enableSnapToEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17397 let enableSnapToEnd_buf : boolean | undefined 17398 if ((RuntimeType.UNDEFINED) != (enableSnapToEnd_buf_runtimeType)) 17399 { 17400 enableSnapToEnd_buf = valueDeserializer.readBoolean() 17401 } 17402 const enableSnapToEnd_result : boolean | undefined = enableSnapToEnd_buf 17403 let value : ScrollSnapOptions = ({snapAlign: snapAlign_result, snapPagination: snapPagination_result, enableSnapToStart: enableSnapToStart_result, enableSnapToEnd: enableSnapToEnd_result} as ScrollSnapOptions) 17404 return value 17405 } 17406 readScrollOnScrollCallback(isSync: boolean = false): ScrollOnScrollCallback { 17407 const _resource : CallbackResource = this.readCallbackResource() 17408 const _call : KPointer = this.readPointer() 17409 const _callSync : KPointer = this.readPointer() 17410 return (xOffset: number, yOffset: number, scrollState: ScrollState):void => { 17411 const _argsSerializer : Serializer = Serializer.hold(); 17412 _argsSerializer.writeInt32(_resource.resourceId); 17413 _argsSerializer.writePointer(_call); 17414 _argsSerializer.writePointer(_callSync); 17415 _argsSerializer.writeNumber(xOffset); 17416 _argsSerializer.writeNumber(yOffset); 17417 _argsSerializer.writeInt32(scrollState.valueOf()); 17418 (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asBuffer(), _argsSerializer.length())); 17419 _argsSerializer.release(); 17420 return; } 17421 } 17422 readOnScrollFrameBeginHandlerResult(): OnScrollFrameBeginHandlerResult { 17423 let valueDeserializer : Deserializer = this 17424 const offsetRemain_result : number = (valueDeserializer.readNumber() as number) 17425 let value : OnScrollFrameBeginHandlerResult = ({offsetRemain: offsetRemain_result} as OnScrollFrameBeginHandlerResult) 17426 return value 17427 } 17428 readOnScrollFrameBeginCallback(isSync: boolean = false): OnScrollFrameBeginCallback { 17429 const _resource : CallbackResource = this.readCallbackResource() 17430 const _call : KPointer = this.readPointer() 17431 const _callSync : KPointer = this.readPointer() 17432 return (offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { 17433 const _argsSerializer : Serializer = Serializer.hold(); 17434 _argsSerializer.writeInt32(_resource.resourceId); 17435 _argsSerializer.writePointer(_call); 17436 _argsSerializer.writePointer(_callSync); 17437 _argsSerializer.writeNumber(offset); 17438 _argsSerializer.writeInt32(state.valueOf()); 17439 let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; 17440 const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } 17441 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17442 (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asBuffer(), _argsSerializer.length())); 17443 _argsSerializer.release(); 17444 return (_continuationValue as OnScrollFrameBeginHandlerResult); } 17445 } 17446 readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { 17447 const _resource : CallbackResource = this.readCallbackResource() 17448 const _call : KPointer = this.readPointer() 17449 const _callSync : KPointer = this.readPointer() 17450 return (side: Edge):void => { 17451 const _argsSerializer : Serializer = Serializer.hold(); 17452 _argsSerializer.writeInt32(_resource.resourceId); 17453 _argsSerializer.writePointer(_call); 17454 _argsSerializer.writePointer(_callSync); 17455 _argsSerializer.writeInt32(side.valueOf()); 17456 (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asBuffer(), _argsSerializer.length())); 17457 _argsSerializer.release(); 17458 return; } 17459 } 17460 readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent,result: SaveButtonOnClickResult) => void) { 17461 const _resource : CallbackResource = this.readCallbackResource() 17462 const _call : KPointer = this.readPointer() 17463 const _callSync : KPointer = this.readPointer() 17464 return (event: ClickEvent, result: SaveButtonOnClickResult):void => { 17465 const _argsSerializer : Serializer = Serializer.hold(); 17466 _argsSerializer.writeInt32(_resource.resourceId); 17467 _argsSerializer.writePointer(_call); 17468 _argsSerializer.writePointer(_callSync); 17469 _argsSerializer.writeClickEvent(event); 17470 _argsSerializer.writeInt32(result.valueOf()); 17471 (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asBuffer(), _argsSerializer.length())); 17472 _argsSerializer.release(); 17473 return; } 17474 } 17475 readSaveButtonOptions(): SaveButtonOptions { 17476 let valueDeserializer : Deserializer = this 17477 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17478 let icon_buf : SaveIconStyle | undefined 17479 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 17480 { 17481 icon_buf = (valueDeserializer.readInt32() as SaveIconStyle) 17482 } 17483 const icon_result : SaveIconStyle | undefined = icon_buf 17484 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17485 let text_buf : SaveDescription | undefined 17486 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 17487 { 17488 text_buf = (valueDeserializer.readInt32() as SaveDescription) 17489 } 17490 const text_result : SaveDescription | undefined = text_buf 17491 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17492 let buttonType_buf : ButtonType | undefined 17493 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 17494 { 17495 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 17496 } 17497 const buttonType_result : ButtonType | undefined = buttonType_buf 17498 let value : SaveButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as SaveButtonOptions) 17499 return value 17500 } 17501 readRowOptions(): RowOptions { 17502 let valueDeserializer : Deserializer = this 17503 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17504 let space_buf : string | number | undefined 17505 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 17506 { 17507 const space_buf__selector : int32 = valueDeserializer.readInt8() 17508 let space_buf_ : string | number | undefined 17509 if (space_buf__selector == 0) { 17510 space_buf_ = (valueDeserializer.readString() as string) 17511 } 17512 else if (space_buf__selector == 1) { 17513 space_buf_ = (valueDeserializer.readNumber() as number) 17514 } 17515 else { 17516 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 17517 } 17518 space_buf = (space_buf_ as string | number) 17519 } 17520 const space_result : string | number | undefined = space_buf 17521 let value : RowOptions = ({space: space_result} as RowOptions) 17522 return value 17523 } 17524 readRootSceneSession(): RootSceneSession { 17525 let value : RootSceneSession = ({} as RootSceneSession) 17526 return value 17527 } 17528 readRichEditorStyledStringOptions(): RichEditorStyledStringOptions { 17529 let valueDeserializer : Deserializer = this 17530 const controller_result : RichEditorStyledStringController = (valueDeserializer.readRichEditorStyledStringController() as RichEditorStyledStringController) 17531 let value : RichEditorStyledStringOptions = ({controller: controller_result} as RichEditorStyledStringOptions) 17532 return value 17533 } 17534 readRichEditorOptions(): RichEditorOptions { 17535 let valueDeserializer : Deserializer = this 17536 const controller_result : RichEditorController = (valueDeserializer.readRichEditorController() as RichEditorController) 17537 let value : RichEditorOptions = ({controller: controller_result} as RichEditorOptions) 17538 return value 17539 } 17540 readEditMenuOptions(): EditMenuOptions { 17541 let valueDeserializer : Deserializer = this 17542 let ptr : KPointer = valueDeserializer.readPointer() 17543 return EditMenuOptionsInternal.fromPtr(ptr) 17544 } 17545 readSubmitEvent(): SubmitEvent { 17546 let valueDeserializer : Deserializer = this 17547 let ptr : KPointer = valueDeserializer.readPointer() 17548 return SubmitEventInternal.fromPtr(ptr) 17549 } 17550 readSubmitCallback(isSync: boolean = false): SubmitCallback { 17551 const _resource : CallbackResource = this.readCallbackResource() 17552 const _call : KPointer = this.readPointer() 17553 const _callSync : KPointer = this.readPointer() 17554 return (enterKey: EnterKeyType, event: SubmitEvent):void => { 17555 const _argsSerializer : Serializer = Serializer.hold(); 17556 _argsSerializer.writeInt32(_resource.resourceId); 17557 _argsSerializer.writePointer(_call); 17558 _argsSerializer.writePointer(_callSync); 17559 _argsSerializer.writeInt32(enterKey.valueOf()); 17560 _argsSerializer.writeSubmitEvent(event); 17561 (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asBuffer(), _argsSerializer.length())); 17562 _argsSerializer.release(); 17563 return; } 17564 } 17565 readTextDataDetectorConfig(): TextDataDetectorConfig { 17566 let valueDeserializer : Deserializer = this 17567 const types_buf_length : int32 = valueDeserializer.readInt32() 17568 let types_buf : Array<TextDataDetectorType> = new Array<TextDataDetectorType>(types_buf_length) 17569 for (let types_buf_i = 0; types_buf_i < types_buf_length; types_buf_i++) { 17570 types_buf[types_buf_i] = (valueDeserializer.readInt32() as TextDataDetectorType) 17571 } 17572 const types_result : Array<TextDataDetectorType> = types_buf 17573 const onDetectResultUpdate_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17574 let onDetectResultUpdate_buf : ((breakpoints: string) => void) | undefined 17575 if ((RuntimeType.UNDEFINED) != (onDetectResultUpdate_buf_runtimeType)) 17576 { 17577 onDetectResultUpdate_buf = valueDeserializer.readCallback_String_Void() 17578 } 17579 const onDetectResultUpdate_result : ((breakpoints: string) => void) | undefined = onDetectResultUpdate_buf 17580 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17581 let color_buf : ResourceColor | undefined 17582 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 17583 { 17584 const color_buf__selector : int32 = valueDeserializer.readInt8() 17585 let color_buf_ : Color | number | string | Resource | undefined 17586 if (color_buf__selector == 0) { 17587 color_buf_ = (valueDeserializer.readInt32() as Color) 17588 } 17589 else if (color_buf__selector == 1) { 17590 color_buf_ = (valueDeserializer.readNumber() as number) 17591 } 17592 else if (color_buf__selector == 2) { 17593 color_buf_ = (valueDeserializer.readString() as string) 17594 } 17595 else if (color_buf__selector == 3) { 17596 color_buf_ = valueDeserializer.readResource() 17597 } 17598 else { 17599 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 17600 } 17601 color_buf = (color_buf_ as Color | number | string | Resource) 17602 } 17603 const color_result : ResourceColor | undefined = color_buf 17604 const decoration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17605 let decoration_buf : DecorationStyleInterface | undefined 17606 if ((RuntimeType.UNDEFINED) != (decoration_buf_runtimeType)) 17607 { 17608 decoration_buf = valueDeserializer.readDecorationStyleInterface() 17609 } 17610 const decoration_result : DecorationStyleInterface | undefined = decoration_buf 17611 let value : TextDataDetectorConfig = ({types: types_result, onDetectResultUpdate: onDetectResultUpdate_result, color: color_result, decoration: decoration_result} as TextDataDetectorConfig) 17612 return value 17613 } 17614 readPasteEvent(): PasteEvent { 17615 let valueDeserializer : Deserializer = this 17616 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17617 let preventDefault_buf : (() => void) | undefined 17618 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17619 { 17620 preventDefault_buf = valueDeserializer.readCallback_Void() 17621 } 17622 const preventDefault_result : (() => void) | undefined = preventDefault_buf 17623 let value : PasteEvent = ({preventDefault: preventDefault_result} as PasteEvent) 17624 return value 17625 } 17626 readPasteEventCallback(isSync: boolean = false): PasteEventCallback { 17627 const _resource : CallbackResource = this.readCallbackResource() 17628 const _call : KPointer = this.readPointer() 17629 const _callSync : KPointer = this.readPointer() 17630 return (event?: PasteEvent | undefined):void => { 17631 const _argsSerializer : Serializer = Serializer.hold(); 17632 _argsSerializer.writeInt32(_resource.resourceId); 17633 _argsSerializer.writePointer(_call); 17634 _argsSerializer.writePointer(_callSync); 17635 let event_type : int32 = RuntimeType.UNDEFINED; 17636 event_type = runtimeType(event); 17637 _argsSerializer.writeInt8(event_type as int32); 17638 if ((RuntimeType.UNDEFINED) != (event_type)) { 17639 const event_value = event!; 17640 _argsSerializer.writePasteEvent(event_value); 17641 } 17642 (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asBuffer(), _argsSerializer.length())); 17643 _argsSerializer.release(); 17644 return; } 17645 } 17646 readCopyEvent(): CopyEvent { 17647 let valueDeserializer : Deserializer = this 17648 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17649 let preventDefault_buf : (() => void) | undefined 17650 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17651 { 17652 preventDefault_buf = valueDeserializer.readCallback_Void() 17653 } 17654 const preventDefault_result : (() => void) | undefined = preventDefault_buf 17655 let value : CopyEvent = ({preventDefault: preventDefault_result} as CopyEvent) 17656 return value 17657 } 17658 readCallback_CopyEvent_Void(isSync: boolean = false): ((parameter: CopyEvent) => void) { 17659 const _resource : CallbackResource = this.readCallbackResource() 17660 const _call : KPointer = this.readPointer() 17661 const _callSync : KPointer = this.readPointer() 17662 return (parameter: CopyEvent):void => { 17663 const _argsSerializer : Serializer = Serializer.hold(); 17664 _argsSerializer.writeInt32(_resource.resourceId); 17665 _argsSerializer.writePointer(_call); 17666 _argsSerializer.writePointer(_callSync); 17667 _argsSerializer.writeCopyEvent(parameter); 17668 (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asBuffer(), _argsSerializer.length())); 17669 _argsSerializer.release(); 17670 return; } 17671 } 17672 readCutEvent(): CutEvent { 17673 let valueDeserializer : Deserializer = this 17674 const preventDefault_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17675 let preventDefault_buf : (() => void) | undefined 17676 if ((RuntimeType.UNDEFINED) != (preventDefault_buf_runtimeType)) 17677 { 17678 preventDefault_buf = valueDeserializer.readCallback_Void() 17679 } 17680 const preventDefault_result : (() => void) | undefined = preventDefault_buf 17681 let value : CutEvent = ({preventDefault: preventDefault_result} as CutEvent) 17682 return value 17683 } 17684 readCallback_CutEvent_Void(isSync: boolean = false): ((parameter: CutEvent) => void) { 17685 const _resource : CallbackResource = this.readCallbackResource() 17686 const _call : KPointer = this.readPointer() 17687 const _callSync : KPointer = this.readPointer() 17688 return (parameter: CutEvent):void => { 17689 const _argsSerializer : Serializer = Serializer.hold(); 17690 _argsSerializer.writeInt32(_resource.resourceId); 17691 _argsSerializer.writePointer(_call); 17692 _argsSerializer.writePointer(_callSync); 17693 _argsSerializer.writeCutEvent(parameter); 17694 (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asBuffer(), _argsSerializer.length())); 17695 _argsSerializer.release(); 17696 return; } 17697 } 17698 readRichEditorChangeValue(): RichEditorChangeValue { 17699 let valueDeserializer : Deserializer = this 17700 const rangeBefore_result : TextRange = valueDeserializer.readTextRange() 17701 const replacedSpans_buf_length : int32 = valueDeserializer.readInt32() 17702 let replacedSpans_buf : Array<RichEditorTextSpanResult> = new Array<RichEditorTextSpanResult>(replacedSpans_buf_length) 17703 for (let replacedSpans_buf_i = 0; replacedSpans_buf_i < replacedSpans_buf_length; replacedSpans_buf_i++) { 17704 replacedSpans_buf[replacedSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() 17705 } 17706 const replacedSpans_result : Array<RichEditorTextSpanResult> = replacedSpans_buf 17707 const replacedImageSpans_buf_length : int32 = valueDeserializer.readInt32() 17708 let replacedImageSpans_buf : Array<RichEditorImageSpanResult> = new Array<RichEditorImageSpanResult>(replacedImageSpans_buf_length) 17709 for (let replacedImageSpans_buf_i = 0; replacedImageSpans_buf_i < replacedImageSpans_buf_length; replacedImageSpans_buf_i++) { 17710 replacedImageSpans_buf[replacedImageSpans_buf_i] = valueDeserializer.readRichEditorImageSpanResult() 17711 } 17712 const replacedImageSpans_result : Array<RichEditorImageSpanResult> = replacedImageSpans_buf 17713 const replacedSymbolSpans_buf_length : int32 = valueDeserializer.readInt32() 17714 let replacedSymbolSpans_buf : Array<RichEditorTextSpanResult> = new Array<RichEditorTextSpanResult>(replacedSymbolSpans_buf_length) 17715 for (let replacedSymbolSpans_buf_i = 0; replacedSymbolSpans_buf_i < replacedSymbolSpans_buf_length; replacedSymbolSpans_buf_i++) { 17716 replacedSymbolSpans_buf[replacedSymbolSpans_buf_i] = valueDeserializer.readRichEditorTextSpanResult() 17717 } 17718 const replacedSymbolSpans_result : Array<RichEditorTextSpanResult> = replacedSymbolSpans_buf 17719 let value : RichEditorChangeValue = ({rangeBefore: rangeBefore_result, replacedSpans: replacedSpans_result, replacedImageSpans: replacedImageSpans_result, replacedSymbolSpans: replacedSymbolSpans_result} as RichEditorChangeValue) 17720 return value 17721 } 17722 readCallback_RichEditorChangeValue_Boolean(isSync: boolean = false): ((parameter: RichEditorChangeValue) => boolean) { 17723 const _resource : CallbackResource = this.readCallbackResource() 17724 const _call : KPointer = this.readPointer() 17725 const _callSync : KPointer = this.readPointer() 17726 return (parameter: RichEditorChangeValue):boolean => { 17727 const _argsSerializer : Serializer = Serializer.hold(); 17728 _argsSerializer.writeInt32(_resource.resourceId); 17729 _argsSerializer.writePointer(_call); 17730 _argsSerializer.writePointer(_callSync); 17731 _argsSerializer.writeRichEditorChangeValue(parameter); 17732 let _continuationValue : boolean | undefined; 17733 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 17734 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17735 (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asBuffer(), _argsSerializer.length())); 17736 _argsSerializer.release(); 17737 return (_continuationValue as boolean); } 17738 } 17739 readRichEditorDeleteValue(): RichEditorDeleteValue { 17740 let valueDeserializer : Deserializer = this 17741 const offset_result : number = (valueDeserializer.readNumber() as number) 17742 const direction_result : RichEditorDeleteDirection = (valueDeserializer.readInt32() as RichEditorDeleteDirection) 17743 const length_result : number = (valueDeserializer.readNumber() as number) 17744 const richEditorDeleteSpans_buf_length : int32 = valueDeserializer.readInt32() 17745 let richEditorDeleteSpans_buf : Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = new Array<RichEditorTextSpanResult | RichEditorImageSpanResult>(richEditorDeleteSpans_buf_length) 17746 for (let richEditorDeleteSpans_buf_i = 0; richEditorDeleteSpans_buf_i < richEditorDeleteSpans_buf_length; richEditorDeleteSpans_buf_i++) { 17747 const richEditorDeleteSpans_buf_buf_selector : int32 = valueDeserializer.readInt8() 17748 let richEditorDeleteSpans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined 17749 if (richEditorDeleteSpans_buf_buf_selector == 0) { 17750 richEditorDeleteSpans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() 17751 } 17752 else if (richEditorDeleteSpans_buf_buf_selector == 1) { 17753 richEditorDeleteSpans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() 17754 } 17755 else { 17756 throw new Error("One of the branches for richEditorDeleteSpans_buf_buf has to be chosen through deserialisation.") 17757 } 17758 richEditorDeleteSpans_buf[richEditorDeleteSpans_buf_i] = (richEditorDeleteSpans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) 17759 } 17760 const richEditorDeleteSpans_result : Array<RichEditorTextSpanResult | RichEditorImageSpanResult> = richEditorDeleteSpans_buf 17761 let value : RichEditorDeleteValue = ({offset: offset_result, direction: direction_result, length: length_result, richEditorDeleteSpans: richEditorDeleteSpans_result} as RichEditorDeleteValue) 17762 return value 17763 } 17764 readCallback_RichEditorDeleteValue_Boolean(isSync: boolean = false): ((parameter: RichEditorDeleteValue) => boolean) { 17765 const _resource : CallbackResource = this.readCallbackResource() 17766 const _call : KPointer = this.readPointer() 17767 const _callSync : KPointer = this.readPointer() 17768 return (parameter: RichEditorDeleteValue):boolean => { 17769 const _argsSerializer : Serializer = Serializer.hold(); 17770 _argsSerializer.writeInt32(_resource.resourceId); 17771 _argsSerializer.writePointer(_call); 17772 _argsSerializer.writePointer(_callSync); 17773 _argsSerializer.writeRichEditorDeleteValue(parameter); 17774 let _continuationValue : boolean | undefined; 17775 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 17776 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17777 (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asBuffer(), _argsSerializer.length())); 17778 _argsSerializer.release(); 17779 return (_continuationValue as boolean); } 17780 } 17781 readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { 17782 const _resource : CallbackResource = this.readCallbackResource() 17783 const _call : KPointer = this.readPointer() 17784 const _callSync : KPointer = this.readPointer() 17785 return (parameter: TextRange):void => { 17786 const _argsSerializer : Serializer = Serializer.hold(); 17787 _argsSerializer.writeInt32(_resource.resourceId); 17788 _argsSerializer.writePointer(_call); 17789 _argsSerializer.writePointer(_callSync); 17790 _argsSerializer.writeTextRange(parameter); 17791 (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asBuffer(), _argsSerializer.length())); 17792 _argsSerializer.release(); 17793 return; } 17794 } 17795 readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { 17796 const _resource : CallbackResource = this.readCallbackResource() 17797 const _call : KPointer = this.readPointer() 17798 const _callSync : KPointer = this.readPointer() 17799 return (parameter: RichEditorTextSpanResult):void => { 17800 const _argsSerializer : Serializer = Serializer.hold(); 17801 _argsSerializer.writeInt32(_resource.resourceId); 17802 _argsSerializer.writePointer(_call); 17803 _argsSerializer.writePointer(_callSync); 17804 _argsSerializer.writeRichEditorTextSpanResult(parameter); 17805 (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asBuffer(), _argsSerializer.length())); 17806 _argsSerializer.release(); 17807 return; } 17808 } 17809 readRichEditorInsertValue(): RichEditorInsertValue { 17810 let valueDeserializer : Deserializer = this 17811 const insertOffset_result : number = (valueDeserializer.readNumber() as number) 17812 const insertValue_result : string = (valueDeserializer.readString() as string) 17813 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17814 let previewText_buf : string | undefined 17815 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 17816 { 17817 previewText_buf = (valueDeserializer.readString() as string) 17818 } 17819 const previewText_result : string | undefined = previewText_buf 17820 let value : RichEditorInsertValue = ({insertOffset: insertOffset_result, insertValue: insertValue_result, previewText: previewText_result} as RichEditorInsertValue) 17821 return value 17822 } 17823 readCallback_RichEditorInsertValue_Boolean(isSync: boolean = false): ((parameter: RichEditorInsertValue) => boolean) { 17824 const _resource : CallbackResource = this.readCallbackResource() 17825 const _call : KPointer = this.readPointer() 17826 const _callSync : KPointer = this.readPointer() 17827 return (parameter: RichEditorInsertValue):boolean => { 17828 const _argsSerializer : Serializer = Serializer.hold(); 17829 _argsSerializer.writeInt32(_resource.resourceId); 17830 _argsSerializer.writePointer(_call); 17831 _argsSerializer.writePointer(_callSync); 17832 _argsSerializer.writeRichEditorInsertValue(parameter); 17833 let _continuationValue : boolean | undefined; 17834 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 17835 _argsSerializer.holdAndWriteCallback(_continuationCallback); 17836 (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asBuffer(), _argsSerializer.length())); 17837 _argsSerializer.release(); 17838 return (_continuationValue as boolean); } 17839 } 17840 readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { 17841 const _resource : CallbackResource = this.readCallbackResource() 17842 const _call : KPointer = this.readPointer() 17843 const _callSync : KPointer = this.readPointer() 17844 return (parameter: RichEditorRange):void => { 17845 const _argsSerializer : Serializer = Serializer.hold(); 17846 _argsSerializer.writeInt32(_resource.resourceId); 17847 _argsSerializer.writePointer(_call); 17848 _argsSerializer.writePointer(_callSync); 17849 _argsSerializer.writeRichEditorRange(parameter); 17850 (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asBuffer(), _argsSerializer.length())); 17851 _argsSerializer.release(); 17852 return; } 17853 } 17854 readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { 17855 const _resource : CallbackResource = this.readCallbackResource() 17856 const _call : KPointer = this.readPointer() 17857 const _callSync : KPointer = this.readPointer() 17858 return (parameter: RichEditorSelection):void => { 17859 const _argsSerializer : Serializer = Serializer.hold(); 17860 _argsSerializer.writeInt32(_resource.resourceId); 17861 _argsSerializer.writePointer(_call); 17862 _argsSerializer.writePointer(_callSync); 17863 _argsSerializer.writeRichEditorSelection(parameter); 17864 (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asBuffer(), _argsSerializer.length())); 17865 _argsSerializer.release(); 17866 return; } 17867 } 17868 readStyledStringChangeValue(): StyledStringChangeValue { 17869 let valueDeserializer : Deserializer = this 17870 const range_result : TextRange = valueDeserializer.readTextRange() 17871 const replacementString_result : StyledString = (valueDeserializer.readStyledString() as StyledString) 17872 const previewText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17873 let previewText_buf : StyledString | undefined 17874 if ((RuntimeType.UNDEFINED) != (previewText_buf_runtimeType)) 17875 { 17876 previewText_buf = (valueDeserializer.readStyledString() as StyledString) 17877 } 17878 const previewText_result : StyledString | undefined = previewText_buf 17879 let value : StyledStringChangeValue = ({range: range_result, replacementString: replacementString_result, previewText: previewText_result} as StyledStringChangeValue) 17880 return value 17881 } 17882 readRichEditorParagraphResult(): RichEditorParagraphResult { 17883 let valueDeserializer : Deserializer = this 17884 const style_result : RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() 17885 const range_buf_value0 : number = (valueDeserializer.readNumber() as number) 17886 const range_buf_value1 : number = (valueDeserializer.readNumber() as number) 17887 const range_result : [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) 17888 let value : RichEditorParagraphResult = ({style: style_result, range: range_result} as RichEditorParagraphResult) 17889 return value 17890 } 17891 readRichEditorBaseController(): RichEditorBaseController { 17892 let valueDeserializer : Deserializer = this 17893 let ptr : KPointer = valueDeserializer.readPointer() 17894 return RichEditorBaseControllerInternal.fromPtr(ptr) 17895 } 17896 readLocalizedBarrierStyle(): LocalizedBarrierStyle { 17897 let valueDeserializer : Deserializer = this 17898 const id_result : string = (valueDeserializer.readString() as string) 17899 const localizedDirection_result : LocalizedBarrierDirection = (valueDeserializer.readInt32() as LocalizedBarrierDirection) 17900 const referencedId_buf_length : int32 = valueDeserializer.readInt32() 17901 let referencedId_buf : Array<string> = new Array<string>(referencedId_buf_length) 17902 for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { 17903 referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) 17904 } 17905 const referencedId_result : Array<string> = referencedId_buf 17906 let value : LocalizedBarrierStyle = ({id: id_result, localizedDirection: localizedDirection_result, referencedId: referencedId_result} as LocalizedBarrierStyle) 17907 return value 17908 } 17909 readBarrierStyle(): BarrierStyle { 17910 let valueDeserializer : Deserializer = this 17911 const id_result : string = (valueDeserializer.readString() as string) 17912 const direction_result : BarrierDirection = (valueDeserializer.readInt32() as BarrierDirection) 17913 const referencedId_buf_length : int32 = valueDeserializer.readInt32() 17914 let referencedId_buf : Array<string> = new Array<string>(referencedId_buf_length) 17915 for (let referencedId_buf_i = 0; referencedId_buf_i < referencedId_buf_length; referencedId_buf_i++) { 17916 referencedId_buf[referencedId_buf_i] = (valueDeserializer.readString() as string) 17917 } 17918 const referencedId_result : Array<string> = referencedId_buf 17919 let value : BarrierStyle = ({id: id_result, direction: direction_result, referencedId: referencedId_result} as BarrierStyle) 17920 return value 17921 } 17922 readGuideLineStyle(): GuideLineStyle { 17923 let valueDeserializer : Deserializer = this 17924 const id_result : string = (valueDeserializer.readString() as string) 17925 const direction_result : Axis = (valueDeserializer.readInt32() as Axis) 17926 const position_result : GuideLinePosition = valueDeserializer.readGuideLinePosition() 17927 let value : GuideLineStyle = ({id: id_result, direction: direction_result, position: position_result} as GuideLineStyle) 17928 return value 17929 } 17930 readCallback_RefreshStatus_Void(isSync: boolean = false): ((state: RefreshStatus) => void) { 17931 const _resource : CallbackResource = this.readCallbackResource() 17932 const _call : KPointer = this.readPointer() 17933 const _callSync : KPointer = this.readPointer() 17934 return (state: RefreshStatus):void => { 17935 const _argsSerializer : Serializer = Serializer.hold(); 17936 _argsSerializer.writeInt32(_resource.resourceId); 17937 _argsSerializer.writePointer(_call); 17938 _argsSerializer.writePointer(_callSync); 17939 _argsSerializer.writeInt32(state.valueOf()); 17940 (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asBuffer(), _argsSerializer.length())); 17941 _argsSerializer.release(); 17942 return; } 17943 } 17944 readRefreshOptions(): RefreshOptions { 17945 let valueDeserializer : Deserializer = this 17946 const refreshing_result : boolean = valueDeserializer.readBoolean() 17947 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17948 let offset_buf : number | string | undefined 17949 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 17950 { 17951 const offset_buf__selector : int32 = valueDeserializer.readInt8() 17952 let offset_buf_ : number | string | undefined 17953 if (offset_buf__selector == 0) { 17954 offset_buf_ = (valueDeserializer.readNumber() as number) 17955 } 17956 else if (offset_buf__selector == 1) { 17957 offset_buf_ = (valueDeserializer.readString() as string) 17958 } 17959 else { 17960 throw new Error("One of the branches for offset_buf_ has to be chosen through deserialisation.") 17961 } 17962 offset_buf = (offset_buf_ as number | string) 17963 } 17964 const offset_result : number | string | undefined = offset_buf 17965 const friction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17966 let friction_buf : number | string | undefined 17967 if ((RuntimeType.UNDEFINED) != (friction_buf_runtimeType)) 17968 { 17969 const friction_buf__selector : int32 = valueDeserializer.readInt8() 17970 let friction_buf_ : number | string | undefined 17971 if (friction_buf__selector == 0) { 17972 friction_buf_ = (valueDeserializer.readNumber() as number) 17973 } 17974 else if (friction_buf__selector == 1) { 17975 friction_buf_ = (valueDeserializer.readString() as string) 17976 } 17977 else { 17978 throw new Error("One of the branches for friction_buf_ has to be chosen through deserialisation.") 17979 } 17980 friction_buf = (friction_buf_ as number | string) 17981 } 17982 const friction_result : number | string | undefined = friction_buf 17983 const promptText_buf_runtimeType = (valueDeserializer.readInt8() as int32) 17984 let promptText_buf : ResourceStr | undefined 17985 if ((RuntimeType.UNDEFINED) != (promptText_buf_runtimeType)) 17986 { 17987 const promptText_buf__selector : int32 = valueDeserializer.readInt8() 17988 let promptText_buf_ : string | Resource | undefined 17989 if (promptText_buf__selector == 0) { 17990 promptText_buf_ = (valueDeserializer.readString() as string) 17991 } 17992 else if (promptText_buf__selector == 1) { 17993 promptText_buf_ = valueDeserializer.readResource() 17994 } 17995 else { 17996 throw new Error("One of the branches for promptText_buf_ has to be chosen through deserialisation.") 17997 } 17998 promptText_buf = (promptText_buf_ as string | Resource) 17999 } 18000 const promptText_result : ResourceStr | undefined = promptText_buf 18001 const builder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18002 let builder_buf : CustomBuilder | undefined 18003 if ((RuntimeType.UNDEFINED) != (builder_buf_runtimeType)) 18004 { 18005 builder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18006 } 18007 const builder_result : CustomBuilder | undefined = builder_buf 18008 const refreshingContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18009 let refreshingContent_buf : ComponentContent | undefined 18010 if ((RuntimeType.UNDEFINED) != (refreshingContent_buf_runtimeType)) 18011 { 18012 refreshingContent_buf = valueDeserializer.readComponentContent() 18013 } 18014 const refreshingContent_result : ComponentContent | undefined = refreshingContent_buf 18015 let value : RefreshOptions = ({refreshing: refreshing_result, offset: offset_result, friction: friction_result, promptText: promptText_result, builder: builder_result, refreshingContent: refreshingContent_result} as RefreshOptions) 18016 return value 18017 } 18018 readStarStyleOptions(): StarStyleOptions { 18019 let valueDeserializer : Deserializer = this 18020 const backgroundUri_result : string = (valueDeserializer.readString() as string) 18021 const foregroundUri_result : string = (valueDeserializer.readString() as string) 18022 const secondaryUri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18023 let secondaryUri_buf : string | undefined 18024 if ((RuntimeType.UNDEFINED) != (secondaryUri_buf_runtimeType)) 18025 { 18026 secondaryUri_buf = (valueDeserializer.readString() as string) 18027 } 18028 const secondaryUri_result : string | undefined = secondaryUri_buf 18029 let value : StarStyleOptions = ({backgroundUri: backgroundUri_result, foregroundUri: foregroundUri_result, secondaryUri: secondaryUri_result} as StarStyleOptions) 18030 return value 18031 } 18032 readRatingOptions(): RatingOptions { 18033 let valueDeserializer : Deserializer = this 18034 const rating_result : number = (valueDeserializer.readNumber() as number) 18035 const indicator_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18036 let indicator_buf : boolean | undefined 18037 if ((RuntimeType.UNDEFINED) != (indicator_buf_runtimeType)) 18038 { 18039 indicator_buf = valueDeserializer.readBoolean() 18040 } 18041 const indicator_result : boolean | undefined = indicator_buf 18042 let value : RatingOptions = ({rating: rating_result, indicator: indicator_result} as RatingOptions) 18043 return value 18044 } 18045 readRadioStyle(): RadioStyle { 18046 let valueDeserializer : Deserializer = this 18047 const checkedBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18048 let checkedBackgroundColor_buf : ResourceColor | undefined 18049 if ((RuntimeType.UNDEFINED) != (checkedBackgroundColor_buf_runtimeType)) 18050 { 18051 const checkedBackgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 18052 let checkedBackgroundColor_buf_ : Color | number | string | Resource | undefined 18053 if (checkedBackgroundColor_buf__selector == 0) { 18054 checkedBackgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 18055 } 18056 else if (checkedBackgroundColor_buf__selector == 1) { 18057 checkedBackgroundColor_buf_ = (valueDeserializer.readNumber() as number) 18058 } 18059 else if (checkedBackgroundColor_buf__selector == 2) { 18060 checkedBackgroundColor_buf_ = (valueDeserializer.readString() as string) 18061 } 18062 else if (checkedBackgroundColor_buf__selector == 3) { 18063 checkedBackgroundColor_buf_ = valueDeserializer.readResource() 18064 } 18065 else { 18066 throw new Error("One of the branches for checkedBackgroundColor_buf_ has to be chosen through deserialisation.") 18067 } 18068 checkedBackgroundColor_buf = (checkedBackgroundColor_buf_ as Color | number | string | Resource) 18069 } 18070 const checkedBackgroundColor_result : ResourceColor | undefined = checkedBackgroundColor_buf 18071 const uncheckedBorderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18072 let uncheckedBorderColor_buf : ResourceColor | undefined 18073 if ((RuntimeType.UNDEFINED) != (uncheckedBorderColor_buf_runtimeType)) 18074 { 18075 const uncheckedBorderColor_buf__selector : int32 = valueDeserializer.readInt8() 18076 let uncheckedBorderColor_buf_ : Color | number | string | Resource | undefined 18077 if (uncheckedBorderColor_buf__selector == 0) { 18078 uncheckedBorderColor_buf_ = (valueDeserializer.readInt32() as Color) 18079 } 18080 else if (uncheckedBorderColor_buf__selector == 1) { 18081 uncheckedBorderColor_buf_ = (valueDeserializer.readNumber() as number) 18082 } 18083 else if (uncheckedBorderColor_buf__selector == 2) { 18084 uncheckedBorderColor_buf_ = (valueDeserializer.readString() as string) 18085 } 18086 else if (uncheckedBorderColor_buf__selector == 3) { 18087 uncheckedBorderColor_buf_ = valueDeserializer.readResource() 18088 } 18089 else { 18090 throw new Error("One of the branches for uncheckedBorderColor_buf_ has to be chosen through deserialisation.") 18091 } 18092 uncheckedBorderColor_buf = (uncheckedBorderColor_buf_ as Color | number | string | Resource) 18093 } 18094 const uncheckedBorderColor_result : ResourceColor | undefined = uncheckedBorderColor_buf 18095 const indicatorColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18096 let indicatorColor_buf : ResourceColor | undefined 18097 if ((RuntimeType.UNDEFINED) != (indicatorColor_buf_runtimeType)) 18098 { 18099 const indicatorColor_buf__selector : int32 = valueDeserializer.readInt8() 18100 let indicatorColor_buf_ : Color | number | string | Resource | undefined 18101 if (indicatorColor_buf__selector == 0) { 18102 indicatorColor_buf_ = (valueDeserializer.readInt32() as Color) 18103 } 18104 else if (indicatorColor_buf__selector == 1) { 18105 indicatorColor_buf_ = (valueDeserializer.readNumber() as number) 18106 } 18107 else if (indicatorColor_buf__selector == 2) { 18108 indicatorColor_buf_ = (valueDeserializer.readString() as string) 18109 } 18110 else if (indicatorColor_buf__selector == 3) { 18111 indicatorColor_buf_ = valueDeserializer.readResource() 18112 } 18113 else { 18114 throw new Error("One of the branches for indicatorColor_buf_ has to be chosen through deserialisation.") 18115 } 18116 indicatorColor_buf = (indicatorColor_buf_ as Color | number | string | Resource) 18117 } 18118 const indicatorColor_result : ResourceColor | undefined = indicatorColor_buf 18119 let value : RadioStyle = ({checkedBackgroundColor: checkedBackgroundColor_result, uncheckedBorderColor: uncheckedBorderColor_result, indicatorColor: indicatorColor_result} as RadioStyle) 18120 return value 18121 } 18122 readRadioOptions(): RadioOptions { 18123 let valueDeserializer : Deserializer = this 18124 const group_result : string = (valueDeserializer.readString() as string) 18125 const value_result : string = (valueDeserializer.readString() as string) 18126 const indicatorType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18127 let indicatorType_buf : RadioIndicatorType | undefined 18128 if ((RuntimeType.UNDEFINED) != (indicatorType_buf_runtimeType)) 18129 { 18130 indicatorType_buf = (valueDeserializer.readInt32() as RadioIndicatorType) 18131 } 18132 const indicatorType_result : RadioIndicatorType | undefined = indicatorType_buf 18133 const indicatorBuilder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18134 let indicatorBuilder_buf : CustomBuilder | undefined 18135 if ((RuntimeType.UNDEFINED) != (indicatorBuilder_buf_runtimeType)) 18136 { 18137 indicatorBuilder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18138 } 18139 const indicatorBuilder_result : CustomBuilder | undefined = indicatorBuilder_buf 18140 let value : RadioOptions = ({group: group_result, value: value_result, indicatorType: indicatorType_result, indicatorBuilder: indicatorBuilder_result} as RadioOptions) 18141 return value 18142 } 18143 readProgressOptions(): ProgressOptions { 18144 let valueDeserializer : Deserializer = this 18145 const value_result : number = (valueDeserializer.readNumber() as number) 18146 const total_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18147 let total_buf : number | undefined 18148 if ((RuntimeType.UNDEFINED) != (total_buf_runtimeType)) 18149 { 18150 total_buf = (valueDeserializer.readNumber() as number) 18151 } 18152 const total_result : number | undefined = total_buf 18153 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18154 let style_buf : ProgressStyle | undefined 18155 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 18156 { 18157 style_buf = (valueDeserializer.readInt32() as ProgressStyle) 18158 } 18159 const style_result : ProgressStyle | undefined = style_buf 18160 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18161 let type_buf : ProgressType | undefined 18162 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 18163 { 18164 type_buf = (valueDeserializer.readInt32() as ProgressType) 18165 } 18166 const type_result : ProgressType | undefined = type_buf 18167 let value : ProgressOptions = ({value: value_result, total: total_result, style: style_result, type: type_result} as ProgressOptions) 18168 return value 18169 } 18170 readPolylineOptions(): PolylineOptions { 18171 let valueDeserializer : Deserializer = this 18172 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18173 let width_buf : string | number | undefined 18174 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18175 { 18176 const width_buf__selector : int32 = valueDeserializer.readInt8() 18177 let width_buf_ : string | number | undefined 18178 if (width_buf__selector == 0) { 18179 width_buf_ = (valueDeserializer.readString() as string) 18180 } 18181 else if (width_buf__selector == 1) { 18182 width_buf_ = (valueDeserializer.readNumber() as number) 18183 } 18184 else { 18185 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18186 } 18187 width_buf = (width_buf_ as string | number) 18188 } 18189 const width_result : string | number | undefined = width_buf 18190 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18191 let height_buf : string | number | undefined 18192 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18193 { 18194 const height_buf__selector : int32 = valueDeserializer.readInt8() 18195 let height_buf_ : string | number | undefined 18196 if (height_buf__selector == 0) { 18197 height_buf_ = (valueDeserializer.readString() as string) 18198 } 18199 else if (height_buf__selector == 1) { 18200 height_buf_ = (valueDeserializer.readNumber() as number) 18201 } 18202 else { 18203 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18204 } 18205 height_buf = (height_buf_ as string | number) 18206 } 18207 const height_result : string | number | undefined = height_buf 18208 let value : PolylineOptions = ({width: width_result, height: height_result} as PolylineOptions) 18209 return value 18210 } 18211 readPoint(): Point { 18212 let valueDeserializer : Deserializer = this 18213 const x_result : number = (valueDeserializer.readNumber() as number) 18214 const y_result : number = (valueDeserializer.readNumber() as number) 18215 let value : Point = ({x: x_result, y: y_result} as Point) 18216 return value 18217 } 18218 readPolygonOptions(): PolygonOptions { 18219 let valueDeserializer : Deserializer = this 18220 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18221 let width_buf : string | number | undefined 18222 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18223 { 18224 const width_buf__selector : int32 = valueDeserializer.readInt8() 18225 let width_buf_ : string | number | undefined 18226 if (width_buf__selector == 0) { 18227 width_buf_ = (valueDeserializer.readString() as string) 18228 } 18229 else if (width_buf__selector == 1) { 18230 width_buf_ = (valueDeserializer.readNumber() as number) 18231 } 18232 else { 18233 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18234 } 18235 width_buf = (width_buf_ as string | number) 18236 } 18237 const width_result : string | number | undefined = width_buf 18238 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18239 let height_buf : string | number | undefined 18240 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18241 { 18242 const height_buf__selector : int32 = valueDeserializer.readInt8() 18243 let height_buf_ : string | number | undefined 18244 if (height_buf__selector == 0) { 18245 height_buf_ = (valueDeserializer.readString() as string) 18246 } 18247 else if (height_buf__selector == 1) { 18248 height_buf_ = (valueDeserializer.readNumber() as number) 18249 } 18250 else { 18251 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18252 } 18253 height_buf = (height_buf_ as string | number) 18254 } 18255 const height_result : string | number | undefined = height_buf 18256 let value : PolygonOptions = ({width: width_result, height: height_result} as PolygonOptions) 18257 return value 18258 } 18259 readPluginComponentOptions(): PluginComponentOptions { 18260 let valueDeserializer : Deserializer = this 18261 const template_result : PluginComponentTemplate = valueDeserializer.readPluginComponentTemplate() 18262 const data_result : string = (valueDeserializer.readString() as string) 18263 let value : PluginComponentOptions = ({template: template_result, data: data_result} as PluginComponentOptions) 18264 return value 18265 } 18266 readPluginErrorData(): PluginErrorData { 18267 let valueDeserializer : Deserializer = this 18268 const errcode_result : number = (valueDeserializer.readNumber() as number) 18269 const msg_result : string = (valueDeserializer.readString() as string) 18270 let value : PluginErrorData = ({errcode: errcode_result, msg: msg_result} as PluginErrorData) 18271 return value 18272 } 18273 readPluginErrorCallback(isSync: boolean = false): PluginErrorCallback { 18274 const _resource : CallbackResource = this.readCallbackResource() 18275 const _call : KPointer = this.readPointer() 18276 const _callSync : KPointer = this.readPointer() 18277 return (info: PluginErrorData):void => { 18278 const _argsSerializer : Serializer = Serializer.hold(); 18279 _argsSerializer.writeInt32(_resource.resourceId); 18280 _argsSerializer.writePointer(_call); 18281 _argsSerializer.writePointer(_callSync); 18282 _argsSerializer.writePluginErrorData(info); 18283 (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asBuffer(), _argsSerializer.length())); 18284 _argsSerializer.release(); 18285 return; } 18286 } 18287 readCallback_Array_Number_Void(isSync: boolean = false): ((input: Array<number>) => void) { 18288 const _resource : CallbackResource = this.readCallbackResource() 18289 const _call : KPointer = this.readPointer() 18290 const _callSync : KPointer = this.readPointer() 18291 return (input: Array<number>):void => { 18292 const _argsSerializer : Serializer = Serializer.hold(); 18293 _argsSerializer.writeInt32(_resource.resourceId); 18294 _argsSerializer.writePointer(_call); 18295 _argsSerializer.writePointer(_callSync); 18296 _argsSerializer.writeInt32(input.length as int32); 18297 for (let i = 0; i < input.length; i++) { 18298 const input_element : number = input[i]; 18299 _argsSerializer.writeNumber(input_element); 18300 } 18301 (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asBuffer(), _argsSerializer.length())); 18302 _argsSerializer.release(); 18303 return; } 18304 } 18305 readPatternLockController(): PatternLockController { 18306 let valueDeserializer : Deserializer = this 18307 let ptr : KPointer = valueDeserializer.readPointer() 18308 return PatternLockControllerInternal.fromPtr(ptr) 18309 } 18310 readPathOptions(): PathOptions { 18311 let valueDeserializer : Deserializer = this 18312 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18313 let width_buf : number | string | undefined 18314 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 18315 { 18316 const width_buf__selector : int32 = valueDeserializer.readInt8() 18317 let width_buf_ : number | string | undefined 18318 if (width_buf__selector == 0) { 18319 width_buf_ = (valueDeserializer.readNumber() as number) 18320 } 18321 else if (width_buf__selector == 1) { 18322 width_buf_ = (valueDeserializer.readString() as string) 18323 } 18324 else { 18325 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 18326 } 18327 width_buf = (width_buf_ as number | string) 18328 } 18329 const width_result : number | string | undefined = width_buf 18330 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18331 let height_buf : number | string | undefined 18332 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 18333 { 18334 const height_buf__selector : int32 = valueDeserializer.readInt8() 18335 let height_buf_ : number | string | undefined 18336 if (height_buf__selector == 0) { 18337 height_buf_ = (valueDeserializer.readNumber() as number) 18338 } 18339 else if (height_buf__selector == 1) { 18340 height_buf_ = (valueDeserializer.readString() as string) 18341 } 18342 else { 18343 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 18344 } 18345 height_buf = (height_buf_ as number | string) 18346 } 18347 const height_result : number | string | undefined = height_buf 18348 const commands_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18349 let commands_buf : string | undefined 18350 if ((RuntimeType.UNDEFINED) != (commands_buf_runtimeType)) 18351 { 18352 commands_buf = (valueDeserializer.readString() as string) 18353 } 18354 const commands_result : string | undefined = commands_buf 18355 let value : PathOptions = ({width: width_result, height: height_result, commands: commands_result} as PathOptions) 18356 return value 18357 } 18358 readCallback_ClickEvent_PasteButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent,result: PasteButtonOnClickResult) => void) { 18359 const _resource : CallbackResource = this.readCallbackResource() 18360 const _call : KPointer = this.readPointer() 18361 const _callSync : KPointer = this.readPointer() 18362 return (event: ClickEvent, result: PasteButtonOnClickResult):void => { 18363 const _argsSerializer : Serializer = Serializer.hold(); 18364 _argsSerializer.writeInt32(_resource.resourceId); 18365 _argsSerializer.writePointer(_call); 18366 _argsSerializer.writePointer(_callSync); 18367 _argsSerializer.writeClickEvent(event); 18368 _argsSerializer.writeInt32(result.valueOf()); 18369 (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asBuffer(), _argsSerializer.length())); 18370 _argsSerializer.release(); 18371 return; } 18372 } 18373 readPasteButtonOptions(): PasteButtonOptions { 18374 let valueDeserializer : Deserializer = this 18375 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18376 let icon_buf : PasteIconStyle | undefined 18377 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18378 { 18379 icon_buf = (valueDeserializer.readInt32() as PasteIconStyle) 18380 } 18381 const icon_result : PasteIconStyle | undefined = icon_buf 18382 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18383 let text_buf : PasteDescription | undefined 18384 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 18385 { 18386 text_buf = (valueDeserializer.readInt32() as PasteDescription) 18387 } 18388 const text_result : PasteDescription | undefined = text_buf 18389 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18390 let buttonType_buf : ButtonType | undefined 18391 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 18392 { 18393 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 18394 } 18395 const buttonType_result : ButtonType | undefined = buttonType_buf 18396 let value : PasteButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as PasteButtonOptions) 18397 return value 18398 } 18399 readCallback_Number_Number_PanelMode_Void(isSync: boolean = false): ((width: number,height: number,mode: PanelMode) => void) { 18400 const _resource : CallbackResource = this.readCallbackResource() 18401 const _call : KPointer = this.readPointer() 18402 const _callSync : KPointer = this.readPointer() 18403 return (width: number, height: number, mode: PanelMode):void => { 18404 const _argsSerializer : Serializer = Serializer.hold(); 18405 _argsSerializer.writeInt32(_resource.resourceId); 18406 _argsSerializer.writePointer(_call); 18407 _argsSerializer.writePointer(_callSync); 18408 _argsSerializer.writeNumber(width); 18409 _argsSerializer.writeNumber(height); 18410 _argsSerializer.writeInt32(mode.valueOf()); 18411 (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asBuffer(), _argsSerializer.length())); 18412 _argsSerializer.release(); 18413 return; } 18414 } 18415 readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { 18416 const _resource : CallbackResource = this.readCallbackResource() 18417 const _call : KPointer = this.readPointer() 18418 const _callSync : KPointer = this.readPointer() 18419 return (type: RouteType, progress: number):void => { 18420 const _argsSerializer : Serializer = Serializer.hold(); 18421 _argsSerializer.writeInt32(_resource.resourceId); 18422 _argsSerializer.writePointer(_call); 18423 _argsSerializer.writePointer(_callSync); 18424 _argsSerializer.writeInt32(type.valueOf()); 18425 _argsSerializer.writeNumber(progress); 18426 (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asBuffer(), _argsSerializer.length())); 18427 _argsSerializer.release(); 18428 return; } 18429 } 18430 readNodeController(): NodeController { 18431 let value : NodeController = ({} as NodeController) 18432 return value 18433 } 18434 readNavigationTransitionProxy(): NavigationTransitionProxy { 18435 let valueDeserializer : Deserializer = this 18436 let ptr : KPointer = valueDeserializer.readPointer() 18437 return NavigationTransitionProxyInternal.fromPtr(ptr) 18438 } 18439 readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { 18440 const _resource : CallbackResource = this.readCallbackResource() 18441 const _call : KPointer = this.readPointer() 18442 const _callSync : KPointer = this.readPointer() 18443 return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { 18444 const _argsSerializer : Serializer = Serializer.hold(); 18445 _argsSerializer.writeInt32(_resource.resourceId); 18446 _argsSerializer.writePointer(_call); 18447 _argsSerializer.writePointer(_callSync); 18448 _argsSerializer.writeNavContentInfo(from); 18449 _argsSerializer.writeNavContentInfo(to); 18450 _argsSerializer.writeInt32(operation.valueOf()); 18451 let _continuationValue : NavigationAnimatedTransition | undefined; 18452 const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } 18453 _argsSerializer.holdAndWriteCallback(_continuationCallback); 18454 (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asBuffer(), _argsSerializer.length())); 18455 _argsSerializer.release(); 18456 return (_continuationValue as NavigationAnimatedTransition | undefined); } 18457 } 18458 readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string,param: object) => void) { 18459 const _resource : CallbackResource = this.readCallbackResource() 18460 const _call : KPointer = this.readPointer() 18461 const _callSync : KPointer = this.readPointer() 18462 return (name: string, param: object):void => { 18463 const _argsSerializer : Serializer = Serializer.hold(); 18464 _argsSerializer.writeInt32(_resource.resourceId); 18465 _argsSerializer.writePointer(_call); 18466 _argsSerializer.writePointer(_callSync); 18467 _argsSerializer.writeString(name); 18468 _argsSerializer.writeCustomObject("Any", param); 18469 (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asBuffer(), _argsSerializer.length())); 18470 _argsSerializer.release(); 18471 return; } 18472 } 18473 readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { 18474 const _resource : CallbackResource = this.readCallbackResource() 18475 const _call : KPointer = this.readPointer() 18476 const _callSync : KPointer = this.readPointer() 18477 return (mode: NavigationMode):void => { 18478 const _argsSerializer : Serializer = Serializer.hold(); 18479 _argsSerializer.writeInt32(_resource.resourceId); 18480 _argsSerializer.writePointer(_call); 18481 _argsSerializer.writePointer(_callSync); 18482 _argsSerializer.writeInt32(mode.valueOf()); 18483 (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asBuffer(), _argsSerializer.length())); 18484 _argsSerializer.release(); 18485 return; } 18486 } 18487 readCallback_ScrollResult_Void(isSync: boolean = false): ((value: ScrollResult) => void) { 18488 const _resource : CallbackResource = this.readCallbackResource() 18489 const _call : KPointer = this.readPointer() 18490 const _callSync : KPointer = this.readPointer() 18491 return (value: ScrollResult):void => { const _argsSerializer : Serializer = Serializer.hold(); 18492 _argsSerializer.writeInt32(_resource.resourceId); 18493 _argsSerializer.writePointer(_call); 18494 _argsSerializer.writePointer(_callSync); 18495 _argsSerializer.writeScrollResult(value); 18496 (isSync) ? (InteropNativeModule._CallCallbackSync(1385252075, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1385252075, _argsSerializer.asBuffer(), _argsSerializer.length())); 18497 _argsSerializer.release(); 18498 return; } 18499 } 18500 readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { 18501 const _resource : CallbackResource = this.readCallbackResource() 18502 const _call : KPointer = this.readPointer() 18503 const _callSync : KPointer = this.readPointer() 18504 return (titleMode: NavigationTitleMode):void => { 18505 const _argsSerializer : Serializer = Serializer.hold(); 18506 _argsSerializer.writeInt32(_resource.resourceId); 18507 _argsSerializer.writePointer(_call); 18508 _argsSerializer.writePointer(_callSync); 18509 _argsSerializer.writeInt32(titleMode.valueOf()); 18510 (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asBuffer(), _argsSerializer.length())); 18511 _argsSerializer.release(); 18512 return; } 18513 } 18514 readRouteInfo(): RouteInfo { 18515 let valueDeserializer : Deserializer = this 18516 const name_result : string = (valueDeserializer.readString() as string) 18517 const param_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18518 let param_buf : object | undefined 18519 if ((RuntimeType.UNDEFINED) != (param_buf_runtimeType)) 18520 { 18521 param_buf = (valueDeserializer.readCustomObject("Any") as Object) 18522 } 18523 const param_result : object | undefined = param_buf 18524 let value : RouteInfo = ({name: name_result, param: param_result} as RouteInfo) 18525 return value 18526 } 18527 readToolbarItem(): ToolbarItem { 18528 let valueDeserializer : Deserializer = this 18529 const value_buf_selector : int32 = valueDeserializer.readInt8() 18530 let value_buf : string | Resource | undefined 18531 if (value_buf_selector == 0) { 18532 value_buf = (valueDeserializer.readString() as string) 18533 } 18534 else if (value_buf_selector == 1) { 18535 value_buf = valueDeserializer.readResource() 18536 } 18537 else { 18538 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 18539 } 18540 const value_result : ResourceStr = (value_buf as string | Resource) 18541 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18542 let icon_buf : ResourceStr | undefined 18543 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18544 { 18545 const icon_buf__selector : int32 = valueDeserializer.readInt8() 18546 let icon_buf_ : string | Resource | undefined 18547 if (icon_buf__selector == 0) { 18548 icon_buf_ = (valueDeserializer.readString() as string) 18549 } 18550 else if (icon_buf__selector == 1) { 18551 icon_buf_ = valueDeserializer.readResource() 18552 } 18553 else { 18554 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 18555 } 18556 icon_buf = (icon_buf_ as string | Resource) 18557 } 18558 const icon_result : ResourceStr | undefined = icon_buf 18559 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18560 let symbolIcon_buf : SymbolGlyphModifier | undefined 18561 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 18562 { 18563 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18564 } 18565 const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf 18566 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18567 let action_buf : (() => void) | undefined 18568 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 18569 { 18570 action_buf = valueDeserializer.readCallback_Void() 18571 } 18572 const action_result : (() => void) | undefined = action_buf 18573 const status_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18574 let status_buf : ToolbarItemStatus | undefined 18575 if ((RuntimeType.UNDEFINED) != (status_buf_runtimeType)) 18576 { 18577 status_buf = (valueDeserializer.readInt32() as ToolbarItemStatus) 18578 } 18579 const status_result : ToolbarItemStatus | undefined = status_buf 18580 const activeIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18581 let activeIcon_buf : ResourceStr | undefined 18582 if ((RuntimeType.UNDEFINED) != (activeIcon_buf_runtimeType)) 18583 { 18584 const activeIcon_buf__selector : int32 = valueDeserializer.readInt8() 18585 let activeIcon_buf_ : string | Resource | undefined 18586 if (activeIcon_buf__selector == 0) { 18587 activeIcon_buf_ = (valueDeserializer.readString() as string) 18588 } 18589 else if (activeIcon_buf__selector == 1) { 18590 activeIcon_buf_ = valueDeserializer.readResource() 18591 } 18592 else { 18593 throw new Error("One of the branches for activeIcon_buf_ has to be chosen through deserialisation.") 18594 } 18595 activeIcon_buf = (activeIcon_buf_ as string | Resource) 18596 } 18597 const activeIcon_result : ResourceStr | undefined = activeIcon_buf 18598 const activeSymbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18599 let activeSymbolIcon_buf : SymbolGlyphModifier | undefined 18600 if ((RuntimeType.UNDEFINED) != (activeSymbolIcon_buf_runtimeType)) 18601 { 18602 activeSymbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18603 } 18604 const activeSymbolIcon_result : SymbolGlyphModifier | undefined = activeSymbolIcon_buf 18605 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) 18606 return value 18607 } 18608 readNavigationMenuItem(): NavigationMenuItem { 18609 let valueDeserializer : Deserializer = this 18610 const value_buf_selector : int32 = valueDeserializer.readInt8() 18611 let value_buf : string | Resource | undefined 18612 if (value_buf_selector == 0) { 18613 value_buf = (valueDeserializer.readString() as string) 18614 } 18615 else if (value_buf_selector == 1) { 18616 value_buf = valueDeserializer.readResource() 18617 } 18618 else { 18619 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 18620 } 18621 const value_result : string | Resource = (value_buf as string | Resource) 18622 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18623 let icon_buf : string | Resource | undefined 18624 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18625 { 18626 const icon_buf__selector : int32 = valueDeserializer.readInt8() 18627 let icon_buf_ : string | Resource | undefined 18628 if (icon_buf__selector == 0) { 18629 icon_buf_ = (valueDeserializer.readString() as string) 18630 } 18631 else if (icon_buf__selector == 1) { 18632 icon_buf_ = valueDeserializer.readResource() 18633 } 18634 else { 18635 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 18636 } 18637 icon_buf = (icon_buf_ as string | Resource) 18638 } 18639 const icon_result : string | Resource | undefined = icon_buf 18640 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18641 let symbolIcon_buf : SymbolGlyphModifier | undefined 18642 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 18643 { 18644 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 18645 } 18646 const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf 18647 const isEnabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18648 let isEnabled_buf : boolean | undefined 18649 if ((RuntimeType.UNDEFINED) != (isEnabled_buf_runtimeType)) 18650 { 18651 isEnabled_buf = valueDeserializer.readBoolean() 18652 } 18653 const isEnabled_result : boolean | undefined = isEnabled_buf 18654 const action_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18655 let action_buf : (() => void) | undefined 18656 if ((RuntimeType.UNDEFINED) != (action_buf_runtimeType)) 18657 { 18658 action_buf = valueDeserializer.readCallback_Void() 18659 } 18660 const action_result : (() => void) | undefined = action_buf 18661 let value : NavigationMenuItem = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, isEnabled: isEnabled_result, action: action_result} as NavigationMenuItem) 18662 return value 18663 } 18664 readCallback_NavDestinationContext_Void(isSync: boolean = false): ((parameter: NavDestinationContext) => void) { 18665 const _resource : CallbackResource = this.readCallbackResource() 18666 const _call : KPointer = this.readPointer() 18667 const _callSync : KPointer = this.readPointer() 18668 return (parameter: NavDestinationContext):void => { 18669 const _argsSerializer : Serializer = Serializer.hold(); 18670 _argsSerializer.writeInt32(_resource.resourceId); 18671 _argsSerializer.writePointer(_call); 18672 _argsSerializer.writePointer(_callSync); 18673 _argsSerializer.writeNavDestinationContext(parameter); 18674 (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asBuffer(), _argsSerializer.length())); 18675 _argsSerializer.release(); 18676 return; } 18677 } 18678 readCallback_Boolean(isSync: boolean = false): (() => boolean) { 18679 const _resource : CallbackResource = this.readCallbackResource() 18680 const _call : KPointer = this.readPointer() 18681 const _callSync : KPointer = this.readPointer() 18682 return ():boolean => { 18683 const _argsSerializer : Serializer = Serializer.hold(); 18684 _argsSerializer.writeInt32(_resource.resourceId); 18685 _argsSerializer.writePointer(_call); 18686 _argsSerializer.writePointer(_callSync); 18687 let _continuationValue : boolean | undefined; 18688 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 18689 _argsSerializer.holdAndWriteCallback(_continuationCallback); 18690 (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asBuffer(), _argsSerializer.length())); 18691 _argsSerializer.release(); 18692 return (_continuationValue as boolean); } 18693 } 18694 readPopInfo(): PopInfo { 18695 let valueDeserializer : Deserializer = this 18696 const info_result : NavPathInfo = (valueDeserializer.readNavPathInfo() as NavPathInfo) 18697 const result_result : Object = (valueDeserializer.readCustomObject("Object") as Object) 18698 let value : PopInfo = ({info: info_result, result: result_result} as PopInfo) 18699 return value 18700 } 18701 readMenuItemGroupOptions(): MenuItemGroupOptions { 18702 let valueDeserializer : Deserializer = this 18703 const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18704 let header_buf : ResourceStr | CustomBuilder | undefined 18705 if ((RuntimeType.UNDEFINED) != (header_buf_runtimeType)) 18706 { 18707 const header_buf__selector : int32 = valueDeserializer.readInt8() 18708 let header_buf_ : ResourceStr | CustomBuilder | undefined 18709 if (header_buf__selector == 0) { 18710 const header_buf__u_selector : int32 = valueDeserializer.readInt8() 18711 let header_buf__u : string | Resource | undefined 18712 if (header_buf__u_selector == 0) { 18713 header_buf__u = (valueDeserializer.readString() as string) 18714 } 18715 else if (header_buf__u_selector == 1) { 18716 header_buf__u = valueDeserializer.readResource() 18717 } 18718 else { 18719 throw new Error("One of the branches for header_buf__u has to be chosen through deserialisation.") 18720 } 18721 header_buf_ = (header_buf__u as string | Resource) 18722 } 18723 else if (header_buf__selector == 1) { 18724 header_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18725 } 18726 else { 18727 throw new Error("One of the branches for header_buf_ has to be chosen through deserialisation.") 18728 } 18729 header_buf = (header_buf_ as ResourceStr | CustomBuilder) 18730 } 18731 const header_result : ResourceStr | CustomBuilder | undefined = header_buf 18732 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18733 let footer_buf : ResourceStr | CustomBuilder | undefined 18734 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 18735 { 18736 const footer_buf__selector : int32 = valueDeserializer.readInt8() 18737 let footer_buf_ : ResourceStr | CustomBuilder | undefined 18738 if (footer_buf__selector == 0) { 18739 const footer_buf__u_selector : int32 = valueDeserializer.readInt8() 18740 let footer_buf__u : string | Resource | undefined 18741 if (footer_buf__u_selector == 0) { 18742 footer_buf__u = (valueDeserializer.readString() as string) 18743 } 18744 else if (footer_buf__u_selector == 1) { 18745 footer_buf__u = valueDeserializer.readResource() 18746 } 18747 else { 18748 throw new Error("One of the branches for footer_buf__u has to be chosen through deserialisation.") 18749 } 18750 footer_buf_ = (footer_buf__u as string | Resource) 18751 } 18752 else if (footer_buf__selector == 1) { 18753 footer_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18754 } 18755 else { 18756 throw new Error("One of the branches for footer_buf_ has to be chosen through deserialisation.") 18757 } 18758 footer_buf = (footer_buf_ as ResourceStr | CustomBuilder) 18759 } 18760 const footer_result : ResourceStr | CustomBuilder | undefined = footer_buf 18761 let value : MenuItemGroupOptions = ({header: header_result, footer: footer_result} as MenuItemGroupOptions) 18762 return value 18763 } 18764 readMarqueeOptions(): MarqueeOptions { 18765 let valueDeserializer : Deserializer = this 18766 const start_result : boolean = valueDeserializer.readBoolean() 18767 const step_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18768 let step_buf : number | undefined 18769 if ((RuntimeType.UNDEFINED) != (step_buf_runtimeType)) 18770 { 18771 step_buf = (valueDeserializer.readNumber() as number) 18772 } 18773 const step_result : number | undefined = step_buf 18774 const loop_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18775 let loop_buf : number | undefined 18776 if ((RuntimeType.UNDEFINED) != (loop_buf_runtimeType)) 18777 { 18778 loop_buf = (valueDeserializer.readNumber() as number) 18779 } 18780 const loop_result : number | undefined = loop_buf 18781 const fromStart_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18782 let fromStart_buf : boolean | undefined 18783 if ((RuntimeType.UNDEFINED) != (fromStart_buf_runtimeType)) 18784 { 18785 fromStart_buf = valueDeserializer.readBoolean() 18786 } 18787 const fromStart_result : boolean | undefined = fromStart_buf 18788 const src_result : string = (valueDeserializer.readString() as string) 18789 let value : MarqueeOptions = ({start: start_result, step: step_result, loop: loop_result, fromStart: fromStart_result, src: src_result} as MarqueeOptions) 18790 return value 18791 } 18792 readCallback_ClickEvent_LocationButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent,result: LocationButtonOnClickResult) => void) { 18793 const _resource : CallbackResource = this.readCallbackResource() 18794 const _call : KPointer = this.readPointer() 18795 const _callSync : KPointer = this.readPointer() 18796 return (event: ClickEvent, result: LocationButtonOnClickResult):void => { 18797 const _argsSerializer : Serializer = Serializer.hold(); 18798 _argsSerializer.writeInt32(_resource.resourceId); 18799 _argsSerializer.writePointer(_call); 18800 _argsSerializer.writePointer(_callSync); 18801 _argsSerializer.writeClickEvent(event); 18802 _argsSerializer.writeInt32(result.valueOf()); 18803 (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asBuffer(), _argsSerializer.length())); 18804 _argsSerializer.release(); 18805 return; } 18806 } 18807 readLocationButtonOptions(): LocationButtonOptions { 18808 let valueDeserializer : Deserializer = this 18809 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18810 let icon_buf : LocationIconStyle | undefined 18811 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 18812 { 18813 icon_buf = (valueDeserializer.readInt32() as LocationIconStyle) 18814 } 18815 const icon_result : LocationIconStyle | undefined = icon_buf 18816 const text_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18817 let text_buf : LocationDescription | undefined 18818 if ((RuntimeType.UNDEFINED) != (text_buf_runtimeType)) 18819 { 18820 text_buf = (valueDeserializer.readInt32() as LocationDescription) 18821 } 18822 const text_result : LocationDescription | undefined = text_buf 18823 const buttonType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18824 let buttonType_buf : ButtonType | undefined 18825 if ((RuntimeType.UNDEFINED) != (buttonType_buf_runtimeType)) 18826 { 18827 buttonType_buf = (valueDeserializer.readInt32() as ButtonType) 18828 } 18829 const buttonType_result : ButtonType | undefined = buttonType_buf 18830 let value : LocationButtonOptions = ({icon: icon_result, text: text_result, buttonType: buttonType_result} as LocationButtonOptions) 18831 return value 18832 } 18833 readListItemGroupOptions(): ListItemGroupOptions { 18834 let valueDeserializer : Deserializer = this 18835 const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18836 let header_buf : CustomBuilder | undefined 18837 if ((RuntimeType.UNDEFINED) != (header_buf_runtimeType)) 18838 { 18839 header_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18840 } 18841 const header_result : CustomBuilder | undefined = header_buf 18842 const headerComponent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18843 let headerComponent_buf : ComponentContent | undefined 18844 if ((RuntimeType.UNDEFINED) != (headerComponent_buf_runtimeType)) 18845 { 18846 headerComponent_buf = valueDeserializer.readComponentContent() 18847 } 18848 const headerComponent_result : ComponentContent | undefined = headerComponent_buf 18849 const footer_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18850 let footer_buf : CustomBuilder | undefined 18851 if ((RuntimeType.UNDEFINED) != (footer_buf_runtimeType)) 18852 { 18853 footer_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18854 } 18855 const footer_result : CustomBuilder | undefined = footer_buf 18856 const footerComponent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18857 let footerComponent_buf : ComponentContent | undefined 18858 if ((RuntimeType.UNDEFINED) != (footerComponent_buf_runtimeType)) 18859 { 18860 footerComponent_buf = valueDeserializer.readComponentContent() 18861 } 18862 const footerComponent_result : ComponentContent | undefined = footerComponent_buf 18863 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18864 let space_buf : number | string | undefined 18865 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 18866 { 18867 const space_buf__selector : int32 = valueDeserializer.readInt8() 18868 let space_buf_ : number | string | undefined 18869 if (space_buf__selector == 0) { 18870 space_buf_ = (valueDeserializer.readNumber() as number) 18871 } 18872 else if (space_buf__selector == 1) { 18873 space_buf_ = (valueDeserializer.readString() as string) 18874 } 18875 else { 18876 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 18877 } 18878 space_buf = (space_buf_ as number | string) 18879 } 18880 const space_result : number | string | undefined = space_buf 18881 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18882 let style_buf : ListItemGroupStyle | undefined 18883 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 18884 { 18885 style_buf = (valueDeserializer.readInt32() as ListItemGroupStyle) 18886 } 18887 const style_result : ListItemGroupStyle | undefined = style_buf 18888 let value : ListItemGroupOptions = ({header: header_result, headerComponent: headerComponent_result, footer: footer_result, footerComponent: footerComponent_result, space: space_result, style: style_result} as ListItemGroupOptions) 18889 return value 18890 } 18891 readSwipeActionOptions(): SwipeActionOptions { 18892 let valueDeserializer : Deserializer = this 18893 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18894 let start_buf : CustomBuilder | SwipeActionItem | undefined 18895 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 18896 { 18897 const start_buf__selector : int32 = valueDeserializer.readInt8() 18898 let start_buf_ : CustomBuilder | SwipeActionItem | undefined 18899 if (start_buf__selector == 0) { 18900 start_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18901 } 18902 else if (start_buf__selector == 1) { 18903 start_buf_ = valueDeserializer.readSwipeActionItem() 18904 } 18905 else { 18906 throw new Error("One of the branches for start_buf_ has to be chosen through deserialisation.") 18907 } 18908 start_buf = (start_buf_ as CustomBuilder | SwipeActionItem) 18909 } 18910 const start_result : CustomBuilder | SwipeActionItem | undefined = start_buf 18911 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18912 let end_buf : CustomBuilder | SwipeActionItem | undefined 18913 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 18914 { 18915 const end_buf__selector : int32 = valueDeserializer.readInt8() 18916 let end_buf_ : CustomBuilder | SwipeActionItem | undefined 18917 if (end_buf__selector == 0) { 18918 end_buf_ = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 18919 } 18920 else if (end_buf__selector == 1) { 18921 end_buf_ = valueDeserializer.readSwipeActionItem() 18922 } 18923 else { 18924 throw new Error("One of the branches for end_buf_ has to be chosen through deserialisation.") 18925 } 18926 end_buf = (end_buf_ as CustomBuilder | SwipeActionItem) 18927 } 18928 const end_result : CustomBuilder | SwipeActionItem | undefined = end_buf 18929 const edgeEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18930 let edgeEffect_buf : SwipeEdgeEffect | undefined 18931 if ((RuntimeType.UNDEFINED) != (edgeEffect_buf_runtimeType)) 18932 { 18933 edgeEffect_buf = (valueDeserializer.readInt32() as SwipeEdgeEffect) 18934 } 18935 const edgeEffect_result : SwipeEdgeEffect | undefined = edgeEffect_buf 18936 const onOffsetChange_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18937 let onOffsetChange_buf : ((index: number) => void) | undefined 18938 if ((RuntimeType.UNDEFINED) != (onOffsetChange_buf_runtimeType)) 18939 { 18940 onOffsetChange_buf = valueDeserializer.readCallback_Number_Void() 18941 } 18942 const onOffsetChange_result : ((index: number) => void) | undefined = onOffsetChange_buf 18943 let value : SwipeActionOptions = ({start: start_result, end: end_result, edgeEffect: edgeEffect_result, onOffsetChange: onOffsetChange_result} as SwipeActionOptions) 18944 return value 18945 } 18946 readListItemOptions(): ListItemOptions { 18947 let valueDeserializer : Deserializer = this 18948 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18949 let style_buf : ListItemStyle | undefined 18950 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 18951 { 18952 style_buf = (valueDeserializer.readInt32() as ListItemStyle) 18953 } 18954 const style_result : ListItemStyle | undefined = style_buf 18955 let value : ListItemOptions = ({style: style_result} as ListItemOptions) 18956 return value 18957 } 18958 readChainAnimationOptions(): ChainAnimationOptions { 18959 let valueDeserializer : Deserializer = this 18960 const minSpace_result : Length = (valueDeserializer.readLength() as Length) 18961 const maxSpace_result : Length = (valueDeserializer.readLength() as Length) 18962 const conductivity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18963 let conductivity_buf : number | undefined 18964 if ((RuntimeType.UNDEFINED) != (conductivity_buf_runtimeType)) 18965 { 18966 conductivity_buf = (valueDeserializer.readNumber() as number) 18967 } 18968 const conductivity_result : number | undefined = conductivity_buf 18969 const intensity_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18970 let intensity_buf : number | undefined 18971 if ((RuntimeType.UNDEFINED) != (intensity_buf_runtimeType)) 18972 { 18973 intensity_buf = (valueDeserializer.readNumber() as number) 18974 } 18975 const intensity_result : number | undefined = intensity_buf 18976 const edgeEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18977 let edgeEffect_buf : ChainEdgeEffect | undefined 18978 if ((RuntimeType.UNDEFINED) != (edgeEffect_buf_runtimeType)) 18979 { 18980 edgeEffect_buf = (valueDeserializer.readInt32() as ChainEdgeEffect) 18981 } 18982 const edgeEffect_result : ChainEdgeEffect | undefined = edgeEffect_buf 18983 const stiffness_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18984 let stiffness_buf : number | undefined 18985 if ((RuntimeType.UNDEFINED) != (stiffness_buf_runtimeType)) 18986 { 18987 stiffness_buf = (valueDeserializer.readNumber() as number) 18988 } 18989 const stiffness_result : number | undefined = stiffness_buf 18990 const damping_buf_runtimeType = (valueDeserializer.readInt8() as int32) 18991 let damping_buf : number | undefined 18992 if ((RuntimeType.UNDEFINED) != (damping_buf_runtimeType)) 18993 { 18994 damping_buf = (valueDeserializer.readNumber() as number) 18995 } 18996 const damping_result : number | undefined = damping_buf 18997 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) 18998 return value 18999 } 19000 readCallback_Number_Number_Boolean(isSync: boolean = false): ((from: number,to: number) => boolean) { 19001 const _resource : CallbackResource = this.readCallbackResource() 19002 const _call : KPointer = this.readPointer() 19003 const _callSync : KPointer = this.readPointer() 19004 return (from: number, to: number):boolean => { 19005 const _argsSerializer : Serializer = Serializer.hold(); 19006 _argsSerializer.writeInt32(_resource.resourceId); 19007 _argsSerializer.writePointer(_call); 19008 _argsSerializer.writePointer(_callSync); 19009 _argsSerializer.writeNumber(from); 19010 _argsSerializer.writeNumber(to); 19011 let _continuationValue : boolean | undefined; 19012 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 19013 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19014 (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asBuffer(), _argsSerializer.length())); 19015 _argsSerializer.release(); 19016 return (_continuationValue as boolean); } 19017 } 19018 readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { 19019 const _resource : CallbackResource = this.readCallbackResource() 19020 const _call : KPointer = this.readPointer() 19021 const _callSync : KPointer = this.readPointer() 19022 return (index: number):boolean => { 19023 const _argsSerializer : Serializer = Serializer.hold(); 19024 _argsSerializer.writeInt32(_resource.resourceId); 19025 _argsSerializer.writePointer(_call); 19026 _argsSerializer.writePointer(_callSync); 19027 _argsSerializer.writeNumber(index); 19028 let _continuationValue : boolean | undefined; 19029 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 19030 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19031 (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asBuffer(), _argsSerializer.length())); 19032 _argsSerializer.release(); 19033 return (_continuationValue as boolean); } 19034 } 19035 readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number,end: number,center: number) => void) { 19036 const _resource : CallbackResource = this.readCallbackResource() 19037 const _call : KPointer = this.readPointer() 19038 const _callSync : KPointer = this.readPointer() 19039 return (start: number, end: number, center: number):void => { 19040 const _argsSerializer : Serializer = Serializer.hold(); 19041 _argsSerializer.writeInt32(_resource.resourceId); 19042 _argsSerializer.writePointer(_call); 19043 _argsSerializer.writePointer(_callSync); 19044 _argsSerializer.writeNumber(start); 19045 _argsSerializer.writeNumber(end); 19046 _argsSerializer.writeNumber(center); 19047 (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asBuffer(), _argsSerializer.length())); 19048 _argsSerializer.release(); 19049 return; } 19050 } 19051 readListOptions(): ListOptions { 19052 let valueDeserializer : Deserializer = this 19053 const initialIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19054 let initialIndex_buf : number | undefined 19055 if ((RuntimeType.UNDEFINED) != (initialIndex_buf_runtimeType)) 19056 { 19057 initialIndex_buf = (valueDeserializer.readNumber() as number) 19058 } 19059 const initialIndex_result : number | undefined = initialIndex_buf 19060 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19061 let space_buf : number | string | undefined 19062 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 19063 { 19064 const space_buf__selector : int32 = valueDeserializer.readInt8() 19065 let space_buf_ : number | string | undefined 19066 if (space_buf__selector == 0) { 19067 space_buf_ = (valueDeserializer.readNumber() as number) 19068 } 19069 else if (space_buf__selector == 1) { 19070 space_buf_ = (valueDeserializer.readString() as string) 19071 } 19072 else { 19073 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 19074 } 19075 space_buf = (space_buf_ as number | string) 19076 } 19077 const space_result : number | string | undefined = space_buf 19078 const scroller_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19079 let scroller_buf : Scroller | undefined 19080 if ((RuntimeType.UNDEFINED) != (scroller_buf_runtimeType)) 19081 { 19082 scroller_buf = (valueDeserializer.readScroller() as Scroller) 19083 } 19084 const scroller_result : Scroller | undefined = scroller_buf 19085 let value : ListOptions = ({initialIndex: initialIndex_result, space: space_result, scroller: scroller_result} as ListOptions) 19086 return value 19087 } 19088 readListScroller(): ListScroller { 19089 let valueDeserializer : Deserializer = this 19090 let ptr : KPointer = valueDeserializer.readPointer() 19091 return ListScrollerInternal.fromPtr(ptr) 19092 } 19093 readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { 19094 const _resource : CallbackResource = this.readCallbackResource() 19095 const _call : KPointer = this.readPointer() 19096 const _callSync : KPointer = this.readPointer() 19097 return (start: VisibleListContentInfo, end: VisibleListContentInfo):void => { 19098 const _argsSerializer : Serializer = Serializer.hold(); 19099 _argsSerializer.writeInt32(_resource.resourceId); 19100 _argsSerializer.writePointer(_call); 19101 _argsSerializer.writePointer(_callSync); 19102 _argsSerializer.writeVisibleListContentInfo(start); 19103 _argsSerializer.writeVisibleListContentInfo(end); 19104 (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asBuffer(), _argsSerializer.length())); 19105 _argsSerializer.release(); 19106 return; } 19107 } 19108 readLineOptions(): LineOptions { 19109 let valueDeserializer : Deserializer = this 19110 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19111 let width_buf : string | number | undefined 19112 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 19113 { 19114 const width_buf__selector : int32 = valueDeserializer.readInt8() 19115 let width_buf_ : string | number | undefined 19116 if (width_buf__selector == 0) { 19117 width_buf_ = (valueDeserializer.readString() as string) 19118 } 19119 else if (width_buf__selector == 1) { 19120 width_buf_ = (valueDeserializer.readNumber() as number) 19121 } 19122 else { 19123 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 19124 } 19125 width_buf = (width_buf_ as string | number) 19126 } 19127 const width_result : string | number | undefined = width_buf 19128 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19129 let height_buf : string | number | undefined 19130 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 19131 { 19132 const height_buf__selector : int32 = valueDeserializer.readInt8() 19133 let height_buf_ : string | number | undefined 19134 if (height_buf__selector == 0) { 19135 height_buf_ = (valueDeserializer.readString() as string) 19136 } 19137 else if (height_buf__selector == 1) { 19138 height_buf_ = (valueDeserializer.readNumber() as number) 19139 } 19140 else { 19141 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 19142 } 19143 height_buf = (height_buf_ as string | number) 19144 } 19145 const height_result : string | number | undefined = height_buf 19146 let value : LineOptions = ({width: width_result, height: height_result} as LineOptions) 19147 return value 19148 } 19149 readImageLoadResult(): ImageLoadResult { 19150 let valueDeserializer : Deserializer = this 19151 const width_result : number = (valueDeserializer.readNumber() as number) 19152 const height_result : number = (valueDeserializer.readNumber() as number) 19153 const componentWidth_result : number = (valueDeserializer.readNumber() as number) 19154 const componentHeight_result : number = (valueDeserializer.readNumber() as number) 19155 const loadingStatus_result : number = (valueDeserializer.readNumber() as number) 19156 const contentWidth_result : number = (valueDeserializer.readNumber() as number) 19157 const contentHeight_result : number = (valueDeserializer.readNumber() as number) 19158 const contentOffsetX_result : number = (valueDeserializer.readNumber() as number) 19159 const contentOffsetY_result : number = (valueDeserializer.readNumber() as number) 19160 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) 19161 return value 19162 } 19163 readImageCompleteCallback(isSync: boolean = false): ImageCompleteCallback { 19164 const _resource : CallbackResource = this.readCallbackResource() 19165 const _call : KPointer = this.readPointer() 19166 const _callSync : KPointer = this.readPointer() 19167 return (result: ImageLoadResult):void => { 19168 const _argsSerializer : Serializer = Serializer.hold(); 19169 _argsSerializer.writeInt32(_resource.resourceId); 19170 _argsSerializer.writePointer(_call); 19171 _argsSerializer.writePointer(_callSync); 19172 _argsSerializer.writeImageLoadResult(result); 19173 (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asBuffer(), _argsSerializer.length())); 19174 _argsSerializer.release(); 19175 return; } 19176 } 19177 readImageFrameInfo(): ImageFrameInfo { 19178 let valueDeserializer : Deserializer = this 19179 const src_buf_selector : int32 = valueDeserializer.readInt8() 19180 let src_buf : string | Resource | PixelMap | undefined 19181 if (src_buf_selector == 0) { 19182 src_buf = (valueDeserializer.readString() as string) 19183 } 19184 else if (src_buf_selector == 1) { 19185 src_buf = valueDeserializer.readResource() 19186 } 19187 else if (src_buf_selector == 2) { 19188 src_buf = (valueDeserializer.readPixelMap() as PixelMap) 19189 } 19190 else { 19191 throw new Error("One of the branches for src_buf has to be chosen through deserialisation.") 19192 } 19193 const src_result : string | Resource | PixelMap = (src_buf as string | Resource | PixelMap) 19194 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19195 let width_buf : number | string | undefined 19196 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 19197 { 19198 const width_buf__selector : int32 = valueDeserializer.readInt8() 19199 let width_buf_ : number | string | undefined 19200 if (width_buf__selector == 0) { 19201 width_buf_ = (valueDeserializer.readNumber() as number) 19202 } 19203 else if (width_buf__selector == 1) { 19204 width_buf_ = (valueDeserializer.readString() as string) 19205 } 19206 else { 19207 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 19208 } 19209 width_buf = (width_buf_ as number | string) 19210 } 19211 const width_result : number | string | undefined = width_buf 19212 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19213 let height_buf : number | string | undefined 19214 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 19215 { 19216 const height_buf__selector : int32 = valueDeserializer.readInt8() 19217 let height_buf_ : number | string | undefined 19218 if (height_buf__selector == 0) { 19219 height_buf_ = (valueDeserializer.readNumber() as number) 19220 } 19221 else if (height_buf__selector == 1) { 19222 height_buf_ = (valueDeserializer.readString() as string) 19223 } 19224 else { 19225 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 19226 } 19227 height_buf = (height_buf_ as number | string) 19228 } 19229 const height_result : number | string | undefined = height_buf 19230 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19231 let top_buf : number | string | undefined 19232 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 19233 { 19234 const top_buf__selector : int32 = valueDeserializer.readInt8() 19235 let top_buf_ : number | string | undefined 19236 if (top_buf__selector == 0) { 19237 top_buf_ = (valueDeserializer.readNumber() as number) 19238 } 19239 else if (top_buf__selector == 1) { 19240 top_buf_ = (valueDeserializer.readString() as string) 19241 } 19242 else { 19243 throw new Error("One of the branches for top_buf_ has to be chosen through deserialisation.") 19244 } 19245 top_buf = (top_buf_ as number | string) 19246 } 19247 const top_result : number | string | undefined = top_buf 19248 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19249 let left_buf : number | string | undefined 19250 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 19251 { 19252 const left_buf__selector : int32 = valueDeserializer.readInt8() 19253 let left_buf_ : number | string | undefined 19254 if (left_buf__selector == 0) { 19255 left_buf_ = (valueDeserializer.readNumber() as number) 19256 } 19257 else if (left_buf__selector == 1) { 19258 left_buf_ = (valueDeserializer.readString() as string) 19259 } 19260 else { 19261 throw new Error("One of the branches for left_buf_ has to be chosen through deserialisation.") 19262 } 19263 left_buf = (left_buf_ as number | string) 19264 } 19265 const left_result : number | string | undefined = left_buf 19266 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19267 let duration_buf : number | undefined 19268 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 19269 { 19270 duration_buf = (valueDeserializer.readNumber() as number) 19271 } 19272 const duration_result : number | undefined = duration_buf 19273 let value : ImageFrameInfo = ({src: src_result, width: width_result, height: height_result, top: top_result, left: left_result, duration: duration_result} as ImageFrameInfo) 19274 return value 19275 } 19276 readResolutionQuality(): ResolutionQuality { 19277 let valueDeserializer : Deserializer = this 19278 const _ResolutionQualityStub_result : string = (valueDeserializer.readString() as string) 19279 let value : ResolutionQuality = ({_ResolutionQualityStub: _ResolutionQualityStub_result} as ResolutionQuality) 19280 return value 19281 } 19282 readImageError(): ImageError { 19283 let valueDeserializer : Deserializer = this 19284 const componentWidth_result : number = (valueDeserializer.readNumber() as number) 19285 const componentHeight_result : number = (valueDeserializer.readNumber() as number) 19286 const message_result : string = (valueDeserializer.readString() as string) 19287 let value : ImageError = ({componentWidth: componentWidth_result, componentHeight: componentHeight_result, message: message_result} as ImageError) 19288 return value 19289 } 19290 readImageErrorCallback(isSync: boolean = false): ImageErrorCallback { 19291 const _resource : CallbackResource = this.readCallbackResource() 19292 const _call : KPointer = this.readPointer() 19293 const _callSync : KPointer = this.readPointer() 19294 return (error: ImageError):void => { 19295 const _argsSerializer : Serializer = Serializer.hold(); 19296 _argsSerializer.writeInt32(_resource.resourceId); 19297 _argsSerializer.writePointer(_call); 19298 _argsSerializer.writePointer(_callSync); 19299 _argsSerializer.writeImageError(error); 19300 (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asBuffer(), _argsSerializer.length())); 19301 _argsSerializer.release(); 19302 return; } 19303 } 19304 readImageSourceSize(): ImageSourceSize { 19305 let valueDeserializer : Deserializer = this 19306 const width_result : number = (valueDeserializer.readNumber() as number) 19307 const height_result : number = (valueDeserializer.readNumber() as number) 19308 let value : ImageSourceSize = ({width: width_result, height: height_result} as ImageSourceSize) 19309 return value 19310 } 19311 readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: Type_ImageAttribute_onComplete_callback_event) => void) { 19312 const _resource : CallbackResource = this.readCallbackResource() 19313 const _call : KPointer = this.readPointer() 19314 const _callSync : KPointer = this.readPointer() 19315 return (event?: Type_ImageAttribute_onComplete_callback_event | undefined):void => { 19316 const _argsSerializer : Serializer = Serializer.hold(); 19317 _argsSerializer.writeInt32(_resource.resourceId); 19318 _argsSerializer.writePointer(_call); 19319 _argsSerializer.writePointer(_callSync); 19320 let event_type : int32 = RuntimeType.UNDEFINED; 19321 event_type = runtimeType(event); 19322 _argsSerializer.writeInt8(event_type as int32); 19323 if ((RuntimeType.UNDEFINED) != (event_type)) { 19324 const event_value = event!; 19325 const event_value_width = event_value.width; 19326 _argsSerializer.writeNumber(event_value_width); 19327 const event_value_height = event_value.height; 19328 _argsSerializer.writeNumber(event_value_height); 19329 const event_value_componentWidth = event_value.componentWidth; 19330 _argsSerializer.writeNumber(event_value_componentWidth); 19331 const event_value_componentHeight = event_value.componentHeight; 19332 _argsSerializer.writeNumber(event_value_componentHeight); 19333 const event_value_loadingStatus = event_value.loadingStatus; 19334 _argsSerializer.writeNumber(event_value_loadingStatus); 19335 const event_value_contentWidth = event_value.contentWidth; 19336 _argsSerializer.writeNumber(event_value_contentWidth); 19337 const event_value_contentHeight = event_value.contentHeight; 19338 _argsSerializer.writeNumber(event_value_contentHeight); 19339 const event_value_contentOffsetX = event_value.contentOffsetX; 19340 _argsSerializer.writeNumber(event_value_contentOffsetX); 19341 const event_value_contentOffsetY = event_value.contentOffsetY; 19342 _argsSerializer.writeNumber(event_value_contentOffsetY); 19343 } 19344 (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asBuffer(), _argsSerializer.length())); 19345 _argsSerializer.release(); 19346 return; } 19347 } 19348 readGridRowOptions(): GridRowOptions { 19349 let valueDeserializer : Deserializer = this 19350 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19351 let gutter_buf : Length | GutterOption | undefined 19352 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 19353 { 19354 const gutter_buf__selector : int32 = valueDeserializer.readInt8() 19355 let gutter_buf_ : Length | GutterOption | undefined 19356 if (gutter_buf__selector == 0) { 19357 gutter_buf_ = (valueDeserializer.readLength() as Length) 19358 } 19359 else if (gutter_buf__selector == 1) { 19360 gutter_buf_ = valueDeserializer.readGutterOption() 19361 } 19362 else { 19363 throw new Error("One of the branches for gutter_buf_ has to be chosen through deserialisation.") 19364 } 19365 gutter_buf = (gutter_buf_ as Length | GutterOption) 19366 } 19367 const gutter_result : Length | GutterOption | undefined = gutter_buf 19368 const columns_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19369 let columns_buf : number | GridRowColumnOption | undefined 19370 if ((RuntimeType.UNDEFINED) != (columns_buf_runtimeType)) 19371 { 19372 const columns_buf__selector : int32 = valueDeserializer.readInt8() 19373 let columns_buf_ : number | GridRowColumnOption | undefined 19374 if (columns_buf__selector == 0) { 19375 columns_buf_ = (valueDeserializer.readNumber() as number) 19376 } 19377 else if (columns_buf__selector == 1) { 19378 columns_buf_ = valueDeserializer.readGridRowColumnOption() 19379 } 19380 else { 19381 throw new Error("One of the branches for columns_buf_ has to be chosen through deserialisation.") 19382 } 19383 columns_buf = (columns_buf_ as number | GridRowColumnOption) 19384 } 19385 const columns_result : number | GridRowColumnOption | undefined = columns_buf 19386 const breakpoints_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19387 let breakpoints_buf : BreakPoints | undefined 19388 if ((RuntimeType.UNDEFINED) != (breakpoints_buf_runtimeType)) 19389 { 19390 breakpoints_buf = valueDeserializer.readBreakPoints() 19391 } 19392 const breakpoints_result : BreakPoints | undefined = breakpoints_buf 19393 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19394 let direction_buf : GridRowDirection | undefined 19395 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 19396 { 19397 direction_buf = (valueDeserializer.readInt32() as GridRowDirection) 19398 } 19399 const direction_result : GridRowDirection | undefined = direction_buf 19400 let value : GridRowOptions = ({gutter: gutter_result, columns: columns_result, breakpoints: breakpoints_result, direction: direction_result} as GridRowOptions) 19401 return value 19402 } 19403 readGridContainerOptions(): GridContainerOptions { 19404 let valueDeserializer : Deserializer = this 19405 const columns_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19406 let columns_buf : number | string | undefined 19407 if ((RuntimeType.UNDEFINED) != (columns_buf_runtimeType)) 19408 { 19409 const columns_buf__selector : int32 = valueDeserializer.readInt8() 19410 let columns_buf_ : number | string | undefined 19411 if (columns_buf__selector == 0) { 19412 columns_buf_ = (valueDeserializer.readNumber() as number) 19413 } 19414 else if (columns_buf__selector == 1) { 19415 columns_buf_ = (valueDeserializer.readString() as string) 19416 } 19417 else { 19418 throw new Error("One of the branches for columns_buf_ has to be chosen through deserialisation.") 19419 } 19420 columns_buf = (columns_buf_ as number | string) 19421 } 19422 const columns_result : number | string | undefined = columns_buf 19423 const sizeType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19424 let sizeType_buf : SizeType | undefined 19425 if ((RuntimeType.UNDEFINED) != (sizeType_buf_runtimeType)) 19426 { 19427 sizeType_buf = (valueDeserializer.readInt32() as SizeType) 19428 } 19429 const sizeType_result : SizeType | undefined = sizeType_buf 19430 const gutter_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19431 let gutter_buf : number | string | undefined 19432 if ((RuntimeType.UNDEFINED) != (gutter_buf_runtimeType)) 19433 { 19434 const gutter_buf__selector : int32 = valueDeserializer.readInt8() 19435 let gutter_buf_ : number | string | undefined 19436 if (gutter_buf__selector == 0) { 19437 gutter_buf_ = (valueDeserializer.readNumber() as number) 19438 } 19439 else if (gutter_buf__selector == 1) { 19440 gutter_buf_ = (valueDeserializer.readString() as string) 19441 } 19442 else { 19443 throw new Error("One of the branches for gutter_buf_ has to be chosen through deserialisation.") 19444 } 19445 gutter_buf = (gutter_buf_ as number | string) 19446 } 19447 const gutter_result : number | string | undefined = gutter_buf 19448 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19449 let margin_buf : number | string | undefined 19450 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 19451 { 19452 const margin_buf__selector : int32 = valueDeserializer.readInt8() 19453 let margin_buf_ : number | string | undefined 19454 if (margin_buf__selector == 0) { 19455 margin_buf_ = (valueDeserializer.readNumber() as number) 19456 } 19457 else if (margin_buf__selector == 1) { 19458 margin_buf_ = (valueDeserializer.readString() as string) 19459 } 19460 else { 19461 throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") 19462 } 19463 margin_buf = (margin_buf_ as number | string) 19464 } 19465 const margin_result : number | string | undefined = margin_buf 19466 let value : GridContainerOptions = ({columns: columns_result, sizeType: sizeType_result, gutter: gutter_result, margin: margin_result} as GridContainerOptions) 19467 return value 19468 } 19469 readGridColOptions(): GridColOptions { 19470 let valueDeserializer : Deserializer = this 19471 const span_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19472 let span_buf : number | GridColColumnOption | undefined 19473 if ((RuntimeType.UNDEFINED) != (span_buf_runtimeType)) 19474 { 19475 const span_buf__selector : int32 = valueDeserializer.readInt8() 19476 let span_buf_ : number | GridColColumnOption | undefined 19477 if (span_buf__selector == 0) { 19478 span_buf_ = (valueDeserializer.readNumber() as number) 19479 } 19480 else if (span_buf__selector == 1) { 19481 span_buf_ = valueDeserializer.readGridColColumnOption() 19482 } 19483 else { 19484 throw new Error("One of the branches for span_buf_ has to be chosen through deserialisation.") 19485 } 19486 span_buf = (span_buf_ as number | GridColColumnOption) 19487 } 19488 const span_result : number | GridColColumnOption | undefined = span_buf 19489 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19490 let offset_buf : number | GridColColumnOption | undefined 19491 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 19492 { 19493 const offset_buf__selector : int32 = valueDeserializer.readInt8() 19494 let offset_buf_ : number | GridColColumnOption | undefined 19495 if (offset_buf__selector == 0) { 19496 offset_buf_ = (valueDeserializer.readNumber() as number) 19497 } 19498 else if (offset_buf__selector == 1) { 19499 offset_buf_ = valueDeserializer.readGridColColumnOption() 19500 } 19501 else { 19502 throw new Error("One of the branches for offset_buf_ has to be chosen through deserialisation.") 19503 } 19504 offset_buf = (offset_buf_ as number | GridColColumnOption) 19505 } 19506 const offset_result : number | GridColColumnOption | undefined = offset_buf 19507 const order_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19508 let order_buf : number | GridColColumnOption | undefined 19509 if ((RuntimeType.UNDEFINED) != (order_buf_runtimeType)) 19510 { 19511 const order_buf__selector : int32 = valueDeserializer.readInt8() 19512 let order_buf_ : number | GridColColumnOption | undefined 19513 if (order_buf__selector == 0) { 19514 order_buf_ = (valueDeserializer.readNumber() as number) 19515 } 19516 else if (order_buf__selector == 1) { 19517 order_buf_ = valueDeserializer.readGridColColumnOption() 19518 } 19519 else { 19520 throw new Error("One of the branches for order_buf_ has to be chosen through deserialisation.") 19521 } 19522 order_buf = (order_buf_ as number | GridColColumnOption) 19523 } 19524 const order_result : number | GridColColumnOption | undefined = order_buf 19525 let value : GridColOptions = ({span: span_result, offset: offset_result, order: order_result} as GridColOptions) 19526 return value 19527 } 19528 readGridItemOptions(): GridItemOptions { 19529 let valueDeserializer : Deserializer = this 19530 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19531 let style_buf : GridItemStyle | undefined 19532 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 19533 { 19534 style_buf = (valueDeserializer.readInt32() as GridItemStyle) 19535 } 19536 const style_result : GridItemStyle | undefined = style_buf 19537 let value : GridItemOptions = ({style: style_result} as GridItemOptions) 19538 return value 19539 } 19540 readCallback_Number_ScrollState_Literal_Number_offsetRemain(isSync: boolean = false): ((offset: number,state: ScrollState) => Literal_Number_offsetRemain) { 19541 const _resource : CallbackResource = this.readCallbackResource() 19542 const _call : KPointer = this.readPointer() 19543 const _callSync : KPointer = this.readPointer() 19544 return (offset: number, state: ScrollState):Literal_Number_offsetRemain => { 19545 const _argsSerializer : Serializer = Serializer.hold(); 19546 _argsSerializer.writeInt32(_resource.resourceId); 19547 _argsSerializer.writePointer(_call); 19548 _argsSerializer.writePointer(_callSync); 19549 _argsSerializer.writeNumber(offset); 19550 _argsSerializer.writeInt32(state.valueOf()); 19551 let _continuationValue : Literal_Number_offsetRemain | undefined; 19552 const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } 19553 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19554 (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asBuffer(), _argsSerializer.length())); 19555 _argsSerializer.release(); 19556 return (_continuationValue as Literal_Number_offsetRemain); } 19557 } 19558 readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) { 19559 const _resource : CallbackResource = this.readCallbackResource() 19560 const _call : KPointer = this.readPointer() 19561 const _callSync : KPointer = this.readPointer() 19562 return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { 19563 const _argsSerializer : Serializer = Serializer.hold(); 19564 _argsSerializer.writeInt32(_resource.resourceId); 19565 _argsSerializer.writePointer(_call); 19566 _argsSerializer.writePointer(_callSync); 19567 _argsSerializer.writeItemDragInfo(event); 19568 _argsSerializer.writeNumber(itemIndex); 19569 _argsSerializer.writeNumber(insertIndex); 19570 _argsSerializer.writeBoolean(isSuccess); 19571 (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asBuffer(), _argsSerializer.length())); 19572 _argsSerializer.release(); 19573 return; } 19574 } 19575 readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number) => void) { 19576 const _resource : CallbackResource = this.readCallbackResource() 19577 const _call : KPointer = this.readPointer() 19578 const _callSync : KPointer = this.readPointer() 19579 return (event: ItemDragInfo, itemIndex: number):void => { 19580 const _argsSerializer : Serializer = Serializer.hold(); 19581 _argsSerializer.writeInt32(_resource.resourceId); 19582 _argsSerializer.writePointer(_call); 19583 _argsSerializer.writePointer(_callSync); 19584 _argsSerializer.writeItemDragInfo(event); 19585 _argsSerializer.writeNumber(itemIndex); 19586 (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asBuffer(), _argsSerializer.length())); 19587 _argsSerializer.release(); 19588 return; } 19589 } 19590 readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) { 19591 const _resource : CallbackResource = this.readCallbackResource() 19592 const _call : KPointer = this.readPointer() 19593 const _callSync : KPointer = this.readPointer() 19594 return (event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { 19595 const _argsSerializer : Serializer = Serializer.hold(); 19596 _argsSerializer.writeInt32(_resource.resourceId); 19597 _argsSerializer.writePointer(_call); 19598 _argsSerializer.writePointer(_callSync); 19599 _argsSerializer.writeItemDragInfo(event); 19600 _argsSerializer.writeNumber(itemIndex); 19601 _argsSerializer.writeNumber(insertIndex); 19602 (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asBuffer(), _argsSerializer.length())); 19603 _argsSerializer.release(); 19604 return; } 19605 } 19606 readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { 19607 const _resource : CallbackResource = this.readCallbackResource() 19608 const _call : KPointer = this.readPointer() 19609 const _callSync : KPointer = this.readPointer() 19610 return (event: ItemDragInfo):void => { 19611 const _argsSerializer : Serializer = Serializer.hold(); 19612 _argsSerializer.writeInt32(_resource.resourceId); 19613 _argsSerializer.writePointer(_call); 19614 _argsSerializer.writePointer(_callSync); 19615 _argsSerializer.writeItemDragInfo(event); 19616 (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asBuffer(), _argsSerializer.length())); 19617 _argsSerializer.release(); 19618 return; } 19619 } 19620 readItemDragInfo(): ItemDragInfo { 19621 let valueDeserializer : Deserializer = this 19622 const x_result : number = (valueDeserializer.readNumber() as number) 19623 const y_result : number = (valueDeserializer.readNumber() as number) 19624 let value : ItemDragInfo = ({x: x_result, y: y_result} as ItemDragInfo) 19625 return value 19626 } 19627 readonItemDragStart_event_type(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number) => CustomBuilder) { 19628 const _resource : CallbackResource = this.readCallbackResource() 19629 const _call : KPointer = this.readPointer() 19630 const _callSync : KPointer = this.readPointer() 19631 return (event: ItemDragInfo, itemIndex: number) => { 19632 const _argsSerializer : Serializer = Serializer.hold(); 19633 _argsSerializer.writeInt32(_resource.resourceId); 19634 _argsSerializer.writePointer(_call); 19635 _argsSerializer.writePointer(_callSync); 19636 _argsSerializer.writeItemDragInfo(event); 19637 _argsSerializer.writeNumber(itemIndex); 19638 let _continuationValue : CustomBuilder | undefined; 19639 const _continuationCallback : ((value: CustomBuilder) => void) = (value: CustomBuilder):void => { _continuationValue = value; } 19640 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19641 (isSync) ? (InteropNativeModule._CallCallbackSync(1340995650, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1340995650, _argsSerializer.asBuffer(), _argsSerializer.length())); 19642 _argsSerializer.release(); 19643 return (_continuationValue as CustomBuilder); } 19644 } 19645 readComputedBarAttribute(): ComputedBarAttribute { 19646 let valueDeserializer : Deserializer = this 19647 const totalOffset_result : number = (valueDeserializer.readNumber() as number) 19648 const totalLength_result : number = (valueDeserializer.readNumber() as number) 19649 let value : ComputedBarAttribute = ({totalOffset: totalOffset_result, totalLength: totalLength_result} as ComputedBarAttribute) 19650 return value 19651 } 19652 readCallback_Number_Number_ComputedBarAttribute(isSync: boolean = false): ((index: number,offset: number) => ComputedBarAttribute) { 19653 const _resource : CallbackResource = this.readCallbackResource() 19654 const _call : KPointer = this.readPointer() 19655 const _callSync : KPointer = this.readPointer() 19656 return (index: number, offset: number):ComputedBarAttribute => { 19657 const _argsSerializer : Serializer = Serializer.hold(); 19658 _argsSerializer.writeInt32(_resource.resourceId); 19659 _argsSerializer.writePointer(_call); 19660 _argsSerializer.writePointer(_callSync); 19661 _argsSerializer.writeNumber(index); 19662 _argsSerializer.writeNumber(offset); 19663 let _continuationValue : ComputedBarAttribute | undefined; 19664 const _continuationCallback : ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute):void => { _continuationValue = value; } 19665 _argsSerializer.holdAndWriteCallback(_continuationCallback); 19666 (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asBuffer(), _argsSerializer.length())); 19667 _argsSerializer.release(); 19668 return (_continuationValue as ComputedBarAttribute); } 19669 } 19670 readGridLayoutOptions(): GridLayoutOptions { 19671 let valueDeserializer : Deserializer = this 19672 const regularSize_buf_value0 : number = (valueDeserializer.readNumber() as number) 19673 const regularSize_buf_value1 : number = (valueDeserializer.readNumber() as number) 19674 const regularSize_result : [ number, number ] = ([regularSize_buf_value0, regularSize_buf_value1] as [ number, number ]) 19675 const irregularIndexes_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19676 let irregularIndexes_buf : Array<number> | undefined 19677 if ((RuntimeType.UNDEFINED) != (irregularIndexes_buf_runtimeType)) 19678 { 19679 const irregularIndexes_buf__length : int32 = valueDeserializer.readInt32() 19680 let irregularIndexes_buf_ : Array<number> = new Array<number>(irregularIndexes_buf__length) 19681 for (let irregularIndexes_buf__i = 0; irregularIndexes_buf__i < irregularIndexes_buf__length; irregularIndexes_buf__i++) { 19682 irregularIndexes_buf_[irregularIndexes_buf__i] = (valueDeserializer.readNumber() as number) 19683 } 19684 irregularIndexes_buf = irregularIndexes_buf_ 19685 } 19686 const irregularIndexes_result : Array<number> | undefined = irregularIndexes_buf 19687 const onGetIrregularSizeByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19688 let onGetIrregularSizeByIndex_buf : ((index: number) => [ number, number ]) | undefined 19689 if ((RuntimeType.UNDEFINED) != (onGetIrregularSizeByIndex_buf_runtimeType)) 19690 { 19691 onGetIrregularSizeByIndex_buf = valueDeserializer.readCallback_Number_Tuple_Number_Number() 19692 } 19693 const onGetIrregularSizeByIndex_result : ((index: number) => [ number, number ]) | undefined = onGetIrregularSizeByIndex_buf 19694 const onGetRectByIndex_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19695 let onGetRectByIndex_buf : ((index: number) => [ number, number, number, number ]) | undefined 19696 if ((RuntimeType.UNDEFINED) != (onGetRectByIndex_buf_runtimeType)) 19697 { 19698 onGetRectByIndex_buf = valueDeserializer.readCallback_Number_Tuple_Number_Number_Number_Number() 19699 } 19700 const onGetRectByIndex_result : ((index: number) => [ number, number, number, number ]) | undefined = onGetRectByIndex_buf 19701 let value : GridLayoutOptions = ({regularSize: regularSize_result, irregularIndexes: irregularIndexes_result, onGetIrregularSizeByIndex: onGetIrregularSizeByIndex_result, onGetRectByIndex: onGetRectByIndex_result} as GridLayoutOptions) 19702 return value 19703 } 19704 readPanRecognizer(): PanRecognizer { 19705 let valueDeserializer : Deserializer = this 19706 let ptr : KPointer = valueDeserializer.readPointer() 19707 return PanRecognizerInternal.fromPtr(ptr) 19708 } 19709 readScrollableTargetInfo(): ScrollableTargetInfo { 19710 let valueDeserializer : Deserializer = this 19711 let ptr : KPointer = valueDeserializer.readPointer() 19712 return ScrollableTargetInfoInternal.fromPtr(ptr) 19713 } 19714 readTapGestureParameters(): TapGestureParameters { 19715 let valueDeserializer : Deserializer = this 19716 const count_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19717 let count_buf : number | undefined 19718 if ((RuntimeType.UNDEFINED) != (count_buf_runtimeType)) 19719 { 19720 count_buf = (valueDeserializer.readNumber() as number) 19721 } 19722 const count_result : number | undefined = count_buf 19723 const fingers_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19724 let fingers_buf : number | undefined 19725 if ((RuntimeType.UNDEFINED) != (fingers_buf_runtimeType)) 19726 { 19727 fingers_buf = (valueDeserializer.readNumber() as number) 19728 } 19729 const fingers_result : number | undefined = fingers_buf 19730 const distanceThreshold_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19731 let distanceThreshold_buf : number | undefined 19732 if ((RuntimeType.UNDEFINED) != (distanceThreshold_buf_runtimeType)) 19733 { 19734 distanceThreshold_buf = (valueDeserializer.readNumber() as number) 19735 } 19736 const distanceThreshold_result : number | undefined = distanceThreshold_buf 19737 let value : TapGestureParameters = ({count: count_result, fingers: fingers_result, distanceThreshold: distanceThreshold_result} as TapGestureParameters) 19738 return value 19739 } 19740 readGestureEvent(): GestureEvent { 19741 let valueDeserializer : Deserializer = this 19742 let ptr : KPointer = valueDeserializer.readPointer() 19743 return GestureEventInternal.fromPtr(ptr) 19744 } 19745 readSwipeGestureEvent(): SwipeGestureEvent { 19746 let valueDeserializer : Deserializer = this 19747 let ptr : KPointer = valueDeserializer.readPointer() 19748 return SwipeGestureEventInternal.fromPtr(ptr) 19749 } 19750 readRotationGestureEvent(): RotationGestureEvent { 19751 let valueDeserializer : Deserializer = this 19752 let ptr : KPointer = valueDeserializer.readPointer() 19753 return RotationGestureEventInternal.fromPtr(ptr) 19754 } 19755 readPinchGestureEvent(): PinchGestureEvent { 19756 let valueDeserializer : Deserializer = this 19757 let ptr : KPointer = valueDeserializer.readPointer() 19758 return PinchGestureEventInternal.fromPtr(ptr) 19759 } 19760 readPanGestureEvent(): PanGestureEvent { 19761 let valueDeserializer : Deserializer = this 19762 let ptr : KPointer = valueDeserializer.readPointer() 19763 return PanGestureEventInternal.fromPtr(ptr) 19764 } 19765 readLongPressGestureEvent(): LongPressGestureEvent { 19766 let valueDeserializer : Deserializer = this 19767 let ptr : KPointer = valueDeserializer.readPointer() 19768 return LongPressGestureEventInternal.fromPtr(ptr) 19769 } 19770 readTapGestureEvent(): TapGestureEvent { 19771 let valueDeserializer : Deserializer = this 19772 let ptr : KPointer = valueDeserializer.readPointer() 19773 return TapGestureEventInternal.fromPtr(ptr) 19774 } 19775 readGaugeIndicatorOptions(): GaugeIndicatorOptions { 19776 let valueDeserializer : Deserializer = this 19777 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19778 let icon_buf : ResourceStr | undefined 19779 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 19780 { 19781 const icon_buf__selector : int32 = valueDeserializer.readInt8() 19782 let icon_buf_ : string | Resource | undefined 19783 if (icon_buf__selector == 0) { 19784 icon_buf_ = (valueDeserializer.readString() as string) 19785 } 19786 else if (icon_buf__selector == 1) { 19787 icon_buf_ = valueDeserializer.readResource() 19788 } 19789 else { 19790 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 19791 } 19792 icon_buf = (icon_buf_ as string | Resource) 19793 } 19794 const icon_result : ResourceStr | undefined = icon_buf 19795 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19796 let space_buf : Dimension | undefined 19797 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 19798 { 19799 space_buf = (valueDeserializer.readLength() as Dimension) 19800 } 19801 const space_result : Dimension | undefined = space_buf 19802 let value : GaugeIndicatorOptions = ({icon: icon_result, space: space_result} as GaugeIndicatorOptions) 19803 return value 19804 } 19805 readGaugeShadowOptions(): GaugeShadowOptions { 19806 let valueDeserializer : Deserializer = this 19807 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19808 let radius_buf : number | Resource | undefined 19809 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 19810 { 19811 const radius_buf__selector : int32 = valueDeserializer.readInt8() 19812 let radius_buf_ : number | Resource | undefined 19813 if (radius_buf__selector == 0) { 19814 radius_buf_ = (valueDeserializer.readNumber() as number) 19815 } 19816 else if (radius_buf__selector == 1) { 19817 radius_buf_ = valueDeserializer.readResource() 19818 } 19819 else { 19820 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 19821 } 19822 radius_buf = (radius_buf_ as number | Resource) 19823 } 19824 const radius_result : number | Resource | undefined = radius_buf 19825 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19826 let offsetX_buf : number | Resource | undefined 19827 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 19828 { 19829 const offsetX_buf__selector : int32 = valueDeserializer.readInt8() 19830 let offsetX_buf_ : number | Resource | undefined 19831 if (offsetX_buf__selector == 0) { 19832 offsetX_buf_ = (valueDeserializer.readNumber() as number) 19833 } 19834 else if (offsetX_buf__selector == 1) { 19835 offsetX_buf_ = valueDeserializer.readResource() 19836 } 19837 else { 19838 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 19839 } 19840 offsetX_buf = (offsetX_buf_ as number | Resource) 19841 } 19842 const offsetX_result : number | Resource | undefined = offsetX_buf 19843 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19844 let offsetY_buf : number | Resource | undefined 19845 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 19846 { 19847 const offsetY_buf__selector : int32 = valueDeserializer.readInt8() 19848 let offsetY_buf_ : number | Resource | undefined 19849 if (offsetY_buf__selector == 0) { 19850 offsetY_buf_ = (valueDeserializer.readNumber() as number) 19851 } 19852 else if (offsetY_buf__selector == 1) { 19853 offsetY_buf_ = valueDeserializer.readResource() 19854 } 19855 else { 19856 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 19857 } 19858 offsetY_buf = (offsetY_buf_ as number | Resource) 19859 } 19860 const offsetY_result : number | Resource | undefined = offsetY_buf 19861 let value : GaugeShadowOptions = ({radius: radius_result, offsetX: offsetX_result, offsetY: offsetY_result} as GaugeShadowOptions) 19862 return value 19863 } 19864 readGaugeOptions(): GaugeOptions { 19865 let valueDeserializer : Deserializer = this 19866 const value_result : number = (valueDeserializer.readNumber() as number) 19867 const min_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19868 let min_buf : number | undefined 19869 if ((RuntimeType.UNDEFINED) != (min_buf_runtimeType)) 19870 { 19871 min_buf = (valueDeserializer.readNumber() as number) 19872 } 19873 const min_result : number | undefined = min_buf 19874 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19875 let max_buf : number | undefined 19876 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 19877 { 19878 max_buf = (valueDeserializer.readNumber() as number) 19879 } 19880 const max_result : number | undefined = max_buf 19881 let value : GaugeOptions = ({value: value_result, min: min_result, max: max_result} as GaugeOptions) 19882 return value 19883 } 19884 readFormLinkOptions(): FormLinkOptions { 19885 let valueDeserializer : Deserializer = this 19886 const action_result : string = (valueDeserializer.readString() as string) 19887 const moduleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19888 let moduleName_buf : string | undefined 19889 if ((RuntimeType.UNDEFINED) != (moduleName_buf_runtimeType)) 19890 { 19891 moduleName_buf = (valueDeserializer.readString() as string) 19892 } 19893 const moduleName_result : string | undefined = moduleName_buf 19894 const bundleName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19895 let bundleName_buf : string | undefined 19896 if ((RuntimeType.UNDEFINED) != (bundleName_buf_runtimeType)) 19897 { 19898 bundleName_buf = (valueDeserializer.readString() as string) 19899 } 19900 const bundleName_result : string | undefined = bundleName_buf 19901 const abilityName_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19902 let abilityName_buf : string | undefined 19903 if ((RuntimeType.UNDEFINED) != (abilityName_buf_runtimeType)) 19904 { 19905 abilityName_buf = (valueDeserializer.readString() as string) 19906 } 19907 const abilityName_result : string | undefined = abilityName_buf 19908 const uri_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19909 let uri_buf : string | undefined 19910 if ((RuntimeType.UNDEFINED) != (uri_buf_runtimeType)) 19911 { 19912 uri_buf = (valueDeserializer.readString() as string) 19913 } 19914 const uri_result : string | undefined = uri_buf 19915 const params_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19916 let params_buf : Object | undefined 19917 if ((RuntimeType.UNDEFINED) != (params_buf_runtimeType)) 19918 { 19919 params_buf = (valueDeserializer.readCustomObject("Object") as Object) 19920 } 19921 const params_result : Object | undefined = params_buf 19922 let value : FormLinkOptions = ({action: action_result, moduleName: moduleName_result, bundleName: bundleName_result, abilityName: abilityName_result, uri: uri_result, params: params_result} as FormLinkOptions) 19923 return value 19924 } 19925 readCallback_Any_Void(isSync: boolean = false): ((info: object) => void) { 19926 const _resource : CallbackResource = this.readCallbackResource() 19927 const _call : KPointer = this.readPointer() 19928 const _callSync : KPointer = this.readPointer() 19929 return (info: object):void => { 19930 const _argsSerializer : Serializer = Serializer.hold(); 19931 _argsSerializer.writeInt32(_resource.resourceId); 19932 _argsSerializer.writePointer(_call); 19933 _argsSerializer.writePointer(_callSync); 19934 _argsSerializer.writeCustomObject("Any", info); 19935 (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asBuffer(), _argsSerializer.length())); 19936 _argsSerializer.release(); 19937 return; } 19938 } 19939 readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: Literal_Number_errcode_String_msg) => void) { 19940 const _resource : CallbackResource = this.readCallbackResource() 19941 const _call : KPointer = this.readPointer() 19942 const _callSync : KPointer = this.readPointer() 19943 return (info: Literal_Number_errcode_String_msg):void => { 19944 const _argsSerializer : Serializer = Serializer.hold(); 19945 _argsSerializer.writeInt32(_resource.resourceId); 19946 _argsSerializer.writePointer(_call); 19947 _argsSerializer.writePointer(_callSync); 19948 const info_errcode = info.errcode; 19949 _argsSerializer.writeNumber(info_errcode); 19950 const info_msg = info.msg; 19951 _argsSerializer.writeString(info_msg); 19952 (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asBuffer(), _argsSerializer.length())); 19953 _argsSerializer.release(); 19954 return; } 19955 } 19956 readFormCallbackInfo(): FormCallbackInfo { 19957 let valueDeserializer : Deserializer = this 19958 const id_result : number = (valueDeserializer.readNumber() as number) 19959 const idString_result : string = (valueDeserializer.readString() as string) 19960 let value : FormCallbackInfo = ({id: id_result, idString: idString_result} as FormCallbackInfo) 19961 return value 19962 } 19963 readCallback_FormCallbackInfo_Void(isSync: boolean = false): ((parameter: FormCallbackInfo) => void) { 19964 const _resource : CallbackResource = this.readCallbackResource() 19965 const _call : KPointer = this.readPointer() 19966 const _callSync : KPointer = this.readPointer() 19967 return (parameter: FormCallbackInfo):void => { 19968 const _argsSerializer : Serializer = Serializer.hold(); 19969 _argsSerializer.writeInt32(_resource.resourceId); 19970 _argsSerializer.writePointer(_call); 19971 _argsSerializer.writePointer(_callSync); 19972 _argsSerializer.writeFormCallbackInfo(parameter); 19973 (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asBuffer(), _argsSerializer.length())); 19974 _argsSerializer.release(); 19975 return; } 19976 } 19977 readFormInfo(): FormInfo { 19978 let valueDeserializer : Deserializer = this 19979 const id_buf_selector : int32 = valueDeserializer.readInt8() 19980 let id_buf : number | string | undefined 19981 if (id_buf_selector == 0) { 19982 id_buf = (valueDeserializer.readNumber() as number) 19983 } 19984 else if (id_buf_selector == 1) { 19985 id_buf = (valueDeserializer.readString() as string) 19986 } 19987 else { 19988 throw new Error("One of the branches for id_buf has to be chosen through deserialisation.") 19989 } 19990 const id_result : number | string = (id_buf as number | string) 19991 const name_result : string = (valueDeserializer.readString() as string) 19992 const bundle_result : string = (valueDeserializer.readString() as string) 19993 const ability_result : string = (valueDeserializer.readString() as string) 19994 const module_result : string = (valueDeserializer.readString() as string) 19995 const dimension_buf_runtimeType = (valueDeserializer.readInt8() as int32) 19996 let dimension_buf : FormDimension | undefined 19997 if ((RuntimeType.UNDEFINED) != (dimension_buf_runtimeType)) 19998 { 19999 dimension_buf = (valueDeserializer.readInt32() as FormDimension) 20000 } 20001 const dimension_result : FormDimension | undefined = dimension_buf 20002 const temporary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20003 let temporary_buf : boolean | undefined 20004 if ((RuntimeType.UNDEFINED) != (temporary_buf_runtimeType)) 20005 { 20006 temporary_buf = valueDeserializer.readBoolean() 20007 } 20008 const temporary_result : boolean | undefined = temporary_buf 20009 const want_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20010 let want_buf : Want | undefined 20011 if ((RuntimeType.UNDEFINED) != (want_buf_runtimeType)) 20012 { 20013 want_buf = valueDeserializer.readWant() 20014 } 20015 const want_result : Want | undefined = want_buf 20016 const renderingMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20017 let renderingMode_buf : FormRenderingMode | undefined 20018 if ((RuntimeType.UNDEFINED) != (renderingMode_buf_runtimeType)) 20019 { 20020 renderingMode_buf = (valueDeserializer.readInt32() as FormRenderingMode) 20021 } 20022 const renderingMode_result : FormRenderingMode | undefined = renderingMode_buf 20023 const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20024 let shape_buf : FormShape | undefined 20025 if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) 20026 { 20027 shape_buf = (valueDeserializer.readInt32() as FormShape) 20028 } 20029 const shape_result : FormShape | undefined = shape_buf 20030 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) 20031 return value 20032 } 20033 readHoverEventParam(): HoverEventParam { 20034 let valueDeserializer : Deserializer = this 20035 const foldStatus_result : FoldStatus = (valueDeserializer.readInt32() as FoldStatus) 20036 const isHoverMode_result : boolean = valueDeserializer.readBoolean() 20037 const appRotation_result : AppRotation = (valueDeserializer.readInt32() as AppRotation) 20038 const windowStatusType_result : WindowStatusType = valueDeserializer.readWindowStatusType() 20039 let value : HoverEventParam = ({foldStatus: foldStatus_result, isHoverMode: isHoverMode_result, appRotation: appRotation_result, windowStatusType: windowStatusType_result} as HoverEventParam) 20040 return value 20041 } 20042 readOnHoverStatusChangeCallback(isSync: boolean = false): OnHoverStatusChangeCallback { 20043 const _resource : CallbackResource = this.readCallbackResource() 20044 const _call : KPointer = this.readPointer() 20045 const _callSync : KPointer = this.readPointer() 20046 return (param: HoverEventParam):void => { 20047 const _argsSerializer : Serializer = Serializer.hold(); 20048 _argsSerializer.writeInt32(_resource.resourceId); 20049 _argsSerializer.writePointer(_call); 20050 _argsSerializer.writePointer(_callSync); 20051 _argsSerializer.writeHoverEventParam(param); 20052 (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asBuffer(), _argsSerializer.length())); 20053 _argsSerializer.release(); 20054 return; } 20055 } 20056 readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { 20057 let valueDeserializer : Deserializer = this 20058 const foldStatus_result : FoldStatus = (valueDeserializer.readInt32() as FoldStatus) 20059 let value : OnFoldStatusChangeInfo = ({foldStatus: foldStatus_result} as OnFoldStatusChangeInfo) 20060 return value 20061 } 20062 readOnFoldStatusChangeCallback(isSync: boolean = false): OnFoldStatusChangeCallback { 20063 const _resource : CallbackResource = this.readCallbackResource() 20064 const _call : KPointer = this.readPointer() 20065 const _callSync : KPointer = this.readPointer() 20066 return (event: OnFoldStatusChangeInfo):void => { 20067 const _argsSerializer : Serializer = Serializer.hold(); 20068 _argsSerializer.writeInt32(_resource.resourceId); 20069 _argsSerializer.writePointer(_call); 20070 _argsSerializer.writePointer(_callSync); 20071 _argsSerializer.writeOnFoldStatusChangeInfo(event); 20072 (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asBuffer(), _argsSerializer.length())); 20073 _argsSerializer.release(); 20074 return; } 20075 } 20076 readFolderStackOptions(): FolderStackOptions { 20077 let valueDeserializer : Deserializer = this 20078 const upperItems_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20079 let upperItems_buf : Array<string> | undefined 20080 if ((RuntimeType.UNDEFINED) != (upperItems_buf_runtimeType)) 20081 { 20082 const upperItems_buf__length : int32 = valueDeserializer.readInt32() 20083 let upperItems_buf_ : Array<string> = new Array<string>(upperItems_buf__length) 20084 for (let upperItems_buf__i = 0; upperItems_buf__i < upperItems_buf__length; upperItems_buf__i++) { 20085 upperItems_buf_[upperItems_buf__i] = (valueDeserializer.readString() as string) 20086 } 20087 upperItems_buf = upperItems_buf_ 20088 } 20089 const upperItems_result : Array<string> | undefined = upperItems_buf 20090 let value : FolderStackOptions = ({upperItems: upperItems_result} as FolderStackOptions) 20091 return value 20092 } 20093 readFlexOptions(): FlexOptions { 20094 let valueDeserializer : Deserializer = this 20095 const direction_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20096 let direction_buf : FlexDirection | undefined 20097 if ((RuntimeType.UNDEFINED) != (direction_buf_runtimeType)) 20098 { 20099 direction_buf = (valueDeserializer.readInt32() as FlexDirection) 20100 } 20101 const direction_result : FlexDirection | undefined = direction_buf 20102 const wrap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20103 let wrap_buf : FlexWrap | undefined 20104 if ((RuntimeType.UNDEFINED) != (wrap_buf_runtimeType)) 20105 { 20106 wrap_buf = (valueDeserializer.readInt32() as FlexWrap) 20107 } 20108 const wrap_result : FlexWrap | undefined = wrap_buf 20109 const justifyContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20110 let justifyContent_buf : FlexAlign | undefined 20111 if ((RuntimeType.UNDEFINED) != (justifyContent_buf_runtimeType)) 20112 { 20113 justifyContent_buf = (valueDeserializer.readInt32() as FlexAlign) 20114 } 20115 const justifyContent_result : FlexAlign | undefined = justifyContent_buf 20116 const alignItems_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20117 let alignItems_buf : ItemAlign | undefined 20118 if ((RuntimeType.UNDEFINED) != (alignItems_buf_runtimeType)) 20119 { 20120 alignItems_buf = (valueDeserializer.readInt32() as ItemAlign) 20121 } 20122 const alignItems_result : ItemAlign | undefined = alignItems_buf 20123 const alignContent_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20124 let alignContent_buf : FlexAlign | undefined 20125 if ((RuntimeType.UNDEFINED) != (alignContent_buf_runtimeType)) 20126 { 20127 alignContent_buf = (valueDeserializer.readInt32() as FlexAlign) 20128 } 20129 const alignContent_result : FlexAlign | undefined = alignContent_buf 20130 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20131 let space_buf : FlexSpaceOptions | undefined 20132 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 20133 { 20134 space_buf = valueDeserializer.readFlexSpaceOptions() 20135 } 20136 const space_result : FlexSpaceOptions | undefined = space_buf 20137 let value : FlexOptions = ({direction: direction_result, wrap: wrap_result, justifyContent: justifyContent_result, alignItems: alignItems_result, alignContent: alignContent_result, space: space_result} as FlexOptions) 20138 return value 20139 } 20140 readTerminationInfo(): TerminationInfo { 20141 let valueDeserializer : Deserializer = this 20142 const code_result : number = (valueDeserializer.readNumber() as number) 20143 const want_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20144 let want_buf : Want | undefined 20145 if ((RuntimeType.UNDEFINED) != (want_buf_runtimeType)) 20146 { 20147 want_buf = valueDeserializer.readWant() 20148 } 20149 const want_result : Want | undefined = want_buf 20150 let value : TerminationInfo = ({code: code_result, want: want_result} as TerminationInfo) 20151 return value 20152 } 20153 readCallback_TerminationInfo_Void(isSync: boolean = false): ((parameter: TerminationInfo) => void) { 20154 const _resource : CallbackResource = this.readCallbackResource() 20155 const _call : KPointer = this.readPointer() 20156 const _callSync : KPointer = this.readPointer() 20157 return (parameter: TerminationInfo):void => { 20158 const _argsSerializer : Serializer = Serializer.hold(); 20159 _argsSerializer.writeInt32(_resource.resourceId); 20160 _argsSerializer.writePointer(_call); 20161 _argsSerializer.writePointer(_callSync); 20162 _argsSerializer.writeTerminationInfo(parameter); 20163 (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asBuffer(), _argsSerializer.length())); 20164 _argsSerializer.release(); 20165 return; } 20166 } 20167 readEllipseOptions(): EllipseOptions { 20168 let valueDeserializer : Deserializer = this 20169 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20170 let width_buf : string | number | undefined 20171 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 20172 { 20173 const width_buf__selector : int32 = valueDeserializer.readInt8() 20174 let width_buf_ : string | number | undefined 20175 if (width_buf__selector == 0) { 20176 width_buf_ = (valueDeserializer.readString() as string) 20177 } 20178 else if (width_buf__selector == 1) { 20179 width_buf_ = (valueDeserializer.readNumber() as number) 20180 } 20181 else { 20182 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 20183 } 20184 width_buf = (width_buf_ as string | number) 20185 } 20186 const width_result : string | number | undefined = width_buf 20187 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20188 let height_buf : string | number | undefined 20189 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 20190 { 20191 const height_buf__selector : int32 = valueDeserializer.readInt8() 20192 let height_buf_ : string | number | undefined 20193 if (height_buf__selector == 0) { 20194 height_buf_ = (valueDeserializer.readString() as string) 20195 } 20196 else if (height_buf__selector == 1) { 20197 height_buf_ = (valueDeserializer.readNumber() as number) 20198 } 20199 else { 20200 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 20201 } 20202 height_buf = (height_buf_ as string | number) 20203 } 20204 const height_result : string | number | undefined = height_buf 20205 let value : EllipseOptions = ({width: width_result, height: height_result} as EllipseOptions) 20206 return value 20207 } 20208 readDatePickerResult(): DatePickerResult { 20209 let valueDeserializer : Deserializer = this 20210 const year_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20211 let year_buf : number | undefined 20212 if ((RuntimeType.UNDEFINED) != (year_buf_runtimeType)) 20213 { 20214 year_buf = (valueDeserializer.readNumber() as number) 20215 } 20216 const year_result : number | undefined = year_buf 20217 const month_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20218 let month_buf : number | undefined 20219 if ((RuntimeType.UNDEFINED) != (month_buf_runtimeType)) 20220 { 20221 month_buf = (valueDeserializer.readNumber() as number) 20222 } 20223 const month_result : number | undefined = month_buf 20224 const day_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20225 let day_buf : number | undefined 20226 if ((RuntimeType.UNDEFINED) != (day_buf_runtimeType)) 20227 { 20228 day_buf = (valueDeserializer.readNumber() as number) 20229 } 20230 const day_result : number | undefined = day_buf 20231 let value : DatePickerResult = ({year: year_result, month: month_result, day: day_result} as DatePickerResult) 20232 return value 20233 } 20234 readDatePickerOptions(): DatePickerOptions { 20235 let valueDeserializer : Deserializer = this 20236 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20237 let start_buf : Date | undefined 20238 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 20239 { 20240 start_buf = new Date(valueDeserializer.readInt64()) 20241 } 20242 const start_result : Date | undefined = start_buf 20243 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20244 let end_buf : Date | undefined 20245 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 20246 { 20247 end_buf = new Date(valueDeserializer.readInt64()) 20248 } 20249 const end_result : Date | undefined = end_buf 20250 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20251 let selected_buf : Date | undefined 20252 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 20253 { 20254 selected_buf = new Date(valueDeserializer.readInt64()) 20255 } 20256 const selected_result : Date | undefined = selected_buf 20257 let value : DatePickerOptions = ({start: start_result, end: end_result, selected: selected_result} as DatePickerOptions) 20258 return value 20259 } 20260 readDataPanelShadowOptions(): DataPanelShadowOptions { 20261 let valueDeserializer : Deserializer = this 20262 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20263 let radius_buf : number | Resource | undefined 20264 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 20265 { 20266 const radius_buf__selector : int32 = valueDeserializer.readInt8() 20267 let radius_buf_ : number | Resource | undefined 20268 if (radius_buf__selector == 0) { 20269 radius_buf_ = (valueDeserializer.readNumber() as number) 20270 } 20271 else if (radius_buf__selector == 1) { 20272 radius_buf_ = valueDeserializer.readResource() 20273 } 20274 else { 20275 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 20276 } 20277 radius_buf = (radius_buf_ as number | Resource) 20278 } 20279 const radius_result : number | Resource | undefined = radius_buf 20280 const offsetX_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20281 let offsetX_buf : number | Resource | undefined 20282 if ((RuntimeType.UNDEFINED) != (offsetX_buf_runtimeType)) 20283 { 20284 const offsetX_buf__selector : int32 = valueDeserializer.readInt8() 20285 let offsetX_buf_ : number | Resource | undefined 20286 if (offsetX_buf__selector == 0) { 20287 offsetX_buf_ = (valueDeserializer.readNumber() as number) 20288 } 20289 else if (offsetX_buf__selector == 1) { 20290 offsetX_buf_ = valueDeserializer.readResource() 20291 } 20292 else { 20293 throw new Error("One of the branches for offsetX_buf_ has to be chosen through deserialisation.") 20294 } 20295 offsetX_buf = (offsetX_buf_ as number | Resource) 20296 } 20297 const offsetX_result : number | Resource | undefined = offsetX_buf 20298 const offsetY_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20299 let offsetY_buf : number | Resource | undefined 20300 if ((RuntimeType.UNDEFINED) != (offsetY_buf_runtimeType)) 20301 { 20302 const offsetY_buf__selector : int32 = valueDeserializer.readInt8() 20303 let offsetY_buf_ : number | Resource | undefined 20304 if (offsetY_buf__selector == 0) { 20305 offsetY_buf_ = (valueDeserializer.readNumber() as number) 20306 } 20307 else if (offsetY_buf__selector == 1) { 20308 offsetY_buf_ = valueDeserializer.readResource() 20309 } 20310 else { 20311 throw new Error("One of the branches for offsetY_buf_ has to be chosen through deserialisation.") 20312 } 20313 offsetY_buf = (offsetY_buf_ as number | Resource) 20314 } 20315 const offsetY_result : number | Resource | undefined = offsetY_buf 20316 const colors_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20317 let colors_buf : Array<ResourceColor | LinearGradient> | undefined 20318 if ((RuntimeType.UNDEFINED) != (colors_buf_runtimeType)) 20319 { 20320 const colors_buf__length : int32 = valueDeserializer.readInt32() 20321 let colors_buf_ : Array<ResourceColor | LinearGradient> = new Array<ResourceColor | LinearGradient>(colors_buf__length) 20322 for (let colors_buf__i = 0; colors_buf__i < colors_buf__length; colors_buf__i++) { 20323 const colors_buf__buf_selector : int32 = valueDeserializer.readInt8() 20324 let colors_buf__buf : ResourceColor | LinearGradient | undefined 20325 if (colors_buf__buf_selector == 0) { 20326 const colors_buf__buf_u_selector : int32 = valueDeserializer.readInt8() 20327 let colors_buf__buf_u : Color | number | string | Resource | undefined 20328 if (colors_buf__buf_u_selector == 0) { 20329 colors_buf__buf_u = (valueDeserializer.readInt32() as Color) 20330 } 20331 else if (colors_buf__buf_u_selector == 1) { 20332 colors_buf__buf_u = (valueDeserializer.readNumber() as number) 20333 } 20334 else if (colors_buf__buf_u_selector == 2) { 20335 colors_buf__buf_u = (valueDeserializer.readString() as string) 20336 } 20337 else if (colors_buf__buf_u_selector == 3) { 20338 colors_buf__buf_u = valueDeserializer.readResource() 20339 } 20340 else { 20341 throw new Error("One of the branches for colors_buf__buf_u has to be chosen through deserialisation.") 20342 } 20343 colors_buf__buf = (colors_buf__buf_u as Color | number | string | Resource) 20344 } 20345 else if (colors_buf__buf_selector == 1) { 20346 colors_buf__buf = (valueDeserializer.readLinearGradient() as LinearGradient) 20347 } 20348 else { 20349 throw new Error("One of the branches for colors_buf__buf has to be chosen through deserialisation.") 20350 } 20351 colors_buf_[colors_buf__i] = (colors_buf__buf as ResourceColor | LinearGradient) 20352 } 20353 colors_buf = colors_buf_ 20354 } 20355 const colors_result : Array<ResourceColor | LinearGradient> | undefined = colors_buf 20356 let value : DataPanelShadowOptions = ({radius: radius_result, offsetX: offsetX_result, offsetY: offsetY_result, colors: colors_result} as DataPanelShadowOptions) 20357 return value 20358 } 20359 readDataPanelOptions(): DataPanelOptions { 20360 let valueDeserializer : Deserializer = this 20361 const values_buf_length : int32 = valueDeserializer.readInt32() 20362 let values_buf : Array<number> = new Array<number>(values_buf_length) 20363 for (let values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { 20364 values_buf[values_buf_i] = (valueDeserializer.readNumber() as number) 20365 } 20366 const values_result : Array<number> = values_buf 20367 const max_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20368 let max_buf : number | undefined 20369 if ((RuntimeType.UNDEFINED) != (max_buf_runtimeType)) 20370 { 20371 max_buf = (valueDeserializer.readNumber() as number) 20372 } 20373 const max_result : number | undefined = max_buf 20374 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20375 let type_buf : DataPanelType | undefined 20376 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 20377 { 20378 type_buf = (valueDeserializer.readInt32() as DataPanelType) 20379 } 20380 const type_result : DataPanelType | undefined = type_buf 20381 let value : DataPanelOptions = ({values: values_result, max: max_result, type: type_result} as DataPanelOptions) 20382 return value 20383 } 20384 readColorStop(): ColorStop { 20385 let valueDeserializer : Deserializer = this 20386 const color_buf_selector : int32 = valueDeserializer.readInt8() 20387 let color_buf : Color | number | string | Resource | undefined 20388 if (color_buf_selector == 0) { 20389 color_buf = (valueDeserializer.readInt32() as Color) 20390 } 20391 else if (color_buf_selector == 1) { 20392 color_buf = (valueDeserializer.readNumber() as number) 20393 } 20394 else if (color_buf_selector == 2) { 20395 color_buf = (valueDeserializer.readString() as string) 20396 } 20397 else if (color_buf_selector == 3) { 20398 color_buf = valueDeserializer.readResource() 20399 } 20400 else { 20401 throw new Error("One of the branches for color_buf has to be chosen through deserialisation.") 20402 } 20403 const color_result : ResourceColor = (color_buf as Color | number | string | Resource) 20404 const offset_result : Length = (valueDeserializer.readLength() as Length) 20405 let value : ColorStop = ({color: color_result, offset: offset_result} as ColorStop) 20406 return value 20407 } 20408 readCustomDialogControllerOptions(): CustomDialogControllerOptions { 20409 let valueDeserializer : Deserializer = this 20410 const builder_result : object = (valueDeserializer.readCustomObject("Any") as Object) 20411 const cancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20412 let cancel_buf : (() => void) | undefined 20413 if ((RuntimeType.UNDEFINED) != (cancel_buf_runtimeType)) 20414 { 20415 cancel_buf = valueDeserializer.readCallback_Void() 20416 } 20417 const cancel_result : (() => void) | undefined = cancel_buf 20418 const autoCancel_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20419 let autoCancel_buf : boolean | undefined 20420 if ((RuntimeType.UNDEFINED) != (autoCancel_buf_runtimeType)) 20421 { 20422 autoCancel_buf = valueDeserializer.readBoolean() 20423 } 20424 const autoCancel_result : boolean | undefined = autoCancel_buf 20425 const alignment_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20426 let alignment_buf : DialogAlignment | undefined 20427 if ((RuntimeType.UNDEFINED) != (alignment_buf_runtimeType)) 20428 { 20429 alignment_buf = (valueDeserializer.readInt32() as DialogAlignment) 20430 } 20431 const alignment_result : DialogAlignment | undefined = alignment_buf 20432 const offset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20433 let offset_buf : Offset | undefined 20434 if ((RuntimeType.UNDEFINED) != (offset_buf_runtimeType)) 20435 { 20436 const offset_buf__dx : Length = (valueDeserializer.readLength() as Length) 20437 const offset_buf__dy : Length = (valueDeserializer.readLength() as Length) 20438 offset_buf = ({dx: offset_buf__dx, dy: offset_buf__dy} as Offset) 20439 } 20440 const offset_result : Offset | undefined = offset_buf 20441 const customStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20442 let customStyle_buf : boolean | undefined 20443 if ((RuntimeType.UNDEFINED) != (customStyle_buf_runtimeType)) 20444 { 20445 customStyle_buf = valueDeserializer.readBoolean() 20446 } 20447 const customStyle_result : boolean | undefined = customStyle_buf 20448 const gridCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20449 let gridCount_buf : number | undefined 20450 if ((RuntimeType.UNDEFINED) != (gridCount_buf_runtimeType)) 20451 { 20452 gridCount_buf = (valueDeserializer.readNumber() as number) 20453 } 20454 const gridCount_result : number | undefined = gridCount_buf 20455 const maskColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20456 let maskColor_buf : ResourceColor | undefined 20457 if ((RuntimeType.UNDEFINED) != (maskColor_buf_runtimeType)) 20458 { 20459 const maskColor_buf__selector : int32 = valueDeserializer.readInt8() 20460 let maskColor_buf_ : Color | number | string | Resource | undefined 20461 if (maskColor_buf__selector == 0) { 20462 maskColor_buf_ = (valueDeserializer.readInt32() as Color) 20463 } 20464 else if (maskColor_buf__selector == 1) { 20465 maskColor_buf_ = (valueDeserializer.readNumber() as number) 20466 } 20467 else if (maskColor_buf__selector == 2) { 20468 maskColor_buf_ = (valueDeserializer.readString() as string) 20469 } 20470 else if (maskColor_buf__selector == 3) { 20471 maskColor_buf_ = valueDeserializer.readResource() 20472 } 20473 else { 20474 throw new Error("One of the branches for maskColor_buf_ has to be chosen through deserialisation.") 20475 } 20476 maskColor_buf = (maskColor_buf_ as Color | number | string | Resource) 20477 } 20478 const maskColor_result : ResourceColor | undefined = maskColor_buf 20479 const maskRect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20480 let maskRect_buf : Rectangle | undefined 20481 if ((RuntimeType.UNDEFINED) != (maskRect_buf_runtimeType)) 20482 { 20483 maskRect_buf = valueDeserializer.readRectangle() 20484 } 20485 const maskRect_result : Rectangle | undefined = maskRect_buf 20486 const openAnimation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20487 let openAnimation_buf : AnimateParam | undefined 20488 if ((RuntimeType.UNDEFINED) != (openAnimation_buf_runtimeType)) 20489 { 20490 openAnimation_buf = valueDeserializer.readAnimateParam() 20491 } 20492 const openAnimation_result : AnimateParam | undefined = openAnimation_buf 20493 const closeAnimation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20494 let closeAnimation_buf : AnimateParam | undefined 20495 if ((RuntimeType.UNDEFINED) != (closeAnimation_buf_runtimeType)) 20496 { 20497 closeAnimation_buf = valueDeserializer.readAnimateParam() 20498 } 20499 const closeAnimation_result : AnimateParam | undefined = closeAnimation_buf 20500 const showInSubWindow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20501 let showInSubWindow_buf : boolean | undefined 20502 if ((RuntimeType.UNDEFINED) != (showInSubWindow_buf_runtimeType)) 20503 { 20504 showInSubWindow_buf = valueDeserializer.readBoolean() 20505 } 20506 const showInSubWindow_result : boolean | undefined = showInSubWindow_buf 20507 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20508 let backgroundColor_buf : ResourceColor | undefined 20509 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 20510 { 20511 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 20512 let backgroundColor_buf_ : Color | number | string | Resource | undefined 20513 if (backgroundColor_buf__selector == 0) { 20514 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 20515 } 20516 else if (backgroundColor_buf__selector == 1) { 20517 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 20518 } 20519 else if (backgroundColor_buf__selector == 2) { 20520 backgroundColor_buf_ = (valueDeserializer.readString() as string) 20521 } 20522 else if (backgroundColor_buf__selector == 3) { 20523 backgroundColor_buf_ = valueDeserializer.readResource() 20524 } 20525 else { 20526 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 20527 } 20528 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 20529 } 20530 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 20531 const cornerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20532 let cornerRadius_buf : Dimension | BorderRadiuses | undefined 20533 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf_runtimeType)) 20534 { 20535 const cornerRadius_buf__selector : int32 = valueDeserializer.readInt8() 20536 let cornerRadius_buf_ : Dimension | BorderRadiuses | undefined 20537 if (cornerRadius_buf__selector == 0) { 20538 cornerRadius_buf_ = (valueDeserializer.readLength() as Dimension) 20539 } 20540 else if (cornerRadius_buf__selector == 1) { 20541 const cornerRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20542 let cornerRadius_buf__u_topLeft_buf : Length | undefined 20543 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topLeft_buf_runtimeType)) 20544 { 20545 cornerRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 20546 } 20547 const cornerRadius_buf__u_topLeft : undefined | Length = cornerRadius_buf__u_topLeft_buf 20548 const cornerRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20549 let cornerRadius_buf__u_topRight_buf : Length | undefined 20550 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_topRight_buf_runtimeType)) 20551 { 20552 cornerRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 20553 } 20554 const cornerRadius_buf__u_topRight : undefined | Length = cornerRadius_buf__u_topRight_buf 20555 const cornerRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20556 let cornerRadius_buf__u_bottomLeft_buf : Length | undefined 20557 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomLeft_buf_runtimeType)) 20558 { 20559 cornerRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 20560 } 20561 const cornerRadius_buf__u_bottomLeft : undefined | Length = cornerRadius_buf__u_bottomLeft_buf 20562 const cornerRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20563 let cornerRadius_buf__u_bottomRight_buf : Length | undefined 20564 if ((RuntimeType.UNDEFINED) != (cornerRadius_buf__u_bottomRight_buf_runtimeType)) 20565 { 20566 cornerRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 20567 } 20568 const cornerRadius_buf__u_bottomRight : undefined | Length = cornerRadius_buf__u_bottomRight_buf 20569 cornerRadius_buf_ = ({topLeft: cornerRadius_buf__u_topLeft, topRight: cornerRadius_buf__u_topRight, bottomLeft: cornerRadius_buf__u_bottomLeft, bottomRight: cornerRadius_buf__u_bottomRight} as BorderRadiuses) 20570 } 20571 else { 20572 throw new Error("One of the branches for cornerRadius_buf_ has to be chosen through deserialisation.") 20573 } 20574 cornerRadius_buf = (cornerRadius_buf_ as Dimension | BorderRadiuses) 20575 } 20576 const cornerRadius_result : Dimension | BorderRadiuses | undefined = cornerRadius_buf 20577 const isModal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20578 let isModal_buf : boolean | undefined 20579 if ((RuntimeType.UNDEFINED) != (isModal_buf_runtimeType)) 20580 { 20581 isModal_buf = valueDeserializer.readBoolean() 20582 } 20583 const isModal_result : boolean | undefined = isModal_buf 20584 const onWillDismiss_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20585 let onWillDismiss_buf : ((parameter: DismissDialogAction) => void) | undefined 20586 if ((RuntimeType.UNDEFINED) != (onWillDismiss_buf_runtimeType)) 20587 { 20588 onWillDismiss_buf = valueDeserializer.readCallback_DismissDialogAction_Void() 20589 } 20590 const onWillDismiss_result : ((parameter: DismissDialogAction) => void) | undefined = onWillDismiss_buf 20591 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20592 let width_buf : Dimension | undefined 20593 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 20594 { 20595 width_buf = (valueDeserializer.readLength() as Dimension) 20596 } 20597 const width_result : Dimension | undefined = width_buf 20598 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20599 let height_buf : Dimension | undefined 20600 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 20601 { 20602 height_buf = (valueDeserializer.readLength() as Dimension) 20603 } 20604 const height_result : Dimension | undefined = height_buf 20605 const borderWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20606 let borderWidth_buf : Dimension | EdgeWidths | undefined 20607 if ((RuntimeType.UNDEFINED) != (borderWidth_buf_runtimeType)) 20608 { 20609 const borderWidth_buf__selector : int32 = valueDeserializer.readInt8() 20610 let borderWidth_buf_ : Dimension | EdgeWidths | undefined 20611 if (borderWidth_buf__selector == 0) { 20612 borderWidth_buf_ = (valueDeserializer.readLength() as Dimension) 20613 } 20614 else if (borderWidth_buf__selector == 1) { 20615 const borderWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20616 let borderWidth_buf__u_top_buf : Length | undefined 20617 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_top_buf_runtimeType)) 20618 { 20619 borderWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 20620 } 20621 const borderWidth_buf__u_top : undefined | Length = borderWidth_buf__u_top_buf 20622 const borderWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20623 let borderWidth_buf__u_right_buf : Length | undefined 20624 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_right_buf_runtimeType)) 20625 { 20626 borderWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 20627 } 20628 const borderWidth_buf__u_right : undefined | Length = borderWidth_buf__u_right_buf 20629 const borderWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20630 let borderWidth_buf__u_bottom_buf : Length | undefined 20631 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_bottom_buf_runtimeType)) 20632 { 20633 borderWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 20634 } 20635 const borderWidth_buf__u_bottom : undefined | Length = borderWidth_buf__u_bottom_buf 20636 const borderWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20637 let borderWidth_buf__u_left_buf : Length | undefined 20638 if ((RuntimeType.UNDEFINED) != (borderWidth_buf__u_left_buf_runtimeType)) 20639 { 20640 borderWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 20641 } 20642 const borderWidth_buf__u_left : undefined | Length = borderWidth_buf__u_left_buf 20643 borderWidth_buf_ = ({top: borderWidth_buf__u_top, right: borderWidth_buf__u_right, bottom: borderWidth_buf__u_bottom, left: borderWidth_buf__u_left} as EdgeWidths) 20644 } 20645 else { 20646 throw new Error("One of the branches for borderWidth_buf_ has to be chosen through deserialisation.") 20647 } 20648 borderWidth_buf = (borderWidth_buf_ as Dimension | EdgeWidths) 20649 } 20650 const borderWidth_result : Dimension | EdgeWidths | undefined = borderWidth_buf 20651 const borderColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20652 let borderColor_buf : ResourceColor | EdgeColors | undefined 20653 if ((RuntimeType.UNDEFINED) != (borderColor_buf_runtimeType)) 20654 { 20655 const borderColor_buf__selector : int32 = valueDeserializer.readInt8() 20656 let borderColor_buf_ : ResourceColor | EdgeColors | undefined 20657 if (borderColor_buf__selector == 0) { 20658 const borderColor_buf__u_selector : int32 = valueDeserializer.readInt8() 20659 let borderColor_buf__u : Color | number | string | Resource | undefined 20660 if (borderColor_buf__u_selector == 0) { 20661 borderColor_buf__u = (valueDeserializer.readInt32() as Color) 20662 } 20663 else if (borderColor_buf__u_selector == 1) { 20664 borderColor_buf__u = (valueDeserializer.readNumber() as number) 20665 } 20666 else if (borderColor_buf__u_selector == 2) { 20667 borderColor_buf__u = (valueDeserializer.readString() as string) 20668 } 20669 else if (borderColor_buf__u_selector == 3) { 20670 borderColor_buf__u = valueDeserializer.readResource() 20671 } 20672 else { 20673 throw new Error("One of the branches for borderColor_buf__u has to be chosen through deserialisation.") 20674 } 20675 borderColor_buf_ = (borderColor_buf__u as Color | number | string | Resource) 20676 } 20677 else if (borderColor_buf__selector == 1) { 20678 const borderColor_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20679 let borderColor_buf__u_top_buf : ResourceColor | undefined 20680 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_top_buf_runtimeType)) 20681 { 20682 const borderColor_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 20683 let borderColor_buf__u_top_buf_ : Color | number | string | Resource | undefined 20684 if (borderColor_buf__u_top_buf__selector == 0) { 20685 borderColor_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 20686 } 20687 else if (borderColor_buf__u_top_buf__selector == 1) { 20688 borderColor_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 20689 } 20690 else if (borderColor_buf__u_top_buf__selector == 2) { 20691 borderColor_buf__u_top_buf_ = (valueDeserializer.readString() as string) 20692 } 20693 else if (borderColor_buf__u_top_buf__selector == 3) { 20694 borderColor_buf__u_top_buf_ = valueDeserializer.readResource() 20695 } 20696 else { 20697 throw new Error("One of the branches for borderColor_buf__u_top_buf_ has to be chosen through deserialisation.") 20698 } 20699 borderColor_buf__u_top_buf = (borderColor_buf__u_top_buf_ as Color | number | string | Resource) 20700 } 20701 const borderColor_buf__u_top : undefined | ResourceColor = borderColor_buf__u_top_buf 20702 const borderColor_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20703 let borderColor_buf__u_right_buf : ResourceColor | undefined 20704 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_right_buf_runtimeType)) 20705 { 20706 const borderColor_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 20707 let borderColor_buf__u_right_buf_ : Color | number | string | Resource | undefined 20708 if (borderColor_buf__u_right_buf__selector == 0) { 20709 borderColor_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 20710 } 20711 else if (borderColor_buf__u_right_buf__selector == 1) { 20712 borderColor_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 20713 } 20714 else if (borderColor_buf__u_right_buf__selector == 2) { 20715 borderColor_buf__u_right_buf_ = (valueDeserializer.readString() as string) 20716 } 20717 else if (borderColor_buf__u_right_buf__selector == 3) { 20718 borderColor_buf__u_right_buf_ = valueDeserializer.readResource() 20719 } 20720 else { 20721 throw new Error("One of the branches for borderColor_buf__u_right_buf_ has to be chosen through deserialisation.") 20722 } 20723 borderColor_buf__u_right_buf = (borderColor_buf__u_right_buf_ as Color | number | string | Resource) 20724 } 20725 const borderColor_buf__u_right : undefined | ResourceColor = borderColor_buf__u_right_buf 20726 const borderColor_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20727 let borderColor_buf__u_bottom_buf : ResourceColor | undefined 20728 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_bottom_buf_runtimeType)) 20729 { 20730 const borderColor_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 20731 let borderColor_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 20732 if (borderColor_buf__u_bottom_buf__selector == 0) { 20733 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 20734 } 20735 else if (borderColor_buf__u_bottom_buf__selector == 1) { 20736 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 20737 } 20738 else if (borderColor_buf__u_bottom_buf__selector == 2) { 20739 borderColor_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 20740 } 20741 else if (borderColor_buf__u_bottom_buf__selector == 3) { 20742 borderColor_buf__u_bottom_buf_ = valueDeserializer.readResource() 20743 } 20744 else { 20745 throw new Error("One of the branches for borderColor_buf__u_bottom_buf_ has to be chosen through deserialisation.") 20746 } 20747 borderColor_buf__u_bottom_buf = (borderColor_buf__u_bottom_buf_ as Color | number | string | Resource) 20748 } 20749 const borderColor_buf__u_bottom : undefined | ResourceColor = borderColor_buf__u_bottom_buf 20750 const borderColor_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20751 let borderColor_buf__u_left_buf : ResourceColor | undefined 20752 if ((RuntimeType.UNDEFINED) != (borderColor_buf__u_left_buf_runtimeType)) 20753 { 20754 const borderColor_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 20755 let borderColor_buf__u_left_buf_ : Color | number | string | Resource | undefined 20756 if (borderColor_buf__u_left_buf__selector == 0) { 20757 borderColor_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 20758 } 20759 else if (borderColor_buf__u_left_buf__selector == 1) { 20760 borderColor_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 20761 } 20762 else if (borderColor_buf__u_left_buf__selector == 2) { 20763 borderColor_buf__u_left_buf_ = (valueDeserializer.readString() as string) 20764 } 20765 else if (borderColor_buf__u_left_buf__selector == 3) { 20766 borderColor_buf__u_left_buf_ = valueDeserializer.readResource() 20767 } 20768 else { 20769 throw new Error("One of the branches for borderColor_buf__u_left_buf_ has to be chosen through deserialisation.") 20770 } 20771 borderColor_buf__u_left_buf = (borderColor_buf__u_left_buf_ as Color | number | string | Resource) 20772 } 20773 const borderColor_buf__u_left : undefined | ResourceColor = borderColor_buf__u_left_buf 20774 borderColor_buf_ = ({top: borderColor_buf__u_top, right: borderColor_buf__u_right, bottom: borderColor_buf__u_bottom, left: borderColor_buf__u_left} as EdgeColors) 20775 } 20776 else { 20777 throw new Error("One of the branches for borderColor_buf_ has to be chosen through deserialisation.") 20778 } 20779 borderColor_buf = (borderColor_buf_ as ResourceColor | EdgeColors) 20780 } 20781 const borderColor_result : ResourceColor | EdgeColors | undefined = borderColor_buf 20782 const borderStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20783 let borderStyle_buf : BorderStyle | EdgeStyles | undefined 20784 if ((RuntimeType.UNDEFINED) != (borderStyle_buf_runtimeType)) 20785 { 20786 const borderStyle_buf__selector : int32 = valueDeserializer.readInt8() 20787 let borderStyle_buf_ : BorderStyle | EdgeStyles | undefined 20788 if (borderStyle_buf__selector == 0) { 20789 borderStyle_buf_ = (valueDeserializer.readInt32() as BorderStyle) 20790 } 20791 else if (borderStyle_buf__selector == 1) { 20792 const borderStyle_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20793 let borderStyle_buf__u_top_buf : BorderStyle | undefined 20794 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_top_buf_runtimeType)) 20795 { 20796 borderStyle_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 20797 } 20798 const borderStyle_buf__u_top : undefined | BorderStyle = borderStyle_buf__u_top_buf 20799 const borderStyle_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20800 let borderStyle_buf__u_right_buf : BorderStyle | undefined 20801 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_right_buf_runtimeType)) 20802 { 20803 borderStyle_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 20804 } 20805 const borderStyle_buf__u_right : undefined | BorderStyle = borderStyle_buf__u_right_buf 20806 const borderStyle_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20807 let borderStyle_buf__u_bottom_buf : BorderStyle | undefined 20808 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_bottom_buf_runtimeType)) 20809 { 20810 borderStyle_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 20811 } 20812 const borderStyle_buf__u_bottom : undefined | BorderStyle = borderStyle_buf__u_bottom_buf 20813 const borderStyle_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20814 let borderStyle_buf__u_left_buf : BorderStyle | undefined 20815 if ((RuntimeType.UNDEFINED) != (borderStyle_buf__u_left_buf_runtimeType)) 20816 { 20817 borderStyle_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 20818 } 20819 const borderStyle_buf__u_left : undefined | BorderStyle = borderStyle_buf__u_left_buf 20820 borderStyle_buf_ = ({top: borderStyle_buf__u_top, right: borderStyle_buf__u_right, bottom: borderStyle_buf__u_bottom, left: borderStyle_buf__u_left} as EdgeStyles) 20821 } 20822 else { 20823 throw new Error("One of the branches for borderStyle_buf_ has to be chosen through deserialisation.") 20824 } 20825 borderStyle_buf = (borderStyle_buf_ as BorderStyle | EdgeStyles) 20826 } 20827 const borderStyle_result : BorderStyle | EdgeStyles | undefined = borderStyle_buf 20828 const shadow_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20829 let shadow_buf : ShadowOptions | ShadowStyle | undefined 20830 if ((RuntimeType.UNDEFINED) != (shadow_buf_runtimeType)) 20831 { 20832 const shadow_buf__selector : int32 = valueDeserializer.readInt8() 20833 let shadow_buf_ : ShadowOptions | ShadowStyle | undefined 20834 if (shadow_buf__selector == 0) { 20835 shadow_buf_ = valueDeserializer.readShadowOptions() 20836 } 20837 else if (shadow_buf__selector == 1) { 20838 shadow_buf_ = (valueDeserializer.readInt32() as ShadowStyle) 20839 } 20840 else { 20841 throw new Error("One of the branches for shadow_buf_ has to be chosen through deserialisation.") 20842 } 20843 shadow_buf = (shadow_buf_ as ShadowOptions | ShadowStyle) 20844 } 20845 const shadow_result : ShadowOptions | ShadowStyle | undefined = shadow_buf 20846 const backgroundBlurStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20847 let backgroundBlurStyle_buf : BlurStyle | undefined 20848 if ((RuntimeType.UNDEFINED) != (backgroundBlurStyle_buf_runtimeType)) 20849 { 20850 backgroundBlurStyle_buf = (valueDeserializer.readInt32() as BlurStyle) 20851 } 20852 const backgroundBlurStyle_result : BlurStyle | undefined = backgroundBlurStyle_buf 20853 const keyboardAvoidMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20854 let keyboardAvoidMode_buf : KeyboardAvoidMode | undefined 20855 if ((RuntimeType.UNDEFINED) != (keyboardAvoidMode_buf_runtimeType)) 20856 { 20857 keyboardAvoidMode_buf = (valueDeserializer.readInt32() as KeyboardAvoidMode) 20858 } 20859 const keyboardAvoidMode_result : KeyboardAvoidMode | undefined = keyboardAvoidMode_buf 20860 const enableHoverMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20861 let enableHoverMode_buf : boolean | undefined 20862 if ((RuntimeType.UNDEFINED) != (enableHoverMode_buf_runtimeType)) 20863 { 20864 enableHoverMode_buf = valueDeserializer.readBoolean() 20865 } 20866 const enableHoverMode_result : boolean | undefined = enableHoverMode_buf 20867 const hoverModeArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20868 let hoverModeArea_buf : HoverModeAreaType | undefined 20869 if ((RuntimeType.UNDEFINED) != (hoverModeArea_buf_runtimeType)) 20870 { 20871 hoverModeArea_buf = (valueDeserializer.readInt32() as HoverModeAreaType) 20872 } 20873 const hoverModeArea_result : HoverModeAreaType | undefined = hoverModeArea_buf 20874 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) 20875 return value 20876 } 20877 readCustomDialogController(): CustomDialogController { 20878 let valueDeserializer : Deserializer = this 20879 let ptr : KPointer = valueDeserializer.readPointer() 20880 return CustomDialogControllerInternal.fromPtr(ptr) 20881 } 20882 readSceneOptions(): SceneOptions { 20883 let valueDeserializer : Deserializer = this 20884 const scene_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20885 let scene_buf : ResourceStr | Scene | undefined 20886 if ((RuntimeType.UNDEFINED) != (scene_buf_runtimeType)) 20887 { 20888 const scene_buf__selector : int32 = valueDeserializer.readInt8() 20889 let scene_buf_ : ResourceStr | Scene | undefined 20890 if (scene_buf__selector == 0) { 20891 const scene_buf__u_selector : int32 = valueDeserializer.readInt8() 20892 let scene_buf__u : string | Resource | undefined 20893 if (scene_buf__u_selector == 0) { 20894 scene_buf__u = (valueDeserializer.readString() as string) 20895 } 20896 else if (scene_buf__u_selector == 1) { 20897 scene_buf__u = valueDeserializer.readResource() 20898 } 20899 else { 20900 throw new Error("One of the branches for scene_buf__u has to be chosen through deserialisation.") 20901 } 20902 scene_buf_ = (scene_buf__u as string | Resource) 20903 } 20904 else if (scene_buf__selector == 1) { 20905 scene_buf_ = valueDeserializer.readScene() 20906 } 20907 else { 20908 throw new Error("One of the branches for scene_buf_ has to be chosen through deserialisation.") 20909 } 20910 scene_buf = (scene_buf_ as ResourceStr | Scene) 20911 } 20912 const scene_result : ResourceStr | Scene | undefined = scene_buf 20913 const modelType_buf_runtimeType = (valueDeserializer.readInt8() as int32) 20914 let modelType_buf : ModelType | undefined 20915 if ((RuntimeType.UNDEFINED) != (modelType_buf_runtimeType)) 20916 { 20917 modelType_buf = (valueDeserializer.readInt32() as ModelType) 20918 } 20919 const modelType_result : ModelType | undefined = modelType_buf 20920 let value : SceneOptions = ({scene: scene_result, modelType: modelType_result} as SceneOptions) 20921 return value 20922 } 20923 readUICommonEvent(): UICommonEvent { 20924 let valueDeserializer : Deserializer = this 20925 let ptr : KPointer = valueDeserializer.readPointer() 20926 return UICommonEventInternal.fromPtr(ptr) 20927 } 20928 readChildrenMainSize(): ChildrenMainSize { 20929 let valueDeserializer : Deserializer = this 20930 let ptr : KPointer = valueDeserializer.readPointer() 20931 return ChildrenMainSizeInternal.fromPtr(ptr) 20932 } 20933 readOnMoveHandler(isSync: boolean = false): OnMoveHandler { 20934 const _resource : CallbackResource = this.readCallbackResource() 20935 const _call : KPointer = this.readPointer() 20936 const _callSync : KPointer = this.readPointer() 20937 return (from: number, to: number):void => { 20938 const _argsSerializer : Serializer = Serializer.hold(); 20939 _argsSerializer.writeInt32(_resource.resourceId); 20940 _argsSerializer.writePointer(_call); 20941 _argsSerializer.writePointer(_callSync); 20942 _argsSerializer.writeNumber(from); 20943 _argsSerializer.writeNumber(to); 20944 (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asBuffer(), _argsSerializer.length())); 20945 _argsSerializer.release(); 20946 return; } 20947 } 20948 readOnScrollCallback(isSync: boolean = false): OnScrollCallback { 20949 const _resource : CallbackResource = this.readCallbackResource() 20950 const _call : KPointer = this.readPointer() 20951 const _callSync : KPointer = this.readPointer() 20952 return (scrollOffset: number, scrollState: ScrollState):void => { 20953 const _argsSerializer : Serializer = Serializer.hold(); 20954 _argsSerializer.writeInt32(_resource.resourceId); 20955 _argsSerializer.writePointer(_call); 20956 _argsSerializer.writePointer(_callSync); 20957 _argsSerializer.writeNumber(scrollOffset); 20958 _argsSerializer.writeInt32(scrollState.valueOf()); 20959 (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asBuffer(), _argsSerializer.length())); 20960 _argsSerializer.release(); 20961 return; } 20962 } 20963 readCallback_Number_Number_Void(isSync: boolean = false): ((first: number,last: number) => void) { 20964 const _resource : CallbackResource = this.readCallbackResource() 20965 const _call : KPointer = this.readPointer() 20966 const _callSync : KPointer = this.readPointer() 20967 return (first: number, last: number):void => { 20968 const _argsSerializer : Serializer = Serializer.hold(); 20969 _argsSerializer.writeInt32(_resource.resourceId); 20970 _argsSerializer.writePointer(_call); 20971 _argsSerializer.writePointer(_callSync); 20972 _argsSerializer.writeNumber(first); 20973 _argsSerializer.writeNumber(last); 20974 (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asBuffer(), _argsSerializer.length())); 20975 _argsSerializer.release(); 20976 return; } 20977 } 20978 readTextContentControllerBase(): TextContentControllerBase { 20979 let valueDeserializer : Deserializer = this 20980 let ptr : KPointer = valueDeserializer.readPointer() 20981 return TextContentControllerBaseInternal.fromPtr(ptr) 20982 } 20983 readView(): View { 20984 let valueDeserializer : Deserializer = this 20985 let ptr : KPointer = valueDeserializer.readPointer() 20986 return ViewInternal.fromPtr(ptr) 20987 } 20988 readMeasurable(): Measurable { 20989 let valueDeserializer : Deserializer = this 20990 let ptr : KPointer = valueDeserializer.readPointer() 20991 return MeasurableInternal.fromPtr(ptr) 20992 } 20993 readMenuElement(): MenuElement { 20994 let valueDeserializer : Deserializer = this 20995 const value_buf_selector : int32 = valueDeserializer.readInt8() 20996 let value_buf : string | Resource | undefined 20997 if (value_buf_selector == 0) { 20998 value_buf = (valueDeserializer.readString() as string) 20999 } 21000 else if (value_buf_selector == 1) { 21001 value_buf = valueDeserializer.readResource() 21002 } 21003 else { 21004 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 21005 } 21006 const value_result : ResourceStr = (value_buf as string | Resource) 21007 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21008 let icon_buf : ResourceStr | undefined 21009 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 21010 { 21011 const icon_buf__selector : int32 = valueDeserializer.readInt8() 21012 let icon_buf_ : string | Resource | undefined 21013 if (icon_buf__selector == 0) { 21014 icon_buf_ = (valueDeserializer.readString() as string) 21015 } 21016 else if (icon_buf__selector == 1) { 21017 icon_buf_ = valueDeserializer.readResource() 21018 } 21019 else { 21020 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 21021 } 21022 icon_buf = (icon_buf_ as string | Resource) 21023 } 21024 const icon_result : ResourceStr | undefined = icon_buf 21025 const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21026 let symbolIcon_buf : SymbolGlyphModifier | undefined 21027 if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) 21028 { 21029 symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() 21030 } 21031 const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf 21032 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21033 let enabled_buf : boolean | undefined 21034 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 21035 { 21036 enabled_buf = valueDeserializer.readBoolean() 21037 } 21038 const enabled_result : boolean | undefined = enabled_buf 21039 const action_result : (() => void) = valueDeserializer.readCallback_Void() 21040 let value : MenuElement = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, enabled: enabled_result, action: action_result} as MenuElement) 21041 return value 21042 } 21043 readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { 21044 let valueDeserializer : Deserializer = this 21045 const rate_result : number = (valueDeserializer.readNumber() as number) 21046 const lightUpDegree_result : number = (valueDeserializer.readNumber() as number) 21047 let value : BackgroundBrightnessOptions = ({rate: rate_result, lightUpDegree: lightUpDegree_result} as BackgroundBrightnessOptions) 21048 return value 21049 } 21050 readGestureModifier(): GestureModifier { 21051 let valueDeserializer : Deserializer = this 21052 let ptr : KPointer = valueDeserializer.readPointer() 21053 return GestureModifierInternal.fromPtr(ptr) 21054 } 21055 readPixelStretchEffectOptions(): PixelStretchEffectOptions { 21056 let valueDeserializer : Deserializer = this 21057 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21058 let top_buf : Length | undefined 21059 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 21060 { 21061 top_buf = (valueDeserializer.readLength() as Length) 21062 } 21063 const top_result : Length | undefined = top_buf 21064 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21065 let bottom_buf : Length | undefined 21066 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 21067 { 21068 bottom_buf = (valueDeserializer.readLength() as Length) 21069 } 21070 const bottom_result : Length | undefined = bottom_buf 21071 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21072 let left_buf : Length | undefined 21073 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 21074 { 21075 left_buf = (valueDeserializer.readLength() as Length) 21076 } 21077 const left_result : Length | undefined = left_buf 21078 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21079 let right_buf : Length | undefined 21080 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 21081 { 21082 right_buf = (valueDeserializer.readLength() as Length) 21083 } 21084 const right_result : Length | undefined = right_buf 21085 let value : PixelStretchEffectOptions = ({top: top_result, bottom: bottom_result, left: left_result, right: right_result} as PixelStretchEffectOptions) 21086 return value 21087 } 21088 readStateStyles(): StateStyles { 21089 let valueDeserializer : Deserializer = this 21090 const normal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21091 let normal_buf : object | undefined 21092 if ((RuntimeType.UNDEFINED) != (normal_buf_runtimeType)) 21093 { 21094 normal_buf = (valueDeserializer.readCustomObject("Any") as Object) 21095 } 21096 const normal_result : object | undefined = normal_buf 21097 const pressed_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21098 let pressed_buf : object | undefined 21099 if ((RuntimeType.UNDEFINED) != (pressed_buf_runtimeType)) 21100 { 21101 pressed_buf = (valueDeserializer.readCustomObject("Any") as Object) 21102 } 21103 const pressed_result : object | undefined = pressed_buf 21104 const disabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21105 let disabled_buf : object | undefined 21106 if ((RuntimeType.UNDEFINED) != (disabled_buf_runtimeType)) 21107 { 21108 disabled_buf = (valueDeserializer.readCustomObject("Any") as Object) 21109 } 21110 const disabled_result : object | undefined = disabled_buf 21111 const focused_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21112 let focused_buf : object | undefined 21113 if ((RuntimeType.UNDEFINED) != (focused_buf_runtimeType)) 21114 { 21115 focused_buf = (valueDeserializer.readCustomObject("Any") as Object) 21116 } 21117 const focused_result : object | undefined = focused_buf 21118 const clicked_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21119 let clicked_buf : object | undefined 21120 if ((RuntimeType.UNDEFINED) != (clicked_buf_runtimeType)) 21121 { 21122 clicked_buf = (valueDeserializer.readCustomObject("Any") as Object) 21123 } 21124 const clicked_result : object | undefined = clicked_buf 21125 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21126 let selected_buf : Object | undefined 21127 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 21128 { 21129 selected_buf = (valueDeserializer.readCustomObject("Object") as Object) 21130 } 21131 const selected_result : Object | undefined = selected_buf 21132 let value : StateStyles = ({normal: normal_result, pressed: pressed_result, disabled: disabled_result, focused: focused_result, clicked: clicked_result, selected: selected_result} as StateStyles) 21133 return value 21134 } 21135 readUniformDataType(): UniformDataType { 21136 let valueDeserializer : Deserializer = this 21137 const _UniformDataTypeStub_result : string = (valueDeserializer.readString() as string) 21138 let value : UniformDataType = ({_UniformDataTypeStub: _UniformDataTypeStub_result} as UniformDataType) 21139 return value 21140 } 21141 readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { 21142 let valueDeserializer : Deserializer = this 21143 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21144 let start_buf : LocalizedHorizontalAlignParam | undefined 21145 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 21146 { 21147 start_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21148 } 21149 const start_result : LocalizedHorizontalAlignParam | undefined = start_buf 21150 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21151 let end_buf : LocalizedHorizontalAlignParam | undefined 21152 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 21153 { 21154 end_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21155 } 21156 const end_result : LocalizedHorizontalAlignParam | undefined = end_buf 21157 const middle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21158 let middle_buf : LocalizedHorizontalAlignParam | undefined 21159 if ((RuntimeType.UNDEFINED) != (middle_buf_runtimeType)) 21160 { 21161 middle_buf = valueDeserializer.readLocalizedHorizontalAlignParam() 21162 } 21163 const middle_result : LocalizedHorizontalAlignParam | undefined = middle_buf 21164 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21165 let top_buf : LocalizedVerticalAlignParam | undefined 21166 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 21167 { 21168 top_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21169 } 21170 const top_result : LocalizedVerticalAlignParam | undefined = top_buf 21171 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21172 let bottom_buf : LocalizedVerticalAlignParam | undefined 21173 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 21174 { 21175 bottom_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21176 } 21177 const bottom_result : LocalizedVerticalAlignParam | undefined = bottom_buf 21178 const center_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21179 let center_buf : LocalizedVerticalAlignParam | undefined 21180 if ((RuntimeType.UNDEFINED) != (center_buf_runtimeType)) 21181 { 21182 center_buf = valueDeserializer.readLocalizedVerticalAlignParam() 21183 } 21184 const center_result : LocalizedVerticalAlignParam | undefined = center_buf 21185 const bias_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21186 let bias_buf : Bias | undefined 21187 if ((RuntimeType.UNDEFINED) != (bias_buf_runtimeType)) 21188 { 21189 bias_buf = valueDeserializer.readBias() 21190 } 21191 const bias_result : Bias | undefined = bias_buf 21192 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) 21193 return value 21194 } 21195 readAlignRuleOption(): AlignRuleOption { 21196 let valueDeserializer : Deserializer = this 21197 const left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21198 let left_buf : HorizontalAlignOptions | undefined 21199 if ((RuntimeType.UNDEFINED) != (left_buf_runtimeType)) 21200 { 21201 const left_buf__anchor : string = (valueDeserializer.readString() as string) 21202 const left_buf__align : HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21203 left_buf = ({anchor: left_buf__anchor, align: left_buf__align} as HorizontalAlignOptions) 21204 } 21205 const left_result : HorizontalAlignOptions | undefined = left_buf 21206 const right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21207 let right_buf : HorizontalAlignOptions | undefined 21208 if ((RuntimeType.UNDEFINED) != (right_buf_runtimeType)) 21209 { 21210 const right_buf__anchor : string = (valueDeserializer.readString() as string) 21211 const right_buf__align : HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21212 right_buf = ({anchor: right_buf__anchor, align: right_buf__align} as HorizontalAlignOptions) 21213 } 21214 const right_result : HorizontalAlignOptions | undefined = right_buf 21215 const middle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21216 let middle_buf : HorizontalAlignOptions | undefined 21217 if ((RuntimeType.UNDEFINED) != (middle_buf_runtimeType)) 21218 { 21219 const middle_buf__anchor : string = (valueDeserializer.readString() as string) 21220 const middle_buf__align : HorizontalAlign = (valueDeserializer.readInt32() as HorizontalAlign) 21221 middle_buf = ({anchor: middle_buf__anchor, align: middle_buf__align} as HorizontalAlignOptions) 21222 } 21223 const middle_result : HorizontalAlignOptions | undefined = middle_buf 21224 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21225 let top_buf : VerticalAlignOptions | undefined 21226 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 21227 { 21228 const top_buf__anchor : string = (valueDeserializer.readString() as string) 21229 const top_buf__align : VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21230 top_buf = ({anchor: top_buf__anchor, align: top_buf__align} as VerticalAlignOptions) 21231 } 21232 const top_result : VerticalAlignOptions | undefined = top_buf 21233 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21234 let bottom_buf : VerticalAlignOptions | undefined 21235 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 21236 { 21237 const bottom_buf__anchor : string = (valueDeserializer.readString() as string) 21238 const bottom_buf__align : VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21239 bottom_buf = ({anchor: bottom_buf__anchor, align: bottom_buf__align} as VerticalAlignOptions) 21240 } 21241 const bottom_result : VerticalAlignOptions | undefined = bottom_buf 21242 const center_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21243 let center_buf : VerticalAlignOptions | undefined 21244 if ((RuntimeType.UNDEFINED) != (center_buf_runtimeType)) 21245 { 21246 const center_buf__anchor : string = (valueDeserializer.readString() as string) 21247 const center_buf__align : VerticalAlign = (valueDeserializer.readInt32() as VerticalAlign) 21248 center_buf = ({anchor: center_buf__anchor, align: center_buf__align} as VerticalAlignOptions) 21249 } 21250 const center_result : VerticalAlignOptions | undefined = center_buf 21251 const bias_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21252 let bias_buf : Bias | undefined 21253 if ((RuntimeType.UNDEFINED) != (bias_buf_runtimeType)) 21254 { 21255 bias_buf = valueDeserializer.readBias() 21256 } 21257 const bias_result : Bias | undefined = bias_buf 21258 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) 21259 return value 21260 } 21261 readMotionBlurOptions(): MotionBlurOptions { 21262 let valueDeserializer : Deserializer = this 21263 const radius_result : number = (valueDeserializer.readNumber() as number) 21264 const anchor_result : MotionBlurAnchor = valueDeserializer.readMotionBlurAnchor() 21265 let value : MotionBlurOptions = ({radius: radius_result, anchor: anchor_result} as MotionBlurOptions) 21266 return value 21267 } 21268 readFocusBoxStyle(): FocusBoxStyle { 21269 let valueDeserializer : Deserializer = this 21270 const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21271 let margin_buf : LengthMetrics | undefined 21272 if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) 21273 { 21274 margin_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 21275 } 21276 const margin_result : LengthMetrics | undefined = margin_buf 21277 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21278 let strokeColor_buf : ColorMetrics | undefined 21279 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 21280 { 21281 strokeColor_buf = (valueDeserializer.readColorMetrics() as ColorMetrics) 21282 } 21283 const strokeColor_result : ColorMetrics | undefined = strokeColor_buf 21284 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21285 let strokeWidth_buf : LengthMetrics | undefined 21286 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 21287 { 21288 strokeWidth_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) 21289 } 21290 const strokeWidth_result : LengthMetrics | undefined = strokeWidth_buf 21291 let value : FocusBoxStyle = ({margin: margin_result, strokeColor: strokeColor_result, strokeWidth: strokeWidth_result} as FocusBoxStyle) 21292 return value 21293 } 21294 readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { 21295 const _resource : CallbackResource = this.readCallbackResource() 21296 const _call : KPointer = this.readPointer() 21297 const _callSync : KPointer = this.readPointer() 21298 return (isHover: boolean, event: AccessibilityHoverEvent):void => { 21299 const _argsSerializer : Serializer = Serializer.hold(); 21300 _argsSerializer.writeInt32(_resource.resourceId); 21301 _argsSerializer.writePointer(_call); 21302 _argsSerializer.writePointer(_callSync); 21303 _argsSerializer.writeBoolean(isHover); 21304 _argsSerializer.writeAccessibilityHoverEvent(event); 21305 (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asBuffer(), _argsSerializer.length())); 21306 _argsSerializer.release(); 21307 return; } 21308 } 21309 readOutlineOptions(): OutlineOptions { 21310 let valueDeserializer : Deserializer = this 21311 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21312 let width_buf : EdgeOutlineWidths | Dimension | undefined 21313 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21314 { 21315 const width_buf__selector : int32 = valueDeserializer.readInt8() 21316 let width_buf_ : EdgeOutlineWidths | Dimension | undefined 21317 if (width_buf__selector == 0) { 21318 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21319 let width_buf__u_top_buf : Dimension | undefined 21320 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21321 { 21322 width_buf__u_top_buf = (valueDeserializer.readLength() as Dimension) 21323 } 21324 const width_buf__u_top : undefined | Dimension = width_buf__u_top_buf 21325 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21326 let width_buf__u_right_buf : Dimension | undefined 21327 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21328 { 21329 width_buf__u_right_buf = (valueDeserializer.readLength() as Dimension) 21330 } 21331 const width_buf__u_right : undefined | Dimension = width_buf__u_right_buf 21332 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21333 let width_buf__u_bottom_buf : Dimension | undefined 21334 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21335 { 21336 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Dimension) 21337 } 21338 const width_buf__u_bottom : undefined | Dimension = width_buf__u_bottom_buf 21339 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21340 let width_buf__u_left_buf : Dimension | undefined 21341 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21342 { 21343 width_buf__u_left_buf = (valueDeserializer.readLength() as Dimension) 21344 } 21345 const width_buf__u_left : undefined | Dimension = width_buf__u_left_buf 21346 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeOutlineWidths) 21347 } 21348 else if (width_buf__selector == 1) { 21349 width_buf_ = (valueDeserializer.readLength() as Dimension) 21350 } 21351 else { 21352 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21353 } 21354 width_buf = (width_buf_ as EdgeOutlineWidths | Dimension) 21355 } 21356 const width_result : EdgeOutlineWidths | Dimension | undefined = width_buf 21357 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21358 let color_buf : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined 21359 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 21360 { 21361 const color_buf__selector : int32 = valueDeserializer.readInt8() 21362 let color_buf_ : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined 21363 if (color_buf__selector == 0) { 21364 const color_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21365 let color_buf__u_top_buf : ResourceColor | undefined 21366 if ((RuntimeType.UNDEFINED) != (color_buf__u_top_buf_runtimeType)) 21367 { 21368 const color_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 21369 let color_buf__u_top_buf_ : Color | number | string | Resource | undefined 21370 if (color_buf__u_top_buf__selector == 0) { 21371 color_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 21372 } 21373 else if (color_buf__u_top_buf__selector == 1) { 21374 color_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 21375 } 21376 else if (color_buf__u_top_buf__selector == 2) { 21377 color_buf__u_top_buf_ = (valueDeserializer.readString() as string) 21378 } 21379 else if (color_buf__u_top_buf__selector == 3) { 21380 color_buf__u_top_buf_ = valueDeserializer.readResource() 21381 } 21382 else { 21383 throw new Error("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation.") 21384 } 21385 color_buf__u_top_buf = (color_buf__u_top_buf_ as Color | number | string | Resource) 21386 } 21387 const color_buf__u_top : undefined | ResourceColor = color_buf__u_top_buf 21388 const color_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21389 let color_buf__u_right_buf : ResourceColor | undefined 21390 if ((RuntimeType.UNDEFINED) != (color_buf__u_right_buf_runtimeType)) 21391 { 21392 const color_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 21393 let color_buf__u_right_buf_ : Color | number | string | Resource | undefined 21394 if (color_buf__u_right_buf__selector == 0) { 21395 color_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 21396 } 21397 else if (color_buf__u_right_buf__selector == 1) { 21398 color_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 21399 } 21400 else if (color_buf__u_right_buf__selector == 2) { 21401 color_buf__u_right_buf_ = (valueDeserializer.readString() as string) 21402 } 21403 else if (color_buf__u_right_buf__selector == 3) { 21404 color_buf__u_right_buf_ = valueDeserializer.readResource() 21405 } 21406 else { 21407 throw new Error("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation.") 21408 } 21409 color_buf__u_right_buf = (color_buf__u_right_buf_ as Color | number | string | Resource) 21410 } 21411 const color_buf__u_right : undefined | ResourceColor = color_buf__u_right_buf 21412 const color_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21413 let color_buf__u_bottom_buf : ResourceColor | undefined 21414 if ((RuntimeType.UNDEFINED) != (color_buf__u_bottom_buf_runtimeType)) 21415 { 21416 const color_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 21417 let color_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 21418 if (color_buf__u_bottom_buf__selector == 0) { 21419 color_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 21420 } 21421 else if (color_buf__u_bottom_buf__selector == 1) { 21422 color_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 21423 } 21424 else if (color_buf__u_bottom_buf__selector == 2) { 21425 color_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 21426 } 21427 else if (color_buf__u_bottom_buf__selector == 3) { 21428 color_buf__u_bottom_buf_ = valueDeserializer.readResource() 21429 } 21430 else { 21431 throw new Error("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation.") 21432 } 21433 color_buf__u_bottom_buf = (color_buf__u_bottom_buf_ as Color | number | string | Resource) 21434 } 21435 const color_buf__u_bottom : undefined | ResourceColor = color_buf__u_bottom_buf 21436 const color_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21437 let color_buf__u_left_buf : ResourceColor | undefined 21438 if ((RuntimeType.UNDEFINED) != (color_buf__u_left_buf_runtimeType)) 21439 { 21440 const color_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 21441 let color_buf__u_left_buf_ : Color | number | string | Resource | undefined 21442 if (color_buf__u_left_buf__selector == 0) { 21443 color_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 21444 } 21445 else if (color_buf__u_left_buf__selector == 1) { 21446 color_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 21447 } 21448 else if (color_buf__u_left_buf__selector == 2) { 21449 color_buf__u_left_buf_ = (valueDeserializer.readString() as string) 21450 } 21451 else if (color_buf__u_left_buf__selector == 3) { 21452 color_buf__u_left_buf_ = valueDeserializer.readResource() 21453 } 21454 else { 21455 throw new Error("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation.") 21456 } 21457 color_buf__u_left_buf = (color_buf__u_left_buf_ as Color | number | string | Resource) 21458 } 21459 const color_buf__u_left : undefined | ResourceColor = color_buf__u_left_buf 21460 color_buf_ = ({top: color_buf__u_top, right: color_buf__u_right, bottom: color_buf__u_bottom, left: color_buf__u_left} as EdgeColors) 21461 } 21462 else if (color_buf__selector == 1) { 21463 const color_buf__u_selector : int32 = valueDeserializer.readInt8() 21464 let color_buf__u : Color | number | string | Resource | undefined 21465 if (color_buf__u_selector == 0) { 21466 color_buf__u = (valueDeserializer.readInt32() as Color) 21467 } 21468 else if (color_buf__u_selector == 1) { 21469 color_buf__u = (valueDeserializer.readNumber() as number) 21470 } 21471 else if (color_buf__u_selector == 2) { 21472 color_buf__u = (valueDeserializer.readString() as string) 21473 } 21474 else if (color_buf__u_selector == 3) { 21475 color_buf__u = valueDeserializer.readResource() 21476 } 21477 else { 21478 throw new Error("One of the branches for color_buf__u has to be chosen through deserialisation.") 21479 } 21480 color_buf_ = (color_buf__u as Color | number | string | Resource) 21481 } 21482 else if (color_buf__selector == 2) { 21483 color_buf_ = valueDeserializer.readLocalizedEdgeColors() 21484 } 21485 else { 21486 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 21487 } 21488 color_buf = (color_buf_ as EdgeColors | ResourceColor | LocalizedEdgeColors) 21489 } 21490 const color_result : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined = color_buf 21491 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21492 let radius_buf : OutlineRadiuses | Dimension | undefined 21493 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 21494 { 21495 const radius_buf__selector : int32 = valueDeserializer.readInt8() 21496 let radius_buf_ : OutlineRadiuses | Dimension | undefined 21497 if (radius_buf__selector == 0) { 21498 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21499 let radius_buf__u_topLeft_buf : Dimension | undefined 21500 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 21501 { 21502 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Dimension) 21503 } 21504 const radius_buf__u_topLeft : undefined | Dimension = radius_buf__u_topLeft_buf 21505 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21506 let radius_buf__u_topRight_buf : Dimension | undefined 21507 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 21508 { 21509 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Dimension) 21510 } 21511 const radius_buf__u_topRight : undefined | Dimension = radius_buf__u_topRight_buf 21512 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21513 let radius_buf__u_bottomLeft_buf : Dimension | undefined 21514 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 21515 { 21516 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Dimension) 21517 } 21518 const radius_buf__u_bottomLeft : undefined | Dimension = radius_buf__u_bottomLeft_buf 21519 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21520 let radius_buf__u_bottomRight_buf : Dimension | undefined 21521 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 21522 { 21523 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Dimension) 21524 } 21525 const radius_buf__u_bottomRight : undefined | Dimension = radius_buf__u_bottomRight_buf 21526 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as OutlineRadiuses) 21527 } 21528 else if (radius_buf__selector == 1) { 21529 radius_buf_ = (valueDeserializer.readLength() as Dimension) 21530 } 21531 else { 21532 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 21533 } 21534 radius_buf = (radius_buf_ as OutlineRadiuses | Dimension) 21535 } 21536 const radius_result : OutlineRadiuses | Dimension | undefined = radius_buf 21537 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21538 let style_buf : EdgeOutlineStyles | OutlineStyle | undefined 21539 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 21540 { 21541 const style_buf__selector : int32 = valueDeserializer.readInt8() 21542 let style_buf_ : EdgeOutlineStyles | OutlineStyle | undefined 21543 if (style_buf__selector == 0) { 21544 const style_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21545 let style_buf__u_top_buf : OutlineStyle | undefined 21546 if ((RuntimeType.UNDEFINED) != (style_buf__u_top_buf_runtimeType)) 21547 { 21548 style_buf__u_top_buf = (valueDeserializer.readInt32() as OutlineStyle) 21549 } 21550 const style_buf__u_top : undefined | OutlineStyle = style_buf__u_top_buf 21551 const style_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21552 let style_buf__u_right_buf : OutlineStyle | undefined 21553 if ((RuntimeType.UNDEFINED) != (style_buf__u_right_buf_runtimeType)) 21554 { 21555 style_buf__u_right_buf = (valueDeserializer.readInt32() as OutlineStyle) 21556 } 21557 const style_buf__u_right : undefined | OutlineStyle = style_buf__u_right_buf 21558 const style_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21559 let style_buf__u_bottom_buf : OutlineStyle | undefined 21560 if ((RuntimeType.UNDEFINED) != (style_buf__u_bottom_buf_runtimeType)) 21561 { 21562 style_buf__u_bottom_buf = (valueDeserializer.readInt32() as OutlineStyle) 21563 } 21564 const style_buf__u_bottom : undefined | OutlineStyle = style_buf__u_bottom_buf 21565 const style_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21566 let style_buf__u_left_buf : OutlineStyle | undefined 21567 if ((RuntimeType.UNDEFINED) != (style_buf__u_left_buf_runtimeType)) 21568 { 21569 style_buf__u_left_buf = (valueDeserializer.readInt32() as OutlineStyle) 21570 } 21571 const style_buf__u_left : undefined | OutlineStyle = style_buf__u_left_buf 21572 style_buf_ = ({top: style_buf__u_top, right: style_buf__u_right, bottom: style_buf__u_bottom, left: style_buf__u_left} as EdgeOutlineStyles) 21573 } 21574 else if (style_buf__selector == 1) { 21575 style_buf_ = (valueDeserializer.readInt32() as OutlineStyle) 21576 } 21577 else { 21578 throw new Error("One of the branches for style_buf_ has to be chosen through deserialisation.") 21579 } 21580 style_buf = (style_buf_ as EdgeOutlineStyles | OutlineStyle) 21581 } 21582 const style_result : EdgeOutlineStyles | OutlineStyle | undefined = style_buf 21583 let value : OutlineOptions = ({width: width_result, color: color_result, radius: radius_result, style: style_result} as OutlineOptions) 21584 return value 21585 } 21586 readBorderImageOption(): BorderImageOption { 21587 let valueDeserializer : Deserializer = this 21588 const slice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21589 let slice_buf : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21590 if ((RuntimeType.UNDEFINED) != (slice_buf_runtimeType)) 21591 { 21592 const slice_buf__selector : int32 = valueDeserializer.readInt8() 21593 let slice_buf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21594 if (slice_buf__selector == 0) { 21595 slice_buf_ = (valueDeserializer.readLength() as Length) 21596 } 21597 else if (slice_buf__selector == 1) { 21598 const slice_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21599 let slice_buf__u_top_buf : Length | undefined 21600 if ((RuntimeType.UNDEFINED) != (slice_buf__u_top_buf_runtimeType)) 21601 { 21602 slice_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21603 } 21604 const slice_buf__u_top : undefined | Length = slice_buf__u_top_buf 21605 const slice_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21606 let slice_buf__u_right_buf : Length | undefined 21607 if ((RuntimeType.UNDEFINED) != (slice_buf__u_right_buf_runtimeType)) 21608 { 21609 slice_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21610 } 21611 const slice_buf__u_right : undefined | Length = slice_buf__u_right_buf 21612 const slice_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21613 let slice_buf__u_bottom_buf : Length | undefined 21614 if ((RuntimeType.UNDEFINED) != (slice_buf__u_bottom_buf_runtimeType)) 21615 { 21616 slice_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21617 } 21618 const slice_buf__u_bottom : undefined | Length = slice_buf__u_bottom_buf 21619 const slice_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21620 let slice_buf__u_left_buf : Length | undefined 21621 if ((RuntimeType.UNDEFINED) != (slice_buf__u_left_buf_runtimeType)) 21622 { 21623 slice_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21624 } 21625 const slice_buf__u_left : undefined | Length = slice_buf__u_left_buf 21626 slice_buf_ = ({top: slice_buf__u_top, right: slice_buf__u_right, bottom: slice_buf__u_bottom, left: slice_buf__u_left} as EdgeWidths) 21627 } 21628 else if (slice_buf__selector == 2) { 21629 slice_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21630 } 21631 else { 21632 throw new Error("One of the branches for slice_buf_ has to be chosen through deserialisation.") 21633 } 21634 slice_buf = (slice_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21635 } 21636 const slice_result : Length | EdgeWidths | LocalizedEdgeWidths | undefined = slice_buf 21637 const repeat_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21638 let repeat_buf : RepeatMode | undefined 21639 if ((RuntimeType.UNDEFINED) != (repeat_buf_runtimeType)) 21640 { 21641 repeat_buf = (valueDeserializer.readInt32() as RepeatMode) 21642 } 21643 const repeat_result : RepeatMode | undefined = repeat_buf 21644 const source_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21645 let source_buf : string | Resource | LinearGradient_common | undefined 21646 if ((RuntimeType.UNDEFINED) != (source_buf_runtimeType)) 21647 { 21648 const source_buf__selector : int32 = valueDeserializer.readInt8() 21649 let source_buf_ : string | Resource | LinearGradient_common | undefined 21650 if (source_buf__selector == 0) { 21651 source_buf_ = (valueDeserializer.readString() as string) 21652 } 21653 else if (source_buf__selector == 1) { 21654 source_buf_ = valueDeserializer.readResource() 21655 } 21656 else if (source_buf__selector == 2) { 21657 source_buf_ = valueDeserializer.readLinearGradient_common() 21658 } 21659 else { 21660 throw new Error("One of the branches for source_buf_ has to be chosen through deserialisation.") 21661 } 21662 source_buf = (source_buf_ as string | Resource | LinearGradient_common) 21663 } 21664 const source_result : string | Resource | LinearGradient_common | undefined = source_buf 21665 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21666 let width_buf : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21667 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21668 { 21669 const width_buf__selector : int32 = valueDeserializer.readInt8() 21670 let width_buf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21671 if (width_buf__selector == 0) { 21672 width_buf_ = (valueDeserializer.readLength() as Length) 21673 } 21674 else if (width_buf__selector == 1) { 21675 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21676 let width_buf__u_top_buf : Length | undefined 21677 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21678 { 21679 width_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21680 } 21681 const width_buf__u_top : undefined | Length = width_buf__u_top_buf 21682 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21683 let width_buf__u_right_buf : Length | undefined 21684 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21685 { 21686 width_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21687 } 21688 const width_buf__u_right : undefined | Length = width_buf__u_right_buf 21689 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21690 let width_buf__u_bottom_buf : Length | undefined 21691 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21692 { 21693 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21694 } 21695 const width_buf__u_bottom : undefined | Length = width_buf__u_bottom_buf 21696 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21697 let width_buf__u_left_buf : Length | undefined 21698 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21699 { 21700 width_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21701 } 21702 const width_buf__u_left : undefined | Length = width_buf__u_left_buf 21703 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeWidths) 21704 } 21705 else if (width_buf__selector == 2) { 21706 width_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21707 } 21708 else { 21709 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21710 } 21711 width_buf = (width_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21712 } 21713 const width_result : Length | EdgeWidths | LocalizedEdgeWidths | undefined = width_buf 21714 const outset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21715 let outset_buf : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21716 if ((RuntimeType.UNDEFINED) != (outset_buf_runtimeType)) 21717 { 21718 const outset_buf__selector : int32 = valueDeserializer.readInt8() 21719 let outset_buf_ : Length | EdgeWidths | LocalizedEdgeWidths | undefined 21720 if (outset_buf__selector == 0) { 21721 outset_buf_ = (valueDeserializer.readLength() as Length) 21722 } 21723 else if (outset_buf__selector == 1) { 21724 const outset_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21725 let outset_buf__u_top_buf : Length | undefined 21726 if ((RuntimeType.UNDEFINED) != (outset_buf__u_top_buf_runtimeType)) 21727 { 21728 outset_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21729 } 21730 const outset_buf__u_top : undefined | Length = outset_buf__u_top_buf 21731 const outset_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21732 let outset_buf__u_right_buf : Length | undefined 21733 if ((RuntimeType.UNDEFINED) != (outset_buf__u_right_buf_runtimeType)) 21734 { 21735 outset_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21736 } 21737 const outset_buf__u_right : undefined | Length = outset_buf__u_right_buf 21738 const outset_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21739 let outset_buf__u_bottom_buf : Length | undefined 21740 if ((RuntimeType.UNDEFINED) != (outset_buf__u_bottom_buf_runtimeType)) 21741 { 21742 outset_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21743 } 21744 const outset_buf__u_bottom : undefined | Length = outset_buf__u_bottom_buf 21745 const outset_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21746 let outset_buf__u_left_buf : Length | undefined 21747 if ((RuntimeType.UNDEFINED) != (outset_buf__u_left_buf_runtimeType)) 21748 { 21749 outset_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21750 } 21751 const outset_buf__u_left : undefined | Length = outset_buf__u_left_buf 21752 outset_buf_ = ({top: outset_buf__u_top, right: outset_buf__u_right, bottom: outset_buf__u_bottom, left: outset_buf__u_left} as EdgeWidths) 21753 } 21754 else if (outset_buf__selector == 2) { 21755 outset_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21756 } 21757 else { 21758 throw new Error("One of the branches for outset_buf_ has to be chosen through deserialisation.") 21759 } 21760 outset_buf = (outset_buf_ as Length | EdgeWidths | LocalizedEdgeWidths) 21761 } 21762 const outset_result : Length | EdgeWidths | LocalizedEdgeWidths | undefined = outset_buf 21763 const fill_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21764 let fill_buf : boolean | undefined 21765 if ((RuntimeType.UNDEFINED) != (fill_buf_runtimeType)) 21766 { 21767 fill_buf = valueDeserializer.readBoolean() 21768 } 21769 const fill_result : boolean | undefined = fill_buf 21770 let value : BorderImageOption = ({slice: slice_result, repeat: repeat_result, source: source_result, width: width_result, outset: outset_result, fill: fill_result} as BorderImageOption) 21771 return value 21772 } 21773 readBorderOptions(): BorderOptions { 21774 let valueDeserializer : Deserializer = this 21775 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21776 let width_buf : EdgeWidths | Length | LocalizedEdgeWidths | undefined 21777 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 21778 { 21779 const width_buf__selector : int32 = valueDeserializer.readInt8() 21780 let width_buf_ : EdgeWidths | Length | LocalizedEdgeWidths | undefined 21781 if (width_buf__selector == 0) { 21782 const width_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21783 let width_buf__u_top_buf : Length | undefined 21784 if ((RuntimeType.UNDEFINED) != (width_buf__u_top_buf_runtimeType)) 21785 { 21786 width_buf__u_top_buf = (valueDeserializer.readLength() as Length) 21787 } 21788 const width_buf__u_top : undefined | Length = width_buf__u_top_buf 21789 const width_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21790 let width_buf__u_right_buf : Length | undefined 21791 if ((RuntimeType.UNDEFINED) != (width_buf__u_right_buf_runtimeType)) 21792 { 21793 width_buf__u_right_buf = (valueDeserializer.readLength() as Length) 21794 } 21795 const width_buf__u_right : undefined | Length = width_buf__u_right_buf 21796 const width_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21797 let width_buf__u_bottom_buf : Length | undefined 21798 if ((RuntimeType.UNDEFINED) != (width_buf__u_bottom_buf_runtimeType)) 21799 { 21800 width_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 21801 } 21802 const width_buf__u_bottom : undefined | Length = width_buf__u_bottom_buf 21803 const width_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21804 let width_buf__u_left_buf : Length | undefined 21805 if ((RuntimeType.UNDEFINED) != (width_buf__u_left_buf_runtimeType)) 21806 { 21807 width_buf__u_left_buf = (valueDeserializer.readLength() as Length) 21808 } 21809 const width_buf__u_left : undefined | Length = width_buf__u_left_buf 21810 width_buf_ = ({top: width_buf__u_top, right: width_buf__u_right, bottom: width_buf__u_bottom, left: width_buf__u_left} as EdgeWidths) 21811 } 21812 else if (width_buf__selector == 1) { 21813 width_buf_ = (valueDeserializer.readLength() as Length) 21814 } 21815 else if (width_buf__selector == 2) { 21816 width_buf_ = valueDeserializer.readLocalizedEdgeWidths() 21817 } 21818 else { 21819 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 21820 } 21821 width_buf = (width_buf_ as EdgeWidths | Length | LocalizedEdgeWidths) 21822 } 21823 const width_result : EdgeWidths | Length | LocalizedEdgeWidths | undefined = width_buf 21824 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21825 let color_buf : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined 21826 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 21827 { 21828 const color_buf__selector : int32 = valueDeserializer.readInt8() 21829 let color_buf_ : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined 21830 if (color_buf__selector == 0) { 21831 const color_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21832 let color_buf__u_top_buf : ResourceColor | undefined 21833 if ((RuntimeType.UNDEFINED) != (color_buf__u_top_buf_runtimeType)) 21834 { 21835 const color_buf__u_top_buf__selector : int32 = valueDeserializer.readInt8() 21836 let color_buf__u_top_buf_ : Color | number | string | Resource | undefined 21837 if (color_buf__u_top_buf__selector == 0) { 21838 color_buf__u_top_buf_ = (valueDeserializer.readInt32() as Color) 21839 } 21840 else if (color_buf__u_top_buf__selector == 1) { 21841 color_buf__u_top_buf_ = (valueDeserializer.readNumber() as number) 21842 } 21843 else if (color_buf__u_top_buf__selector == 2) { 21844 color_buf__u_top_buf_ = (valueDeserializer.readString() as string) 21845 } 21846 else if (color_buf__u_top_buf__selector == 3) { 21847 color_buf__u_top_buf_ = valueDeserializer.readResource() 21848 } 21849 else { 21850 throw new Error("One of the branches for color_buf__u_top_buf_ has to be chosen through deserialisation.") 21851 } 21852 color_buf__u_top_buf = (color_buf__u_top_buf_ as Color | number | string | Resource) 21853 } 21854 const color_buf__u_top : undefined | ResourceColor = color_buf__u_top_buf 21855 const color_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21856 let color_buf__u_right_buf : ResourceColor | undefined 21857 if ((RuntimeType.UNDEFINED) != (color_buf__u_right_buf_runtimeType)) 21858 { 21859 const color_buf__u_right_buf__selector : int32 = valueDeserializer.readInt8() 21860 let color_buf__u_right_buf_ : Color | number | string | Resource | undefined 21861 if (color_buf__u_right_buf__selector == 0) { 21862 color_buf__u_right_buf_ = (valueDeserializer.readInt32() as Color) 21863 } 21864 else if (color_buf__u_right_buf__selector == 1) { 21865 color_buf__u_right_buf_ = (valueDeserializer.readNumber() as number) 21866 } 21867 else if (color_buf__u_right_buf__selector == 2) { 21868 color_buf__u_right_buf_ = (valueDeserializer.readString() as string) 21869 } 21870 else if (color_buf__u_right_buf__selector == 3) { 21871 color_buf__u_right_buf_ = valueDeserializer.readResource() 21872 } 21873 else { 21874 throw new Error("One of the branches for color_buf__u_right_buf_ has to be chosen through deserialisation.") 21875 } 21876 color_buf__u_right_buf = (color_buf__u_right_buf_ as Color | number | string | Resource) 21877 } 21878 const color_buf__u_right : undefined | ResourceColor = color_buf__u_right_buf 21879 const color_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21880 let color_buf__u_bottom_buf : ResourceColor | undefined 21881 if ((RuntimeType.UNDEFINED) != (color_buf__u_bottom_buf_runtimeType)) 21882 { 21883 const color_buf__u_bottom_buf__selector : int32 = valueDeserializer.readInt8() 21884 let color_buf__u_bottom_buf_ : Color | number | string | Resource | undefined 21885 if (color_buf__u_bottom_buf__selector == 0) { 21886 color_buf__u_bottom_buf_ = (valueDeserializer.readInt32() as Color) 21887 } 21888 else if (color_buf__u_bottom_buf__selector == 1) { 21889 color_buf__u_bottom_buf_ = (valueDeserializer.readNumber() as number) 21890 } 21891 else if (color_buf__u_bottom_buf__selector == 2) { 21892 color_buf__u_bottom_buf_ = (valueDeserializer.readString() as string) 21893 } 21894 else if (color_buf__u_bottom_buf__selector == 3) { 21895 color_buf__u_bottom_buf_ = valueDeserializer.readResource() 21896 } 21897 else { 21898 throw new Error("One of the branches for color_buf__u_bottom_buf_ has to be chosen through deserialisation.") 21899 } 21900 color_buf__u_bottom_buf = (color_buf__u_bottom_buf_ as Color | number | string | Resource) 21901 } 21902 const color_buf__u_bottom : undefined | ResourceColor = color_buf__u_bottom_buf 21903 const color_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21904 let color_buf__u_left_buf : ResourceColor | undefined 21905 if ((RuntimeType.UNDEFINED) != (color_buf__u_left_buf_runtimeType)) 21906 { 21907 const color_buf__u_left_buf__selector : int32 = valueDeserializer.readInt8() 21908 let color_buf__u_left_buf_ : Color | number | string | Resource | undefined 21909 if (color_buf__u_left_buf__selector == 0) { 21910 color_buf__u_left_buf_ = (valueDeserializer.readInt32() as Color) 21911 } 21912 else if (color_buf__u_left_buf__selector == 1) { 21913 color_buf__u_left_buf_ = (valueDeserializer.readNumber() as number) 21914 } 21915 else if (color_buf__u_left_buf__selector == 2) { 21916 color_buf__u_left_buf_ = (valueDeserializer.readString() as string) 21917 } 21918 else if (color_buf__u_left_buf__selector == 3) { 21919 color_buf__u_left_buf_ = valueDeserializer.readResource() 21920 } 21921 else { 21922 throw new Error("One of the branches for color_buf__u_left_buf_ has to be chosen through deserialisation.") 21923 } 21924 color_buf__u_left_buf = (color_buf__u_left_buf_ as Color | number | string | Resource) 21925 } 21926 const color_buf__u_left : undefined | ResourceColor = color_buf__u_left_buf 21927 color_buf_ = ({top: color_buf__u_top, right: color_buf__u_right, bottom: color_buf__u_bottom, left: color_buf__u_left} as EdgeColors) 21928 } 21929 else if (color_buf__selector == 1) { 21930 const color_buf__u_selector : int32 = valueDeserializer.readInt8() 21931 let color_buf__u : Color | number | string | Resource | undefined 21932 if (color_buf__u_selector == 0) { 21933 color_buf__u = (valueDeserializer.readInt32() as Color) 21934 } 21935 else if (color_buf__u_selector == 1) { 21936 color_buf__u = (valueDeserializer.readNumber() as number) 21937 } 21938 else if (color_buf__u_selector == 2) { 21939 color_buf__u = (valueDeserializer.readString() as string) 21940 } 21941 else if (color_buf__u_selector == 3) { 21942 color_buf__u = valueDeserializer.readResource() 21943 } 21944 else { 21945 throw new Error("One of the branches for color_buf__u has to be chosen through deserialisation.") 21946 } 21947 color_buf_ = (color_buf__u as Color | number | string | Resource) 21948 } 21949 else if (color_buf__selector == 2) { 21950 color_buf_ = valueDeserializer.readLocalizedEdgeColors() 21951 } 21952 else { 21953 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 21954 } 21955 color_buf = (color_buf_ as EdgeColors | ResourceColor | LocalizedEdgeColors) 21956 } 21957 const color_result : EdgeColors | ResourceColor | LocalizedEdgeColors | undefined = color_buf 21958 const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21959 let radius_buf : BorderRadiuses | Length | LocalizedBorderRadiuses | undefined 21960 if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) 21961 { 21962 const radius_buf__selector : int32 = valueDeserializer.readInt8() 21963 let radius_buf_ : BorderRadiuses | Length | LocalizedBorderRadiuses | undefined 21964 if (radius_buf__selector == 0) { 21965 const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21966 let radius_buf__u_topLeft_buf : Length | undefined 21967 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) 21968 { 21969 radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) 21970 } 21971 const radius_buf__u_topLeft : undefined | Length = radius_buf__u_topLeft_buf 21972 const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21973 let radius_buf__u_topRight_buf : Length | undefined 21974 if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) 21975 { 21976 radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) 21977 } 21978 const radius_buf__u_topRight : undefined | Length = radius_buf__u_topRight_buf 21979 const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21980 let radius_buf__u_bottomLeft_buf : Length | undefined 21981 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) 21982 { 21983 radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) 21984 } 21985 const radius_buf__u_bottomLeft : undefined | Length = radius_buf__u_bottomLeft_buf 21986 const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 21987 let radius_buf__u_bottomRight_buf : Length | undefined 21988 if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) 21989 { 21990 radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) 21991 } 21992 const radius_buf__u_bottomRight : undefined | Length = radius_buf__u_bottomRight_buf 21993 radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) 21994 } 21995 else if (radius_buf__selector == 1) { 21996 radius_buf_ = (valueDeserializer.readLength() as Length) 21997 } 21998 else if (radius_buf__selector == 2) { 21999 radius_buf_ = valueDeserializer.readLocalizedBorderRadiuses() 22000 } 22001 else { 22002 throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") 22003 } 22004 radius_buf = (radius_buf_ as BorderRadiuses | Length | LocalizedBorderRadiuses) 22005 } 22006 const radius_result : BorderRadiuses | Length | LocalizedBorderRadiuses | undefined = radius_buf 22007 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22008 let style_buf : EdgeStyles | BorderStyle | undefined 22009 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 22010 { 22011 const style_buf__selector : int32 = valueDeserializer.readInt8() 22012 let style_buf_ : EdgeStyles | BorderStyle | undefined 22013 if (style_buf__selector == 0) { 22014 const style_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22015 let style_buf__u_top_buf : BorderStyle | undefined 22016 if ((RuntimeType.UNDEFINED) != (style_buf__u_top_buf_runtimeType)) 22017 { 22018 style_buf__u_top_buf = (valueDeserializer.readInt32() as BorderStyle) 22019 } 22020 const style_buf__u_top : undefined | BorderStyle = style_buf__u_top_buf 22021 const style_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22022 let style_buf__u_right_buf : BorderStyle | undefined 22023 if ((RuntimeType.UNDEFINED) != (style_buf__u_right_buf_runtimeType)) 22024 { 22025 style_buf__u_right_buf = (valueDeserializer.readInt32() as BorderStyle) 22026 } 22027 const style_buf__u_right : undefined | BorderStyle = style_buf__u_right_buf 22028 const style_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22029 let style_buf__u_bottom_buf : BorderStyle | undefined 22030 if ((RuntimeType.UNDEFINED) != (style_buf__u_bottom_buf_runtimeType)) 22031 { 22032 style_buf__u_bottom_buf = (valueDeserializer.readInt32() as BorderStyle) 22033 } 22034 const style_buf__u_bottom : undefined | BorderStyle = style_buf__u_bottom_buf 22035 const style_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22036 let style_buf__u_left_buf : BorderStyle | undefined 22037 if ((RuntimeType.UNDEFINED) != (style_buf__u_left_buf_runtimeType)) 22038 { 22039 style_buf__u_left_buf = (valueDeserializer.readInt32() as BorderStyle) 22040 } 22041 const style_buf__u_left : undefined | BorderStyle = style_buf__u_left_buf 22042 style_buf_ = ({top: style_buf__u_top, right: style_buf__u_right, bottom: style_buf__u_bottom, left: style_buf__u_left} as EdgeStyles) 22043 } 22044 else if (style_buf__selector == 1) { 22045 style_buf_ = (valueDeserializer.readInt32() as BorderStyle) 22046 } 22047 else { 22048 throw new Error("One of the branches for style_buf_ has to be chosen through deserialisation.") 22049 } 22050 style_buf = (style_buf_ as EdgeStyles | BorderStyle) 22051 } 22052 const style_result : EdgeStyles | BorderStyle | undefined = style_buf 22053 const dashGap_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22054 let dashGap_buf : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined 22055 if ((RuntimeType.UNDEFINED) != (dashGap_buf_runtimeType)) 22056 { 22057 const dashGap_buf__selector : int32 = valueDeserializer.readInt8() 22058 let dashGap_buf_ : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined 22059 if (dashGap_buf__selector == 0) { 22060 const dashGap_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22061 let dashGap_buf__u_top_buf : Length | undefined 22062 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_top_buf_runtimeType)) 22063 { 22064 dashGap_buf__u_top_buf = (valueDeserializer.readLength() as Length) 22065 } 22066 const dashGap_buf__u_top : undefined | Length = dashGap_buf__u_top_buf 22067 const dashGap_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22068 let dashGap_buf__u_right_buf : Length | undefined 22069 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_right_buf_runtimeType)) 22070 { 22071 dashGap_buf__u_right_buf = (valueDeserializer.readLength() as Length) 22072 } 22073 const dashGap_buf__u_right : undefined | Length = dashGap_buf__u_right_buf 22074 const dashGap_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22075 let dashGap_buf__u_bottom_buf : Length | undefined 22076 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_bottom_buf_runtimeType)) 22077 { 22078 dashGap_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 22079 } 22080 const dashGap_buf__u_bottom : undefined | Length = dashGap_buf__u_bottom_buf 22081 const dashGap_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22082 let dashGap_buf__u_left_buf : Length | undefined 22083 if ((RuntimeType.UNDEFINED) != (dashGap_buf__u_left_buf_runtimeType)) 22084 { 22085 dashGap_buf__u_left_buf = (valueDeserializer.readLength() as Length) 22086 } 22087 const dashGap_buf__u_left : undefined | Length = dashGap_buf__u_left_buf 22088 dashGap_buf_ = ({top: dashGap_buf__u_top, right: dashGap_buf__u_right, bottom: dashGap_buf__u_bottom, left: dashGap_buf__u_left} as EdgeWidths) 22089 } 22090 else if (dashGap_buf__selector == 1) { 22091 dashGap_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 22092 } 22093 else if (dashGap_buf__selector == 2) { 22094 dashGap_buf_ = valueDeserializer.readLocalizedEdgeWidths() 22095 } 22096 else { 22097 throw new Error("One of the branches for dashGap_buf_ has to be chosen through deserialisation.") 22098 } 22099 dashGap_buf = (dashGap_buf_ as EdgeWidths | LengthMetrics | LocalizedEdgeWidths) 22100 } 22101 const dashGap_result : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined = dashGap_buf 22102 const dashWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22103 let dashWidth_buf : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined 22104 if ((RuntimeType.UNDEFINED) != (dashWidth_buf_runtimeType)) 22105 { 22106 const dashWidth_buf__selector : int32 = valueDeserializer.readInt8() 22107 let dashWidth_buf_ : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined 22108 if (dashWidth_buf__selector == 0) { 22109 const dashWidth_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22110 let dashWidth_buf__u_top_buf : Length | undefined 22111 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_top_buf_runtimeType)) 22112 { 22113 dashWidth_buf__u_top_buf = (valueDeserializer.readLength() as Length) 22114 } 22115 const dashWidth_buf__u_top : undefined | Length = dashWidth_buf__u_top_buf 22116 const dashWidth_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22117 let dashWidth_buf__u_right_buf : Length | undefined 22118 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_right_buf_runtimeType)) 22119 { 22120 dashWidth_buf__u_right_buf = (valueDeserializer.readLength() as Length) 22121 } 22122 const dashWidth_buf__u_right : undefined | Length = dashWidth_buf__u_right_buf 22123 const dashWidth_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22124 let dashWidth_buf__u_bottom_buf : Length | undefined 22125 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_bottom_buf_runtimeType)) 22126 { 22127 dashWidth_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) 22128 } 22129 const dashWidth_buf__u_bottom : undefined | Length = dashWidth_buf__u_bottom_buf 22130 const dashWidth_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22131 let dashWidth_buf__u_left_buf : Length | undefined 22132 if ((RuntimeType.UNDEFINED) != (dashWidth_buf__u_left_buf_runtimeType)) 22133 { 22134 dashWidth_buf__u_left_buf = (valueDeserializer.readLength() as Length) 22135 } 22136 const dashWidth_buf__u_left : undefined | Length = dashWidth_buf__u_left_buf 22137 dashWidth_buf_ = ({top: dashWidth_buf__u_top, right: dashWidth_buf__u_right, bottom: dashWidth_buf__u_bottom, left: dashWidth_buf__u_left} as EdgeWidths) 22138 } 22139 else if (dashWidth_buf__selector == 1) { 22140 dashWidth_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) 22141 } 22142 else if (dashWidth_buf__selector == 2) { 22143 dashWidth_buf_ = valueDeserializer.readLocalizedEdgeWidths() 22144 } 22145 else { 22146 throw new Error("One of the branches for dashWidth_buf_ has to be chosen through deserialisation.") 22147 } 22148 dashWidth_buf = (dashWidth_buf_ as EdgeWidths | LengthMetrics | LocalizedEdgeWidths) 22149 } 22150 const dashWidth_result : EdgeWidths | LengthMetrics | LocalizedEdgeWidths | undefined = dashWidth_buf 22151 let value : BorderOptions = ({width: width_result, color: color_result, radius: radius_result, style: style_result, dashGap: dashGap_result, dashWidth: dashWidth_result} as BorderOptions) 22152 return value 22153 } 22154 readFilter(): Filter { 22155 let valueDeserializer : Deserializer = this 22156 const _FilterStub_result : string = (valueDeserializer.readString() as string) 22157 let value : Filter = ({_FilterStub: _FilterStub_result} as Filter) 22158 return value 22159 } 22160 readVisualEffect(): VisualEffect { 22161 let valueDeserializer : Deserializer = this 22162 const _VisualEffectStub_result : string = (valueDeserializer.readString() as string) 22163 let value : VisualEffect = ({_VisualEffectStub: _VisualEffectStub_result} as VisualEffect) 22164 return value 22165 } 22166 readForegroundEffectOptions(): ForegroundEffectOptions { 22167 let valueDeserializer : Deserializer = this 22168 const radius_result : number = (valueDeserializer.readNumber() as number) 22169 let value : ForegroundEffectOptions = ({radius: radius_result} as ForegroundEffectOptions) 22170 return value 22171 } 22172 readResizableOptions(): ResizableOptions { 22173 let valueDeserializer : Deserializer = this 22174 const slice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22175 let slice_buf : EdgeWidths | undefined 22176 if ((RuntimeType.UNDEFINED) != (slice_buf_runtimeType)) 22177 { 22178 const slice_buf__top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22179 let slice_buf__top_buf : Length | undefined 22180 if ((RuntimeType.UNDEFINED) != (slice_buf__top_buf_runtimeType)) 22181 { 22182 slice_buf__top_buf = (valueDeserializer.readLength() as Length) 22183 } 22184 const slice_buf__top : undefined | Length = slice_buf__top_buf 22185 const slice_buf__right_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22186 let slice_buf__right_buf : Length | undefined 22187 if ((RuntimeType.UNDEFINED) != (slice_buf__right_buf_runtimeType)) 22188 { 22189 slice_buf__right_buf = (valueDeserializer.readLength() as Length) 22190 } 22191 const slice_buf__right : undefined | Length = slice_buf__right_buf 22192 const slice_buf__bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22193 let slice_buf__bottom_buf : Length | undefined 22194 if ((RuntimeType.UNDEFINED) != (slice_buf__bottom_buf_runtimeType)) 22195 { 22196 slice_buf__bottom_buf = (valueDeserializer.readLength() as Length) 22197 } 22198 const slice_buf__bottom : undefined | Length = slice_buf__bottom_buf 22199 const slice_buf__left_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22200 let slice_buf__left_buf : Length | undefined 22201 if ((RuntimeType.UNDEFINED) != (slice_buf__left_buf_runtimeType)) 22202 { 22203 slice_buf__left_buf = (valueDeserializer.readLength() as Length) 22204 } 22205 const slice_buf__left : undefined | Length = slice_buf__left_buf 22206 slice_buf = ({top: slice_buf__top, right: slice_buf__right, bottom: slice_buf__bottom, left: slice_buf__left} as EdgeWidths) 22207 } 22208 const slice_result : EdgeWidths | undefined = slice_buf 22209 const lattice_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22210 let lattice_buf : DrawingLattice | undefined 22211 if ((RuntimeType.UNDEFINED) != (lattice_buf_runtimeType)) 22212 { 22213 lattice_buf = valueDeserializer.readDrawingLattice() 22214 } 22215 const lattice_result : DrawingLattice | undefined = lattice_buf 22216 let value : ResizableOptions = ({slice: slice_result, lattice: lattice_result} as ResizableOptions) 22217 return value 22218 } 22219 readBackgroundEffectOptions(): BackgroundEffectOptions { 22220 let valueDeserializer : Deserializer = this 22221 const radius_result : number = (valueDeserializer.readNumber() as number) 22222 const saturation_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22223 let saturation_buf : number | undefined 22224 if ((RuntimeType.UNDEFINED) != (saturation_buf_runtimeType)) 22225 { 22226 saturation_buf = (valueDeserializer.readNumber() as number) 22227 } 22228 const saturation_result : number | undefined = saturation_buf 22229 const brightness_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22230 let brightness_buf : number | undefined 22231 if ((RuntimeType.UNDEFINED) != (brightness_buf_runtimeType)) 22232 { 22233 brightness_buf = (valueDeserializer.readNumber() as number) 22234 } 22235 const brightness_result : number | undefined = brightness_buf 22236 const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22237 let color_buf : ResourceColor | undefined 22238 if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) 22239 { 22240 const color_buf__selector : int32 = valueDeserializer.readInt8() 22241 let color_buf_ : Color | number | string | Resource | undefined 22242 if (color_buf__selector == 0) { 22243 color_buf_ = (valueDeserializer.readInt32() as Color) 22244 } 22245 else if (color_buf__selector == 1) { 22246 color_buf_ = (valueDeserializer.readNumber() as number) 22247 } 22248 else if (color_buf__selector == 2) { 22249 color_buf_ = (valueDeserializer.readString() as string) 22250 } 22251 else if (color_buf__selector == 3) { 22252 color_buf_ = valueDeserializer.readResource() 22253 } 22254 else { 22255 throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") 22256 } 22257 color_buf = (color_buf_ as Color | number | string | Resource) 22258 } 22259 const color_result : ResourceColor | undefined = color_buf 22260 const adaptiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22261 let adaptiveColor_buf : AdaptiveColor | undefined 22262 if ((RuntimeType.UNDEFINED) != (adaptiveColor_buf_runtimeType)) 22263 { 22264 adaptiveColor_buf = (valueDeserializer.readInt32() as AdaptiveColor) 22265 } 22266 const adaptiveColor_result : AdaptiveColor | undefined = adaptiveColor_buf 22267 const blurOptions_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22268 let blurOptions_buf : BlurOptions | undefined 22269 if ((RuntimeType.UNDEFINED) != (blurOptions_buf_runtimeType)) 22270 { 22271 blurOptions_buf = valueDeserializer.readBlurOptions() 22272 } 22273 const blurOptions_result : BlurOptions | undefined = blurOptions_buf 22274 const policy_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22275 let policy_buf : BlurStyleActivePolicy | undefined 22276 if ((RuntimeType.UNDEFINED) != (policy_buf_runtimeType)) 22277 { 22278 policy_buf = (valueDeserializer.readInt32() as BlurStyleActivePolicy) 22279 } 22280 const policy_result : BlurStyleActivePolicy | undefined = policy_buf 22281 const inactiveColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22282 let inactiveColor_buf : ResourceColor | undefined 22283 if ((RuntimeType.UNDEFINED) != (inactiveColor_buf_runtimeType)) 22284 { 22285 const inactiveColor_buf__selector : int32 = valueDeserializer.readInt8() 22286 let inactiveColor_buf_ : Color | number | string | Resource | undefined 22287 if (inactiveColor_buf__selector == 0) { 22288 inactiveColor_buf_ = (valueDeserializer.readInt32() as Color) 22289 } 22290 else if (inactiveColor_buf__selector == 1) { 22291 inactiveColor_buf_ = (valueDeserializer.readNumber() as number) 22292 } 22293 else if (inactiveColor_buf__selector == 2) { 22294 inactiveColor_buf_ = (valueDeserializer.readString() as string) 22295 } 22296 else if (inactiveColor_buf__selector == 3) { 22297 inactiveColor_buf_ = valueDeserializer.readResource() 22298 } 22299 else { 22300 throw new Error("One of the branches for inactiveColor_buf_ has to be chosen through deserialisation.") 22301 } 22302 inactiveColor_buf = (inactiveColor_buf_ as Color | number | string | Resource) 22303 } 22304 const inactiveColor_result : ResourceColor | undefined = inactiveColor_buf 22305 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) 22306 return value 22307 } 22308 readPixelRoundPolicy(): PixelRoundPolicy { 22309 let valueDeserializer : Deserializer = this 22310 const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22311 let start_buf : PixelRoundCalcPolicy | undefined 22312 if ((RuntimeType.UNDEFINED) != (start_buf_runtimeType)) 22313 { 22314 start_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22315 } 22316 const start_result : PixelRoundCalcPolicy | undefined = start_buf 22317 const top_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22318 let top_buf : PixelRoundCalcPolicy | undefined 22319 if ((RuntimeType.UNDEFINED) != (top_buf_runtimeType)) 22320 { 22321 top_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22322 } 22323 const top_result : PixelRoundCalcPolicy | undefined = top_buf 22324 const end_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22325 let end_buf : PixelRoundCalcPolicy | undefined 22326 if ((RuntimeType.UNDEFINED) != (end_buf_runtimeType)) 22327 { 22328 end_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22329 } 22330 const end_result : PixelRoundCalcPolicy | undefined = end_buf 22331 const bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22332 let bottom_buf : PixelRoundCalcPolicy | undefined 22333 if ((RuntimeType.UNDEFINED) != (bottom_buf_runtimeType)) 22334 { 22335 bottom_buf = (valueDeserializer.readInt32() as PixelRoundCalcPolicy) 22336 } 22337 const bottom_result : PixelRoundCalcPolicy | undefined = bottom_buf 22338 let value : PixelRoundPolicy = ({start: start_result, top: top_result, end: end_result, bottom: bottom_result} as PixelRoundPolicy) 22339 return value 22340 } 22341 readChainWeightOptions(): ChainWeightOptions { 22342 let valueDeserializer : Deserializer = this 22343 const horizontal_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22344 let horizontal_buf : number | undefined 22345 if ((RuntimeType.UNDEFINED) != (horizontal_buf_runtimeType)) 22346 { 22347 horizontal_buf = (valueDeserializer.readNumber() as number) 22348 } 22349 const horizontal_result : number | undefined = horizontal_buf 22350 const vertical_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22351 let vertical_buf : number | undefined 22352 if ((RuntimeType.UNDEFINED) != (vertical_buf_runtimeType)) 22353 { 22354 vertical_buf = (valueDeserializer.readNumber() as number) 22355 } 22356 const vertical_result : number | undefined = vertical_buf 22357 let value : ChainWeightOptions = ({horizontal: horizontal_result, vertical: vertical_result} as ChainWeightOptions) 22358 return value 22359 } 22360 readCallback_TouchEvent_HitTestMode(isSync: boolean = false): ((parameter: TouchEvent) => HitTestMode) { 22361 const _resource : CallbackResource = this.readCallbackResource() 22362 const _call : KPointer = this.readPointer() 22363 const _callSync : KPointer = this.readPointer() 22364 return (parameter: TouchEvent):HitTestMode => { 22365 const _argsSerializer : Serializer = Serializer.hold(); 22366 _argsSerializer.writeInt32(_resource.resourceId); 22367 _argsSerializer.writePointer(_call); 22368 _argsSerializer.writePointer(_callSync); 22369 _argsSerializer.writeTouchEvent(parameter); 22370 let _continuationValue : HitTestMode | undefined; 22371 const _continuationCallback : ((value: HitTestMode) => void) = (value: HitTestMode):void => { _continuationValue = value; } 22372 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22373 (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asBuffer(), _argsSerializer.length())); 22374 _argsSerializer.release(); 22375 return (_continuationValue as HitTestMode); } 22376 } 22377 readGestureInfo(): GestureInfo { 22378 let valueDeserializer : Deserializer = this 22379 const tag_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22380 let tag_buf : string | undefined 22381 if ((RuntimeType.UNDEFINED) != (tag_buf_runtimeType)) 22382 { 22383 tag_buf = (valueDeserializer.readString() as string) 22384 } 22385 const tag_result : string | undefined = tag_buf 22386 const type_result : GestureControl.GestureType = (valueDeserializer.readInt32() as GestureControl.GestureType) 22387 const isSystemGesture_result : boolean = valueDeserializer.readBoolean() 22388 let value : GestureInfo = ({tag: tag_result, type: type_result, isSystemGesture: isSystemGesture_result} as GestureInfo) 22389 return value 22390 } 22391 readCallback_GestureInfo_BaseGestureEvent_GestureJudgeResult(isSync: boolean = false): ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) { 22392 const _resource : CallbackResource = this.readCallbackResource() 22393 const _call : KPointer = this.readPointer() 22394 const _callSync : KPointer = this.readPointer() 22395 return (gestureInfo: GestureInfo, event: BaseGestureEvent):GestureJudgeResult => { 22396 const _argsSerializer : Serializer = Serializer.hold(); 22397 _argsSerializer.writeInt32(_resource.resourceId); 22398 _argsSerializer.writePointer(_call); 22399 _argsSerializer.writePointer(_callSync); 22400 _argsSerializer.writeGestureInfo(gestureInfo); 22401 _argsSerializer.writeBaseGestureEvent(event); 22402 let _continuationValue : GestureJudgeResult | undefined; 22403 const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } 22404 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22405 (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asBuffer(), _argsSerializer.length())); 22406 _argsSerializer.release(); 22407 return (_continuationValue as GestureJudgeResult); } 22408 } 22409 readCallback_PreDragStatus_Void(isSync: boolean = false): ((parameter: PreDragStatus) => void) { 22410 const _resource : CallbackResource = this.readCallbackResource() 22411 const _call : KPointer = this.readPointer() 22412 const _callSync : KPointer = this.readPointer() 22413 return (parameter: PreDragStatus):void => { 22414 const _argsSerializer : Serializer = Serializer.hold(); 22415 _argsSerializer.writeInt32(_resource.resourceId); 22416 _argsSerializer.writePointer(_call); 22417 _argsSerializer.writePointer(_callSync); 22418 _argsSerializer.writeInt32(parameter.valueOf()); 22419 (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asBuffer(), _argsSerializer.length())); 22420 _argsSerializer.release(); 22421 return; } 22422 } 22423 readCallback_DragEvent_String_Void(isSync: boolean = false): ((event: DragEvent,extraParams?: string) => void) { 22424 const _resource : CallbackResource = this.readCallbackResource() 22425 const _call : KPointer = this.readPointer() 22426 const _callSync : KPointer = this.readPointer() 22427 return (event: DragEvent, extraParams?: string | undefined):void => { 22428 const _argsSerializer : Serializer = Serializer.hold(); 22429 _argsSerializer.writeInt32(_resource.resourceId); 22430 _argsSerializer.writePointer(_call); 22431 _argsSerializer.writePointer(_callSync); 22432 _argsSerializer.writeDragEvent(event); 22433 let extraParams_type : int32 = RuntimeType.UNDEFINED; 22434 extraParams_type = runtimeType(extraParams); 22435 _argsSerializer.writeInt8(extraParams_type as int32); 22436 if ((RuntimeType.UNDEFINED) != (extraParams_type)) { 22437 const extraParams_value = extraParams!; 22438 _argsSerializer.writeString(extraParams_value); 22439 } 22440 (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asBuffer(), _argsSerializer.length())); 22441 _argsSerializer.release(); 22442 return; } 22443 } 22444 readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) { 22445 const _resource : CallbackResource = this.readCallbackResource() 22446 const _call : KPointer = this.readPointer() 22447 const _callSync : KPointer = this.readPointer() 22448 return (event: DragEvent, extraParams?: string | undefined):CustomBuilder | DragItemInfo => { 22449 const _argsSerializer : Serializer = Serializer.hold(); 22450 _argsSerializer.writeInt32(_resource.resourceId); 22451 _argsSerializer.writePointer(_call); 22452 _argsSerializer.writePointer(_callSync); 22453 _argsSerializer.writeDragEvent(event); 22454 let extraParams_type : int32 = RuntimeType.UNDEFINED; 22455 extraParams_type = runtimeType(extraParams); 22456 _argsSerializer.writeInt8(extraParams_type as int32); 22457 if ((RuntimeType.UNDEFINED) != (extraParams_type)) { 22458 const extraParams_value = extraParams!; 22459 _argsSerializer.writeString(extraParams_value); 22460 } 22461 let _continuationValue : CustomBuilder | DragItemInfo | undefined; 22462 const _continuationCallback : ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo):void => { _continuationValue = value; } 22463 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22464 (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asBuffer(), _argsSerializer.length())); 22465 _argsSerializer.release(); 22466 return (_continuationValue as CustomBuilder | DragItemInfo); } 22467 } 22468 readCallback_Area_Area_Void(isSync: boolean = false): ((oldValue: Area,newValue: Area) => void) { 22469 const _resource : CallbackResource = this.readCallbackResource() 22470 const _call : KPointer = this.readPointer() 22471 const _callSync : KPointer = this.readPointer() 22472 return (oldValue: Area, newValue: Area):void => { 22473 const _argsSerializer : Serializer = Serializer.hold(); 22474 _argsSerializer.writeInt32(_resource.resourceId); 22475 _argsSerializer.writePointer(_call); 22476 _argsSerializer.writePointer(_callSync); 22477 _argsSerializer.writeArea(oldValue); 22478 _argsSerializer.writeArea(newValue); 22479 (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asBuffer(), _argsSerializer.length())); 22480 _argsSerializer.release(); 22481 return; } 22482 } 22483 readCallback_KeyEvent_Boolean(isSync: boolean = false): ((parameter: KeyEvent) => boolean) { 22484 const _resource : CallbackResource = this.readCallbackResource() 22485 const _call : KPointer = this.readPointer() 22486 const _callSync : KPointer = this.readPointer() 22487 return (parameter: KeyEvent):boolean => { 22488 const _argsSerializer : Serializer = Serializer.hold(); 22489 _argsSerializer.writeInt32(_resource.resourceId); 22490 _argsSerializer.writePointer(_call); 22491 _argsSerializer.writePointer(_callSync); 22492 _argsSerializer.writeKeyEvent(parameter); 22493 let _continuationValue : boolean | undefined; 22494 const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } 22495 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22496 (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asBuffer(), _argsSerializer.length())); 22497 _argsSerializer.release(); 22498 return (_continuationValue as boolean); } 22499 } 22500 readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean,event: HoverEvent) => void) { 22501 const _resource : CallbackResource = this.readCallbackResource() 22502 const _call : KPointer = this.readPointer() 22503 const _callSync : KPointer = this.readPointer() 22504 return (isHover: boolean, event: HoverEvent):void => { 22505 const _argsSerializer : Serializer = Serializer.hold(); 22506 _argsSerializer.writeInt32(_resource.resourceId); 22507 _argsSerializer.writePointer(_call); 22508 _argsSerializer.writePointer(_callSync); 22509 _argsSerializer.writeBoolean(isHover); 22510 _argsSerializer.writeHoverEvent(event); 22511 (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asBuffer(), _argsSerializer.length())); 22512 _argsSerializer.release(); 22513 return; } 22514 } 22515 readTouchResult(): TouchResult { 22516 let valueDeserializer : Deserializer = this 22517 const strategy_result : TouchTestStrategy = (valueDeserializer.readInt32() as TouchTestStrategy) 22518 const id_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22519 let id_buf : string | undefined 22520 if ((RuntimeType.UNDEFINED) != (id_buf_runtimeType)) 22521 { 22522 id_buf = (valueDeserializer.readString() as string) 22523 } 22524 const id_result : string | undefined = id_buf 22525 let value : TouchResult = ({strategy: strategy_result, id: id_result} as TouchResult) 22526 return value 22527 } 22528 readTouchTestInfo(): TouchTestInfo { 22529 let valueDeserializer : Deserializer = this 22530 const windowX_result : number = (valueDeserializer.readNumber() as number) 22531 const windowY_result : number = (valueDeserializer.readNumber() as number) 22532 const parentX_result : number = (valueDeserializer.readNumber() as number) 22533 const parentY_result : number = (valueDeserializer.readNumber() as number) 22534 const x_result : number = (valueDeserializer.readNumber() as number) 22535 const y_result : number = (valueDeserializer.readNumber() as number) 22536 const rect_result : RectResult = valueDeserializer.readRectResult() 22537 const id_result : string = (valueDeserializer.readString() as string) 22538 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) 22539 return value 22540 } 22541 readCallback_Array_TouchTestInfo_TouchResult(isSync: boolean = false): ((value: Array<TouchTestInfo>) => TouchResult) { 22542 const _resource : CallbackResource = this.readCallbackResource() 22543 const _call : KPointer = this.readPointer() 22544 const _callSync : KPointer = this.readPointer() 22545 return (value: Array<TouchTestInfo>):TouchResult => { 22546 const _argsSerializer : Serializer = Serializer.hold(); 22547 _argsSerializer.writeInt32(_resource.resourceId); 22548 _argsSerializer.writePointer(_call); 22549 _argsSerializer.writePointer(_callSync); 22550 _argsSerializer.writeInt32(value.length as int32); 22551 for (let i = 0; i < value.length; i++) { 22552 const value_element : TouchTestInfo = value[i]; 22553 _argsSerializer.writeTouchTestInfo(value_element); 22554 } 22555 let _continuationValue : TouchResult | undefined; 22556 const _continuationCallback : ((value: TouchResult) => void) = (value: TouchResult):void => { _continuationValue = value; } 22557 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22558 (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asBuffer(), _argsSerializer.length())); 22559 _argsSerializer.release(); 22560 return (_continuationValue as TouchResult); } 22561 } 22562 readDismissPopupAction(): DismissPopupAction { 22563 let valueDeserializer : Deserializer = this 22564 const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() 22565 const reason_result : DismissReason = (valueDeserializer.readInt32() as DismissReason) 22566 let value : DismissPopupAction = ({dismiss: dismiss_result, reason: reason_result} as DismissPopupAction) 22567 return value 22568 } 22569 readSpringBackAction(): SpringBackAction { 22570 let valueDeserializer : Deserializer = this 22571 const springBack_result : (() => void) = valueDeserializer.readCallback_Void() 22572 let value : SpringBackAction = ({springBack: springBack_result} as SpringBackAction) 22573 return value 22574 } 22575 readDismissSheetAction(): DismissSheetAction { 22576 let valueDeserializer : Deserializer = this 22577 const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() 22578 const reason_result : DismissReason = (valueDeserializer.readInt32() as DismissReason) 22579 let value : DismissSheetAction = ({dismiss: dismiss_result, reason: reason_result} as DismissSheetAction) 22580 return value 22581 } 22582 readSheetDismiss(): SheetDismiss { 22583 let valueDeserializer : Deserializer = this 22584 const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() 22585 let value : SheetDismiss = ({dismiss: dismiss_result} as SheetDismiss) 22586 return value 22587 } 22588 readDismissContentCoverAction(): DismissContentCoverAction { 22589 let valueDeserializer : Deserializer = this 22590 const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() 22591 const reason_result : DismissReason = (valueDeserializer.readInt32() as DismissReason) 22592 let value : DismissContentCoverAction = ({dismiss: dismiss_result, reason: reason_result} as DismissContentCoverAction) 22593 return value 22594 } 22595 readKeyEvent(): KeyEvent { 22596 let valueDeserializer : Deserializer = this 22597 let ptr : KPointer = valueDeserializer.readPointer() 22598 return KeyEventInternal.fromPtr(ptr) 22599 } 22600 readDragEvent(): DragEvent { 22601 let valueDeserializer : Deserializer = this 22602 let ptr : KPointer = valueDeserializer.readPointer() 22603 return DragEventInternal.fromPtr(ptr) 22604 } 22605 readPixelMapMock(): PixelMapMock { 22606 let valueDeserializer : Deserializer = this 22607 let ptr : KPointer = valueDeserializer.readPointer() 22608 return PixelMapMockInternal.fromPtr(ptr) 22609 } 22610 readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { 22611 const _resource : CallbackResource = this.readCallbackResource() 22612 const _call : KPointer = this.readPointer() 22613 const _callSync : KPointer = this.readPointer() 22614 return (current: GestureRecognizer, others: Array<GestureRecognizer>):GestureRecognizer => { 22615 const _argsSerializer : Serializer = Serializer.hold(); 22616 _argsSerializer.writeInt32(_resource.resourceId); 22617 _argsSerializer.writePointer(_call); 22618 _argsSerializer.writePointer(_callSync); 22619 _argsSerializer.writeGestureRecognizer(current); 22620 _argsSerializer.writeInt32(others.length as int32); 22621 for (let i = 0; i < others.length; i++) { 22622 const others_element : GestureRecognizer = others[i]; 22623 _argsSerializer.writeGestureRecognizer(others_element); 22624 } 22625 let _continuationValue : GestureRecognizer | undefined; 22626 const _continuationCallback : ((value: GestureRecognizer) => void) = (value: GestureRecognizer):void => { _continuationValue = value; } 22627 _argsSerializer.holdAndWriteCallback(_continuationCallback); 22628 (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asBuffer(), _argsSerializer.length())); 22629 _argsSerializer.release(); 22630 return (_continuationValue as GestureRecognizer); } 22631 } 22632 readGestureRecognizer(): GestureRecognizer { 22633 let valueDeserializer : Deserializer = this 22634 let ptr : KPointer = valueDeserializer.readPointer() 22635 return GestureRecognizerInternal.fromPtr(ptr) 22636 } 22637 readFingerInfo(): FingerInfo { 22638 let valueDeserializer : Deserializer = this 22639 const id_result : number = (valueDeserializer.readNumber() as number) 22640 const globalX_result : number = (valueDeserializer.readNumber() as number) 22641 const globalY_result : number = (valueDeserializer.readNumber() as number) 22642 const localX_result : number = (valueDeserializer.readNumber() as number) 22643 const localY_result : number = (valueDeserializer.readNumber() as number) 22644 const displayX_result : number = (valueDeserializer.readNumber() as number) 22645 const displayY_result : number = (valueDeserializer.readNumber() as number) 22646 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) 22647 return value 22648 } 22649 readBaseGestureEvent(): BaseGestureEvent { 22650 let valueDeserializer : Deserializer = this 22651 let ptr : KPointer = valueDeserializer.readPointer() 22652 return BaseGestureEventInternal.fromPtr(ptr) 22653 } 22654 readHistoricalPoint(): HistoricalPoint { 22655 let valueDeserializer : Deserializer = this 22656 const touchObject_result : TouchObject = valueDeserializer.readTouchObject() 22657 const size_result : number = (valueDeserializer.readNumber() as number) 22658 const force_result : number = (valueDeserializer.readNumber() as number) 22659 const timestamp_result : number = (valueDeserializer.readNumber() as number) 22660 let value : HistoricalPoint = ({touchObject: touchObject_result, size: size_result, force: force_result, timestamp: timestamp_result} as HistoricalPoint) 22661 return value 22662 } 22663 readAccessibilityHoverEvent(): AccessibilityHoverEvent { 22664 let valueDeserializer : Deserializer = this 22665 let ptr : KPointer = valueDeserializer.readPointer() 22666 return AccessibilityHoverEventInternal.fromPtr(ptr) 22667 } 22668 readMouseEvent(): MouseEvent { 22669 let valueDeserializer : Deserializer = this 22670 let ptr : KPointer = valueDeserializer.readPointer() 22671 return MouseEventInternal.fromPtr(ptr) 22672 } 22673 readHoverEvent(): HoverEvent { 22674 let valueDeserializer : Deserializer = this 22675 let ptr : KPointer = valueDeserializer.readPointer() 22676 return HoverEventInternal.fromPtr(ptr) 22677 } 22678 readBaseEvent(): BaseEvent { 22679 let valueDeserializer : Deserializer = this 22680 let ptr : KPointer = valueDeserializer.readPointer() 22681 return BaseEventInternal.fromPtr(ptr) 22682 } 22683 readPointLightStyle(): PointLightStyle { 22684 let valueDeserializer : Deserializer = this 22685 const lightSource_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22686 let lightSource_buf : LightSource | undefined 22687 if ((RuntimeType.UNDEFINED) != (lightSource_buf_runtimeType)) 22688 { 22689 lightSource_buf = valueDeserializer.readLightSource() 22690 } 22691 const lightSource_result : LightSource | undefined = lightSource_buf 22692 const illuminated_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22693 let illuminated_buf : IlluminatedType | undefined 22694 if ((RuntimeType.UNDEFINED) != (illuminated_buf_runtimeType)) 22695 { 22696 illuminated_buf = (valueDeserializer.readInt32() as IlluminatedType) 22697 } 22698 const illuminated_result : IlluminatedType | undefined = illuminated_buf 22699 const bloom_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22700 let bloom_buf : number | undefined 22701 if ((RuntimeType.UNDEFINED) != (bloom_buf_runtimeType)) 22702 { 22703 bloom_buf = (valueDeserializer.readNumber() as number) 22704 } 22705 const bloom_result : number | undefined = bloom_buf 22706 let value : PointLightStyle = ({lightSource: lightSource_result, illuminated: illuminated_result, bloom: bloom_result} as PointLightStyle) 22707 return value 22708 } 22709 readColumnOptions(): ColumnOptions { 22710 let valueDeserializer : Deserializer = this 22711 const space_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22712 let space_buf : string | number | undefined 22713 if ((RuntimeType.UNDEFINED) != (space_buf_runtimeType)) 22714 { 22715 const space_buf__selector : int32 = valueDeserializer.readInt8() 22716 let space_buf_ : string | number | undefined 22717 if (space_buf__selector == 0) { 22718 space_buf_ = (valueDeserializer.readString() as string) 22719 } 22720 else if (space_buf__selector == 1) { 22721 space_buf_ = (valueDeserializer.readNumber() as number) 22722 } 22723 else { 22724 throw new Error("One of the branches for space_buf_ has to be chosen through deserialisation.") 22725 } 22726 space_buf = (space_buf_ as string | number) 22727 } 22728 const space_result : string | number | undefined = space_buf 22729 let value : ColumnOptions = ({space: space_result} as ColumnOptions) 22730 return value 22731 } 22732 readCircleOptions(): CircleOptions { 22733 let valueDeserializer : Deserializer = this 22734 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22735 let width_buf : string | number | undefined 22736 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 22737 { 22738 const width_buf__selector : int32 = valueDeserializer.readInt8() 22739 let width_buf_ : string | number | undefined 22740 if (width_buf__selector == 0) { 22741 width_buf_ = (valueDeserializer.readString() as string) 22742 } 22743 else if (width_buf__selector == 1) { 22744 width_buf_ = (valueDeserializer.readNumber() as number) 22745 } 22746 else { 22747 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 22748 } 22749 width_buf = (width_buf_ as string | number) 22750 } 22751 const width_result : string | number | undefined = width_buf 22752 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22753 let height_buf : string | number | undefined 22754 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 22755 { 22756 const height_buf__selector : int32 = valueDeserializer.readInt8() 22757 let height_buf_ : string | number | undefined 22758 if (height_buf__selector == 0) { 22759 height_buf_ = (valueDeserializer.readString() as string) 22760 } 22761 else if (height_buf__selector == 1) { 22762 height_buf_ = (valueDeserializer.readNumber() as number) 22763 } 22764 else { 22765 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 22766 } 22767 height_buf = (height_buf_ as string | number) 22768 } 22769 const height_result : string | number | undefined = height_buf 22770 let value : CircleOptions = ({width: width_result, height: height_result} as CircleOptions) 22771 return value 22772 } 22773 readCheckboxGroupResult(): CheckboxGroupResult { 22774 let valueDeserializer : Deserializer = this 22775 const name_buf_length : int32 = valueDeserializer.readInt32() 22776 let name_buf : Array<string> = new Array<string>(name_buf_length) 22777 for (let name_buf_i = 0; name_buf_i < name_buf_length; name_buf_i++) { 22778 name_buf[name_buf_i] = (valueDeserializer.readString() as string) 22779 } 22780 const name_result : Array<string> = name_buf 22781 const status_result : SelectStatus = (valueDeserializer.readInt32() as SelectStatus) 22782 let value : CheckboxGroupResult = ({name: name_result, status: status_result} as CheckboxGroupResult) 22783 return value 22784 } 22785 readOnCheckboxGroupChangeCallback(isSync: boolean = false): OnCheckboxGroupChangeCallback { 22786 const _resource : CallbackResource = this.readCallbackResource() 22787 const _call : KPointer = this.readPointer() 22788 const _callSync : KPointer = this.readPointer() 22789 return (value: CheckboxGroupResult):void => { 22790 const _argsSerializer : Serializer = Serializer.hold(); 22791 _argsSerializer.writeInt32(_resource.resourceId); 22792 _argsSerializer.writePointer(_call); 22793 _argsSerializer.writePointer(_callSync); 22794 _argsSerializer.writeCheckboxGroupResult(value); 22795 (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asBuffer(), _argsSerializer.length())); 22796 _argsSerializer.release(); 22797 return; } 22798 } 22799 readCheckboxGroupOptions(): CheckboxGroupOptions { 22800 let valueDeserializer : Deserializer = this 22801 const group_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22802 let group_buf : string | undefined 22803 if ((RuntimeType.UNDEFINED) != (group_buf_runtimeType)) 22804 { 22805 group_buf = (valueDeserializer.readString() as string) 22806 } 22807 const group_result : string | undefined = group_buf 22808 let value : CheckboxGroupOptions = ({group: group_result} as CheckboxGroupOptions) 22809 return value 22810 } 22811 readMarkStyle(): MarkStyle { 22812 let valueDeserializer : Deserializer = this 22813 const strokeColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22814 let strokeColor_buf : ResourceColor | undefined 22815 if ((RuntimeType.UNDEFINED) != (strokeColor_buf_runtimeType)) 22816 { 22817 const strokeColor_buf__selector : int32 = valueDeserializer.readInt8() 22818 let strokeColor_buf_ : Color | number | string | Resource | undefined 22819 if (strokeColor_buf__selector == 0) { 22820 strokeColor_buf_ = (valueDeserializer.readInt32() as Color) 22821 } 22822 else if (strokeColor_buf__selector == 1) { 22823 strokeColor_buf_ = (valueDeserializer.readNumber() as number) 22824 } 22825 else if (strokeColor_buf__selector == 2) { 22826 strokeColor_buf_ = (valueDeserializer.readString() as string) 22827 } 22828 else if (strokeColor_buf__selector == 3) { 22829 strokeColor_buf_ = valueDeserializer.readResource() 22830 } 22831 else { 22832 throw new Error("One of the branches for strokeColor_buf_ has to be chosen through deserialisation.") 22833 } 22834 strokeColor_buf = (strokeColor_buf_ as Color | number | string | Resource) 22835 } 22836 const strokeColor_result : ResourceColor | undefined = strokeColor_buf 22837 const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22838 let size_buf : Length | undefined 22839 if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) 22840 { 22841 size_buf = (valueDeserializer.readLength() as Length) 22842 } 22843 const size_result : Length | undefined = size_buf 22844 const strokeWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22845 let strokeWidth_buf : Length | undefined 22846 if ((RuntimeType.UNDEFINED) != (strokeWidth_buf_runtimeType)) 22847 { 22848 strokeWidth_buf = (valueDeserializer.readLength() as Length) 22849 } 22850 const strokeWidth_result : Length | undefined = strokeWidth_buf 22851 let value : MarkStyle = ({strokeColor: strokeColor_result, size: size_result, strokeWidth: strokeWidth_result} as MarkStyle) 22852 return value 22853 } 22854 readOnCheckboxChangeCallback(isSync: boolean = false): OnCheckboxChangeCallback { 22855 const _resource : CallbackResource = this.readCallbackResource() 22856 const _call : KPointer = this.readPointer() 22857 const _callSync : KPointer = this.readPointer() 22858 return (value: boolean):void => { 22859 const _argsSerializer : Serializer = Serializer.hold(); 22860 _argsSerializer.writeInt32(_resource.resourceId); 22861 _argsSerializer.writePointer(_call); 22862 _argsSerializer.writePointer(_callSync); 22863 _argsSerializer.writeBoolean(value); 22864 (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asBuffer(), _argsSerializer.length())); 22865 _argsSerializer.release(); 22866 return; } 22867 } 22868 readCheckboxOptions(): CheckboxOptions { 22869 let valueDeserializer : Deserializer = this 22870 const name_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22871 let name_buf : string | undefined 22872 if ((RuntimeType.UNDEFINED) != (name_buf_runtimeType)) 22873 { 22874 name_buf = (valueDeserializer.readString() as string) 22875 } 22876 const name_result : string | undefined = name_buf 22877 const group_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22878 let group_buf : string | undefined 22879 if ((RuntimeType.UNDEFINED) != (group_buf_runtimeType)) 22880 { 22881 group_buf = (valueDeserializer.readString() as string) 22882 } 22883 const group_result : string | undefined = group_buf 22884 const indicatorBuilder_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22885 let indicatorBuilder_buf : CustomBuilder | undefined 22886 if ((RuntimeType.UNDEFINED) != (indicatorBuilder_buf_runtimeType)) 22887 { 22888 indicatorBuilder_buf = CallbackTransformer.transformToCustomBuilder(valueDeserializer.readCustomNodeBuilder()) 22889 } 22890 const indicatorBuilder_result : CustomBuilder | undefined = indicatorBuilder_buf 22891 let value : CheckboxOptions = ({name: name_result, group: group_result, indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) 22892 return value 22893 } 22894 readOffscreenCanvas(): OffscreenCanvas { 22895 let valueDeserializer : Deserializer = this 22896 let ptr : KPointer = valueDeserializer.readPointer() 22897 return OffscreenCanvasInternal.fromPtr(ptr) 22898 } 22899 readCanvasRenderer(): CanvasRenderer { 22900 let valueDeserializer : Deserializer = this 22901 let ptr : KPointer = valueDeserializer.readPointer() 22902 return CanvasRendererInternal.fromPtr(ptr) 22903 } 22904 readLengthMetricsUnit(): LengthMetricsUnit { 22905 let valueDeserializer : Deserializer = this 22906 const _LengthMetricsUnitStub_result : string = (valueDeserializer.readString() as string) 22907 let value : LengthMetricsUnit = ({_LengthMetricsUnitStub: _LengthMetricsUnitStub_result} as LengthMetricsUnit) 22908 return value 22909 } 22910 readCanvasPath(): CanvasPath { 22911 let valueDeserializer : Deserializer = this 22912 let ptr : KPointer = valueDeserializer.readPointer() 22913 return CanvasPathInternal.fromPtr(ptr) 22914 } 22915 readCalendarOptions(): CalendarOptions { 22916 let valueDeserializer : Deserializer = this 22917 const hintRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22918 let hintRadius_buf : number | Resource | undefined 22919 if ((RuntimeType.UNDEFINED) != (hintRadius_buf_runtimeType)) 22920 { 22921 const hintRadius_buf__selector : int32 = valueDeserializer.readInt8() 22922 let hintRadius_buf_ : number | Resource | undefined 22923 if (hintRadius_buf__selector == 0) { 22924 hintRadius_buf_ = (valueDeserializer.readNumber() as number) 22925 } 22926 else if (hintRadius_buf__selector == 1) { 22927 hintRadius_buf_ = valueDeserializer.readResource() 22928 } 22929 else { 22930 throw new Error("One of the branches for hintRadius_buf_ has to be chosen through deserialisation.") 22931 } 22932 hintRadius_buf = (hintRadius_buf_ as number | Resource) 22933 } 22934 const hintRadius_result : number | Resource | undefined = hintRadius_buf 22935 const selected_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22936 let selected_buf : Date | undefined 22937 if ((RuntimeType.UNDEFINED) != (selected_buf_runtimeType)) 22938 { 22939 selected_buf = new Date(valueDeserializer.readInt64()) 22940 } 22941 const selected_result : Date | undefined = selected_buf 22942 let value : CalendarOptions = ({hintRadius: hintRadius_result, selected: selected_result} as CalendarOptions) 22943 return value 22944 } 22945 readWorkStateStyle(): WorkStateStyle { 22946 let valueDeserializer : Deserializer = this 22947 const workDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22948 let workDayMarkColor_buf : ResourceColor | undefined 22949 if ((RuntimeType.UNDEFINED) != (workDayMarkColor_buf_runtimeType)) 22950 { 22951 const workDayMarkColor_buf__selector : int32 = valueDeserializer.readInt8() 22952 let workDayMarkColor_buf_ : Color | number | string | Resource | undefined 22953 if (workDayMarkColor_buf__selector == 0) { 22954 workDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 22955 } 22956 else if (workDayMarkColor_buf__selector == 1) { 22957 workDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 22958 } 22959 else if (workDayMarkColor_buf__selector == 2) { 22960 workDayMarkColor_buf_ = (valueDeserializer.readString() as string) 22961 } 22962 else if (workDayMarkColor_buf__selector == 3) { 22963 workDayMarkColor_buf_ = valueDeserializer.readResource() 22964 } 22965 else { 22966 throw new Error("One of the branches for workDayMarkColor_buf_ has to be chosen through deserialisation.") 22967 } 22968 workDayMarkColor_buf = (workDayMarkColor_buf_ as Color | number | string | Resource) 22969 } 22970 const workDayMarkColor_result : ResourceColor | undefined = workDayMarkColor_buf 22971 const offDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22972 let offDayMarkColor_buf : ResourceColor | undefined 22973 if ((RuntimeType.UNDEFINED) != (offDayMarkColor_buf_runtimeType)) 22974 { 22975 const offDayMarkColor_buf__selector : int32 = valueDeserializer.readInt8() 22976 let offDayMarkColor_buf_ : Color | number | string | Resource | undefined 22977 if (offDayMarkColor_buf__selector == 0) { 22978 offDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 22979 } 22980 else if (offDayMarkColor_buf__selector == 1) { 22981 offDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 22982 } 22983 else if (offDayMarkColor_buf__selector == 2) { 22984 offDayMarkColor_buf_ = (valueDeserializer.readString() as string) 22985 } 22986 else if (offDayMarkColor_buf__selector == 3) { 22987 offDayMarkColor_buf_ = valueDeserializer.readResource() 22988 } 22989 else { 22990 throw new Error("One of the branches for offDayMarkColor_buf_ has to be chosen through deserialisation.") 22991 } 22992 offDayMarkColor_buf = (offDayMarkColor_buf_ as Color | number | string | Resource) 22993 } 22994 const offDayMarkColor_result : ResourceColor | undefined = offDayMarkColor_buf 22995 const workDayMarkSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 22996 let workDayMarkSize_buf : number | undefined 22997 if ((RuntimeType.UNDEFINED) != (workDayMarkSize_buf_runtimeType)) 22998 { 22999 workDayMarkSize_buf = (valueDeserializer.readNumber() as number) 23000 } 23001 const workDayMarkSize_result : number | undefined = workDayMarkSize_buf 23002 const offDayMarkSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23003 let offDayMarkSize_buf : number | undefined 23004 if ((RuntimeType.UNDEFINED) != (offDayMarkSize_buf_runtimeType)) 23005 { 23006 offDayMarkSize_buf = (valueDeserializer.readNumber() as number) 23007 } 23008 const offDayMarkSize_result : number | undefined = offDayMarkSize_buf 23009 const workStateWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23010 let workStateWidth_buf : number | undefined 23011 if ((RuntimeType.UNDEFINED) != (workStateWidth_buf_runtimeType)) 23012 { 23013 workStateWidth_buf = (valueDeserializer.readNumber() as number) 23014 } 23015 const workStateWidth_result : number | undefined = workStateWidth_buf 23016 const workStateHorizontalMovingDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23017 let workStateHorizontalMovingDistance_buf : number | undefined 23018 if ((RuntimeType.UNDEFINED) != (workStateHorizontalMovingDistance_buf_runtimeType)) 23019 { 23020 workStateHorizontalMovingDistance_buf = (valueDeserializer.readNumber() as number) 23021 } 23022 const workStateHorizontalMovingDistance_result : number | undefined = workStateHorizontalMovingDistance_buf 23023 const workStateVerticalMovingDistance_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23024 let workStateVerticalMovingDistance_buf : number | undefined 23025 if ((RuntimeType.UNDEFINED) != (workStateVerticalMovingDistance_buf_runtimeType)) 23026 { 23027 workStateVerticalMovingDistance_buf = (valueDeserializer.readNumber() as number) 23028 } 23029 const workStateVerticalMovingDistance_result : number | undefined = workStateVerticalMovingDistance_buf 23030 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) 23031 return value 23032 } 23033 readWeekStyle(): WeekStyle { 23034 let valueDeserializer : Deserializer = this 23035 const weekColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23036 let weekColor_buf : ResourceColor | undefined 23037 if ((RuntimeType.UNDEFINED) != (weekColor_buf_runtimeType)) 23038 { 23039 const weekColor_buf__selector : int32 = valueDeserializer.readInt8() 23040 let weekColor_buf_ : Color | number | string | Resource | undefined 23041 if (weekColor_buf__selector == 0) { 23042 weekColor_buf_ = (valueDeserializer.readInt32() as Color) 23043 } 23044 else if (weekColor_buf__selector == 1) { 23045 weekColor_buf_ = (valueDeserializer.readNumber() as number) 23046 } 23047 else if (weekColor_buf__selector == 2) { 23048 weekColor_buf_ = (valueDeserializer.readString() as string) 23049 } 23050 else if (weekColor_buf__selector == 3) { 23051 weekColor_buf_ = valueDeserializer.readResource() 23052 } 23053 else { 23054 throw new Error("One of the branches for weekColor_buf_ has to be chosen through deserialisation.") 23055 } 23056 weekColor_buf = (weekColor_buf_ as Color | number | string | Resource) 23057 } 23058 const weekColor_result : ResourceColor | undefined = weekColor_buf 23059 const weekendDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23060 let weekendDayColor_buf : ResourceColor | undefined 23061 if ((RuntimeType.UNDEFINED) != (weekendDayColor_buf_runtimeType)) 23062 { 23063 const weekendDayColor_buf__selector : int32 = valueDeserializer.readInt8() 23064 let weekendDayColor_buf_ : Color | number | string | Resource | undefined 23065 if (weekendDayColor_buf__selector == 0) { 23066 weekendDayColor_buf_ = (valueDeserializer.readInt32() as Color) 23067 } 23068 else if (weekendDayColor_buf__selector == 1) { 23069 weekendDayColor_buf_ = (valueDeserializer.readNumber() as number) 23070 } 23071 else if (weekendDayColor_buf__selector == 2) { 23072 weekendDayColor_buf_ = (valueDeserializer.readString() as string) 23073 } 23074 else if (weekendDayColor_buf__selector == 3) { 23075 weekendDayColor_buf_ = valueDeserializer.readResource() 23076 } 23077 else { 23078 throw new Error("One of the branches for weekendDayColor_buf_ has to be chosen through deserialisation.") 23079 } 23080 weekendDayColor_buf = (weekendDayColor_buf_ as Color | number | string | Resource) 23081 } 23082 const weekendDayColor_result : ResourceColor | undefined = weekendDayColor_buf 23083 const weekendLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23084 let weekendLunarColor_buf : ResourceColor | undefined 23085 if ((RuntimeType.UNDEFINED) != (weekendLunarColor_buf_runtimeType)) 23086 { 23087 const weekendLunarColor_buf__selector : int32 = valueDeserializer.readInt8() 23088 let weekendLunarColor_buf_ : Color | number | string | Resource | undefined 23089 if (weekendLunarColor_buf__selector == 0) { 23090 weekendLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23091 } 23092 else if (weekendLunarColor_buf__selector == 1) { 23093 weekendLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23094 } 23095 else if (weekendLunarColor_buf__selector == 2) { 23096 weekendLunarColor_buf_ = (valueDeserializer.readString() as string) 23097 } 23098 else if (weekendLunarColor_buf__selector == 3) { 23099 weekendLunarColor_buf_ = valueDeserializer.readResource() 23100 } 23101 else { 23102 throw new Error("One of the branches for weekendLunarColor_buf_ has to be chosen through deserialisation.") 23103 } 23104 weekendLunarColor_buf = (weekendLunarColor_buf_ as Color | number | string | Resource) 23105 } 23106 const weekendLunarColor_result : ResourceColor | undefined = weekendLunarColor_buf 23107 const weekFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23108 let weekFontSize_buf : number | undefined 23109 if ((RuntimeType.UNDEFINED) != (weekFontSize_buf_runtimeType)) 23110 { 23111 weekFontSize_buf = (valueDeserializer.readNumber() as number) 23112 } 23113 const weekFontSize_result : number | undefined = weekFontSize_buf 23114 const weekHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23115 let weekHeight_buf : number | undefined 23116 if ((RuntimeType.UNDEFINED) != (weekHeight_buf_runtimeType)) 23117 { 23118 weekHeight_buf = (valueDeserializer.readNumber() as number) 23119 } 23120 const weekHeight_result : number | undefined = weekHeight_buf 23121 const weekWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23122 let weekWidth_buf : number | undefined 23123 if ((RuntimeType.UNDEFINED) != (weekWidth_buf_runtimeType)) 23124 { 23125 weekWidth_buf = (valueDeserializer.readNumber() as number) 23126 } 23127 const weekWidth_result : number | undefined = weekWidth_buf 23128 const weekAndDayRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23129 let weekAndDayRowSpace_buf : number | undefined 23130 if ((RuntimeType.UNDEFINED) != (weekAndDayRowSpace_buf_runtimeType)) 23131 { 23132 weekAndDayRowSpace_buf = (valueDeserializer.readNumber() as number) 23133 } 23134 const weekAndDayRowSpace_result : number | undefined = weekAndDayRowSpace_buf 23135 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) 23136 return value 23137 } 23138 readTodayStyle(): TodayStyle { 23139 let valueDeserializer : Deserializer = this 23140 const focusedDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23141 let focusedDayColor_buf : ResourceColor | undefined 23142 if ((RuntimeType.UNDEFINED) != (focusedDayColor_buf_runtimeType)) 23143 { 23144 const focusedDayColor_buf__selector : int32 = valueDeserializer.readInt8() 23145 let focusedDayColor_buf_ : Color | number | string | Resource | undefined 23146 if (focusedDayColor_buf__selector == 0) { 23147 focusedDayColor_buf_ = (valueDeserializer.readInt32() as Color) 23148 } 23149 else if (focusedDayColor_buf__selector == 1) { 23150 focusedDayColor_buf_ = (valueDeserializer.readNumber() as number) 23151 } 23152 else if (focusedDayColor_buf__selector == 2) { 23153 focusedDayColor_buf_ = (valueDeserializer.readString() as string) 23154 } 23155 else if (focusedDayColor_buf__selector == 3) { 23156 focusedDayColor_buf_ = valueDeserializer.readResource() 23157 } 23158 else { 23159 throw new Error("One of the branches for focusedDayColor_buf_ has to be chosen through deserialisation.") 23160 } 23161 focusedDayColor_buf = (focusedDayColor_buf_ as Color | number | string | Resource) 23162 } 23163 const focusedDayColor_result : ResourceColor | undefined = focusedDayColor_buf 23164 const focusedLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23165 let focusedLunarColor_buf : ResourceColor | undefined 23166 if ((RuntimeType.UNDEFINED) != (focusedLunarColor_buf_runtimeType)) 23167 { 23168 const focusedLunarColor_buf__selector : int32 = valueDeserializer.readInt8() 23169 let focusedLunarColor_buf_ : Color | number | string | Resource | undefined 23170 if (focusedLunarColor_buf__selector == 0) { 23171 focusedLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23172 } 23173 else if (focusedLunarColor_buf__selector == 1) { 23174 focusedLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23175 } 23176 else if (focusedLunarColor_buf__selector == 2) { 23177 focusedLunarColor_buf_ = (valueDeserializer.readString() as string) 23178 } 23179 else if (focusedLunarColor_buf__selector == 3) { 23180 focusedLunarColor_buf_ = valueDeserializer.readResource() 23181 } 23182 else { 23183 throw new Error("One of the branches for focusedLunarColor_buf_ has to be chosen through deserialisation.") 23184 } 23185 focusedLunarColor_buf = (focusedLunarColor_buf_ as Color | number | string | Resource) 23186 } 23187 const focusedLunarColor_result : ResourceColor | undefined = focusedLunarColor_buf 23188 const focusedAreaBackgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23189 let focusedAreaBackgroundColor_buf : ResourceColor | undefined 23190 if ((RuntimeType.UNDEFINED) != (focusedAreaBackgroundColor_buf_runtimeType)) 23191 { 23192 const focusedAreaBackgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 23193 let focusedAreaBackgroundColor_buf_ : Color | number | string | Resource | undefined 23194 if (focusedAreaBackgroundColor_buf__selector == 0) { 23195 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 23196 } 23197 else if (focusedAreaBackgroundColor_buf__selector == 1) { 23198 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readNumber() as number) 23199 } 23200 else if (focusedAreaBackgroundColor_buf__selector == 2) { 23201 focusedAreaBackgroundColor_buf_ = (valueDeserializer.readString() as string) 23202 } 23203 else if (focusedAreaBackgroundColor_buf__selector == 3) { 23204 focusedAreaBackgroundColor_buf_ = valueDeserializer.readResource() 23205 } 23206 else { 23207 throw new Error("One of the branches for focusedAreaBackgroundColor_buf_ has to be chosen through deserialisation.") 23208 } 23209 focusedAreaBackgroundColor_buf = (focusedAreaBackgroundColor_buf_ as Color | number | string | Resource) 23210 } 23211 const focusedAreaBackgroundColor_result : ResourceColor | undefined = focusedAreaBackgroundColor_buf 23212 const focusedAreaRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23213 let focusedAreaRadius_buf : number | undefined 23214 if ((RuntimeType.UNDEFINED) != (focusedAreaRadius_buf_runtimeType)) 23215 { 23216 focusedAreaRadius_buf = (valueDeserializer.readNumber() as number) 23217 } 23218 const focusedAreaRadius_result : number | undefined = focusedAreaRadius_buf 23219 let value : TodayStyle = ({focusedDayColor: focusedDayColor_result, focusedLunarColor: focusedLunarColor_result, focusedAreaBackgroundColor: focusedAreaBackgroundColor_result, focusedAreaRadius: focusedAreaRadius_result} as TodayStyle) 23220 return value 23221 } 23222 readNonCurrentDayStyle(): NonCurrentDayStyle { 23223 let valueDeserializer : Deserializer = this 23224 const nonCurrentMonthDayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23225 let nonCurrentMonthDayColor_buf : ResourceColor | undefined 23226 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthDayColor_buf_runtimeType)) 23227 { 23228 const nonCurrentMonthDayColor_buf__selector : int32 = valueDeserializer.readInt8() 23229 let nonCurrentMonthDayColor_buf_ : Color | number | string | Resource | undefined 23230 if (nonCurrentMonthDayColor_buf__selector == 0) { 23231 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readInt32() as Color) 23232 } 23233 else if (nonCurrentMonthDayColor_buf__selector == 1) { 23234 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readNumber() as number) 23235 } 23236 else if (nonCurrentMonthDayColor_buf__selector == 2) { 23237 nonCurrentMonthDayColor_buf_ = (valueDeserializer.readString() as string) 23238 } 23239 else if (nonCurrentMonthDayColor_buf__selector == 3) { 23240 nonCurrentMonthDayColor_buf_ = valueDeserializer.readResource() 23241 } 23242 else { 23243 throw new Error("One of the branches for nonCurrentMonthDayColor_buf_ has to be chosen through deserialisation.") 23244 } 23245 nonCurrentMonthDayColor_buf = (nonCurrentMonthDayColor_buf_ as Color | number | string | Resource) 23246 } 23247 const nonCurrentMonthDayColor_result : ResourceColor | undefined = nonCurrentMonthDayColor_buf 23248 const nonCurrentMonthLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23249 let nonCurrentMonthLunarColor_buf : ResourceColor | undefined 23250 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthLunarColor_buf_runtimeType)) 23251 { 23252 const nonCurrentMonthLunarColor_buf__selector : int32 = valueDeserializer.readInt8() 23253 let nonCurrentMonthLunarColor_buf_ : Color | number | string | Resource | undefined 23254 if (nonCurrentMonthLunarColor_buf__selector == 0) { 23255 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23256 } 23257 else if (nonCurrentMonthLunarColor_buf__selector == 1) { 23258 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23259 } 23260 else if (nonCurrentMonthLunarColor_buf__selector == 2) { 23261 nonCurrentMonthLunarColor_buf_ = (valueDeserializer.readString() as string) 23262 } 23263 else if (nonCurrentMonthLunarColor_buf__selector == 3) { 23264 nonCurrentMonthLunarColor_buf_ = valueDeserializer.readResource() 23265 } 23266 else { 23267 throw new Error("One of the branches for nonCurrentMonthLunarColor_buf_ has to be chosen through deserialisation.") 23268 } 23269 nonCurrentMonthLunarColor_buf = (nonCurrentMonthLunarColor_buf_ as Color | number | string | Resource) 23270 } 23271 const nonCurrentMonthLunarColor_result : ResourceColor | undefined = nonCurrentMonthLunarColor_buf 23272 const nonCurrentMonthWorkDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23273 let nonCurrentMonthWorkDayMarkColor_buf : ResourceColor | undefined 23274 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthWorkDayMarkColor_buf_runtimeType)) 23275 { 23276 const nonCurrentMonthWorkDayMarkColor_buf__selector : int32 = valueDeserializer.readInt8() 23277 let nonCurrentMonthWorkDayMarkColor_buf_ : Color | number | string | Resource | undefined 23278 if (nonCurrentMonthWorkDayMarkColor_buf__selector == 0) { 23279 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 23280 } 23281 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 1) { 23282 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 23283 } 23284 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 2) { 23285 nonCurrentMonthWorkDayMarkColor_buf_ = (valueDeserializer.readString() as string) 23286 } 23287 else if (nonCurrentMonthWorkDayMarkColor_buf__selector == 3) { 23288 nonCurrentMonthWorkDayMarkColor_buf_ = valueDeserializer.readResource() 23289 } 23290 else { 23291 throw new Error("One of the branches for nonCurrentMonthWorkDayMarkColor_buf_ has to be chosen through deserialisation.") 23292 } 23293 nonCurrentMonthWorkDayMarkColor_buf = (nonCurrentMonthWorkDayMarkColor_buf_ as Color | number | string | Resource) 23294 } 23295 const nonCurrentMonthWorkDayMarkColor_result : ResourceColor | undefined = nonCurrentMonthWorkDayMarkColor_buf 23296 const nonCurrentMonthOffDayMarkColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23297 let nonCurrentMonthOffDayMarkColor_buf : ResourceColor | undefined 23298 if ((RuntimeType.UNDEFINED) != (nonCurrentMonthOffDayMarkColor_buf_runtimeType)) 23299 { 23300 const nonCurrentMonthOffDayMarkColor_buf__selector : int32 = valueDeserializer.readInt8() 23301 let nonCurrentMonthOffDayMarkColor_buf_ : Color | number | string | Resource | undefined 23302 if (nonCurrentMonthOffDayMarkColor_buf__selector == 0) { 23303 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readInt32() as Color) 23304 } 23305 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 1) { 23306 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readNumber() as number) 23307 } 23308 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 2) { 23309 nonCurrentMonthOffDayMarkColor_buf_ = (valueDeserializer.readString() as string) 23310 } 23311 else if (nonCurrentMonthOffDayMarkColor_buf__selector == 3) { 23312 nonCurrentMonthOffDayMarkColor_buf_ = valueDeserializer.readResource() 23313 } 23314 else { 23315 throw new Error("One of the branches for nonCurrentMonthOffDayMarkColor_buf_ has to be chosen through deserialisation.") 23316 } 23317 nonCurrentMonthOffDayMarkColor_buf = (nonCurrentMonthOffDayMarkColor_buf_ as Color | number | string | Resource) 23318 } 23319 const nonCurrentMonthOffDayMarkColor_result : ResourceColor | undefined = nonCurrentMonthOffDayMarkColor_buf 23320 let value : NonCurrentDayStyle = ({nonCurrentMonthDayColor: nonCurrentMonthDayColor_result, nonCurrentMonthLunarColor: nonCurrentMonthLunarColor_result, nonCurrentMonthWorkDayMarkColor: nonCurrentMonthWorkDayMarkColor_result, nonCurrentMonthOffDayMarkColor: nonCurrentMonthOffDayMarkColor_result} as NonCurrentDayStyle) 23321 return value 23322 } 23323 readCurrentDayStyle(): CurrentDayStyle { 23324 let valueDeserializer : Deserializer = this 23325 const dayColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23326 let dayColor_buf : ResourceColor | undefined 23327 if ((RuntimeType.UNDEFINED) != (dayColor_buf_runtimeType)) 23328 { 23329 const dayColor_buf__selector : int32 = valueDeserializer.readInt8() 23330 let dayColor_buf_ : Color | number | string | Resource | undefined 23331 if (dayColor_buf__selector == 0) { 23332 dayColor_buf_ = (valueDeserializer.readInt32() as Color) 23333 } 23334 else if (dayColor_buf__selector == 1) { 23335 dayColor_buf_ = (valueDeserializer.readNumber() as number) 23336 } 23337 else if (dayColor_buf__selector == 2) { 23338 dayColor_buf_ = (valueDeserializer.readString() as string) 23339 } 23340 else if (dayColor_buf__selector == 3) { 23341 dayColor_buf_ = valueDeserializer.readResource() 23342 } 23343 else { 23344 throw new Error("One of the branches for dayColor_buf_ has to be chosen through deserialisation.") 23345 } 23346 dayColor_buf = (dayColor_buf_ as Color | number | string | Resource) 23347 } 23348 const dayColor_result : ResourceColor | undefined = dayColor_buf 23349 const lunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23350 let lunarColor_buf : ResourceColor | undefined 23351 if ((RuntimeType.UNDEFINED) != (lunarColor_buf_runtimeType)) 23352 { 23353 const lunarColor_buf__selector : int32 = valueDeserializer.readInt8() 23354 let lunarColor_buf_ : Color | number | string | Resource | undefined 23355 if (lunarColor_buf__selector == 0) { 23356 lunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23357 } 23358 else if (lunarColor_buf__selector == 1) { 23359 lunarColor_buf_ = (valueDeserializer.readNumber() as number) 23360 } 23361 else if (lunarColor_buf__selector == 2) { 23362 lunarColor_buf_ = (valueDeserializer.readString() as string) 23363 } 23364 else if (lunarColor_buf__selector == 3) { 23365 lunarColor_buf_ = valueDeserializer.readResource() 23366 } 23367 else { 23368 throw new Error("One of the branches for lunarColor_buf_ has to be chosen through deserialisation.") 23369 } 23370 lunarColor_buf = (lunarColor_buf_ as Color | number | string | Resource) 23371 } 23372 const lunarColor_result : ResourceColor | undefined = lunarColor_buf 23373 const markLunarColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23374 let markLunarColor_buf : ResourceColor | undefined 23375 if ((RuntimeType.UNDEFINED) != (markLunarColor_buf_runtimeType)) 23376 { 23377 const markLunarColor_buf__selector : int32 = valueDeserializer.readInt8() 23378 let markLunarColor_buf_ : Color | number | string | Resource | undefined 23379 if (markLunarColor_buf__selector == 0) { 23380 markLunarColor_buf_ = (valueDeserializer.readInt32() as Color) 23381 } 23382 else if (markLunarColor_buf__selector == 1) { 23383 markLunarColor_buf_ = (valueDeserializer.readNumber() as number) 23384 } 23385 else if (markLunarColor_buf__selector == 2) { 23386 markLunarColor_buf_ = (valueDeserializer.readString() as string) 23387 } 23388 else if (markLunarColor_buf__selector == 3) { 23389 markLunarColor_buf_ = valueDeserializer.readResource() 23390 } 23391 else { 23392 throw new Error("One of the branches for markLunarColor_buf_ has to be chosen through deserialisation.") 23393 } 23394 markLunarColor_buf = (markLunarColor_buf_ as Color | number | string | Resource) 23395 } 23396 const markLunarColor_result : ResourceColor | undefined = markLunarColor_buf 23397 const dayFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23398 let dayFontSize_buf : number | undefined 23399 if ((RuntimeType.UNDEFINED) != (dayFontSize_buf_runtimeType)) 23400 { 23401 dayFontSize_buf = (valueDeserializer.readNumber() as number) 23402 } 23403 const dayFontSize_result : number | undefined = dayFontSize_buf 23404 const lunarDayFontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23405 let lunarDayFontSize_buf : number | undefined 23406 if ((RuntimeType.UNDEFINED) != (lunarDayFontSize_buf_runtimeType)) 23407 { 23408 lunarDayFontSize_buf = (valueDeserializer.readNumber() as number) 23409 } 23410 const lunarDayFontSize_result : number | undefined = lunarDayFontSize_buf 23411 const dayHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23412 let dayHeight_buf : number | undefined 23413 if ((RuntimeType.UNDEFINED) != (dayHeight_buf_runtimeType)) 23414 { 23415 dayHeight_buf = (valueDeserializer.readNumber() as number) 23416 } 23417 const dayHeight_result : number | undefined = dayHeight_buf 23418 const dayWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23419 let dayWidth_buf : number | undefined 23420 if ((RuntimeType.UNDEFINED) != (dayWidth_buf_runtimeType)) 23421 { 23422 dayWidth_buf = (valueDeserializer.readNumber() as number) 23423 } 23424 const dayWidth_result : number | undefined = dayWidth_buf 23425 const gregorianCalendarHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23426 let gregorianCalendarHeight_buf : number | undefined 23427 if ((RuntimeType.UNDEFINED) != (gregorianCalendarHeight_buf_runtimeType)) 23428 { 23429 gregorianCalendarHeight_buf = (valueDeserializer.readNumber() as number) 23430 } 23431 const gregorianCalendarHeight_result : number | undefined = gregorianCalendarHeight_buf 23432 const dayYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23433 let dayYAxisOffset_buf : number | undefined 23434 if ((RuntimeType.UNDEFINED) != (dayYAxisOffset_buf_runtimeType)) 23435 { 23436 dayYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23437 } 23438 const dayYAxisOffset_result : number | undefined = dayYAxisOffset_buf 23439 const lunarDayYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23440 let lunarDayYAxisOffset_buf : number | undefined 23441 if ((RuntimeType.UNDEFINED) != (lunarDayYAxisOffset_buf_runtimeType)) 23442 { 23443 lunarDayYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23444 } 23445 const lunarDayYAxisOffset_result : number | undefined = lunarDayYAxisOffset_buf 23446 const underscoreXAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23447 let underscoreXAxisOffset_buf : number | undefined 23448 if ((RuntimeType.UNDEFINED) != (underscoreXAxisOffset_buf_runtimeType)) 23449 { 23450 underscoreXAxisOffset_buf = (valueDeserializer.readNumber() as number) 23451 } 23452 const underscoreXAxisOffset_result : number | undefined = underscoreXAxisOffset_buf 23453 const underscoreYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23454 let underscoreYAxisOffset_buf : number | undefined 23455 if ((RuntimeType.UNDEFINED) != (underscoreYAxisOffset_buf_runtimeType)) 23456 { 23457 underscoreYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23458 } 23459 const underscoreYAxisOffset_result : number | undefined = underscoreYAxisOffset_buf 23460 const scheduleMarkerXAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23461 let scheduleMarkerXAxisOffset_buf : number | undefined 23462 if ((RuntimeType.UNDEFINED) != (scheduleMarkerXAxisOffset_buf_runtimeType)) 23463 { 23464 scheduleMarkerXAxisOffset_buf = (valueDeserializer.readNumber() as number) 23465 } 23466 const scheduleMarkerXAxisOffset_result : number | undefined = scheduleMarkerXAxisOffset_buf 23467 const scheduleMarkerYAxisOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23468 let scheduleMarkerYAxisOffset_buf : number | undefined 23469 if ((RuntimeType.UNDEFINED) != (scheduleMarkerYAxisOffset_buf_runtimeType)) 23470 { 23471 scheduleMarkerYAxisOffset_buf = (valueDeserializer.readNumber() as number) 23472 } 23473 const scheduleMarkerYAxisOffset_result : number | undefined = scheduleMarkerYAxisOffset_buf 23474 const colSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23475 let colSpace_buf : number | undefined 23476 if ((RuntimeType.UNDEFINED) != (colSpace_buf_runtimeType)) 23477 { 23478 colSpace_buf = (valueDeserializer.readNumber() as number) 23479 } 23480 const colSpace_result : number | undefined = colSpace_buf 23481 const dailyFiveRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23482 let dailyFiveRowSpace_buf : number | undefined 23483 if ((RuntimeType.UNDEFINED) != (dailyFiveRowSpace_buf_runtimeType)) 23484 { 23485 dailyFiveRowSpace_buf = (valueDeserializer.readNumber() as number) 23486 } 23487 const dailyFiveRowSpace_result : number | undefined = dailyFiveRowSpace_buf 23488 const dailySixRowSpace_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23489 let dailySixRowSpace_buf : number | undefined 23490 if ((RuntimeType.UNDEFINED) != (dailySixRowSpace_buf_runtimeType)) 23491 { 23492 dailySixRowSpace_buf = (valueDeserializer.readNumber() as number) 23493 } 23494 const dailySixRowSpace_result : number | undefined = dailySixRowSpace_buf 23495 const lunarHeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23496 let lunarHeight_buf : number | undefined 23497 if ((RuntimeType.UNDEFINED) != (lunarHeight_buf_runtimeType)) 23498 { 23499 lunarHeight_buf = (valueDeserializer.readNumber() as number) 23500 } 23501 const lunarHeight_result : number | undefined = lunarHeight_buf 23502 const underscoreWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23503 let underscoreWidth_buf : number | undefined 23504 if ((RuntimeType.UNDEFINED) != (underscoreWidth_buf_runtimeType)) 23505 { 23506 underscoreWidth_buf = (valueDeserializer.readNumber() as number) 23507 } 23508 const underscoreWidth_result : number | undefined = underscoreWidth_buf 23509 const underscoreLength_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23510 let underscoreLength_buf : number | undefined 23511 if ((RuntimeType.UNDEFINED) != (underscoreLength_buf_runtimeType)) 23512 { 23513 underscoreLength_buf = (valueDeserializer.readNumber() as number) 23514 } 23515 const underscoreLength_result : number | undefined = underscoreLength_buf 23516 const scheduleMarkerRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23517 let scheduleMarkerRadius_buf : number | undefined 23518 if ((RuntimeType.UNDEFINED) != (scheduleMarkerRadius_buf_runtimeType)) 23519 { 23520 scheduleMarkerRadius_buf = (valueDeserializer.readNumber() as number) 23521 } 23522 const scheduleMarkerRadius_result : number | undefined = scheduleMarkerRadius_buf 23523 const boundaryRowOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23524 let boundaryRowOffset_buf : number | undefined 23525 if ((RuntimeType.UNDEFINED) != (boundaryRowOffset_buf_runtimeType)) 23526 { 23527 boundaryRowOffset_buf = (valueDeserializer.readNumber() as number) 23528 } 23529 const boundaryRowOffset_result : number | undefined = boundaryRowOffset_buf 23530 const boundaryColOffset_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23531 let boundaryColOffset_buf : number | undefined 23532 if ((RuntimeType.UNDEFINED) != (boundaryColOffset_buf_runtimeType)) 23533 { 23534 boundaryColOffset_buf = (valueDeserializer.readNumber() as number) 23535 } 23536 const boundaryColOffset_result : number | undefined = boundaryColOffset_buf 23537 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) 23538 return value 23539 } 23540 readCalendarRequestedData(): CalendarRequestedData { 23541 let valueDeserializer : Deserializer = this 23542 const year_result : number = (valueDeserializer.readNumber() as number) 23543 const month_result : number = (valueDeserializer.readNumber() as number) 23544 const currentYear_result : number = (valueDeserializer.readNumber() as number) 23545 const currentMonth_result : number = (valueDeserializer.readNumber() as number) 23546 const monthState_result : number = (valueDeserializer.readNumber() as number) 23547 let value : CalendarRequestedData = ({year: year_result, month: month_result, currentYear: currentYear_result, currentMonth: currentMonth_result, monthState: monthState_result} as CalendarRequestedData) 23548 return value 23549 } 23550 readCallback_CalendarRequestedData_Void(isSync: boolean = false): ((event: CalendarRequestedData) => void) { 23551 const _resource : CallbackResource = this.readCallbackResource() 23552 const _call : KPointer = this.readPointer() 23553 const _callSync : KPointer = this.readPointer() 23554 return (event: CalendarRequestedData):void => { 23555 const _argsSerializer : Serializer = Serializer.hold(); 23556 _argsSerializer.writeInt32(_resource.resourceId); 23557 _argsSerializer.writePointer(_call); 23558 _argsSerializer.writePointer(_callSync); 23559 _argsSerializer.writeCalendarRequestedData(event); 23560 (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asBuffer(), _argsSerializer.length())); 23561 _argsSerializer.release(); 23562 return; } 23563 } 23564 readCalendarSelectedDate(): CalendarSelectedDate { 23565 let valueDeserializer : Deserializer = this 23566 const year_result : number = (valueDeserializer.readNumber() as number) 23567 const month_result : number = (valueDeserializer.readNumber() as number) 23568 const day_result : number = (valueDeserializer.readNumber() as number) 23569 let value : CalendarSelectedDate = ({year: year_result, month: month_result, day: day_result} as CalendarSelectedDate) 23570 return value 23571 } 23572 readCallback_CalendarSelectedDate_Void(isSync: boolean = false): ((event: CalendarSelectedDate) => void) { 23573 const _resource : CallbackResource = this.readCallbackResource() 23574 const _call : KPointer = this.readPointer() 23575 const _callSync : KPointer = this.readPointer() 23576 return (event: CalendarSelectedDate):void => { 23577 const _argsSerializer : Serializer = Serializer.hold(); 23578 _argsSerializer.writeInt32(_resource.resourceId); 23579 _argsSerializer.writePointer(_call); 23580 _argsSerializer.writePointer(_callSync); 23581 _argsSerializer.writeCalendarSelectedDate(event); 23582 (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asBuffer(), _argsSerializer.length())); 23583 _argsSerializer.release(); 23584 return; } 23585 } 23586 readCalendarDay(): CalendarDay { 23587 let valueDeserializer : Deserializer = this 23588 const index_result : number = (valueDeserializer.readNumber() as number) 23589 const lunarMonth_result : string = (valueDeserializer.readString() as string) 23590 const lunarDay_result : string = (valueDeserializer.readString() as string) 23591 const dayMark_result : string = (valueDeserializer.readString() as string) 23592 const dayMarkValue_result : string = (valueDeserializer.readString() as string) 23593 const year_result : number = (valueDeserializer.readNumber() as number) 23594 const month_result : number = (valueDeserializer.readNumber() as number) 23595 const day_result : number = (valueDeserializer.readNumber() as number) 23596 const isFirstOfLunar_result : boolean = valueDeserializer.readBoolean() 23597 const hasSchedule_result : boolean = valueDeserializer.readBoolean() 23598 const markLunarDay_result : boolean = valueDeserializer.readBoolean() 23599 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) 23600 return value 23601 } 23602 readButtonOptions(): ButtonOptions { 23603 let valueDeserializer : Deserializer = this 23604 const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23605 let type_buf : ButtonType | undefined 23606 if ((RuntimeType.UNDEFINED) != (type_buf_runtimeType)) 23607 { 23608 type_buf = (valueDeserializer.readInt32() as ButtonType) 23609 } 23610 const type_result : ButtonType | undefined = type_buf 23611 const stateEffect_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23612 let stateEffect_buf : boolean | undefined 23613 if ((RuntimeType.UNDEFINED) != (stateEffect_buf_runtimeType)) 23614 { 23615 stateEffect_buf = valueDeserializer.readBoolean() 23616 } 23617 const stateEffect_result : boolean | undefined = stateEffect_buf 23618 const buttonStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23619 let buttonStyle_buf : ButtonStyleMode | undefined 23620 if ((RuntimeType.UNDEFINED) != (buttonStyle_buf_runtimeType)) 23621 { 23622 buttonStyle_buf = (valueDeserializer.readInt32() as ButtonStyleMode) 23623 } 23624 const buttonStyle_result : ButtonStyleMode | undefined = buttonStyle_buf 23625 const controlSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23626 let controlSize_buf : ControlSize | undefined 23627 if ((RuntimeType.UNDEFINED) != (controlSize_buf_runtimeType)) 23628 { 23629 controlSize_buf = TypeChecker.ControlSize_FromOrdinal(valueDeserializer.readInt32()) 23630 } 23631 const controlSize_result : ControlSize | undefined = controlSize_buf 23632 const role_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23633 let role_buf : ButtonRole | undefined 23634 if ((RuntimeType.UNDEFINED) != (role_buf_runtimeType)) 23635 { 23636 role_buf = (valueDeserializer.readInt32() as ButtonRole) 23637 } 23638 const role_result : ButtonRole | undefined = role_buf 23639 let value : ButtonOptions = ({type: type_result, stateEffect: stateEffect_result, buttonStyle: buttonStyle_result, controlSize: controlSize_result, role: role_result} as ButtonOptions) 23640 return value 23641 } 23642 readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { 23643 const _resource : CallbackResource = this.readCallbackResource() 23644 const _call : KPointer = this.readPointer() 23645 const _callSync : KPointer = this.readPointer() 23646 return (xPos: number, yPos: number):void => { 23647 const _argsSerializer : Serializer = Serializer.hold(); 23648 _argsSerializer.writeInt32(_resource.resourceId); 23649 _argsSerializer.writePointer(_call); 23650 _argsSerializer.writePointer(_callSync); 23651 _argsSerializer.writeNumber(xPos); 23652 _argsSerializer.writeNumber(yPos); 23653 (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asBuffer(), _argsSerializer.length())); 23654 _argsSerializer.release(); 23655 return; } 23656 } 23657 readBadgeParamWithString(): BadgeParamWithString { 23658 let valueDeserializer : Deserializer = this 23659 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23660 let position_buf : BadgePosition | Position | undefined 23661 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 23662 { 23663 const position_buf__selector : int32 = valueDeserializer.readInt8() 23664 let position_buf_ : BadgePosition | Position | undefined 23665 if (position_buf__selector == 0) { 23666 position_buf_ = (valueDeserializer.readInt32() as BadgePosition) 23667 } 23668 else if (position_buf__selector == 1) { 23669 position_buf_ = valueDeserializer.readPosition() 23670 } 23671 else { 23672 throw new Error("One of the branches for position_buf_ has to be chosen through deserialisation.") 23673 } 23674 position_buf = (position_buf_ as BadgePosition | Position) 23675 } 23676 const position_result : BadgePosition | Position | undefined = position_buf 23677 const style_result : BadgeStyle = valueDeserializer.readBadgeStyle() 23678 const value_result : string = (valueDeserializer.readString() as string) 23679 let value : BadgeParamWithString = ({position: position_result, style: style_result, value: value_result} as BadgeParamWithString) 23680 return value 23681 } 23682 readBadgeParamWithNumber(): BadgeParamWithNumber { 23683 let valueDeserializer : Deserializer = this 23684 const position_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23685 let position_buf : BadgePosition | Position | undefined 23686 if ((RuntimeType.UNDEFINED) != (position_buf_runtimeType)) 23687 { 23688 const position_buf__selector : int32 = valueDeserializer.readInt8() 23689 let position_buf_ : BadgePosition | Position | undefined 23690 if (position_buf__selector == 0) { 23691 position_buf_ = (valueDeserializer.readInt32() as BadgePosition) 23692 } 23693 else if (position_buf__selector == 1) { 23694 position_buf_ = valueDeserializer.readPosition() 23695 } 23696 else { 23697 throw new Error("One of the branches for position_buf_ has to be chosen through deserialisation.") 23698 } 23699 position_buf = (position_buf_ as BadgePosition | Position) 23700 } 23701 const position_result : BadgePosition | Position | undefined = position_buf 23702 const style_result : BadgeStyle = valueDeserializer.readBadgeStyle() 23703 const count_result : number = (valueDeserializer.readNumber() as number) 23704 const maxCount_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23705 let maxCount_buf : number | undefined 23706 if ((RuntimeType.UNDEFINED) != (maxCount_buf_runtimeType)) 23707 { 23708 maxCount_buf = (valueDeserializer.readNumber() as number) 23709 } 23710 const maxCount_result : number | undefined = maxCount_buf 23711 let value : BadgeParamWithNumber = ({position: position_result, style: style_result, count: count_result, maxCount: maxCount_result} as BadgeParamWithNumber) 23712 return value 23713 } 23714 readScrollMotion(): ScrollMotion { 23715 let valueDeserializer : Deserializer = this 23716 let ptr : KPointer = valueDeserializer.readPointer() 23717 return ScrollMotionInternal.fromPtr(ptr) 23718 } 23719 readFrictionMotion(): FrictionMotion { 23720 let valueDeserializer : Deserializer = this 23721 let ptr : KPointer = valueDeserializer.readPointer() 23722 return FrictionMotionInternal.fromPtr(ptr) 23723 } 23724 readSpringMotion(): SpringMotion { 23725 let valueDeserializer : Deserializer = this 23726 let ptr : KPointer = valueDeserializer.readPointer() 23727 return SpringMotionInternal.fromPtr(ptr) 23728 } 23729 readSpringProp(): SpringProp { 23730 let valueDeserializer : Deserializer = this 23731 let ptr : KPointer = valueDeserializer.readPointer() 23732 return SpringPropInternal.fromPtr(ptr) 23733 } 23734 readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { 23735 const _resource : CallbackResource = this.readCallbackResource() 23736 const _call : KPointer = this.readPointer() 23737 const _callSync : KPointer = this.readPointer() 23738 return (index: number):Array<string> => { 23739 const _argsSerializer : Serializer = Serializer.hold(); 23740 _argsSerializer.writeInt32(_resource.resourceId); 23741 _argsSerializer.writePointer(_call); 23742 _argsSerializer.writePointer(_callSync); 23743 _argsSerializer.writeNumber(index); 23744 let _continuationValue : Array<string> | undefined; 23745 const _continuationCallback : ((value: Array<string>) => void) = (value: Array<string>):void => { _continuationValue = value; } 23746 _argsSerializer.holdAndWriteCallback(_continuationCallback); 23747 (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asBuffer(), _argsSerializer.length())); 23748 _argsSerializer.release(); 23749 return (_continuationValue as Array<string>); } 23750 } 23751 readOnAlphabetIndexerPopupSelectCallback(isSync: boolean = false): OnAlphabetIndexerPopupSelectCallback { 23752 const _resource : CallbackResource = this.readCallbackResource() 23753 const _call : KPointer = this.readPointer() 23754 const _callSync : KPointer = this.readPointer() 23755 return (index: number):void => { 23756 const _argsSerializer : Serializer = Serializer.hold(); 23757 _argsSerializer.writeInt32(_resource.resourceId); 23758 _argsSerializer.writePointer(_call); 23759 _argsSerializer.writePointer(_callSync); 23760 _argsSerializer.writeNumber(index); 23761 (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asBuffer(), _argsSerializer.length())); 23762 _argsSerializer.release(); 23763 return; } 23764 } 23765 readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { 23766 const _resource : CallbackResource = this.readCallbackResource() 23767 const _call : KPointer = this.readPointer() 23768 const _callSync : KPointer = this.readPointer() 23769 return (index: number):void => { 23770 const _argsSerializer : Serializer = Serializer.hold(); 23771 _argsSerializer.writeInt32(_resource.resourceId); 23772 _argsSerializer.writePointer(_call); 23773 _argsSerializer.writePointer(_callSync); 23774 _argsSerializer.writeNumber(index); 23775 (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asBuffer(), _argsSerializer.length())); 23776 _argsSerializer.release(); 23777 return; } 23778 } 23779 readAlphabetIndexerOptions(): AlphabetIndexerOptions { 23780 let valueDeserializer : Deserializer = this 23781 const arrayValue_buf_length : int32 = valueDeserializer.readInt32() 23782 let arrayValue_buf : Array<string> = new Array<string>(arrayValue_buf_length) 23783 for (let arrayValue_buf_i = 0; arrayValue_buf_i < arrayValue_buf_length; arrayValue_buf_i++) { 23784 arrayValue_buf[arrayValue_buf_i] = (valueDeserializer.readString() as string) 23785 } 23786 const arrayValue_result : Array<string> = arrayValue_buf 23787 const selected_result : number = (valueDeserializer.readNumber() as number) 23788 let value : AlphabetIndexerOptions = ({arrayValue: arrayValue_result, selected: selected_result} as AlphabetIndexerOptions) 23789 return value 23790 } 23791 readAlertDialogButtonOptions(): AlertDialogButtonOptions { 23792 let valueDeserializer : Deserializer = this 23793 const enabled_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23794 let enabled_buf : boolean | undefined 23795 if ((RuntimeType.UNDEFINED) != (enabled_buf_runtimeType)) 23796 { 23797 enabled_buf = valueDeserializer.readBoolean() 23798 } 23799 const enabled_result : boolean | undefined = enabled_buf 23800 const defaultFocus_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23801 let defaultFocus_buf : boolean | undefined 23802 if ((RuntimeType.UNDEFINED) != (defaultFocus_buf_runtimeType)) 23803 { 23804 defaultFocus_buf = valueDeserializer.readBoolean() 23805 } 23806 const defaultFocus_result : boolean | undefined = defaultFocus_buf 23807 const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23808 let style_buf : DialogButtonStyle | undefined 23809 if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) 23810 { 23811 style_buf = (valueDeserializer.readInt32() as DialogButtonStyle) 23812 } 23813 const style_result : DialogButtonStyle | undefined = style_buf 23814 const value_buf_selector : int32 = valueDeserializer.readInt8() 23815 let value_buf : string | Resource | undefined 23816 if (value_buf_selector == 0) { 23817 value_buf = (valueDeserializer.readString() as string) 23818 } 23819 else if (value_buf_selector == 1) { 23820 value_buf = valueDeserializer.readResource() 23821 } 23822 else { 23823 throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") 23824 } 23825 const value_result : ResourceStr = (value_buf as string | Resource) 23826 const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23827 let fontColor_buf : ResourceColor | undefined 23828 if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) 23829 { 23830 const fontColor_buf__selector : int32 = valueDeserializer.readInt8() 23831 let fontColor_buf_ : Color | number | string | Resource | undefined 23832 if (fontColor_buf__selector == 0) { 23833 fontColor_buf_ = (valueDeserializer.readInt32() as Color) 23834 } 23835 else if (fontColor_buf__selector == 1) { 23836 fontColor_buf_ = (valueDeserializer.readNumber() as number) 23837 } 23838 else if (fontColor_buf__selector == 2) { 23839 fontColor_buf_ = (valueDeserializer.readString() as string) 23840 } 23841 else if (fontColor_buf__selector == 3) { 23842 fontColor_buf_ = valueDeserializer.readResource() 23843 } 23844 else { 23845 throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") 23846 } 23847 fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) 23848 } 23849 const fontColor_result : ResourceColor | undefined = fontColor_buf 23850 const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23851 let backgroundColor_buf : ResourceColor | undefined 23852 if ((RuntimeType.UNDEFINED) != (backgroundColor_buf_runtimeType)) 23853 { 23854 const backgroundColor_buf__selector : int32 = valueDeserializer.readInt8() 23855 let backgroundColor_buf_ : Color | number | string | Resource | undefined 23856 if (backgroundColor_buf__selector == 0) { 23857 backgroundColor_buf_ = (valueDeserializer.readInt32() as Color) 23858 } 23859 else if (backgroundColor_buf__selector == 1) { 23860 backgroundColor_buf_ = (valueDeserializer.readNumber() as number) 23861 } 23862 else if (backgroundColor_buf__selector == 2) { 23863 backgroundColor_buf_ = (valueDeserializer.readString() as string) 23864 } 23865 else if (backgroundColor_buf__selector == 3) { 23866 backgroundColor_buf_ = valueDeserializer.readResource() 23867 } 23868 else { 23869 throw new Error("One of the branches for backgroundColor_buf_ has to be chosen through deserialisation.") 23870 } 23871 backgroundColor_buf = (backgroundColor_buf_ as Color | number | string | Resource) 23872 } 23873 const backgroundColor_result : ResourceColor | undefined = backgroundColor_buf 23874 const action_result : VoidCallback = valueDeserializer.readVoidCallback() 23875 const primary_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23876 let primary_buf : boolean | undefined 23877 if ((RuntimeType.UNDEFINED) != (primary_buf_runtimeType)) 23878 { 23879 primary_buf = valueDeserializer.readBoolean() 23880 } 23881 const primary_result : boolean | undefined = primary_buf 23882 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) 23883 return value 23884 } 23885 readSheetInfo(): SheetInfo { 23886 let valueDeserializer : Deserializer = this 23887 const title_buf_selector : int32 = valueDeserializer.readInt8() 23888 let title_buf : string | Resource | undefined 23889 if (title_buf_selector == 0) { 23890 title_buf = (valueDeserializer.readString() as string) 23891 } 23892 else if (title_buf_selector == 1) { 23893 title_buf = valueDeserializer.readResource() 23894 } 23895 else { 23896 throw new Error("One of the branches for title_buf has to be chosen through deserialisation.") 23897 } 23898 const title_result : string | Resource = (title_buf as string | Resource) 23899 const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23900 let icon_buf : string | Resource | undefined 23901 if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) 23902 { 23903 const icon_buf__selector : int32 = valueDeserializer.readInt8() 23904 let icon_buf_ : string | Resource | undefined 23905 if (icon_buf__selector == 0) { 23906 icon_buf_ = (valueDeserializer.readString() as string) 23907 } 23908 else if (icon_buf__selector == 1) { 23909 icon_buf_ = valueDeserializer.readResource() 23910 } 23911 else { 23912 throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") 23913 } 23914 icon_buf = (icon_buf_ as string | Resource) 23915 } 23916 const icon_result : string | Resource | undefined = icon_buf 23917 const action_result : VoidCallback = valueDeserializer.readVoidCallback() 23918 let value : SheetInfo = ({title: title_result, icon: icon_result, action: action_result} as SheetInfo) 23919 return value 23920 } 23921 readDismissDialogAction(): DismissDialogAction { 23922 let valueDeserializer : Deserializer = this 23923 const dismiss_result : (() => void) = valueDeserializer.readCallback_Void() 23924 const reason_result : DismissReason = (valueDeserializer.readInt32() as DismissReason) 23925 let value : DismissDialogAction = ({dismiss: dismiss_result, reason: reason_result} as DismissDialogAction) 23926 return value 23927 } 23928 readReplaceSymbolEffect(): ReplaceSymbolEffect { 23929 let valueDeserializer : Deserializer = this 23930 let ptr : KPointer = valueDeserializer.readPointer() 23931 return ReplaceSymbolEffectInternal.fromPtr(ptr) 23932 } 23933 readScaleSymbolEffect(): ScaleSymbolEffect { 23934 let valueDeserializer : Deserializer = this 23935 let ptr : KPointer = valueDeserializer.readPointer() 23936 return ScaleSymbolEffectInternal.fromPtr(ptr) 23937 } 23938 readPathShapeOptions(): PathShapeOptions { 23939 let valueDeserializer : Deserializer = this 23940 const commands_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23941 let commands_buf : string | undefined 23942 if ((RuntimeType.UNDEFINED) != (commands_buf_runtimeType)) 23943 { 23944 commands_buf = (valueDeserializer.readString() as string) 23945 } 23946 const commands_result : string | undefined = commands_buf 23947 let value : PathShapeOptions = ({commands: commands_result} as PathShapeOptions) 23948 return value 23949 } 23950 readShapeSize(): ShapeSize { 23951 let valueDeserializer : Deserializer = this 23952 const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23953 let width_buf : number | string | undefined 23954 if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) 23955 { 23956 const width_buf__selector : int32 = valueDeserializer.readInt8() 23957 let width_buf_ : number | string | undefined 23958 if (width_buf__selector == 0) { 23959 width_buf_ = (valueDeserializer.readNumber() as number) 23960 } 23961 else if (width_buf__selector == 1) { 23962 width_buf_ = (valueDeserializer.readString() as string) 23963 } 23964 else { 23965 throw new Error("One of the branches for width_buf_ has to be chosen through deserialisation.") 23966 } 23967 width_buf = (width_buf_ as number | string) 23968 } 23969 const width_result : number | string | undefined = width_buf 23970 const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23971 let height_buf : number | string | undefined 23972 if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) 23973 { 23974 const height_buf__selector : int32 = valueDeserializer.readInt8() 23975 let height_buf_ : number | string | undefined 23976 if (height_buf__selector == 0) { 23977 height_buf_ = (valueDeserializer.readNumber() as number) 23978 } 23979 else if (height_buf__selector == 1) { 23980 height_buf_ = (valueDeserializer.readString() as string) 23981 } 23982 else { 23983 throw new Error("One of the branches for height_buf_ has to be chosen through deserialisation.") 23984 } 23985 height_buf = (height_buf_ as number | string) 23986 } 23987 const height_result : number | string | undefined = height_buf 23988 let value : ShapeSize = ({width: width_result, height: height_result} as ShapeSize) 23989 return value 23990 } 23991 readBusinessError(): BusinessError { 23992 let valueDeserializer : Deserializer = this 23993 const name_result : string = (valueDeserializer.readString() as string) 23994 const message_result : string = (valueDeserializer.readString() as string) 23995 const stack_buf_runtimeType = (valueDeserializer.readInt8() as int32) 23996 let stack_buf : string | undefined 23997 if ((RuntimeType.UNDEFINED) != (stack_buf_runtimeType)) 23998 { 23999 stack_buf = (valueDeserializer.readString() as string) 24000 } 24001 const stack_result : string | undefined = stack_buf 24002 const code_result : number = (valueDeserializer.readNumber() as number) 24003 let value : BusinessError = ({name: name_result, message: message_result, stack: stack_result, code: code_result} as BusinessError) 24004 return value 24005 } 24006 readErrorCallback(isSync: boolean = false): ErrorCallback { 24007 const _resource : CallbackResource = this.readCallbackResource() 24008 const _call : KPointer = this.readPointer() 24009 const _callSync : KPointer = this.readPointer() 24010 return (err: BusinessError):void => { 24011 const _argsSerializer : Serializer = Serializer.hold(); 24012 _argsSerializer.writeInt32(_resource.resourceId); 24013 _argsSerializer.writePointer(_call); 24014 _argsSerializer.writePointer(_callSync); 24015 _argsSerializer.writeBusinessError(err); 24016 (isSync) ? (InteropNativeModule._CallCallbackSync(-1936519453, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1936519453, _argsSerializer.asBuffer(), _argsSerializer.length())); 24017 _argsSerializer.release(); 24018 return; } 24019 } 24020 readWebHeader(): WebHeader { 24021 let valueDeserializer : Deserializer = this 24022 const headerKey_result : string = (valueDeserializer.readString() as string) 24023 const headerValue_result : string = (valueDeserializer.readString() as string) 24024 let value : WebHeader = ({headerKey: headerKey_result, headerValue: headerValue_result} as WebHeader) 24025 return value 24026 } 24027 readAnimationOptions(): AnimationOptions { 24028 let valueDeserializer : Deserializer = this 24029 const duration_buf_runtimeType = (valueDeserializer.readInt8() as int32) 24030 let duration_buf : number | undefined 24031 if ((RuntimeType.UNDEFINED) != (duration_buf_runtimeType)) 24032 { 24033 duration_buf = (valueDeserializer.readNumber() as number) 24034 } 24035 const duration_result : number | undefined = duration_buf 24036 const iterations_buf_runtimeType = (valueDeserializer.readInt8() as int32) 24037 let iterations_buf : number | undefined 24038 if ((RuntimeType.UNDEFINED) != (iterations_buf_runtimeType)) 24039 { 24040 iterations_buf = (valueDeserializer.readNumber() as number) 24041 } 24042 const iterations_result : number | undefined = iterations_buf 24043 let value : AnimationOptions = ({duration: duration_result, iterations: iterations_result} as AnimationOptions) 24044 return value 24045 } 24046 readAnimatedDrawableDescriptor(): AnimatedDrawableDescriptor { 24047 let valueDeserializer : Deserializer = this 24048 let ptr : KPointer = valueDeserializer.readPointer() 24049 return AnimatedDrawableDescriptorInternal.fromPtr(ptr) 24050 } 24051 readPixelMapDrawableDescriptor(): PixelMapDrawableDescriptor { 24052 let valueDeserializer : Deserializer = this 24053 let ptr : KPointer = valueDeserializer.readPointer() 24054 return PixelMapDrawableDescriptorInternal.fromPtr(ptr) 24055 } 24056 readLayeredDrawableDescriptor(): LayeredDrawableDescriptor { 24057 let valueDeserializer : Deserializer = this 24058 let ptr : KPointer = valueDeserializer.readPointer() 24059 return LayeredDrawableDescriptorInternal.fromPtr(ptr) 24060 } 24061 readLength(): Length | undefined { 24062 const valueType = this.readInt8() 24063 if ((RuntimeType.NUMBER) == (valueType)) { 24064 return this.readFloat32() as number 24065 } 24066 else if ((RuntimeType.STRING) == (valueType)) { 24067 return this.readString() 24068 } 24069 else if ((RuntimeType.OBJECT) == (valueType)) { 24070 return ({id: this.readInt32(), bundleName: "", moduleName: ""}) as Resource 24071 } 24072 else { 24073 return undefined 24074 } 24075 } 24076} 24077