@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +72 -2
- package/bin/build-dist.mjs +145 -0
- package/bin/ns-compiled-adapter.js +46 -0
- package/bin/ns-compiled-doctor.js +15 -0
- package/bin/ns-compiled-retrace.js +16 -0
- package/bin/ns-compiled-verify.js +15 -0
- package/bin/ns-compiled.js +26 -0
- package/bin/strip-types.js +18 -0
- package/config.d.ts +41 -0
- package/dist/adapters/active.js +59 -0
- package/dist/adapters/first-party.js +12 -0
- package/dist/adapters/framework.js +135 -0
- package/dist/adapters/hooks.js +115 -0
- package/dist/adapters/load.js +188 -0
- package/dist/api/adapter-api.js +2 -0
- package/dist/api/binding-api.js +11 -0
- package/dist/api/elements.js +21 -0
- package/dist/api/ir.js +35 -0
- package/dist/api/listview.js +27 -0
- package/dist/api/rewrite.js +98 -0
- package/dist/api/typescript-internal.d.ts +35 -0
- package/dist/cli/commands/compile-android.cjs +79 -0
- package/dist/cli/commands/compile-doctor.cjs +45 -0
- package/dist/cli/commands/compile-ios.cjs +77 -0
- package/dist/cli/commands/compile-retrace.cjs +40 -0
- package/dist/cli/commands/compile-verify.cjs +73 -0
- package/dist/cli/contracts.cjs +36 -0
- package/dist/cli/runtime.cjs +166 -0
- package/dist/css/css.js +118 -0
- package/dist/css/worker.js +242 -0
- package/dist/driver/cli.js +97 -0
- package/dist/driver/compile.js +583 -0
- package/dist/driver/contract.js +136 -0
- package/dist/driver/mirror.js +71 -0
- package/dist/driver/paths.js +19 -0
- package/dist/driver/preflight.js +206 -0
- package/dist/driver/toolchain.js +46 -0
- package/dist/driver/unimplemented.js +341 -0
- package/dist/kit/core-source.js +107 -0
- package/dist/kit/kit-index.js +105 -0
- package/dist/kit/manifest.js +468 -0
- package/dist/kit/overlay.js +56 -0
- package/dist/kit/swift-declarations.js +643 -0
- package/dist/kotlin/access.js +653 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +403 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +571 -0
- package/dist/kotlin/calls.js +523 -0
- package/dist/kotlin/checked.js +61 -0
- package/dist/kotlin/class-accessors.js +129 -0
- package/dist/kotlin/class-constructor.js +129 -0
- package/dist/kotlin/class-declaration.js +337 -0
- package/dist/kotlin/class-fields.js +362 -0
- package/dist/kotlin/class-methods.js +219 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +455 -0
- package/dist/kotlin/construction.js +235 -0
- package/dist/kotlin/control-flow.js +188 -0
- package/dist/kotlin/conversion.js +513 -0
- package/dist/kotlin/core-api.js +751 -0
- package/dist/kotlin/core-index.js +228 -0
- package/dist/kotlin/declarations.js +463 -0
- package/dist/kotlin/diagnostics.js +28 -0
- package/dist/kotlin/expression-statements.js +228 -0
- package/dist/kotlin/expressions.js +468 -0
- package/dist/kotlin/functions.js +488 -0
- package/dist/kotlin/global-calls.js +318 -0
- package/dist/kotlin/install.js +89 -0
- package/dist/kotlin/key-plans.js +117 -0
- package/dist/kotlin/kit-gen.js +581 -0
- package/dist/kotlin/ktfmt.js +60 -0
- package/dist/kotlin/library.js +62 -0
- package/dist/kotlin/literals.js +639 -0
- package/dist/kotlin/loops.js +185 -0
- package/dist/kotlin/mixins.js +103 -0
- package/dist/kotlin/modules.js +769 -0
- package/dist/kotlin/names.js +273 -0
- package/dist/kotlin/narrowing.js +180 -0
- package/dist/kotlin/native/api.js +125 -0
- package/dist/kotlin/native/bridging.js +254 -0
- package/dist/kotlin/native/calls.js +408 -0
- package/dist/kotlin/native/classfiles.js +524 -0
- package/dist/kotlin/native/classpath.js +32 -0
- package/dist/kotlin/native/conversions.js +280 -0
- package/dist/kotlin/native/extend.js +302 -0
- package/dist/kotlin/native/members.js +240 -0
- package/dist/kotlin/native/overloads.js +253 -0
- package/dist/kotlin/native/subclasses.js +379 -0
- package/dist/kotlin/native/types.js +424 -0
- package/dist/kotlin/operators.js +452 -0
- package/dist/kotlin/optional-chains.js +279 -0
- package/dist/kotlin/overrides.js +835 -0
- package/dist/kotlin/placement.js +749 -0
- package/dist/kotlin/prototype-calls.js +159 -0
- package/dist/kotlin/render.js +425 -0
- package/dist/kotlin/state-backend.js +123 -0
- package/dist/kotlin/statements.js +435 -0
- package/dist/kotlin/static-calls.js +297 -0
- package/dist/kotlin/syntax.js +689 -0
- package/dist/kotlin/translator-types.js +1 -0
- package/dist/kotlin/translator.js +810 -0
- package/dist/kotlin/type-facts.js +414 -0
- package/dist/kotlin/type-tests.js +250 -0
- package/dist/kotlin/types.js +662 -0
- package/dist/kotlin/untyped-values.js +356 -0
- package/dist/plugins/bindings-android.js +69 -0
- package/dist/plugins/bindings.js +93 -0
- package/dist/plugins/native-android.js +586 -0
- package/dist/plugins/native-ios.js +634 -0
- package/dist/plugins/resolve.js +108 -0
- package/dist/plugins/source.js +1174 -0
- package/dist/program/app-modules.js +127 -0
- package/dist/program/app-paths.js +128 -0
- package/dist/program/build-caches.js +14 -0
- package/dist/program/build-context.js +48 -0
- package/dist/program/class-mixins.js +463 -0
- package/dist/program/constructor-factories.js +134 -0
- package/dist/program/core-facts.js +158 -0
- package/dist/program/core-patches.js +59 -0
- package/dist/program/env.js +4 -0
- package/dist/program/glob.js +274 -0
- package/dist/program/module-order.js +123 -0
- package/dist/program/order.js +23 -0
- package/dist/program/patterns.js +99 -0
- package/dist/program/platform.js +429 -0
- package/dist/program/program.js +918 -0
- package/dist/program/properties.js +61 -0
- package/dist/program/reach.js +444 -0
- package/dist/program/source-lines.js +271 -0
- package/dist/program/stable-names.js +112 -0
- package/dist/program/vite-plugins.js +144 -0
- package/dist/semantics/apis/api.js +31 -0
- package/dist/semantics/apis/array.js +69 -0
- package/dist/semantics/apis/bigint.js +53 -0
- package/dist/semantics/apis/console.js +29 -0
- package/dist/semantics/apis/date.js +7 -0
- package/dist/semantics/apis/globals.js +40 -0
- package/dist/semantics/apis/json.js +6 -0
- package/dist/semantics/apis/mapset.js +21 -0
- package/dist/semantics/apis/math.js +48 -0
- package/dist/semantics/apis/number.js +33 -0
- package/dist/semantics/apis/object.js +26 -0
- package/dist/semantics/apis/operators.js +316 -0
- package/dist/semantics/apis/promise.js +22 -0
- package/dist/semantics/apis/regexp.js +15 -0
- package/dist/semantics/apis/statics.js +67 -0
- package/dist/semantics/apis/string.js +45 -0
- package/dist/semantics/ast.js +333 -0
- package/dist/semantics/async.js +582 -0
- package/dist/semantics/class-plan.js +168 -0
- package/dist/semantics/classes.js +597 -0
- package/dist/semantics/config.js +29 -0
- package/dist/semantics/constant-init.js +107 -0
- package/dist/semantics/conversion.js +255 -0
- package/dist/semantics/decision-trace.js +304 -0
- package/dist/semantics/facts.js +433 -0
- package/dist/semantics/forms/by-name.js +338 -0
- package/dist/semantics/forms/flow.js +336 -0
- package/dist/semantics/forms/forms.js +311 -0
- package/dist/semantics/forms/observers.js +513 -0
- package/dist/semantics/forms/open.js +218 -0
- package/dist/semantics/forms/place-calls.js +387 -0
- package/dist/semantics/forms/placements.js +296 -0
- package/dist/semantics/forms/results.js +307 -0
- package/dist/semantics/forms/union-find.js +157 -0
- package/dist/semantics/globals.js +49 -0
- package/dist/semantics/lang/arrays.js +238 -0
- package/dist/semantics/lang/fields.js +211 -0
- package/dist/semantics/lang/members.js +277 -0
- package/dist/semantics/lang/prototypes.js +262 -0
- package/dist/semantics/lang/this-args.js +189 -0
- package/dist/semantics/lang.js +244 -0
- package/dist/semantics/ledger.js +157 -0
- package/dist/semantics/limits.js +11 -0
- package/dist/semantics/losses.js +201 -0
- package/dist/semantics/lowering-methods.js +42 -0
- package/dist/semantics/marks.js +39 -0
- package/dist/semantics/nullish.js +936 -0
- package/dist/semantics/observers.js +1 -0
- package/dist/semantics/placement.js +698 -0
- package/dist/semantics/platform-globals.js +20 -0
- package/dist/semantics/read-sites.js +29 -0
- package/dist/semantics/refusals.js +206 -0
- package/dist/semantics/refuse-construction.js +64 -0
- package/dist/semantics/refuse-receivers.js +189 -0
- package/dist/semantics/refuse-scope.js +77 -0
- package/dist/semantics/regexp.js +219 -0
- package/dist/semantics/result-shapes.js +203 -0
- package/dist/semantics/runtime.js +483 -0
- package/dist/semantics/shape-defined-keys.js +146 -0
- package/dist/semantics/shape-instance-keys.js +230 -0
- package/dist/semantics/shape-map.js +72 -0
- package/dist/semantics/shapes.js +660 -0
- package/dist/semantics/sharing.js +406 -0
- package/dist/semantics/signals.js +166 -0
- package/dist/semantics/spelled.js +45 -0
- package/dist/semantics/states/by-name.js +46 -0
- package/dist/semantics/states/elements.js +310 -0
- package/dist/semantics/states/fields.js +308 -0
- package/dist/semantics/states/foreign.js +208 -0
- package/dist/semantics/states/lenient.js +246 -0
- package/dist/semantics/states/missing.js +289 -0
- package/dist/semantics/states/nil.js +223 -0
- package/dist/semantics/states/parameters.js +191 -0
- package/dist/semantics/states/predicates.js +232 -0
- package/dist/semantics/states/reads.js +247 -0
- package/dist/semantics/states/results.js +113 -0
- package/dist/semantics/states/untrusted.js +141 -0
- package/dist/semantics/states/untyped.js +194 -0
- package/dist/semantics/states/value-states.js +422 -0
- package/dist/semantics/tdz.js +106 -0
- package/dist/semantics/threading.js +77 -0
- package/dist/semantics/throws.js +881 -0
- package/dist/semantics/top-names.js +59 -0
- package/dist/semantics/translator-methods.js +602 -0
- package/dist/semantics/trust.js +321 -0
- package/dist/semantics/type-methods.js +168 -0
- package/dist/semantics/type-step.js +116 -0
- package/dist/semantics/types.js +478 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +769 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +245 -0
- package/dist/swift/assignment.js +281 -0
- package/dist/swift/availability.js +146 -0
- package/dist/swift/builtins.js +818 -0
- package/dist/swift/calls.js +497 -0
- package/dist/swift/casts.js +218 -0
- package/dist/swift/checked.js +433 -0
- package/dist/swift/class-accessors.js +139 -0
- package/dist/swift/class-constructor.js +144 -0
- package/dist/swift/class-declaration.js +308 -0
- package/dist/swift/class-fields.js +361 -0
- package/dist/swift/class-methods.js +247 -0
- package/dist/swift/classes.js +524 -0
- package/dist/swift/components.js +406 -0
- package/dist/swift/construction.js +295 -0
- package/dist/swift/control-flow.js +210 -0
- package/dist/swift/conversion.js +425 -0
- package/dist/swift/core-api.js +1065 -0
- package/dist/swift/declarations.js +389 -0
- package/dist/swift/enums.js +58 -0
- package/dist/swift/expression-statements.js +312 -0
- package/dist/swift/expressions.js +575 -0
- package/dist/swift/from-any.js +316 -0
- package/dist/swift/functions.js +509 -0
- package/dist/swift/generics.js +128 -0
- package/dist/swift/global-calls.js +219 -0
- package/dist/swift/install.js +109 -0
- package/dist/swift/key-plans.js +136 -0
- package/dist/swift/kit-gen.js +605 -0
- package/dist/swift/lenient.js +468 -0
- package/dist/swift/library.js +109 -0
- package/dist/swift/literals.js +556 -0
- package/dist/swift/loops.js +245 -0
- package/dist/swift/marks.js +212 -0
- package/dist/swift/members.js +253 -0
- package/dist/swift/method-values.js +179 -0
- package/dist/swift/mixins.js +113 -0
- package/dist/swift/modules.js +969 -0
- package/dist/swift/names.js +370 -0
- package/dist/swift/narrowing.js +170 -0
- package/dist/swift/native/api.js +269 -0
- package/dist/swift/native/bridging.js +240 -0
- package/dist/swift/native/calls.js +586 -0
- package/dist/swift/native/conversions.js +532 -0
- package/dist/swift/native/dispatch.js +218 -0
- package/dist/swift/native/members.js +416 -0
- package/dist/swift/native/sdk-tables.js +820 -0
- package/dist/swift/native/sdk-types.js +1 -0
- package/dist/swift/native/sdk.js +417 -0
- package/dist/swift/native/subclasses.js +533 -0
- package/dist/swift/object-classes.js +396 -0
- package/dist/swift/operators.js +578 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +213 -0
- package/dist/swift/placement.js +941 -0
- package/dist/swift/protocols.js +164 -0
- package/dist/swift/prototype-calls.js +242 -0
- package/dist/swift/render.js +449 -0
- package/dist/swift/results.js +370 -0
- package/dist/swift/state-backend.js +243 -0
- package/dist/swift/statements.js +514 -0
- package/dist/swift/static-calls.js +325 -0
- package/dist/swift/syntax.js +916 -0
- package/dist/swift/translator-types.js +1 -0
- package/dist/swift/translator.js +890 -0
- package/dist/swift/type-facts.js +530 -0
- package/dist/swift/type-tests.js +211 -0
- package/dist/swift/types.js +665 -0
- package/dist/targets/android/build.js +602 -0
- package/dist/targets/android/compose-mapping.js +218 -0
- package/dist/targets/android/deprecations.js +81 -0
- package/dist/targets/android/resources.js +80 -0
- package/dist/targets/ios/build.js +584 -0
- package/dist/targets/ios/core-native.js +149 -0
- package/dist/targets/ios/dependencies.js +476 -0
- package/dist/targets/ios/plist.js +127 -0
- package/dist/targets/ios/resources.js +285 -0
- package/dist/targets/ios/retrace.js +196 -0
- package/dist/targets/ios/signing.js +84 -0
- package/dist/targets/ios/xcodegen.js +39 -0
- package/dist/targets/resources.js +194 -0
- package/dist/template/model.js +38 -0
- package/dist/template/plan.js +673 -0
- package/dist/tools/doctor.js +172 -0
- package/dist/tools/retrace.js +116 -0
- package/dist/tools/verify.js +330 -0
- package/dist/types/adapter-api.d.ts +696 -0
- package/dist/types/binding-api.d.ts +48 -0
- package/dist/types/elements.d.ts +10 -0
- package/dist/types/ir.d.ts +292 -0
- package/dist/types/listview.d.ts +15 -0
- package/dist/types/rewrite.d.ts +18 -0
- package/dist/types/typescript-internal.d.ts +35 -0
- package/dist/xml/app.js +65 -0
- package/dist/xml/bindings.js +308 -0
- package/dist/xml/contexts.js +296 -0
- package/dist/xml/fold.js +170 -0
- package/dist/xml/keys.js +146 -0
- package/dist/xml/pages.js +550 -0
- package/dist/xml/plan.js +650 -0
- package/docs/CLI.md +131 -0
- package/docs/cli/compile-android.md +30 -0
- package/docs/cli/compile-doctor.md +18 -0
- package/docs/cli/compile-ios.md +30 -0
- package/docs/cli/compile-retrace.md +18 -0
- package/docs/cli/compile-verify.md +18 -0
- package/docs/cli/compile.md +15 -0
- package/kit-android/build.gradle.kts +65 -0
- package/kit-android/consumer-rules.pro +7 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +32114 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
- package/kit-android/generated/manifest.json +860 -0
- package/kit-android/generated/source-lines.json +1 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/kit-android/gradlew +240 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
- package/kit-android/overlays/xml-free/overlay.json +20 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +368 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +689 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +702 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +526 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +318 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1263 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
- package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
- package/kit-apple/Overlays/xml-free/overlay.json +34 -0
- package/kit-apple/Package.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
- package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6403 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4432 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_fa18e1.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +203 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +325 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
- package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30598 -0
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3382 -0
- package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
- package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4345 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3235 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1047 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
- package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +454 -0
- package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
- package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1693 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +474 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +372 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +762 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +799 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +597 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +496 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +582 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2069 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
- package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
- package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
- package/package.json +94 -4
- package/verify/ui-driver/Host/App.swift +7 -0
- package/verify/ui-driver/Tests/Driver.swift +54 -0
- package/verify/ui-driver/project.yml +35 -0
|
@@ -0,0 +1,2656 @@
|
|
|
1
|
+
// Generated from @nativescript/core by tools/kit: edit core, not this file.
|
|
2
|
+
// Uses android.inputmethodservice.Keyboard, deprecated in Android, on purpose: Kotlin reports a
|
|
3
|
+
// class at its import, which only the file can suppress.
|
|
4
|
+
@file:Suppress("DEPRECATION")
|
|
5
|
+
|
|
6
|
+
package org.nativescript.kit
|
|
7
|
+
|
|
8
|
+
import android.app.Activity
|
|
9
|
+
import android.app.Application as android_app_Application
|
|
10
|
+
import android.content.BroadcastReceiver as android_content_BroadcastReceiver
|
|
11
|
+
import android.content.ComponentCallbacks2
|
|
12
|
+
import android.content.ComponentName
|
|
13
|
+
import android.content.Context
|
|
14
|
+
import android.content.Intent
|
|
15
|
+
import android.content.IntentFilter
|
|
16
|
+
import android.content.res.Configuration
|
|
17
|
+
import android.inputmethodservice.Keyboard
|
|
18
|
+
import android.view.View as android_view_View
|
|
19
|
+
import android.view.accessibility.AccessibilityEvent
|
|
20
|
+
import android.view.accessibility.AccessibilityManager
|
|
21
|
+
import android.view.accessibility.AccessibilityNodeInfo
|
|
22
|
+
import android.widget.Button as android_widget_Button
|
|
23
|
+
import android.widget.CheckBox
|
|
24
|
+
import android.widget.EditText
|
|
25
|
+
import android.widget.ImageButton
|
|
26
|
+
import android.widget.ImageView
|
|
27
|
+
import android.widget.ProgressBar
|
|
28
|
+
import android.widget.RadioButton
|
|
29
|
+
import android.widget.SeekBar
|
|
30
|
+
import android.widget.Spinner
|
|
31
|
+
import android.widget.Switch as android_widget_Switch
|
|
32
|
+
import android.widget.TextView as android_widget_TextView
|
|
33
|
+
import androidx.annotation.AnyThread
|
|
34
|
+
import androidx.annotation.UiThread
|
|
35
|
+
import androidx.appcompat.app.AppCompatActivity
|
|
36
|
+
|
|
37
|
+
@UiThread
|
|
38
|
+
class BroadcastReceiverImpl : android_content_BroadcastReceiver {
|
|
39
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
40
|
+
lateinit var _onReceiveCallback: (Context, Intent) -> Unit
|
|
41
|
+
|
|
42
|
+
constructor(onReceiveCallback: (Context, Intent) -> Unit) : super() {
|
|
43
|
+
this._onReceiveCallback = onReceiveCallback
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@AnyThread
|
|
47
|
+
override fun onReceive(context: Context?, intent: Intent?) {
|
|
48
|
+
jsElsewhere(__realm)?.let {
|
|
49
|
+
return it.later { this.onReceive(context, intent) }
|
|
50
|
+
}
|
|
51
|
+
jsReport {
|
|
52
|
+
jsOnMainThread {
|
|
53
|
+
if (jsTruthy(this._onReceiveCallback)) {
|
|
54
|
+
this._onReceiveCallback(
|
|
55
|
+
(context ?: jsObjectRequired()),
|
|
56
|
+
(intent ?: jsObjectRequired()),
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@UiThread
|
|
65
|
+
open class AndroidApplication : ApplicationCommon {
|
|
66
|
+
init {
|
|
67
|
+
if (jsMade != null)
|
|
68
|
+
jsMadeLevel(
|
|
69
|
+
this,
|
|
70
|
+
listOf(
|
|
71
|
+
"activityCreatedEvent",
|
|
72
|
+
"activityDestroyedEvent",
|
|
73
|
+
"activityStartedEvent",
|
|
74
|
+
"activityPausedEvent",
|
|
75
|
+
"activityResumedEvent",
|
|
76
|
+
"activityStoppedEvent",
|
|
77
|
+
"saveActivityStateEvent",
|
|
78
|
+
"activityResultEvent",
|
|
79
|
+
"activityBackPressedEvent",
|
|
80
|
+
"activityNewIntentEvent",
|
|
81
|
+
"activityRequestPermissionsEvent",
|
|
82
|
+
"_activeWindows",
|
|
83
|
+
"_registeredReceivers",
|
|
84
|
+
"_registeredReceiversById",
|
|
85
|
+
"_nextReceiverId",
|
|
86
|
+
"_pendingReceiverRegistrations",
|
|
87
|
+
"edgeToEdgeAppearance",
|
|
88
|
+
),
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@JvmField
|
|
93
|
+
var activityCreatedEvent: String = org.nativescript.kit.AndroidApplication.activityCreatedEvent
|
|
94
|
+
@JvmField
|
|
95
|
+
var activityDestroyedEvent: String =
|
|
96
|
+
org.nativescript.kit.AndroidApplication.activityDestroyedEvent
|
|
97
|
+
@JvmField
|
|
98
|
+
var activityStartedEvent: String = org.nativescript.kit.AndroidApplication.activityStartedEvent
|
|
99
|
+
@JvmField
|
|
100
|
+
var activityPausedEvent: String = org.nativescript.kit.AndroidApplication.activityPausedEvent
|
|
101
|
+
@JvmField
|
|
102
|
+
var activityResumedEvent: String = org.nativescript.kit.AndroidApplication.activityResumedEvent
|
|
103
|
+
@JvmField
|
|
104
|
+
var activityStoppedEvent: String = org.nativescript.kit.AndroidApplication.activityStoppedEvent
|
|
105
|
+
@JvmField
|
|
106
|
+
var saveActivityStateEvent: String =
|
|
107
|
+
org.nativescript.kit.AndroidApplication.saveActivityStateEvent
|
|
108
|
+
@JvmField
|
|
109
|
+
var activityResultEvent: String = org.nativescript.kit.AndroidApplication.activityResultEvent
|
|
110
|
+
@JvmField
|
|
111
|
+
var activityBackPressedEvent: String =
|
|
112
|
+
org.nativescript.kit.AndroidApplication.activityBackPressedEvent
|
|
113
|
+
@JvmField
|
|
114
|
+
var activityNewIntentEvent: String =
|
|
115
|
+
org.nativescript.kit.AndroidApplication.activityNewIntentEvent
|
|
116
|
+
@JvmField
|
|
117
|
+
var activityRequestPermissionsEvent: String =
|
|
118
|
+
org.nativescript.kit.AndroidApplication.activityRequestPermissionsEvent
|
|
119
|
+
@get:JvmName("__get__nativeApp")
|
|
120
|
+
@set:JvmName("__set__nativeApp")
|
|
121
|
+
var _nativeApp: android_app_Application? = null
|
|
122
|
+
set(value) {
|
|
123
|
+
field = value
|
|
124
|
+
jsMadeNote0(1L shl 4, "_nativeApp")
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@get:JvmName("__get__context")
|
|
128
|
+
@set:JvmName("__set__context")
|
|
129
|
+
var _context: Context? = null
|
|
130
|
+
set(value) {
|
|
131
|
+
field = value
|
|
132
|
+
jsMadeNote0(1L shl 5, "_context")
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@get:JvmName("__get__packageName")
|
|
136
|
+
@set:JvmName("__set__packageName")
|
|
137
|
+
var _packageName: String? = null
|
|
138
|
+
set(value) {
|
|
139
|
+
field = value
|
|
140
|
+
jsMadeNote0(1L shl 6, "_packageName")
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@get:JvmName("__get_lifecycleCallbacks")
|
|
144
|
+
@set:JvmName("__set_lifecycleCallbacks")
|
|
145
|
+
var lifecycleCallbacks: android_app_Application.ActivityLifecycleCallbacks? = null
|
|
146
|
+
set(value) {
|
|
147
|
+
field = value
|
|
148
|
+
jsMadeNote0(1L shl 7, "lifecycleCallbacks")
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@get:JvmName("__get_componentCallbacks")
|
|
152
|
+
@set:JvmName("__set_componentCallbacks")
|
|
153
|
+
var componentCallbacks: ComponentCallbacks2? = null
|
|
154
|
+
set(value) {
|
|
155
|
+
field = value
|
|
156
|
+
jsMadeNote0(1L shl 8, "componentCallbacks")
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@JvmField var _activeWindows: JSSet<NativeWindow>? = JSSet<NativeWindow>()
|
|
160
|
+
@JvmField var _registeredReceivers: JSRecord<JSArray<Any?>>? = JSRecord<JSArray<Any?>>()
|
|
161
|
+
@JvmField var _registeredReceiversById: JSRecord<Any?>? = JSRecord<Any?>()
|
|
162
|
+
@JvmField var _nextReceiverId: Double = 1.0
|
|
163
|
+
@JvmField var _pendingReceiverRegistrations: JSArray<Any?>? = JSArray<Any?>()
|
|
164
|
+
@JvmField var edgeToEdgeAppearance: String? = null
|
|
165
|
+
|
|
166
|
+
constructor() : super()
|
|
167
|
+
|
|
168
|
+
open val nativeApp: android_app_Application?
|
|
169
|
+
get() {
|
|
170
|
+
return this._nativeApp
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
open val startActivity: AppCompatActivity?
|
|
174
|
+
get() {
|
|
175
|
+
return Core_application_helpers.androidGetStartActivity()
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
open val foregroundActivity: AppCompatActivity?
|
|
179
|
+
get() {
|
|
180
|
+
return Core_application_helpers.androidGetForegroundActivity()
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
open val paused: Boolean
|
|
184
|
+
get() {
|
|
185
|
+
return this.suspended
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
open val backgrounded: Boolean
|
|
189
|
+
get() {
|
|
190
|
+
return this.inBackground
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
open val context: Context?
|
|
194
|
+
get() {
|
|
195
|
+
return this._context
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
open val packageName: String
|
|
199
|
+
get() {
|
|
200
|
+
return (this._packageName ?: "undefined")
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
override val android: AndroidApplication?
|
|
204
|
+
get() {
|
|
205
|
+
return this
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
open fun init(nativeApp: android_app_Application?) {
|
|
209
|
+
if (this.nativeApp === nativeApp) {
|
|
210
|
+
return
|
|
211
|
+
}
|
|
212
|
+
if (jsTruthy(this.nativeApp)) {
|
|
213
|
+
throw JSException(JSError("Application.android already initialized."))
|
|
214
|
+
}
|
|
215
|
+
this._nativeApp = nativeApp
|
|
216
|
+
Core_application_helpers_common.setNativeApp(nativeApp)
|
|
217
|
+
this._context =
|
|
218
|
+
(nativeApp ?: jsCannotRead("getApplicationContext")).getApplicationContext()
|
|
219
|
+
this._packageName =
|
|
220
|
+
(nativeApp ?: jsCannotRead("getPackageName")).getPackageName()
|
|
221
|
+
this.lifecycleCallbacks =
|
|
222
|
+
jsCastCarried(
|
|
223
|
+
jsNew(Core_application_application.initNativeScriptLifecycleCallbacks()),
|
|
224
|
+
android_app_Application.ActivityLifecycleCallbacks::class.java,
|
|
225
|
+
)
|
|
226
|
+
(this.nativeApp ?: jsCannotRead("registerActivityLifecycleCallbacks"))
|
|
227
|
+
.registerActivityLifecycleCallbacks(this.lifecycleCallbacks)
|
|
228
|
+
this.componentCallbacks =
|
|
229
|
+
jsCastCarried(
|
|
230
|
+
jsNew(Core_application_application.initNativeScriptComponentCallbacks()),
|
|
231
|
+
ComponentCallbacks2::class.java,
|
|
232
|
+
)
|
|
233
|
+
(this.nativeApp ?: jsCannotRead("registerComponentCallbacks"))
|
|
234
|
+
.registerComponentCallbacks(this.componentCallbacks)
|
|
235
|
+
this._registerPendingReceivers()
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
open fun _registerPendingReceivers() {
|
|
239
|
+
(this._pendingReceiverRegistrations ?: jsCannotRead("forEach")).forEach({
|
|
240
|
+
info: Any? ->
|
|
241
|
+
(this._registerReceiver(
|
|
242
|
+
this.context,
|
|
243
|
+
jsConvertedStringOrNull(jsGet(info, "intent")),
|
|
244
|
+
jsFunction2<Context, Intent, Unit>(jsGet(info, "callback")),
|
|
245
|
+
(jsConvertedNumberOrNull(jsGet(info, "flags")) ?: Double.NaN),
|
|
246
|
+
(jsConvertedNumberOrNull(jsGet(info, "id")) ?: Double.NaN),
|
|
247
|
+
) ?: jsObjectRequired())
|
|
248
|
+
})
|
|
249
|
+
(this._pendingReceiverRegistrations ?: jsCannotSet("length")).length = 0.0
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
open fun onConfigurationChanged(configuration: Configuration?) {
|
|
253
|
+
val primaryWindow: NativeWindow? = this.primaryWindow
|
|
254
|
+
this.setOrientation_(
|
|
255
|
+
(primaryWindow?.orientation() ?: this.getOrientationValue(configuration))
|
|
256
|
+
)
|
|
257
|
+
this.setSystemAppearance(
|
|
258
|
+
(primaryWindow?.systemAppearance() ?: this.getSystemAppearanceValue(configuration))
|
|
259
|
+
)
|
|
260
|
+
this.setLayoutDirection(
|
|
261
|
+
(primaryWindow?.layoutDirection() ?: this.getLayoutDirectionValue(configuration))
|
|
262
|
+
)
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
override fun setSystemAppearance(value: String?) {
|
|
266
|
+
super.setSystemAppearance(value)
|
|
267
|
+
if (this.edgeToEdgeAppearance != value) {
|
|
268
|
+
this.edgeToEdgeAppearance = value
|
|
269
|
+
Core_utils_native_helper_for_android.refreshEdgeToEdge(
|
|
270
|
+
(this.foregroundActivity ?: this.startActivity)
|
|
271
|
+
)
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
override fun getNativeApplication(): Any? {
|
|
276
|
+
var nativeApp: android_app_Application? = this.nativeApp
|
|
277
|
+
if (jsTruthy(nativeApp)) {
|
|
278
|
+
return nativeApp
|
|
279
|
+
}
|
|
280
|
+
nativeApp =
|
|
281
|
+
jsCastCarried(
|
|
282
|
+
Core_application_helpers_common.getNativeApp(),
|
|
283
|
+
android_app_Application::class.java,
|
|
284
|
+
)
|
|
285
|
+
if (!jsTruthy(nativeApp)) {
|
|
286
|
+
throw JSException(
|
|
287
|
+
JSError(
|
|
288
|
+
"Failed to retrieve native Android Application object. If you have a custom android.app.Application type implemented make sure that you've called the 'Application.android.init' method."
|
|
289
|
+
)
|
|
290
|
+
)
|
|
291
|
+
}
|
|
292
|
+
return nativeApp
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
override fun run(entry: Any?) {
|
|
296
|
+
if (this.started) {
|
|
297
|
+
throw JSException(JSError("Application is already started."))
|
|
298
|
+
}
|
|
299
|
+
this.started = true
|
|
300
|
+
Core_application_helpers_common.setAppMainEntry(
|
|
301
|
+
(if (jsTypeof(entry) == "string") jsObjectOf("moduleName" to jsConvertedString(entry))
|
|
302
|
+
else entry)
|
|
303
|
+
)
|
|
304
|
+
if (!jsTruthy(this.nativeApp)) {
|
|
305
|
+
val nativeApp: android_app_Application? =
|
|
306
|
+
jsCastCarried(this.getNativeApplication(), android_app_Application::class.java)
|
|
307
|
+
this.init(nativeApp)
|
|
308
|
+
}
|
|
309
|
+
this.notifyReady()
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
open fun setStartActivity_(value: AppCompatActivity?) {
|
|
313
|
+
Core_application_helpers.androidSetStartActivity(value)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
open fun setForegroundActivity_(value: AppCompatActivity?) {
|
|
317
|
+
Core_application_helpers.androidSetForegroundActivity(value)
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
open fun registerBroadcastReceiver(
|
|
321
|
+
intentFilter: String?,
|
|
322
|
+
onReceiveCallback: (Context, Intent) -> Unit,
|
|
323
|
+
flags: Double = 2.0,
|
|
324
|
+
): () -> Unit {
|
|
325
|
+
val receiverId: Double =
|
|
326
|
+
this._nextReceiverId.also { this._nextReceiverId = it + 1.0 }
|
|
327
|
+
if (jsTruthy(this.context)) {
|
|
328
|
+
this._registerReceiver(
|
|
329
|
+
this.context,
|
|
330
|
+
intentFilter,
|
|
331
|
+
onReceiveCallback,
|
|
332
|
+
flags,
|
|
333
|
+
receiverId,
|
|
334
|
+
)
|
|
335
|
+
} else {
|
|
336
|
+
(this._pendingReceiverRegistrations ?: jsCannotRead("push")).push(
|
|
337
|
+
jsObjectOf(
|
|
338
|
+
"intent" to intentFilter,
|
|
339
|
+
"callback" to onReceiveCallback,
|
|
340
|
+
"id" to receiverId,
|
|
341
|
+
"flags" to flags,
|
|
342
|
+
)
|
|
343
|
+
)
|
|
344
|
+
}
|
|
345
|
+
var removed: Boolean = false
|
|
346
|
+
return fn1@{
|
|
347
|
+
if (removed) {
|
|
348
|
+
return@fn1
|
|
349
|
+
}
|
|
350
|
+
removed = true
|
|
351
|
+
if (
|
|
352
|
+
jsTruthy(
|
|
353
|
+
(this._registeredReceiversById ?: jsCannotRead(js(receiverId)))[js(receiverId)]
|
|
354
|
+
)
|
|
355
|
+
) {
|
|
356
|
+
val receiverInfo: Any? =
|
|
357
|
+
(this._registeredReceiversById ?: jsCannotRead(js(receiverId)))[js(receiverId)]
|
|
358
|
+
(this.context ?: jsCannotRead("unregisterReceiver"))
|
|
359
|
+
.unregisterReceiver(
|
|
360
|
+
jsCastCarried(
|
|
361
|
+
jsGet(receiverInfo, "receiver"),
|
|
362
|
+
android_content_BroadcastReceiver::class.java,
|
|
363
|
+
)
|
|
364
|
+
)
|
|
365
|
+
(this._registeredReceivers
|
|
366
|
+
?: jsCannotSet(
|
|
367
|
+
jsToString(jsConvertedStringOrNull(jsGet(receiverInfo, "intent")))
|
|
368
|
+
))[jsToString(jsConvertedStringOrNull(jsGet(receiverInfo, "intent")))] =
|
|
369
|
+
((this._registeredReceivers
|
|
370
|
+
?: jsCannotRead(
|
|
371
|
+
jsToString(jsConvertedStringOrNull(jsGet(receiverInfo, "intent")))
|
|
372
|
+
))[jsToString(jsConvertedStringOrNull(jsGet(receiverInfo, "intent")))]
|
|
373
|
+
?: JSArray<Any?>())
|
|
374
|
+
?.filter({ ri: Any? ->
|
|
375
|
+
jsConvertedNumberOrNull(jsGet(ri, "id")) != receiverId
|
|
376
|
+
})
|
|
377
|
+
(this._registeredReceiversById ?: jsObjectRequired()).delete(
|
|
378
|
+
js(receiverId)
|
|
379
|
+
)
|
|
380
|
+
} else {
|
|
381
|
+
this._pendingReceiverRegistrations =
|
|
382
|
+
(this._pendingReceiverRegistrations ?: jsCannotRead("filter")).filter({ ri: Any?
|
|
383
|
+
->
|
|
384
|
+
jsConvertedNumberOrNull(jsGet(ri, "id")) != receiverId
|
|
385
|
+
})
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
open fun _registerReceiver(
|
|
391
|
+
context: Context?,
|
|
392
|
+
intentFilter: String?,
|
|
393
|
+
onReceiveCallback: (Context, Intent) -> Unit,
|
|
394
|
+
flags: Double,
|
|
395
|
+
id: Double,
|
|
396
|
+
): android_content_BroadcastReceiver? {
|
|
397
|
+
val receiver: android_content_BroadcastReceiver = kotlin.run {
|
|
398
|
+
Core_application_application.BroadcastReceiver()
|
|
399
|
+
BroadcastReceiverImpl(onReceiveCallback)
|
|
400
|
+
}
|
|
401
|
+
if (Core_utils_constants.SDK_VERSION >= 26.0) {
|
|
402
|
+
((context ?: jsCannotRead("registerReceiver")).registerReceiver(
|
|
403
|
+
receiver,
|
|
404
|
+
IntentFilter(intentFilter),
|
|
405
|
+
flags.toLong().toInt(),
|
|
406
|
+
) ?: jsObjectRequired())
|
|
407
|
+
} else {
|
|
408
|
+
((context ?: jsCannotRead("registerReceiver")).registerReceiver(
|
|
409
|
+
receiver,
|
|
410
|
+
IntentFilter(intentFilter),
|
|
411
|
+
) ?: jsObjectRequired())
|
|
412
|
+
}
|
|
413
|
+
val receiverInfo: Any? =
|
|
414
|
+
jsObjectOf(
|
|
415
|
+
"receiver" to receiver,
|
|
416
|
+
"intent" to intentFilter,
|
|
417
|
+
"callback" to onReceiveCallback,
|
|
418
|
+
"id" to id,
|
|
419
|
+
"flags" to flags,
|
|
420
|
+
)
|
|
421
|
+
if (
|
|
422
|
+
jsIsNullish(
|
|
423
|
+
(this._registeredReceivers
|
|
424
|
+
?: jsCannotSet(jsToString((intentFilter ?: "undefined"))))[
|
|
425
|
+
jsToString((intentFilter ?: "undefined"))]
|
|
426
|
+
)
|
|
427
|
+
)
|
|
428
|
+
(this._registeredReceivers ?: jsCannotSet(jsToString((intentFilter ?: "undefined"))))[
|
|
429
|
+
jsToString((intentFilter ?: "undefined"))] = JSArray<Any?>()
|
|
430
|
+
((this._registeredReceivers
|
|
431
|
+
?: jsCannotRead(jsToString((intentFilter ?: "undefined"))))[
|
|
432
|
+
jsToString((intentFilter ?: "undefined"))] ?: JSArray<Any?>())
|
|
433
|
+
.push(receiverInfo)
|
|
434
|
+
(this._registeredReceiversById
|
|
435
|
+
?: jsCannotSet(jsToString(jsConvertedNumberOrNull(jsGet(receiverInfo, "id")))))[
|
|
436
|
+
jsToString(jsConvertedNumberOrNull(jsGet(receiverInfo, "id")))] = receiverInfo
|
|
437
|
+
return receiver
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
open fun unregisterBroadcastReceiver(intentFilter: String?) {
|
|
441
|
+
val receivers: JSArray<Any?>? =
|
|
442
|
+
(this._registeredReceivers ?: jsCannotRead(jsToString((intentFilter ?: "undefined"))))[
|
|
443
|
+
jsToString((intentFilter ?: "undefined"))]
|
|
444
|
+
if (jsTruthy(receivers)) {
|
|
445
|
+
(receivers ?: jsCannotRead("forEach")).forEach({ receiver: Any? ->
|
|
446
|
+
(this.context ?: jsCannotRead("unregisterReceiver"))
|
|
447
|
+
.unregisterReceiver(
|
|
448
|
+
jsCastCarried(
|
|
449
|
+
jsGet(receiver, "receiver"),
|
|
450
|
+
android_content_BroadcastReceiver::class.java,
|
|
451
|
+
)
|
|
452
|
+
)
|
|
453
|
+
})
|
|
454
|
+
(this._registeredReceivers
|
|
455
|
+
?: jsCannotSet(jsToString((intentFilter ?: "undefined"))))[
|
|
456
|
+
jsToString((intentFilter ?: "undefined"))] = JSArray<Any?>()
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
open fun getRegisteredBroadcastReceiver(
|
|
461
|
+
intentFilter: String?
|
|
462
|
+
): android_content_BroadcastReceiver? {
|
|
463
|
+
return jsCast(
|
|
464
|
+
jsGetOptional(
|
|
465
|
+
((this._registeredReceivers
|
|
466
|
+
?: jsCannotRead(jsToString((intentFilter ?: "undefined"))))[
|
|
467
|
+
jsToString((intentFilter ?: "undefined"))] ?: JSArray<Any?>())
|
|
468
|
+
?.element(0.0),
|
|
469
|
+
"receiver",
|
|
470
|
+
),
|
|
471
|
+
android_content_BroadcastReceiver::class.java,
|
|
472
|
+
)
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
open fun getRegisteredBroadcastReceivers(
|
|
476
|
+
intentFilter: String?
|
|
477
|
+
): JSArray<android_content_BroadcastReceiver>? {
|
|
478
|
+
val receiversInfo: JSArray<Any?>? =
|
|
479
|
+
(this._registeredReceivers ?: jsCannotRead(jsToString((intentFilter ?: "undefined"))))[
|
|
480
|
+
jsToString((intentFilter ?: "undefined"))]
|
|
481
|
+
if (jsTruthy(receiversInfo)) {
|
|
482
|
+
return (receiversInfo ?: jsCannotRead("map")).map({ info: Any? ->
|
|
483
|
+
jsCastCarried(
|
|
484
|
+
jsGet(info, "receiver"),
|
|
485
|
+
android_content_BroadcastReceiver::class.java,
|
|
486
|
+
)
|
|
487
|
+
})
|
|
488
|
+
}
|
|
489
|
+
return JSArray<android_content_BroadcastReceiver>()
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/** @internal - Get a NativeWindow by its activity. */
|
|
493
|
+
open fun _getWindowForActivity(activity: AppCompatActivity?): AndroidNativeWindow? {
|
|
494
|
+
return ((this._windows ?: jsCannotRead("find")).find({ nw: NativeWindow? ->
|
|
495
|
+
jsCast(
|
|
496
|
+
jsGetOptional((nw ?: jsCannotRead("android")).android, "activity"),
|
|
497
|
+
AppCompatActivity::class.java,
|
|
498
|
+
) === activity
|
|
499
|
+
}) as AndroidNativeWindow)
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* @internal - Feeds a window's active state into the application-level 'resume'/'suspend'
|
|
504
|
+
* events, which describe the app as a whole: they are raised when the first window becomes
|
|
505
|
+
* active and when the last active one resigns. Callers decide which activities may speak for
|
|
506
|
+
* the app; every window reaching here participates.
|
|
507
|
+
*/
|
|
508
|
+
open fun _setWindowActive(
|
|
509
|
+
nativeWindow: NativeWindow?,
|
|
510
|
+
active: Boolean,
|
|
511
|
+
activity: AppCompatActivity? = null,
|
|
512
|
+
) {
|
|
513
|
+
if (this._trackWindowActive(nativeWindow, active)) {
|
|
514
|
+
this.setSuspended_(
|
|
515
|
+
!active,
|
|
516
|
+
jsObjectOf("android" to activity, "activity" to activity),
|
|
517
|
+
)
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @returns whether the set flipped between empty and non-empty, which is the only point at
|
|
523
|
+
* which app-level state changes.
|
|
524
|
+
*/
|
|
525
|
+
open fun _trackWindowActive(nativeWindow: NativeWindow?, active: Boolean): Boolean {
|
|
526
|
+
val wasPopulated: Boolean =
|
|
527
|
+
(this._activeWindows ?: jsCannotRead("size")).size > 0.0
|
|
528
|
+
if (!jsTruthy(nativeWindow)) {
|
|
529
|
+
return !wasPopulated
|
|
530
|
+
}
|
|
531
|
+
if (active) {
|
|
532
|
+
(this._activeWindows ?: jsCannotRead("add")).add(
|
|
533
|
+
jsUnchecked<NativeWindow>(nativeWindow)
|
|
534
|
+
)
|
|
535
|
+
} else {
|
|
536
|
+
(this._activeWindows ?: jsCannotRead("delete")).delete(
|
|
537
|
+
jsUnchecked<NativeWindow>(nativeWindow)
|
|
538
|
+
)
|
|
539
|
+
}
|
|
540
|
+
return wasPopulated != (this._activeWindows ?: jsCannotRead("size")).size > 0.0
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Opens a new window by launching the start activity into its own task.
|
|
545
|
+
*
|
|
546
|
+
* @param options Options for the new window. `options.data` is put on the launch intent as
|
|
547
|
+
* extras and surfaces as the window's `data`.
|
|
548
|
+
* @experimental The start activity's `launchMode` in AndroidManifest.xml decides whether a
|
|
549
|
+
* second instance can exist at all: `singleTask` (the app template default) and
|
|
550
|
+
* `singleInstance` route the intent to the existing activity's `onNewIntent` instead of
|
|
551
|
+
* creating one. `singleInstancePerTask` (API 31+) keeps single-task behavior for launcher and
|
|
552
|
+
* deep-link starts while still allowing the `MULTIPLE_TASK`/`NEW_DOCUMENT` launch used here;
|
|
553
|
+
* `standard` also works. When the app is already in split-screen, the new window opens in the
|
|
554
|
+
* adjacent pane; otherwise it covers the current one and both show in recents.
|
|
555
|
+
*/
|
|
556
|
+
override fun openWindow(options: Any?) {
|
|
557
|
+
Core_application_application.warnMultiWindowIsExperimental()
|
|
558
|
+
val context: Context? =
|
|
559
|
+
(this.context
|
|
560
|
+
?: (jsCastCarried(this.getNativeApplication(), android_app_Application::class.java)
|
|
561
|
+
as Context))
|
|
562
|
+
val intent: Intent = Intent()
|
|
563
|
+
val windowActivities: JSArray<AppCompatActivity>? =
|
|
564
|
+
(this._getWindows() ?: jsObjectRequired())
|
|
565
|
+
.filter({ window: NativeWindow? ->
|
|
566
|
+
(window ?: jsCannotRead("state")).state == "attached" &&
|
|
567
|
+
!((window ?: jsCannotRead("_surfaceGone"))._surfaceGone)
|
|
568
|
+
})
|
|
569
|
+
.map({ window: NativeWindow? ->
|
|
570
|
+
((((window ?: jsObjectRequired()) as AndroidNativeWindow)).activity
|
|
571
|
+
?: jsObjectRequired())
|
|
572
|
+
})
|
|
573
|
+
val startActivity: AppCompatActivity? =
|
|
574
|
+
JSArray<AppCompatActivity>(
|
|
575
|
+
listOf<AppCompatActivity>(
|
|
576
|
+
(this.startActivity ?: jsObjectRequired()),
|
|
577
|
+
(this.foregroundActivity ?: jsObjectRequired()),
|
|
578
|
+
) + ((windowActivities ?: jsObjectRequired())).toList()
|
|
579
|
+
)
|
|
580
|
+
.find({ activity: AppCompatActivity? ->
|
|
581
|
+
(jsTruthy(activity) &&
|
|
582
|
+
jsHasKey(activity, "isNativeScriptActivity")) &&
|
|
583
|
+
!((activity ?: jsCannotRead("isFinishing")).isFinishing()) &&
|
|
584
|
+
!((activity ?: jsCannotRead("isDestroyed")).isDestroyed())
|
|
585
|
+
})
|
|
586
|
+
if (jsTruthy(startActivity)) {
|
|
587
|
+
intent.setClass(
|
|
588
|
+
(context ?: jsObjectRequired()),
|
|
589
|
+
(startActivity ?: jsCannotRead("getClass")).javaClass,
|
|
590
|
+
)
|
|
591
|
+
} else {
|
|
592
|
+
val component: ComponentName? =
|
|
593
|
+
((context ?: jsCannotRead("getPackageManager"))
|
|
594
|
+
.getPackageManager()
|
|
595
|
+
.getLaunchIntentForPackage(
|
|
596
|
+
(context ?: jsCannotRead("getPackageName")).getPackageName()
|
|
597
|
+
)
|
|
598
|
+
?.getComponent() ?: jsObjectRequired())
|
|
599
|
+
if (!jsTruthy(component)) {
|
|
600
|
+
throw JSException(
|
|
601
|
+
JSError(
|
|
602
|
+
"Unable to open a window: no NativeScript activity or launch activity was found."
|
|
603
|
+
)
|
|
604
|
+
)
|
|
605
|
+
}
|
|
606
|
+
intent.setComponent(component)
|
|
607
|
+
}
|
|
608
|
+
var flags: Double =
|
|
609
|
+
jsBitOr(
|
|
610
|
+
jsBitOr(
|
|
611
|
+
Intent.FLAG_ACTIVITY_NEW_TASK.toDouble(),
|
|
612
|
+
Intent.FLAG_ACTIVITY_MULTIPLE_TASK.toDouble(),
|
|
613
|
+
),
|
|
614
|
+
Intent.FLAG_ACTIVITY_NEW_DOCUMENT.toDouble(),
|
|
615
|
+
)
|
|
616
|
+
val launcher: AppCompatActivity? = (this.foregroundActivity ?: startActivity)
|
|
617
|
+
if (
|
|
618
|
+
(Core_utils_constants.SDK_VERSION >= 24.0 && jsTruthy(launcher?.isInMultiWindowMode()))
|
|
619
|
+
) {
|
|
620
|
+
flags = jsBitOr(flags, Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT.toDouble())
|
|
621
|
+
}
|
|
622
|
+
intent.setFlags(flags.toLong().toInt())
|
|
623
|
+
val data: JSRecord<Any?>? =
|
|
624
|
+
jsRecordOrNull<Any?>(jsGetOptional(options, "data"))
|
|
625
|
+
if (jsTruthy(data)) {
|
|
626
|
+
for (key in (data ?: jsObjectRequired()).keys) {
|
|
627
|
+
jsCastCarried(
|
|
628
|
+
jsCallMethod(
|
|
629
|
+
intent,
|
|
630
|
+
"putExtra",
|
|
631
|
+
key,
|
|
632
|
+
Core_utils_native_helper_for_android.dataSerialize(
|
|
633
|
+
(data ?: jsCannotRead(key))[key],
|
|
634
|
+
true,
|
|
635
|
+
),
|
|
636
|
+
),
|
|
637
|
+
Intent::class.java,
|
|
638
|
+
)
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
if (jsTruthy(launcher)) {
|
|
642
|
+
(launcher ?: jsCannotRead("startActivity")).startActivity(intent)
|
|
643
|
+
} else {
|
|
644
|
+
(context ?: jsCannotRead("startActivity")).startActivity(intent)
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
override fun getRootView_(): View? {
|
|
649
|
+
val activity: AppCompatActivity? = kotlin.run {
|
|
650
|
+
val __v_1 = this.foregroundActivity
|
|
651
|
+
if (jsTruthy(__v_1)) __v_1 else this.startActivity
|
|
652
|
+
}
|
|
653
|
+
if (!jsTruthy(activity)) {
|
|
654
|
+
return null
|
|
655
|
+
}
|
|
656
|
+
val callbacks: Any? =
|
|
657
|
+
jsGet((activity ?: jsCannotRead("_callbacks")), "_callbacks")
|
|
658
|
+
Core_application_helpers_common.setRootView(
|
|
659
|
+
(if (jsTruthy(callbacks))
|
|
660
|
+
jsCastCarried(jsCallMethod(callbacks, "getRootView"), View::class.java)
|
|
661
|
+
else null)
|
|
662
|
+
)
|
|
663
|
+
return jsCast(Core_application_helpers_common.getRootView(), View::class.java)
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
override fun resetRootView(entry: Any?) {
|
|
667
|
+
super.resetRootView(entry)
|
|
668
|
+
val activity: AppCompatActivity? = kotlin.run {
|
|
669
|
+
val __v_1 = this.foregroundActivity
|
|
670
|
+
if (jsTruthy(__v_1)) __v_1 else this.startActivity
|
|
671
|
+
}
|
|
672
|
+
if (!jsTruthy(activity)) {
|
|
673
|
+
throw JSException(JSError("Cannot find android activity."))
|
|
674
|
+
}
|
|
675
|
+
val callbacks: Any? =
|
|
676
|
+
jsGet((activity ?: jsCannotRead("_callbacks")), "_callbacks")
|
|
677
|
+
if (!jsTruthy(callbacks)) {
|
|
678
|
+
throw JSException(JSError("Cannot find android activity callbacks."))
|
|
679
|
+
}
|
|
680
|
+
jsCallMethod(callbacks, "resetActivityContent", activity)
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
override fun getSystemAppearance(): String? {
|
|
684
|
+
return this.getSystemAppearanceValue(this.getConfiguration())
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
open fun getConfiguration(): Configuration? {
|
|
688
|
+
return ((this.context
|
|
689
|
+
?: (jsCastCarried(
|
|
690
|
+
(this.getNativeApplication() ?: jsObjectRequired()),
|
|
691
|
+
android_app_Application::class.java,
|
|
692
|
+
)
|
|
693
|
+
as Context)))
|
|
694
|
+
.getResources()
|
|
695
|
+
.getConfiguration()
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
open fun getSystemAppearanceValue(configuration: Configuration?): String {
|
|
699
|
+
val systemAppearance: Double =
|
|
700
|
+
jsBitAnd(
|
|
701
|
+
(configuration ?: jsCannotRead("uiMode")).uiMode.toDouble(),
|
|
702
|
+
Configuration.UI_MODE_NIGHT_MASK.toDouble(),
|
|
703
|
+
)
|
|
704
|
+
when (systemAppearance) {
|
|
705
|
+
Configuration.UI_MODE_NIGHT_YES.toDouble() -> {
|
|
706
|
+
return "dark"
|
|
707
|
+
}
|
|
708
|
+
Configuration.UI_MODE_NIGHT_NO.toDouble(),
|
|
709
|
+
Configuration.UI_MODE_NIGHT_UNDEFINED.toDouble() -> {
|
|
710
|
+
return "light"
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
jsThrow(JSTypeError("no value returned where the declared type needs one"))
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
override fun getLayoutDirection(): String {
|
|
717
|
+
return this.getLayoutDirectionValue(this.getConfiguration())
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
open fun getLayoutDirectionValue(configuration: Configuration?): String {
|
|
721
|
+
val layoutDirection: Double =
|
|
722
|
+
(configuration ?: jsCannotRead("getLayoutDirection")).getLayoutDirection().toDouble()
|
|
723
|
+
when (layoutDirection) {
|
|
724
|
+
android_view_View.LAYOUT_DIRECTION_LTR.toDouble() -> {
|
|
725
|
+
return org.nativescript.kit.CoreTypes.LayoutDirection.ltr
|
|
726
|
+
}
|
|
727
|
+
android_view_View.LAYOUT_DIRECTION_RTL.toDouble() -> {
|
|
728
|
+
return org.nativescript.kit.CoreTypes.LayoutDirection.rtl
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
jsThrow(JSTypeError("no value returned where the declared type needs one"))
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
override fun getOrientation_(): String {
|
|
735
|
+
return this.getOrientationValue(this.getConfiguration())
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
open fun getOrientationValue(configuration: Configuration?): String {
|
|
739
|
+
val orientation: Double =
|
|
740
|
+
(configuration ?: jsCannotRead("orientation")).orientation.toDouble()
|
|
741
|
+
when (orientation) {
|
|
742
|
+
Configuration.ORIENTATION_LANDSCAPE.toDouble() -> {
|
|
743
|
+
return "landscape"
|
|
744
|
+
}
|
|
745
|
+
Configuration.ORIENTATION_PORTRAIT.toDouble() -> {
|
|
746
|
+
return "portrait"
|
|
747
|
+
}
|
|
748
|
+
else -> {
|
|
749
|
+
return "unknown"
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
override val jsDeclaredKeys: List<String>
|
|
755
|
+
get() =
|
|
756
|
+
super.jsDeclaredKeys +
|
|
757
|
+
listOf("activityCreatedEvent") +
|
|
758
|
+
listOf("activityDestroyedEvent") +
|
|
759
|
+
listOf("activityStartedEvent") +
|
|
760
|
+
listOf("activityPausedEvent") +
|
|
761
|
+
listOf("activityResumedEvent") +
|
|
762
|
+
listOf("activityStoppedEvent") +
|
|
763
|
+
listOf("saveActivityStateEvent") +
|
|
764
|
+
listOf("activityResultEvent") +
|
|
765
|
+
listOf("activityBackPressedEvent") +
|
|
766
|
+
listOf("activityNewIntentEvent") +
|
|
767
|
+
listOf("activityRequestPermissionsEvent") +
|
|
768
|
+
(if (_activeWindows == null) listOf() else listOf("_activeWindows")) +
|
|
769
|
+
(if (_registeredReceivers == null) listOf() else listOf("_registeredReceivers")) +
|
|
770
|
+
(if (_registeredReceiversById == null) listOf()
|
|
771
|
+
else listOf("_registeredReceiversById")) +
|
|
772
|
+
listOf("_nextReceiverId") +
|
|
773
|
+
(if (_pendingReceiverRegistrations == null) listOf()
|
|
774
|
+
else listOf("_pendingReceiverRegistrations")) +
|
|
775
|
+
listOf("edgeToEdgeAppearance") +
|
|
776
|
+
(if ((jsMadeBits0 and (1L shl 4)) != 0L) listOf("_nativeApp") else listOf()) +
|
|
777
|
+
(if ((jsMadeBits0 and (1L shl 5)) != 0L) listOf("_context") else listOf()) +
|
|
778
|
+
(if ((jsMadeBits0 and (1L shl 6)) != 0L) listOf("_packageName") else listOf()) +
|
|
779
|
+
(if ((jsMadeBits0 and (1L shl 7)) != 0L) listOf("lifecycleCallbacks")
|
|
780
|
+
else listOf()) +
|
|
781
|
+
(if ((jsMadeBits0 and (1L shl 8)) != 0L) listOf("componentCallbacks") else listOf())
|
|
782
|
+
|
|
783
|
+
override val jsClassName: String?
|
|
784
|
+
get() = "AndroidApplication"
|
|
785
|
+
|
|
786
|
+
override fun jsGet(key: String): Any? =
|
|
787
|
+
when (key) {
|
|
788
|
+
"activityCreatedEvent" -> this.activityCreatedEvent
|
|
789
|
+
"activityDestroyedEvent" -> this.activityDestroyedEvent
|
|
790
|
+
"activityStartedEvent" -> this.activityStartedEvent
|
|
791
|
+
"activityPausedEvent" -> this.activityPausedEvent
|
|
792
|
+
"activityResumedEvent" -> this.activityResumedEvent
|
|
793
|
+
"activityStoppedEvent" -> this.activityStoppedEvent
|
|
794
|
+
"saveActivityStateEvent" -> this.saveActivityStateEvent
|
|
795
|
+
"activityResultEvent" -> this.activityResultEvent
|
|
796
|
+
"activityBackPressedEvent" -> this.activityBackPressedEvent
|
|
797
|
+
"activityNewIntentEvent" -> this.activityNewIntentEvent
|
|
798
|
+
"activityRequestPermissionsEvent" -> this.activityRequestPermissionsEvent
|
|
799
|
+
"_nativeApp" -> if ((jsMadeBits0 and (1L shl 4)) != 0L) this._nativeApp else null
|
|
800
|
+
"_context" -> if ((jsMadeBits0 and (1L shl 5)) != 0L) this._context else null
|
|
801
|
+
"_packageName" -> if ((jsMadeBits0 and (1L shl 6)) != 0L) this._packageName else null
|
|
802
|
+
"lifecycleCallbacks" ->
|
|
803
|
+
if ((jsMadeBits0 and (1L shl 7)) != 0L) this.lifecycleCallbacks else null
|
|
804
|
+
"componentCallbacks" ->
|
|
805
|
+
if ((jsMadeBits0 and (1L shl 8)) != 0L) this.componentCallbacks else null
|
|
806
|
+
"_activeWindows" -> this._activeWindows
|
|
807
|
+
"_registeredReceivers" -> this._registeredReceivers
|
|
808
|
+
"_registeredReceiversById" -> this._registeredReceiversById
|
|
809
|
+
"_nextReceiverId" -> this._nextReceiverId
|
|
810
|
+
"_pendingReceiverRegistrations" -> this._pendingReceiverRegistrations
|
|
811
|
+
"edgeToEdgeAppearance" -> jsNulled(this.edgeToEdgeAppearance)
|
|
812
|
+
"nativeApp" -> this.nativeApp
|
|
813
|
+
"startActivity" -> this.startActivity
|
|
814
|
+
"foregroundActivity" -> this.foregroundActivity
|
|
815
|
+
"paused" -> this.paused
|
|
816
|
+
"backgrounded" -> this.backgrounded
|
|
817
|
+
"context" -> this.context
|
|
818
|
+
"packageName" -> this.packageName
|
|
819
|
+
"android" -> this.android
|
|
820
|
+
"init" ->
|
|
821
|
+
jsFunction { __a ->
|
|
822
|
+
this.init(jsCast(__a.getOrNull(0), android_app_Application::class.java))
|
|
823
|
+
null
|
|
824
|
+
}
|
|
825
|
+
"_registerPendingReceivers" ->
|
|
826
|
+
jsFunction {
|
|
827
|
+
this._registerPendingReceivers()
|
|
828
|
+
null
|
|
829
|
+
}
|
|
830
|
+
"onConfigurationChanged" ->
|
|
831
|
+
jsFunction { __a ->
|
|
832
|
+
this.onConfigurationChanged(jsCast(__a.getOrNull(0), Configuration::class.java))
|
|
833
|
+
null
|
|
834
|
+
}
|
|
835
|
+
"setSystemAppearance" ->
|
|
836
|
+
jsFunction { __a ->
|
|
837
|
+
this.setSystemAppearance(jsConvertedStringOrNull(__a.getOrNull(0)))
|
|
838
|
+
null
|
|
839
|
+
}
|
|
840
|
+
"run" ->
|
|
841
|
+
jsFunction { __a ->
|
|
842
|
+
this.run(__a.getOrNull(0))
|
|
843
|
+
null
|
|
844
|
+
}
|
|
845
|
+
"setStartActivity" ->
|
|
846
|
+
jsFunction { __a ->
|
|
847
|
+
this.setStartActivity_(jsCast(__a.getOrNull(0), AppCompatActivity::class.java))
|
|
848
|
+
null
|
|
849
|
+
}
|
|
850
|
+
"setForegroundActivity" ->
|
|
851
|
+
jsFunction { __a ->
|
|
852
|
+
this.setForegroundActivity_(
|
|
853
|
+
jsCast(__a.getOrNull(0), AppCompatActivity::class.java)
|
|
854
|
+
)
|
|
855
|
+
null
|
|
856
|
+
}
|
|
857
|
+
"registerBroadcastReceiver" ->
|
|
858
|
+
jsFunction { __a ->
|
|
859
|
+
this.registerBroadcastReceiver(
|
|
860
|
+
jsConvertedStringOrNull(__a.getOrNull(0)),
|
|
861
|
+
jsFunction2<Context, Intent, Unit>(__a.getOrNull(1)),
|
|
862
|
+
jsConvertedNumberOrZero(__a.getOrNull(2)),
|
|
863
|
+
)
|
|
864
|
+
}
|
|
865
|
+
"_registerReceiver" ->
|
|
866
|
+
jsFunction { __a ->
|
|
867
|
+
this._registerReceiver(
|
|
868
|
+
jsCast(__a.getOrNull(0), Context::class.java),
|
|
869
|
+
jsConvertedStringOrNull(__a.getOrNull(1)),
|
|
870
|
+
jsFunction2<Context, Intent, Unit>(__a.getOrNull(2)),
|
|
871
|
+
jsConvertedNumberOrZero(__a.getOrNull(3)),
|
|
872
|
+
jsConvertedNumberOrZero(__a.getOrNull(4)),
|
|
873
|
+
)
|
|
874
|
+
}
|
|
875
|
+
"unregisterBroadcastReceiver" ->
|
|
876
|
+
jsFunction { __a ->
|
|
877
|
+
this.unregisterBroadcastReceiver(jsConvertedStringOrNull(__a.getOrNull(0)))
|
|
878
|
+
null
|
|
879
|
+
}
|
|
880
|
+
"getRegisteredBroadcastReceiver" ->
|
|
881
|
+
jsFunction { __a ->
|
|
882
|
+
this.getRegisteredBroadcastReceiver(jsConvertedStringOrNull(__a.getOrNull(0)))
|
|
883
|
+
}
|
|
884
|
+
"getRegisteredBroadcastReceivers" ->
|
|
885
|
+
jsFunction { __a ->
|
|
886
|
+
this.getRegisteredBroadcastReceivers(jsConvertedStringOrNull(__a.getOrNull(0)))
|
|
887
|
+
}
|
|
888
|
+
"_getWindowForActivity" ->
|
|
889
|
+
jsFunction { __a ->
|
|
890
|
+
this._getWindowForActivity(
|
|
891
|
+
jsCast(__a.getOrNull(0), AppCompatActivity::class.java)
|
|
892
|
+
)
|
|
893
|
+
}
|
|
894
|
+
"_setWindowActive" ->
|
|
895
|
+
jsFunction { __a ->
|
|
896
|
+
this._setWindowActive(
|
|
897
|
+
jsCast(__a.getOrNull(0), NativeWindow::class.java),
|
|
898
|
+
jsConvertedBooleanOrFalse(__a.getOrNull(1)),
|
|
899
|
+
jsCast(__a.getOrNull(2), AppCompatActivity::class.java),
|
|
900
|
+
)
|
|
901
|
+
null
|
|
902
|
+
}
|
|
903
|
+
"_trackWindowActive" ->
|
|
904
|
+
jsFunction { __a ->
|
|
905
|
+
this._trackWindowActive(
|
|
906
|
+
jsCast(__a.getOrNull(0), NativeWindow::class.java),
|
|
907
|
+
jsConvertedBooleanOrFalse(__a.getOrNull(1)),
|
|
908
|
+
)
|
|
909
|
+
}
|
|
910
|
+
"openWindow" ->
|
|
911
|
+
jsFunction { __a ->
|
|
912
|
+
this.openWindow(__a.getOrNull(0))
|
|
913
|
+
null
|
|
914
|
+
}
|
|
915
|
+
"getRootView" -> jsFunction { this.getRootView_() }
|
|
916
|
+
"resetRootView" ->
|
|
917
|
+
jsFunction { __a ->
|
|
918
|
+
this.resetRootView(__a.getOrNull(0))
|
|
919
|
+
null
|
|
920
|
+
}
|
|
921
|
+
"getConfiguration" -> jsFunction { this.getConfiguration() }
|
|
922
|
+
"getSystemAppearanceValue" ->
|
|
923
|
+
jsFunction { __a ->
|
|
924
|
+
this.getSystemAppearanceValue(
|
|
925
|
+
jsCast(__a.getOrNull(0), Configuration::class.java)
|
|
926
|
+
)
|
|
927
|
+
}
|
|
928
|
+
"getLayoutDirection" -> jsFunction { this.getLayoutDirection() }
|
|
929
|
+
"getLayoutDirectionValue" ->
|
|
930
|
+
jsFunction { __a ->
|
|
931
|
+
this.getLayoutDirectionValue(
|
|
932
|
+
jsCast(__a.getOrNull(0), Configuration::class.java)
|
|
933
|
+
)
|
|
934
|
+
}
|
|
935
|
+
"getOrientation" -> jsFunction { this.getOrientation_() }
|
|
936
|
+
"getOrientationValue" ->
|
|
937
|
+
jsFunction { __a ->
|
|
938
|
+
this.getOrientationValue(jsCast(__a.getOrNull(0), Configuration::class.java))
|
|
939
|
+
}
|
|
940
|
+
"getNativeApplication" -> jsFunction { this.getNativeApplication() }
|
|
941
|
+
"getSystemAppearance" -> jsFunction { this.getSystemAppearance() }
|
|
942
|
+
else -> super.jsGet(key)
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
override fun jsSet(key: String, value: Any?) {
|
|
946
|
+
when (key) {
|
|
947
|
+
"activityCreatedEvent" ->
|
|
948
|
+
this.activityCreatedEvent = jsConvertedString(value, "activityCreatedEvent")
|
|
949
|
+
"activityDestroyedEvent" ->
|
|
950
|
+
this.activityDestroyedEvent = jsConvertedString(value, "activityDestroyedEvent")
|
|
951
|
+
"activityStartedEvent" ->
|
|
952
|
+
this.activityStartedEvent = jsConvertedString(value, "activityStartedEvent")
|
|
953
|
+
"activityPausedEvent" ->
|
|
954
|
+
this.activityPausedEvent = jsConvertedString(value, "activityPausedEvent")
|
|
955
|
+
"activityResumedEvent" ->
|
|
956
|
+
this.activityResumedEvent = jsConvertedString(value, "activityResumedEvent")
|
|
957
|
+
"activityStoppedEvent" ->
|
|
958
|
+
this.activityStoppedEvent = jsConvertedString(value, "activityStoppedEvent")
|
|
959
|
+
"saveActivityStateEvent" ->
|
|
960
|
+
this.saveActivityStateEvent = jsConvertedString(value, "saveActivityStateEvent")
|
|
961
|
+
"activityResultEvent" ->
|
|
962
|
+
this.activityResultEvent = jsConvertedString(value, "activityResultEvent")
|
|
963
|
+
"activityBackPressedEvent" ->
|
|
964
|
+
this.activityBackPressedEvent = jsConvertedString(value, "activityBackPressedEvent")
|
|
965
|
+
"activityNewIntentEvent" ->
|
|
966
|
+
this.activityNewIntentEvent = jsConvertedString(value, "activityNewIntentEvent")
|
|
967
|
+
"activityRequestPermissionsEvent" ->
|
|
968
|
+
this.activityRequestPermissionsEvent =
|
|
969
|
+
jsConvertedString(value, "activityRequestPermissionsEvent")
|
|
970
|
+
"_nativeApp" -> this._nativeApp = jsCast(value, android_app_Application::class.java)
|
|
971
|
+
"_context" -> this._context = jsCast(value, Context::class.java)
|
|
972
|
+
"_packageName" -> this._packageName = jsConvertedStringOrNull(value, "_packageName")
|
|
973
|
+
"lifecycleCallbacks" ->
|
|
974
|
+
this.lifecycleCallbacks =
|
|
975
|
+
jsCast(value, android_app_Application.ActivityLifecycleCallbacks::class.java)
|
|
976
|
+
"componentCallbacks" ->
|
|
977
|
+
this.componentCallbacks = jsCast(value, ComponentCallbacks2::class.java)
|
|
978
|
+
"_activeWindows" ->
|
|
979
|
+
this._activeWindows = jsAs<JSSet<NativeWindow>?>(jsJavaArgument(value))
|
|
980
|
+
"_registeredReceivers" ->
|
|
981
|
+
this._registeredReceivers = jsRecordOrNull<JSArray<Any?>>(value)
|
|
982
|
+
"_registeredReceiversById" ->
|
|
983
|
+
this._registeredReceiversById = jsRecordOrNull<Any?>(value)
|
|
984
|
+
"_nextReceiverId" -> this._nextReceiverId = jsConvertedNumber(value, "_nextReceiverId")
|
|
985
|
+
"_pendingReceiverRegistrations" ->
|
|
986
|
+
this._pendingReceiverRegistrations =
|
|
987
|
+
(if (jsIsNullish(value)) null else jsArrayFrom(value) { it })
|
|
988
|
+
"edgeToEdgeAppearance" ->
|
|
989
|
+
this.edgeToEdgeAppearance = jsConvertedStringOrNull(value, "edgeToEdgeAppearance")
|
|
990
|
+
else -> super.jsSet(key, value)
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
override fun jsHasMember(key: String): Boolean =
|
|
995
|
+
when (key) {
|
|
996
|
+
"nativeApp",
|
|
997
|
+
"startActivity",
|
|
998
|
+
"foregroundActivity",
|
|
999
|
+
"paused",
|
|
1000
|
+
"backgrounded",
|
|
1001
|
+
"context",
|
|
1002
|
+
"packageName",
|
|
1003
|
+
"android",
|
|
1004
|
+
"init",
|
|
1005
|
+
"_registerPendingReceivers",
|
|
1006
|
+
"onConfigurationChanged",
|
|
1007
|
+
"setSystemAppearance",
|
|
1008
|
+
"run",
|
|
1009
|
+
"setStartActivity",
|
|
1010
|
+
"setForegroundActivity",
|
|
1011
|
+
"registerBroadcastReceiver",
|
|
1012
|
+
"_registerReceiver",
|
|
1013
|
+
"unregisterBroadcastReceiver",
|
|
1014
|
+
"getRegisteredBroadcastReceiver",
|
|
1015
|
+
"getRegisteredBroadcastReceivers",
|
|
1016
|
+
"_getWindowForActivity",
|
|
1017
|
+
"_setWindowActive",
|
|
1018
|
+
"_trackWindowActive",
|
|
1019
|
+
"openWindow",
|
|
1020
|
+
"getRootView",
|
|
1021
|
+
"resetRootView",
|
|
1022
|
+
"getConfiguration",
|
|
1023
|
+
"getSystemAppearanceValue",
|
|
1024
|
+
"getLayoutDirection",
|
|
1025
|
+
"getLayoutDirectionValue",
|
|
1026
|
+
"getOrientation",
|
|
1027
|
+
"getOrientationValue",
|
|
1028
|
+
"getNativeApplication",
|
|
1029
|
+
"getSystemAppearance" -> true
|
|
1030
|
+
else -> super<ApplicationCommon>.jsHasMember(key)
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
companion object {
|
|
1034
|
+
var activityCreatedEvent: String = "activityCreated"
|
|
1035
|
+
var activityDestroyedEvent: String = "activityDestroyed"
|
|
1036
|
+
var activityStartedEvent: String = "activityStarted"
|
|
1037
|
+
var activityPausedEvent: String = "activityPaused"
|
|
1038
|
+
var activityResumedEvent: String = "activityResumed"
|
|
1039
|
+
var activityStoppedEvent: String = "activityStopped"
|
|
1040
|
+
var saveActivityStateEvent: String = "saveActivityState"
|
|
1041
|
+
var activityResultEvent: String = "activityResult"
|
|
1042
|
+
var activityBackPressedEvent: String = "activityBackPressed"
|
|
1043
|
+
var activityNewIntentEvent: String = "activityNewIntent"
|
|
1044
|
+
var activityRequestPermissionsEvent: String = "activityRequestPermissions"
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
@UiThread
|
|
1049
|
+
class AndroidSharedA11YObservable : SharedA11YObservable {
|
|
1050
|
+
@JvmField var accessibilityStateEnabled: Boolean? = null
|
|
1051
|
+
@JvmField var touchExplorationStateEnabled: Boolean? = null
|
|
1052
|
+
|
|
1053
|
+
constructor() : super()
|
|
1054
|
+
|
|
1055
|
+
override var accessibilityServiceEnabled: Boolean?
|
|
1056
|
+
get() {
|
|
1057
|
+
return jsConvertedBooleanOrFalse(
|
|
1058
|
+
jsGet(this, Core_application_application.accessibilityStateEnabledPropName)
|
|
1059
|
+
) &&
|
|
1060
|
+
jsConvertedBooleanOrFalse(
|
|
1061
|
+
jsGet(this, Core_application_application.touchExplorationStateEnabledPropName)
|
|
1062
|
+
)
|
|
1063
|
+
}
|
|
1064
|
+
set(v) {
|
|
1065
|
+
return
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
override val jsDeclaredKeys: List<String>
|
|
1069
|
+
get() =
|
|
1070
|
+
super.jsDeclaredKeys +
|
|
1071
|
+
(if (accessibilityStateEnabled == null) listOf()
|
|
1072
|
+
else listOf("accessibilityStateEnabled")) +
|
|
1073
|
+
(if (touchExplorationStateEnabled == null) listOf()
|
|
1074
|
+
else listOf("touchExplorationStateEnabled"))
|
|
1075
|
+
|
|
1076
|
+
override val jsClassName: String?
|
|
1077
|
+
get() = "AndroidSharedA11YObservable"
|
|
1078
|
+
|
|
1079
|
+
override fun jsGet(key: String): Any? =
|
|
1080
|
+
when (key) {
|
|
1081
|
+
"accessibilityStateEnabled" -> this.accessibilityStateEnabled
|
|
1082
|
+
"touchExplorationStateEnabled" -> this.touchExplorationStateEnabled
|
|
1083
|
+
"accessibilityServiceEnabled" -> this.accessibilityServiceEnabled
|
|
1084
|
+
else -> super.jsGet(key)
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1088
|
+
when (key) {
|
|
1089
|
+
"accessibilityStateEnabled" ->
|
|
1090
|
+
this.accessibilityStateEnabled =
|
|
1091
|
+
jsConvertedBooleanOrNull(value, "accessibilityStateEnabled")
|
|
1092
|
+
"touchExplorationStateEnabled" ->
|
|
1093
|
+
this.touchExplorationStateEnabled =
|
|
1094
|
+
jsConvertedBooleanOrNull(value, "touchExplorationStateEnabled")
|
|
1095
|
+
"accessibilityServiceEnabled" ->
|
|
1096
|
+
this.accessibilityServiceEnabled = jsConvertedBooleanOrNull(value)
|
|
1097
|
+
else -> super.jsSet(key, value)
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
override fun jsHasMember(key: String): Boolean =
|
|
1102
|
+
when (key) {
|
|
1103
|
+
"accessibilityServiceEnabled" -> true
|
|
1104
|
+
else -> super<SharedA11YObservable>.jsHasMember(key)
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
@UiThread
|
|
1109
|
+
open class AccessibilityServiceEnabledObservable : CommonA11YServiceEnabledObservable {
|
|
1110
|
+
constructor() :
|
|
1111
|
+
super((Core_application_application.ensureStateListener() ?: jsObjectRequired())) {}
|
|
1112
|
+
|
|
1113
|
+
override val jsClassName: String?
|
|
1114
|
+
get() = "AccessibilityServiceEnabledObservable"
|
|
1115
|
+
|
|
1116
|
+
override fun jsGet(key: String): Any? =
|
|
1117
|
+
when (key) {
|
|
1118
|
+
else -> super.jsGet(key)
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
override fun jsSet(key: String, value: Any?) {
|
|
1122
|
+
when (key) {
|
|
1123
|
+
else -> super.jsSet(key, value)
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
@UiThread
|
|
1129
|
+
object Core_application_application {
|
|
1130
|
+
init {
|
|
1131
|
+
jsLexical("BroadcastReceiver", "Application", "androidViewToTNSView")
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
@JvmField val WINDOW_ID_EXTRA: String = "com.tns.activity.windowId"
|
|
1135
|
+
@JvmField var multiWindowWarned: Boolean = false
|
|
1136
|
+
|
|
1137
|
+
fun warnMultiWindowIsExperimental() {
|
|
1138
|
+
if (Core_application_application.multiWindowWarned) {
|
|
1139
|
+
return
|
|
1140
|
+
}
|
|
1141
|
+
Core_application_application.multiWindowWarned = true
|
|
1142
|
+
val message: String =
|
|
1143
|
+
"Application.android.openWindow() is experimental. The start activity must not use launchMode=\"singleTask\" (the app template default) or \"singleInstance\" in AndroidManifest.xml, or Android hands the launch intent to the existing activity instead of opening a second one; use \"singleInstancePerTask\" (API 31+) or \"standard\"."
|
|
1144
|
+
org.nativescript.kit.Trace.write(
|
|
1145
|
+
message,
|
|
1146
|
+
org.nativescript.kit.Trace.categories.Debug,
|
|
1147
|
+
org.nativescript.kit.Trace.messageType.warn,
|
|
1148
|
+
)
|
|
1149
|
+
jsError(message)
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
@JvmField var NativeScriptLifecycleCallbacks_: Any? = null
|
|
1153
|
+
|
|
1154
|
+
fun initNativeScriptLifecycleCallbacks(): Any? {
|
|
1155
|
+
if (jsTruthy(Core_application_application.NativeScriptLifecycleCallbacks_)) {
|
|
1156
|
+
return Core_application_application.NativeScriptLifecycleCallbacks_
|
|
1157
|
+
}
|
|
1158
|
+
Core_application_application.NativeScriptLifecycleCallbacks_ =
|
|
1159
|
+
org.nativescript.NativeScriptLifecycleCallbacks::class.java
|
|
1160
|
+
return Core_application_application.NativeScriptLifecycleCallbacks_
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
@JvmField var NativeScriptComponentCallbacks_: Any? = null
|
|
1164
|
+
|
|
1165
|
+
fun initNativeScriptComponentCallbacks(): Any? {
|
|
1166
|
+
if (jsTruthy(Core_application_application.NativeScriptComponentCallbacks_)) {
|
|
1167
|
+
return Core_application_application.NativeScriptComponentCallbacks_
|
|
1168
|
+
}
|
|
1169
|
+
Core_application_application.NativeScriptComponentCallbacks_ =
|
|
1170
|
+
org.nativescript.NativeScriptComponentCallbacks::class.java
|
|
1171
|
+
return Core_application_application.NativeScriptComponentCallbacks_
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
@get:JvmName("__get_BroadcastReceiver")
|
|
1175
|
+
@set:JvmName("__set_BroadcastReceiver")
|
|
1176
|
+
lateinit var BroadcastReceiver: () -> Any?
|
|
1177
|
+
@get:JvmName("__get_Application")
|
|
1178
|
+
@set:JvmName("__set_Application")
|
|
1179
|
+
lateinit var Application: AndroidApplication
|
|
1180
|
+
@JvmField val iOSApplication: Any? = null
|
|
1181
|
+
|
|
1182
|
+
fun fontScaleChanged(origFontScale: Double) {
|
|
1183
|
+
val oldValue: Double = Core_accessibility_accessibility_common.getFontScale()
|
|
1184
|
+
Core_accessibility_accessibility_common.setFontScale(
|
|
1185
|
+
Core_accessibility_accessibility_common.getClosestValidFontScale(origFontScale)
|
|
1186
|
+
)
|
|
1187
|
+
val currentFontScale: Double =
|
|
1188
|
+
Core_accessibility_accessibility_common.getFontScale()
|
|
1189
|
+
if (oldValue != currentFontScale) {
|
|
1190
|
+
Core_application_application.Application.notify(
|
|
1191
|
+
jsObjectOf(
|
|
1192
|
+
"eventName" to Core_application_application.Application.fontScaleChangedEvent,
|
|
1193
|
+
"object" to Core_application_application.Application,
|
|
1194
|
+
"newValue" to currentFontScale,
|
|
1195
|
+
)
|
|
1196
|
+
)
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
fun getCurrentFontScale(): Double {
|
|
1201
|
+
Core_application_application.setupConfigListener()
|
|
1202
|
+
return Core_accessibility_accessibility_common.getFontScale()
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
fun useAndroidFontScale() {
|
|
1206
|
+
Core_application_application.fontScaleChanged(
|
|
1207
|
+
((Core_application_application.Application.android ?: jsCannotRead("context")).context
|
|
1208
|
+
?: jsCannotRead("getResources"))
|
|
1209
|
+
.getResources()
|
|
1210
|
+
.getConfiguration()
|
|
1211
|
+
.fontScale
|
|
1212
|
+
.toDouble()
|
|
1213
|
+
)
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
@JvmField var configChangedCallback: ComponentCallbacks2? = null
|
|
1217
|
+
|
|
1218
|
+
fun setupConfigListener() {
|
|
1219
|
+
if (jsTruthy(Core_application_application.configChangedCallback)) {
|
|
1220
|
+
return
|
|
1221
|
+
}
|
|
1222
|
+
Core_application_application.Application.off(
|
|
1223
|
+
Core_application_application.Application.launchEvent,
|
|
1224
|
+
Core_application_application::setupConfigListener,
|
|
1225
|
+
null,
|
|
1226
|
+
)
|
|
1227
|
+
val context: Context? =
|
|
1228
|
+
(Core_application_application.Application.android?.context ?: jsObjectRequired())
|
|
1229
|
+
if (!jsTruthy(context)) {
|
|
1230
|
+
(Core_application_application.Application.on
|
|
1231
|
+
?: jsNotAFunction("Application.on"))(
|
|
1232
|
+
Core_application_application.Application.launchEvent,
|
|
1233
|
+
{ _: Any? -> Core_application_application.setupConfigListener() },
|
|
1234
|
+
null,
|
|
1235
|
+
)
|
|
1236
|
+
return
|
|
1237
|
+
}
|
|
1238
|
+
Core_application_application.useAndroidFontScale()
|
|
1239
|
+
Core_application_application.configChangedCallback =
|
|
1240
|
+
object : ComponentCallbacks2 {
|
|
1241
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
1242
|
+
|
|
1243
|
+
@Suppress("OVERRIDE_DEPRECATION")
|
|
1244
|
+
@AnyThread
|
|
1245
|
+
override fun onLowMemory() {
|
|
1246
|
+
jsElsewhere(__realm)?.let {
|
|
1247
|
+
return it.later { this.onLowMemory() }
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
@AnyThread
|
|
1252
|
+
override fun onTrimMemory(__a0: Int) {
|
|
1253
|
+
jsElsewhere(__realm)?.let {
|
|
1254
|
+
return it.later { this.onTrimMemory(__a0) }
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
@AnyThread
|
|
1259
|
+
override fun onConfigurationChanged(newConfig: Configuration) {
|
|
1260
|
+
jsElsewhere(__realm)?.let {
|
|
1261
|
+
return it.later { this.onConfigurationChanged(newConfig) }
|
|
1262
|
+
}
|
|
1263
|
+
jsReport {
|
|
1264
|
+
jsOnMainThread {
|
|
1265
|
+
val newConfig: Configuration? = newConfig
|
|
1266
|
+
Core_application_application.fontScaleChanged(
|
|
1267
|
+
(newConfig ?: jsCannotRead("fontScale")).fontScale.toDouble()
|
|
1268
|
+
)
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
(context ?: jsCannotRead("registerComponentCallbacks"))
|
|
1274
|
+
.registerComponentCallbacks(Core_application_application.configChangedCallback)
|
|
1275
|
+
(Core_application_application.Application.on
|
|
1276
|
+
?: jsNotAFunction("Application.on"))(
|
|
1277
|
+
Core_application_application.Application.resumeEvent,
|
|
1278
|
+
{ _: Any? -> Core_application_application.useAndroidFontScale() },
|
|
1279
|
+
null,
|
|
1280
|
+
)
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
fun applyRootCssClass(cssClasses: JSArray<String>?, newCssClass: String?) {
|
|
1284
|
+
val rootView: View? = Core_application_application.Application.getRootView_()
|
|
1285
|
+
if (!jsTruthy(rootView)) {
|
|
1286
|
+
return
|
|
1287
|
+
}
|
|
1288
|
+
Core_application_application.Application.applyCssClass(
|
|
1289
|
+
rootView,
|
|
1290
|
+
cssClasses,
|
|
1291
|
+
newCssClass,
|
|
1292
|
+
)
|
|
1293
|
+
val rootModalViews: JSArray<View>? =
|
|
1294
|
+
jsAs<JSArray<View>>(
|
|
1295
|
+
((rootView ?: jsCannotRead("_getRootModalViews"))._getRootModalViews()
|
|
1296
|
+
?: jsObjectRequired())
|
|
1297
|
+
)
|
|
1298
|
+
(rootModalViews ?: jsCannotRead("forEach")).forEach({ rootModalView: View? ->
|
|
1299
|
+
Core_application_application.Application.applyCssClass(
|
|
1300
|
+
rootModalView,
|
|
1301
|
+
cssClasses,
|
|
1302
|
+
newCssClass,
|
|
1303
|
+
)
|
|
1304
|
+
})
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
fun applyFontScaleToRootViews() {
|
|
1308
|
+
val rootView: View? = Core_application_application.Application.getRootView_()
|
|
1309
|
+
if (!jsTruthy(rootView)) {
|
|
1310
|
+
return
|
|
1311
|
+
}
|
|
1312
|
+
val fontScale: Double = Core_application_application.getCurrentFontScale()
|
|
1313
|
+
((rootView ?: jsCannotRead("style")).style ?: jsCannotSet("fontScaleInternal"))
|
|
1314
|
+
.fontScaleInternal = fontScale
|
|
1315
|
+
val rootModalViews: JSArray<View>? =
|
|
1316
|
+
jsAs<JSArray<View>>(
|
|
1317
|
+
((rootView ?: jsCannotRead("_getRootModalViews"))._getRootModalViews()
|
|
1318
|
+
?: jsObjectRequired())
|
|
1319
|
+
)
|
|
1320
|
+
(rootModalViews ?: jsCannotRead("forEach")).forEach({ rootModalView: View? ->
|
|
1321
|
+
kotlin.run {
|
|
1322
|
+
((rootModalView ?: jsCannotRead("style")).style ?: jsCannotSet("fontScaleInternal"))
|
|
1323
|
+
.fontScaleInternal = fontScale
|
|
1324
|
+
((rootModalView ?: jsCannotRead("style")).style ?: jsCannotSet("fontScaleInternal"))
|
|
1325
|
+
.fontScaleInternal
|
|
1326
|
+
}
|
|
1327
|
+
})
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
fun getAndroidAccessibilityManager(): AccessibilityManager? {
|
|
1331
|
+
val context: Context? =
|
|
1332
|
+
jsCastCarried(
|
|
1333
|
+
Core_application_helpers_common.getNativeApp(),
|
|
1334
|
+
android_app_Application::class.java,
|
|
1335
|
+
)
|
|
1336
|
+
.getApplicationContext()
|
|
1337
|
+
if (!jsTruthy(context)) {
|
|
1338
|
+
return null
|
|
1339
|
+
}
|
|
1340
|
+
return jsCastCarried(
|
|
1341
|
+
(context ?: jsCannotRead("getSystemService")).getSystemService(
|
|
1342
|
+
Context.ACCESSIBILITY_SERVICE
|
|
1343
|
+
),
|
|
1344
|
+
AccessibilityManager::class.java,
|
|
1345
|
+
)
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
@JvmField val accessibilityStateEnabledPropName: String = "accessibilityStateEnabled"
|
|
1349
|
+
@JvmField val touchExplorationStateEnabledPropName: String = "touchExplorationStateEnabled"
|
|
1350
|
+
@JvmField
|
|
1351
|
+
var accessibilityStateChangeListener: AccessibilityManager.AccessibilityStateChangeListener? =
|
|
1352
|
+
null
|
|
1353
|
+
@JvmField
|
|
1354
|
+
var touchExplorationStateChangeListener:
|
|
1355
|
+
AccessibilityManager.TouchExplorationStateChangeListener? =
|
|
1356
|
+
null
|
|
1357
|
+
@JvmField var sharedA11YObservable: AndroidSharedA11YObservable? = null
|
|
1358
|
+
|
|
1359
|
+
fun updateAccessibilityState() {
|
|
1360
|
+
if (!jsTruthy(Core_application_application.sharedA11YObservable)) {
|
|
1361
|
+
return
|
|
1362
|
+
}
|
|
1363
|
+
val accessibilityManager: AccessibilityManager? =
|
|
1364
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
1365
|
+
if (!jsTruthy(accessibilityManager)) {
|
|
1366
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set"))
|
|
1367
|
+
.set(Core_application_application.accessibilityStateEnabledPropName, false)
|
|
1368
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set"))
|
|
1369
|
+
.set(Core_application_application.touchExplorationStateEnabledPropName, false)
|
|
1370
|
+
return
|
|
1371
|
+
}
|
|
1372
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set")).set(
|
|
1373
|
+
Core_application_application.accessibilityStateEnabledPropName,
|
|
1374
|
+
((accessibilityManager ?: jsCannotRead("isEnabled")).isEnabled()),
|
|
1375
|
+
)
|
|
1376
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set")).set(
|
|
1377
|
+
Core_application_application.touchExplorationStateEnabledPropName,
|
|
1378
|
+
((accessibilityManager ?: jsCannotRead("isTouchExplorationEnabled"))
|
|
1379
|
+
.isTouchExplorationEnabled()),
|
|
1380
|
+
)
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
fun ensureStateListener(): SharedA11YObservable? {
|
|
1384
|
+
if (jsTruthy(Core_application_application.sharedA11YObservable)) {
|
|
1385
|
+
return Core_application_application.sharedA11YObservable
|
|
1386
|
+
}
|
|
1387
|
+
val accessibilityManager: AccessibilityManager? =
|
|
1388
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
1389
|
+
Core_application_application.sharedA11YObservable =
|
|
1390
|
+
AndroidSharedA11YObservable()
|
|
1391
|
+
if (!jsTruthy(accessibilityManager)) {
|
|
1392
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set"))
|
|
1393
|
+
.set(Core_application_application.accessibilityStateEnabledPropName, false)
|
|
1394
|
+
(Core_application_application.sharedA11YObservable ?: jsCannotRead("set"))
|
|
1395
|
+
.set(Core_application_application.touchExplorationStateEnabledPropName, false)
|
|
1396
|
+
return Core_application_application.sharedA11YObservable
|
|
1397
|
+
}
|
|
1398
|
+
Core_application_application.accessibilityStateChangeListener =
|
|
1399
|
+
object : AccessibilityManager.AccessibilityStateChangeListener {
|
|
1400
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
1401
|
+
|
|
1402
|
+
@AnyThread
|
|
1403
|
+
override fun onAccessibilityStateChanged(enabled: Boolean) {
|
|
1404
|
+
jsElsewhere(__realm)?.let {
|
|
1405
|
+
return it.later { this.onAccessibilityStateChanged(enabled) }
|
|
1406
|
+
}
|
|
1407
|
+
jsReport {
|
|
1408
|
+
jsOnMainThread {
|
|
1409
|
+
Core_application_application.updateAccessibilityState()
|
|
1410
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1411
|
+
org.nativescript.kit.Trace.write(
|
|
1412
|
+
"AccessibilityStateChangeListener state changed to: ${js(enabled)}",
|
|
1413
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1414
|
+
)
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
(accessibilityManager ?: jsCannotRead("addAccessibilityStateChangeListener"))
|
|
1421
|
+
.addAccessibilityStateChangeListener(
|
|
1422
|
+
(Core_application_application.accessibilityStateChangeListener
|
|
1423
|
+
?: jsObjectRequired())
|
|
1424
|
+
)
|
|
1425
|
+
if (Core_utils_constants.SDK_VERSION >= 19.0) {
|
|
1426
|
+
Core_application_application.touchExplorationStateChangeListener =
|
|
1427
|
+
object : AccessibilityManager.TouchExplorationStateChangeListener {
|
|
1428
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
1429
|
+
|
|
1430
|
+
@AnyThread
|
|
1431
|
+
override fun onTouchExplorationStateChanged(enabled: Boolean) {
|
|
1432
|
+
jsElsewhere(__realm)?.let {
|
|
1433
|
+
return it.later { this.onTouchExplorationStateChanged(enabled) }
|
|
1434
|
+
}
|
|
1435
|
+
jsReport {
|
|
1436
|
+
jsOnMainThread {
|
|
1437
|
+
Core_application_application.updateAccessibilityState()
|
|
1438
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1439
|
+
org.nativescript.kit.Trace.write(
|
|
1440
|
+
"TouchExplorationStateChangeListener state changed to: ${js(enabled)}",
|
|
1441
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1442
|
+
)
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
(accessibilityManager
|
|
1449
|
+
?: jsCannotRead("addTouchExplorationStateChangeListener"))
|
|
1450
|
+
.addTouchExplorationStateChangeListener(
|
|
1451
|
+
(Core_application_application.touchExplorationStateChangeListener
|
|
1452
|
+
?: jsObjectRequired())
|
|
1453
|
+
)
|
|
1454
|
+
}
|
|
1455
|
+
Core_application_application.updateAccessibilityState()
|
|
1456
|
+
(Core_application_application.Application.on
|
|
1457
|
+
?: jsNotAFunction("Application.on"))(
|
|
1458
|
+
Core_application_application.Application.resumeEvent,
|
|
1459
|
+
{ _: Any? -> Core_application_application.updateAccessibilityState() },
|
|
1460
|
+
null,
|
|
1461
|
+
)
|
|
1462
|
+
(Core_application_application.Application.on
|
|
1463
|
+
?: jsNotAFunction("Application.on"))(
|
|
1464
|
+
Core_application_application.Application.exitEvent,
|
|
1465
|
+
fn1@{ args: Any? ->
|
|
1466
|
+
val activity: Activity? =
|
|
1467
|
+
jsCastCarried(jsGet(args, "android"), Activity::class.java)
|
|
1468
|
+
if (
|
|
1469
|
+
(jsTruthy(activity) &&
|
|
1470
|
+
!((activity ?: jsCannotRead("isFinishing")).isFinishing()))
|
|
1471
|
+
) {
|
|
1472
|
+
return@fn1
|
|
1473
|
+
}
|
|
1474
|
+
val accessibilityManager: AccessibilityManager? =
|
|
1475
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
1476
|
+
if (jsTruthy(accessibilityManager)) {
|
|
1477
|
+
if (
|
|
1478
|
+
jsTruthy(Core_application_application.accessibilityStateChangeListener)
|
|
1479
|
+
) {
|
|
1480
|
+
(accessibilityManager
|
|
1481
|
+
?: jsCannotRead("removeAccessibilityStateChangeListener"))
|
|
1482
|
+
.removeAccessibilityStateChangeListener(
|
|
1483
|
+
(Core_application_application.accessibilityStateChangeListener
|
|
1484
|
+
?: jsObjectRequired())
|
|
1485
|
+
)
|
|
1486
|
+
}
|
|
1487
|
+
if (
|
|
1488
|
+
jsTruthy(Core_application_application.touchExplorationStateChangeListener)
|
|
1489
|
+
) {
|
|
1490
|
+
(accessibilityManager
|
|
1491
|
+
?: jsCannotRead("removeTouchExplorationStateChangeListener"))
|
|
1492
|
+
.removeTouchExplorationStateChangeListener(
|
|
1493
|
+
(Core_application_application.touchExplorationStateChangeListener
|
|
1494
|
+
?: jsObjectRequired())
|
|
1495
|
+
)
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
Core_application_application.accessibilityStateChangeListener = null
|
|
1499
|
+
Core_application_application.touchExplorationStateChangeListener = null
|
|
1500
|
+
if (jsTruthy(Core_application_application.sharedA11YObservable)) {
|
|
1501
|
+
(Core_application_application.sharedA11YObservable
|
|
1502
|
+
?: jsCannotRead("removeEventListener"))
|
|
1503
|
+
.removeEventListener(Observable.propertyChangeEvent)
|
|
1504
|
+
Core_application_application.sharedA11YObservable = null
|
|
1505
|
+
}
|
|
1506
|
+
Core_application_application.Application.off(
|
|
1507
|
+
Core_application_application.Application.resumeEvent,
|
|
1508
|
+
Core_application_application::updateAccessibilityState,
|
|
1509
|
+
null,
|
|
1510
|
+
)
|
|
1511
|
+
},
|
|
1512
|
+
null,
|
|
1513
|
+
)
|
|
1514
|
+
return Core_application_application.sharedA11YObservable
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
@JvmField var accessibilityServiceObservable: AccessibilityServiceEnabledObservable? = null
|
|
1518
|
+
|
|
1519
|
+
fun ensureA11yClasses() {
|
|
1520
|
+
if (jsTruthy(Core_application_application.accessibilityServiceObservable)) {
|
|
1521
|
+
return
|
|
1522
|
+
}
|
|
1523
|
+
Core_accessibility_accessibility_common.setFontScaleCssClasses(
|
|
1524
|
+
JSMap<Double, String>(
|
|
1525
|
+
Core_accessibility_accessibility_common.VALID_FONT_SCALES.map({ fs: Double ->
|
|
1526
|
+
Pair(fs, "a11y-fontscale-${jsToFixed(fs * 100.0, 0.0)}")
|
|
1527
|
+
})
|
|
1528
|
+
)
|
|
1529
|
+
)
|
|
1530
|
+
Core_application_application.accessibilityServiceObservable =
|
|
1531
|
+
AccessibilityServiceEnabledObservable()
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
fun updateCurrentHelperClasses(applyRootCssClass: (JSArray<String>, String) -> Unit) {
|
|
1535
|
+
val fontScale: Double = Core_accessibility_accessibility_common.getFontScale()
|
|
1536
|
+
val fontScaleCategory: String =
|
|
1537
|
+
Core_accessibility_accessibility_common.getFontScaleCategory()
|
|
1538
|
+
val fontScaleCssClasses: JSMap<Double, String>? =
|
|
1539
|
+
Core_accessibility_accessibility_common.getFontScaleCssClasses()
|
|
1540
|
+
val oldFontScaleClass: String =
|
|
1541
|
+
Core_accessibility_accessibility_common.getCurrentFontScaleClass()
|
|
1542
|
+
if ((fontScaleCssClasses ?: jsCannotRead("has")).has(fontScale)) {
|
|
1543
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleClass(
|
|
1544
|
+
(fontScaleCssClasses ?: jsCannotRead("get")).get(fontScale)
|
|
1545
|
+
)
|
|
1546
|
+
} else {
|
|
1547
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleClass(
|
|
1548
|
+
(fontScaleCssClasses ?: jsCannotRead("get")).get(1.0)
|
|
1549
|
+
)
|
|
1550
|
+
}
|
|
1551
|
+
if (
|
|
1552
|
+
oldFontScaleClass != Core_accessibility_accessibility_common.getCurrentFontScaleClass()
|
|
1553
|
+
) {
|
|
1554
|
+
applyRootCssClass(
|
|
1555
|
+
JSArray<String>(
|
|
1556
|
+
((fontScaleCssClasses ?: jsCannotRead("values")).values()).toList()
|
|
1557
|
+
),
|
|
1558
|
+
Core_accessibility_accessibility_common.getCurrentFontScaleClass(),
|
|
1559
|
+
)
|
|
1560
|
+
}
|
|
1561
|
+
val oldActiveFontScaleCategory: String =
|
|
1562
|
+
Core_accessibility_accessibility_common.getCurrentFontScaleCategory()
|
|
1563
|
+
when (fontScaleCategory) {
|
|
1564
|
+
FontScaleCategory.ExtraSmall -> {
|
|
1565
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleCategory(
|
|
1566
|
+
Core_accessibility_accessibility_common.fontScaleExtraSmallCategoryClass
|
|
1567
|
+
)
|
|
1568
|
+
}
|
|
1569
|
+
FontScaleCategory.Medium -> {
|
|
1570
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleCategory(
|
|
1571
|
+
Core_accessibility_accessibility_common.fontScaleMediumCategoryClass
|
|
1572
|
+
)
|
|
1573
|
+
}
|
|
1574
|
+
FontScaleCategory.ExtraLarge -> {
|
|
1575
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleCategory(
|
|
1576
|
+
Core_accessibility_accessibility_common.fontScaleExtraLargeCategoryClass
|
|
1577
|
+
)
|
|
1578
|
+
}
|
|
1579
|
+
else -> {
|
|
1580
|
+
Core_accessibility_accessibility_common.setCurrentFontScaleCategory(
|
|
1581
|
+
Core_accessibility_accessibility_common.fontScaleMediumCategoryClass
|
|
1582
|
+
)
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
if (
|
|
1586
|
+
oldActiveFontScaleCategory !=
|
|
1587
|
+
Core_accessibility_accessibility_common.getCurrentFontScaleCategory()
|
|
1588
|
+
) {
|
|
1589
|
+
applyRootCssClass(
|
|
1590
|
+
Core_accessibility_accessibility_common.fontScaleCategoryClasses,
|
|
1591
|
+
Core_accessibility_accessibility_common.getCurrentFontScaleCategory(),
|
|
1592
|
+
)
|
|
1593
|
+
}
|
|
1594
|
+
val oldA11YStatusClass: String =
|
|
1595
|
+
Core_accessibility_accessibility_common.getCurrentA11YServiceClass()
|
|
1596
|
+
if (
|
|
1597
|
+
jsTruthy(
|
|
1598
|
+
(Core_application_application.accessibilityServiceObservable
|
|
1599
|
+
?: jsCannotRead("accessibilityServiceEnabled"))
|
|
1600
|
+
.accessibilityServiceEnabled
|
|
1601
|
+
)
|
|
1602
|
+
) {
|
|
1603
|
+
Core_accessibility_accessibility_common.setCurrentA11YServiceClass(
|
|
1604
|
+
Core_accessibility_accessibility_common.a11yServiceEnabledClass
|
|
1605
|
+
)
|
|
1606
|
+
} else {
|
|
1607
|
+
Core_accessibility_accessibility_common.setCurrentA11YServiceClass(
|
|
1608
|
+
Core_accessibility_accessibility_common.a11yServiceDisabledClass
|
|
1609
|
+
)
|
|
1610
|
+
}
|
|
1611
|
+
if (
|
|
1612
|
+
oldA11YStatusClass !=
|
|
1613
|
+
Core_accessibility_accessibility_common.getCurrentA11YServiceClass()
|
|
1614
|
+
) {
|
|
1615
|
+
applyRootCssClass(
|
|
1616
|
+
Core_accessibility_accessibility_common.a11yServiceClasses,
|
|
1617
|
+
Core_accessibility_accessibility_common.getCurrentA11YServiceClass(),
|
|
1618
|
+
)
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
fun initAccessibilityCssHelper() {
|
|
1623
|
+
Core_application_application.ensureA11yClasses()
|
|
1624
|
+
Core_application_application.updateCurrentHelperClasses({
|
|
1625
|
+
__r0: JSArray<String>,
|
|
1626
|
+
__r1: String ->
|
|
1627
|
+
Core_application_application.applyRootCssClass(__r0, __r1)
|
|
1628
|
+
})
|
|
1629
|
+
Core_application_application.applyFontScaleToRootViews()
|
|
1630
|
+
(Core_application_application.Application.on
|
|
1631
|
+
?: jsNotAFunction("Application.on"))(
|
|
1632
|
+
Core_application_application.Application.fontScaleChangedEvent,
|
|
1633
|
+
{ _: Any? ->
|
|
1634
|
+
Core_application_application.updateCurrentHelperClasses({
|
|
1635
|
+
__r0: JSArray<String>,
|
|
1636
|
+
__r1: String ->
|
|
1637
|
+
Core_application_application.applyRootCssClass(__r0, __r1)
|
|
1638
|
+
})
|
|
1639
|
+
Core_application_application.applyFontScaleToRootViews()
|
|
1640
|
+
},
|
|
1641
|
+
null,
|
|
1642
|
+
)
|
|
1643
|
+
(Core_application_application.accessibilityServiceObservable
|
|
1644
|
+
?: jsCannotRead("on"))
|
|
1645
|
+
.on(
|
|
1646
|
+
Observable.propertyChangeEvent,
|
|
1647
|
+
{ _: EventData? ->
|
|
1648
|
+
Core_application_application.updateCurrentHelperClasses({
|
|
1649
|
+
__r0: JSArray<String>,
|
|
1650
|
+
__r1: String ->
|
|
1651
|
+
Core_application_application.applyRootCssClass(__r0, __r1)
|
|
1652
|
+
})
|
|
1653
|
+
},
|
|
1654
|
+
)
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
@JvmField var clickableRolesMap: JSSet<String>? = JSSet<String>()
|
|
1658
|
+
@JvmField var lastFocusedView: JSWeakRef<View>? = null
|
|
1659
|
+
|
|
1660
|
+
fun accessibilityEventHelper(view: View?, eventType: Double) {
|
|
1661
|
+
val eventName: String? =
|
|
1662
|
+
(Core_application_application.accessibilityEventTypeMap ?: jsCannotRead("get")).get(
|
|
1663
|
+
eventType
|
|
1664
|
+
)
|
|
1665
|
+
if (!Core_application_application.isAccessibilityServiceEnabled()) {
|
|
1666
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1667
|
+
org.nativescript.kit.Trace.write(
|
|
1668
|
+
"accessibilityEventHelper: Service not active",
|
|
1669
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1670
|
+
)
|
|
1671
|
+
}
|
|
1672
|
+
return
|
|
1673
|
+
}
|
|
1674
|
+
if (!jsTruthy(eventName)) {
|
|
1675
|
+
org.nativescript.kit.Trace.write(
|
|
1676
|
+
"accessibilityEventHelper: unknown eventType: ${js(eventType)}",
|
|
1677
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1678
|
+
org.nativescript.kit.Trace.messageType.error,
|
|
1679
|
+
)
|
|
1680
|
+
return
|
|
1681
|
+
}
|
|
1682
|
+
if (!jsTruthy(view)) {
|
|
1683
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1684
|
+
org.nativescript.kit.Trace.write(
|
|
1685
|
+
"accessibilityEventHelper: no owner: ${jsToString(eventName)}",
|
|
1686
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1687
|
+
)
|
|
1688
|
+
}
|
|
1689
|
+
return
|
|
1690
|
+
}
|
|
1691
|
+
val androidView: android_view_View? =
|
|
1692
|
+
(jsCast(
|
|
1693
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
1694
|
+
android_view_View::class.java,
|
|
1695
|
+
) ?: jsObjectRequired())
|
|
1696
|
+
if (!jsTruthy(androidView)) {
|
|
1697
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1698
|
+
org.nativescript.kit.Trace.write(
|
|
1699
|
+
"accessibilityEventHelper: no nativeView",
|
|
1700
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1701
|
+
)
|
|
1702
|
+
}
|
|
1703
|
+
return
|
|
1704
|
+
}
|
|
1705
|
+
when (eventType) {
|
|
1706
|
+
AccessibilityEvent.TYPE_VIEW_CLICKED.toDouble() -> {
|
|
1707
|
+
if (Core_utils_constants.SDK_VERSION >= 26.0) {
|
|
1708
|
+
for (tapGesture in
|
|
1709
|
+
((view ?: jsCannotRead("getGestureObservers")).getGestureObservers(1.0)
|
|
1710
|
+
?: JSArray<GesturesObserver>())) {
|
|
1711
|
+
(tapGesture ?: jsCannotRead("callback")).callback(
|
|
1712
|
+
jsObjectOf(
|
|
1713
|
+
"android" to (view ?: jsCannotRead("android")).android,
|
|
1714
|
+
"eventName" to "tap",
|
|
1715
|
+
"ios" to jsNull,
|
|
1716
|
+
"object" to view,
|
|
1717
|
+
"type" to 1.0,
|
|
1718
|
+
"view" to view,
|
|
1719
|
+
)
|
|
1720
|
+
)
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
return
|
|
1724
|
+
}
|
|
1725
|
+
AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED.toDouble() -> {
|
|
1726
|
+
val lastView: View? =
|
|
1727
|
+
Core_application_application.lastFocusedView?.get()
|
|
1728
|
+
if ((jsTruthy(lastView) && view !== lastView)) {
|
|
1729
|
+
val lastAndroidView: android_view_View? =
|
|
1730
|
+
(jsCast(
|
|
1731
|
+
(lastView ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
1732
|
+
android_view_View::class.java,
|
|
1733
|
+
) ?: jsObjectRequired())
|
|
1734
|
+
if (jsTruthy(lastAndroidView)) {
|
|
1735
|
+
(lastAndroidView ?: jsCannotRead("clearFocus")).clearFocus()
|
|
1736
|
+
Core_application_application.lastFocusedView = null
|
|
1737
|
+
Core_accessibility_accessibility_common
|
|
1738
|
+
.notifyAccessibilityFocusState(lastView, false, true)
|
|
1739
|
+
}
|
|
1740
|
+
}
|
|
1741
|
+
Core_application_application.lastFocusedView =
|
|
1742
|
+
JSWeakRef<View>(jsWeakRefTarget(view))
|
|
1743
|
+
Core_accessibility_accessibility_common.notifyAccessibilityFocusState(
|
|
1744
|
+
view,
|
|
1745
|
+
true,
|
|
1746
|
+
false,
|
|
1747
|
+
)
|
|
1748
|
+
return
|
|
1749
|
+
}
|
|
1750
|
+
AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED.toDouble() -> {
|
|
1751
|
+
val lastView: View? =
|
|
1752
|
+
Core_application_application.lastFocusedView?.get()
|
|
1753
|
+
if ((jsTruthy(lastView) && view === lastView)) {
|
|
1754
|
+
Core_application_application.lastFocusedView = null
|
|
1755
|
+
(androidView ?: jsCannotRead("clearFocus")).clearFocus()
|
|
1756
|
+
}
|
|
1757
|
+
Core_accessibility_accessibility_common.notifyAccessibilityFocusState(
|
|
1758
|
+
view,
|
|
1759
|
+
false,
|
|
1760
|
+
true,
|
|
1761
|
+
)
|
|
1762
|
+
return
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
@JvmField var TNSAccessibilityDelegate: Any? = null
|
|
1768
|
+
@get:JvmName("__get_androidViewToTNSView")
|
|
1769
|
+
@set:JvmName("__set_androidViewToTNSView")
|
|
1770
|
+
lateinit var androidViewToTNSView: JSWeakMap<android_view_View, JSWeakRef<View>>
|
|
1771
|
+
@JvmField var accessibilityEventMap: JSMap<String, Double>? = null
|
|
1772
|
+
@JvmField var accessibilityEventTypeMap: JSMap<Double, String>? = null
|
|
1773
|
+
|
|
1774
|
+
fun ensureNativeClasses() {
|
|
1775
|
+
if (jsTruthy(Core_application_application.TNSAccessibilityDelegate)) {
|
|
1776
|
+
return
|
|
1777
|
+
}
|
|
1778
|
+
val RoleTypeMap: JSMap<String, String> =
|
|
1779
|
+
JSMap<String, String>(
|
|
1780
|
+
listOf(
|
|
1781
|
+
Pair<String, String>(
|
|
1782
|
+
AccessibilityRole.Button,
|
|
1783
|
+
android_widget_Button::class.java.getName(),
|
|
1784
|
+
),
|
|
1785
|
+
Pair<String, String>(AccessibilityRole.Search, EditText::class.java.getName()),
|
|
1786
|
+
Pair<String, String>(AccessibilityRole.Image, ImageView::class.java.getName()),
|
|
1787
|
+
Pair<String, String>(
|
|
1788
|
+
AccessibilityRole.ImageButton,
|
|
1789
|
+
ImageButton::class.java.getName(),
|
|
1790
|
+
),
|
|
1791
|
+
Pair<String, String>(
|
|
1792
|
+
AccessibilityRole.KeyboardKey,
|
|
1793
|
+
Keyboard.Key::class.java.getName(),
|
|
1794
|
+
),
|
|
1795
|
+
Pair<String, String>(
|
|
1796
|
+
AccessibilityRole.StaticText,
|
|
1797
|
+
android_widget_TextView::class.java.getName(),
|
|
1798
|
+
),
|
|
1799
|
+
Pair<String, String>(
|
|
1800
|
+
AccessibilityRole.Adjustable,
|
|
1801
|
+
SeekBar::class.java.getName(),
|
|
1802
|
+
),
|
|
1803
|
+
Pair<String, String>(
|
|
1804
|
+
AccessibilityRole.Checkbox,
|
|
1805
|
+
CheckBox::class.java.getName(),
|
|
1806
|
+
),
|
|
1807
|
+
Pair<String, String>(
|
|
1808
|
+
AccessibilityRole.RadioButton,
|
|
1809
|
+
RadioButton::class.java.getName(),
|
|
1810
|
+
),
|
|
1811
|
+
Pair<String, String>(
|
|
1812
|
+
AccessibilityRole.SpinButton,
|
|
1813
|
+
Spinner::class.java.getName(),
|
|
1814
|
+
),
|
|
1815
|
+
Pair<String, String>(
|
|
1816
|
+
AccessibilityRole.Switch,
|
|
1817
|
+
android_widget_Switch::class.java.getName(),
|
|
1818
|
+
),
|
|
1819
|
+
Pair<String, String>(
|
|
1820
|
+
AccessibilityRole.ProgressBar,
|
|
1821
|
+
ProgressBar::class.java.getName(),
|
|
1822
|
+
),
|
|
1823
|
+
)
|
|
1824
|
+
)
|
|
1825
|
+
Core_application_application.clickableRolesMap =
|
|
1826
|
+
JSSet<String>(
|
|
1827
|
+
jsArrayOf<String>(AccessibilityRole.Button, AccessibilityRole.ImageButton)
|
|
1828
|
+
)
|
|
1829
|
+
val ignoreRoleTypesForTrace: JSSet<String> =
|
|
1830
|
+
JSSet<String>(
|
|
1831
|
+
jsArrayOf<String>(
|
|
1832
|
+
AccessibilityRole.Header,
|
|
1833
|
+
AccessibilityRole.Link,
|
|
1834
|
+
AccessibilityRole.None,
|
|
1835
|
+
AccessibilityRole.Summary,
|
|
1836
|
+
)
|
|
1837
|
+
)
|
|
1838
|
+
@UiThread
|
|
1839
|
+
class TNSAccessibilityDelegateImpl : android_view_View.AccessibilityDelegate {
|
|
1840
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
1841
|
+
|
|
1842
|
+
constructor() : super()
|
|
1843
|
+
|
|
1844
|
+
fun getTnsView(androidView: android_view_View?): View? {
|
|
1845
|
+
val view: View? =
|
|
1846
|
+
(Core_application_application.androidViewToTNSView.get(
|
|
1847
|
+
(androidView ?: jsObjectRequired())
|
|
1848
|
+
) ?: jsObjectRequired())
|
|
1849
|
+
?.get()
|
|
1850
|
+
if (!jsTruthy(view)) {
|
|
1851
|
+
Core_application_application.androidViewToTNSView.delete(
|
|
1852
|
+
jsUnchecked<android_view_View>(androidView)
|
|
1853
|
+
)
|
|
1854
|
+
return null
|
|
1855
|
+
}
|
|
1856
|
+
return view
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
@AnyThread
|
|
1860
|
+
override fun onInitializeAccessibilityNodeInfo(
|
|
1861
|
+
host: android_view_View,
|
|
1862
|
+
info: AccessibilityNodeInfo,
|
|
1863
|
+
) {
|
|
1864
|
+
jsElsewhere(__realm)?.let {
|
|
1865
|
+
return it.later { this.onInitializeAccessibilityNodeInfo(host, info) }
|
|
1866
|
+
}
|
|
1867
|
+
jsReport {
|
|
1868
|
+
jsOnMainThread {
|
|
1869
|
+
val host: android_view_View? = host
|
|
1870
|
+
val info: AccessibilityNodeInfo? = info
|
|
1871
|
+
super.onInitializeAccessibilityNodeInfo(
|
|
1872
|
+
(host ?: jsObjectRequired()),
|
|
1873
|
+
(info ?: jsObjectRequired()),
|
|
1874
|
+
)
|
|
1875
|
+
val view: View? = this.getTnsView(host)
|
|
1876
|
+
if (!jsTruthy(view)) {
|
|
1877
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1878
|
+
org.nativescript.kit.Trace.write(
|
|
1879
|
+
"onInitializeAccessibilityNodeInfo ${jsToString(host)} ${jsToString(info)} no tns-view",
|
|
1880
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1881
|
+
)
|
|
1882
|
+
}
|
|
1883
|
+
return
|
|
1884
|
+
}
|
|
1885
|
+
val id: Any? =
|
|
1886
|
+
(host ?: jsCannotRead("getTag")).getTag(
|
|
1887
|
+
Core_utils_native_helper.android.resources
|
|
1888
|
+
.getId(":id/nativescript_accessibility_id")
|
|
1889
|
+
.toLong()
|
|
1890
|
+
.toInt()
|
|
1891
|
+
)
|
|
1892
|
+
if (!jsIsNullish(id)) {
|
|
1893
|
+
(info ?: jsCannotRead("setViewIdResourceName"))
|
|
1894
|
+
.setViewIdResourceName((id as String?))
|
|
1895
|
+
}
|
|
1896
|
+
val accessibilityRole: String =
|
|
1897
|
+
(view ?: jsCannotRead("accessibilityRole")).accessibilityRole
|
|
1898
|
+
if (!accessibilityRole.isNullOrEmpty()) {
|
|
1899
|
+
val androidClassName: String? =
|
|
1900
|
+
RoleTypeMap.get(accessibilityRole)
|
|
1901
|
+
if (jsTruthy(androidClassName)) {
|
|
1902
|
+
val oldClassName: String =
|
|
1903
|
+
jsConvertedStringOrEmpty(
|
|
1904
|
+
kotlin.run {
|
|
1905
|
+
val __v_1 = kotlin.run {
|
|
1906
|
+
val __v_2 =
|
|
1907
|
+
jsToString(
|
|
1908
|
+
(info ?: jsCannotRead("getClassName"))
|
|
1909
|
+
.getClassName()
|
|
1910
|
+
)
|
|
1911
|
+
if (jsTruthy(__v_2)) __v_2
|
|
1912
|
+
else
|
|
1913
|
+
(jsAnd(
|
|
1914
|
+
Core_utils_constants.SDK_VERSION >= 28.0
|
|
1915
|
+
) {
|
|
1916
|
+
jsToString(
|
|
1917
|
+
(host
|
|
1918
|
+
?: jsCannotRead(
|
|
1919
|
+
"getAccessibilityClassName"
|
|
1920
|
+
))
|
|
1921
|
+
.getAccessibilityClassName()
|
|
1922
|
+
)
|
|
1923
|
+
})
|
|
1924
|
+
}
|
|
1925
|
+
if (jsTruthy(__v_1)) __v_1 else ""
|
|
1926
|
+
}
|
|
1927
|
+
)
|
|
1928
|
+
(info ?: jsCannotRead("setClassName")).setClassName(
|
|
1929
|
+
androidClassName
|
|
1930
|
+
)
|
|
1931
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1932
|
+
org.nativescript.kit.Trace.write(
|
|
1933
|
+
"${jsToStringThrowing(jsNulled(view))}.accessibilityRole = \"${accessibilityRole}\" is mapped to \"${jsToString(androidClassName)}\" (was ${oldClassName}). ${jsToString((info ?: jsCannotRead("getClassName")).getClassName())}",
|
|
1934
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1935
|
+
)
|
|
1936
|
+
}
|
|
1937
|
+
} else if (
|
|
1938
|
+
!ignoreRoleTypesForTrace.has(accessibilityRole)
|
|
1939
|
+
) {
|
|
1940
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1941
|
+
org.nativescript.kit.Trace.write(
|
|
1942
|
+
"${jsToStringThrowing(jsNulled(view))}.accessibilityRole = \"${accessibilityRole}\" is unknown",
|
|
1943
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1944
|
+
)
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
if (
|
|
1948
|
+
(Core_application_application.clickableRolesMap
|
|
1949
|
+
?: jsCannotRead("has"))
|
|
1950
|
+
.has(accessibilityRole)
|
|
1951
|
+
) {
|
|
1952
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1953
|
+
org.nativescript.kit.Trace.write(
|
|
1954
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set clickable role=${accessibilityRole}",
|
|
1955
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1956
|
+
)
|
|
1957
|
+
}
|
|
1958
|
+
(info ?: jsCannotRead("setClickable")).setClickable(
|
|
1959
|
+
true
|
|
1960
|
+
)
|
|
1961
|
+
}
|
|
1962
|
+
if (Core_utils_constants.SDK_VERSION >= 28.0) {
|
|
1963
|
+
if (accessibilityRole == AccessibilityRole.Header) {
|
|
1964
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1965
|
+
org.nativescript.kit.Trace.write(
|
|
1966
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set heading role=${accessibilityRole}",
|
|
1967
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1968
|
+
)
|
|
1969
|
+
}
|
|
1970
|
+
(info ?: jsCannotRead("setHeading")).setHeading(
|
|
1971
|
+
true
|
|
1972
|
+
)
|
|
1973
|
+
} else if (
|
|
1974
|
+
(host ?: jsCannotRead("isAccessibilityHeading"))
|
|
1975
|
+
.isAccessibilityHeading()
|
|
1976
|
+
) {
|
|
1977
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1978
|
+
org.nativescript.kit.Trace.write(
|
|
1979
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set heading from host",
|
|
1980
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1981
|
+
)
|
|
1982
|
+
}
|
|
1983
|
+
(info ?: jsCannotRead("setHeading")).setHeading(
|
|
1984
|
+
true
|
|
1985
|
+
)
|
|
1986
|
+
} else {
|
|
1987
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
1988
|
+
org.nativescript.kit.Trace.write(
|
|
1989
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set not heading",
|
|
1990
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
1991
|
+
)
|
|
1992
|
+
}
|
|
1993
|
+
(info ?: jsCannotRead("setHeading")).setHeading(
|
|
1994
|
+
false
|
|
1995
|
+
)
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
when (accessibilityRole) {
|
|
1999
|
+
AccessibilityRole.Switch,
|
|
2000
|
+
AccessibilityRole.RadioButton,
|
|
2001
|
+
AccessibilityRole.Checkbox -> {
|
|
2002
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2003
|
+
org.nativescript.kit.Trace.write(
|
|
2004
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set checkable and check=${js((view ?: jsCannotRead("accessibilityState")).accessibilityState == AccessibilityState.Checked)}",
|
|
2005
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2006
|
+
)
|
|
2007
|
+
}
|
|
2008
|
+
(info ?: jsCannotRead("setCheckable"))
|
|
2009
|
+
.setCheckable(true)
|
|
2010
|
+
(info ?: jsCannotRead("setChecked")).setChecked(
|
|
2011
|
+
(view ?: jsCannotRead("accessibilityState"))
|
|
2012
|
+
.accessibilityState == AccessibilityState.Checked
|
|
2013
|
+
)
|
|
2014
|
+
}
|
|
2015
|
+
else -> {
|
|
2016
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2017
|
+
org.nativescript.kit.Trace.write(
|
|
2018
|
+
"onInitializeAccessibilityNodeInfo ${jsToStringThrowing(jsNulled(view))} - set enabled=${js((view ?: jsCannotRead("accessibilityState")).accessibilityState != AccessibilityState.Disabled)} and selected=${js((view ?: jsCannotRead("accessibilityState")).accessibilityState == AccessibilityState.Selected)}",
|
|
2019
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2020
|
+
)
|
|
2021
|
+
}
|
|
2022
|
+
(info ?: jsCannotRead("setEnabled")).setEnabled(
|
|
2023
|
+
(view ?: jsCannotRead("accessibilityState"))
|
|
2024
|
+
.accessibilityState != AccessibilityState.Disabled
|
|
2025
|
+
)
|
|
2026
|
+
(info ?: jsCannotRead("setSelected")).setSelected(
|
|
2027
|
+
(view ?: jsCannotRead("accessibilityState"))
|
|
2028
|
+
.accessibilityState == AccessibilityState.Selected
|
|
2029
|
+
)
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
if ((view ?: jsCannotRead("accessible")).accessible) {
|
|
2034
|
+
(info ?: jsCannotRead("setFocusable")).setFocusable(true)
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
@AnyThread
|
|
2041
|
+
override fun sendAccessibilityEvent(host: android_view_View, eventType: Int) {
|
|
2042
|
+
jsElsewhere(__realm)?.let {
|
|
2043
|
+
return it.later { this.sendAccessibilityEvent(host, eventType) }
|
|
2044
|
+
}
|
|
2045
|
+
jsReport {
|
|
2046
|
+
jsOnMainThread {
|
|
2047
|
+
val eventType: Double = eventType.toDouble()
|
|
2048
|
+
super.sendAccessibilityEvent(
|
|
2049
|
+
(host as android_view_View),
|
|
2050
|
+
eventType.toLong().toInt(),
|
|
2051
|
+
)
|
|
2052
|
+
val view: View? = this.getTnsView((host as android_view_View))
|
|
2053
|
+
if (!jsTruthy(view)) {
|
|
2054
|
+
jsLog(
|
|
2055
|
+
"skip - ${jsToString((host as android_view_View))} - ${jsToString((Core_application_application.accessibilityEventTypeMap ?: jsCannotRead("get")).get(eventType))}"
|
|
2056
|
+
)
|
|
2057
|
+
return
|
|
2058
|
+
}
|
|
2059
|
+
try {
|
|
2060
|
+
Core_application_application.accessibilityEventHelper(
|
|
2061
|
+
view,
|
|
2062
|
+
eventType,
|
|
2063
|
+
)
|
|
2064
|
+
} catch (__e_1: Throwable) {
|
|
2065
|
+
val err: Any? = jsCaught(__e_1)
|
|
2066
|
+
jsError(err)
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
Core_application_application.TNSAccessibilityDelegate =
|
|
2073
|
+
TNSAccessibilityDelegateImpl()
|
|
2074
|
+
Core_application_application.accessibilityEventMap =
|
|
2075
|
+
JSMap<String, Double>(
|
|
2076
|
+
listOf(
|
|
2077
|
+
Pair<String, Double>(
|
|
2078
|
+
AndroidAccessibilityEvent.INVALID_POSITION,
|
|
2079
|
+
AccessibilityEvent.INVALID_POSITION.toDouble(),
|
|
2080
|
+
),
|
|
2081
|
+
Pair<String, Double>(
|
|
2082
|
+
AndroidAccessibilityEvent.MAX_TEXT_LENGTH,
|
|
2083
|
+
AccessibilityEvent.MAX_TEXT_LENGTH.toDouble(),
|
|
2084
|
+
),
|
|
2085
|
+
Pair<String, Double>(
|
|
2086
|
+
AndroidAccessibilityEvent.VIEW_CLICKED,
|
|
2087
|
+
AccessibilityEvent.TYPE_VIEW_CLICKED.toDouble(),
|
|
2088
|
+
),
|
|
2089
|
+
Pair<String, Double>(
|
|
2090
|
+
AndroidAccessibilityEvent.VIEW_LONG_CLICKED,
|
|
2091
|
+
AccessibilityEvent.TYPE_VIEW_LONG_CLICKED.toDouble(),
|
|
2092
|
+
),
|
|
2093
|
+
Pair<String, Double>(
|
|
2094
|
+
AndroidAccessibilityEvent.VIEW_SELECTED,
|
|
2095
|
+
AccessibilityEvent.TYPE_VIEW_SELECTED.toDouble(),
|
|
2096
|
+
),
|
|
2097
|
+
Pair<String, Double>(
|
|
2098
|
+
AndroidAccessibilityEvent.VIEW_FOCUSED,
|
|
2099
|
+
AccessibilityEvent.TYPE_VIEW_FOCUSED.toDouble(),
|
|
2100
|
+
),
|
|
2101
|
+
Pair<String, Double>(
|
|
2102
|
+
AndroidAccessibilityEvent.VIEW_TEXT_CHANGED,
|
|
2103
|
+
AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED.toDouble(),
|
|
2104
|
+
),
|
|
2105
|
+
Pair<String, Double>(
|
|
2106
|
+
AndroidAccessibilityEvent.WINDOW_STATE_CHANGED,
|
|
2107
|
+
AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED.toDouble(),
|
|
2108
|
+
),
|
|
2109
|
+
Pair<String, Double>(
|
|
2110
|
+
AndroidAccessibilityEvent.NOTIFICATION_STATE_CHANGED,
|
|
2111
|
+
AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED.toDouble(),
|
|
2112
|
+
),
|
|
2113
|
+
Pair<String, Double>(
|
|
2114
|
+
AndroidAccessibilityEvent.VIEW_HOVER_ENTER,
|
|
2115
|
+
AccessibilityEvent.TYPE_VIEW_HOVER_ENTER.toDouble(),
|
|
2116
|
+
),
|
|
2117
|
+
Pair<String, Double>(
|
|
2118
|
+
AndroidAccessibilityEvent.VIEW_HOVER_EXIT,
|
|
2119
|
+
AccessibilityEvent.TYPE_VIEW_HOVER_EXIT.toDouble(),
|
|
2120
|
+
),
|
|
2121
|
+
Pair<String, Double>(
|
|
2122
|
+
AndroidAccessibilityEvent.TOUCH_EXPLORATION_GESTURE_START,
|
|
2123
|
+
AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START.toDouble(),
|
|
2124
|
+
),
|
|
2125
|
+
Pair<String, Double>(
|
|
2126
|
+
AndroidAccessibilityEvent.TOUCH_EXPLORATION_GESTURE_END,
|
|
2127
|
+
AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END.toDouble(),
|
|
2128
|
+
),
|
|
2129
|
+
Pair<String, Double>(
|
|
2130
|
+
AndroidAccessibilityEvent.WINDOW_CONTENT_CHANGED,
|
|
2131
|
+
AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED.toDouble(),
|
|
2132
|
+
),
|
|
2133
|
+
Pair<String, Double>(
|
|
2134
|
+
AndroidAccessibilityEvent.VIEW_SCROLLED,
|
|
2135
|
+
AccessibilityEvent.TYPE_VIEW_SCROLLED.toDouble(),
|
|
2136
|
+
),
|
|
2137
|
+
Pair<String, Double>(
|
|
2138
|
+
AndroidAccessibilityEvent.VIEW_TEXT_SELECTION_CHANGED,
|
|
2139
|
+
AccessibilityEvent.TYPE_VIEW_TEXT_SELECTION_CHANGED.toDouble(),
|
|
2140
|
+
),
|
|
2141
|
+
Pair<String, Double>(
|
|
2142
|
+
AndroidAccessibilityEvent.ANNOUNCEMENT,
|
|
2143
|
+
AccessibilityEvent.TYPE_ANNOUNCEMENT.toDouble(),
|
|
2144
|
+
),
|
|
2145
|
+
Pair<String, Double>(
|
|
2146
|
+
AndroidAccessibilityEvent.VIEW_ACCESSIBILITY_FOCUSED,
|
|
2147
|
+
AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUSED.toDouble(),
|
|
2148
|
+
),
|
|
2149
|
+
Pair<String, Double>(
|
|
2150
|
+
AndroidAccessibilityEvent.VIEW_ACCESSIBILITY_FOCUS_CLEARED,
|
|
2151
|
+
AccessibilityEvent.TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED.toDouble(),
|
|
2152
|
+
),
|
|
2153
|
+
Pair<String, Double>(
|
|
2154
|
+
AndroidAccessibilityEvent.VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY,
|
|
2155
|
+
AccessibilityEvent.TYPE_VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY
|
|
2156
|
+
.toDouble(),
|
|
2157
|
+
),
|
|
2158
|
+
Pair<String, Double>(
|
|
2159
|
+
AndroidAccessibilityEvent.GESTURE_DETECTION_START,
|
|
2160
|
+
AccessibilityEvent.TYPE_GESTURE_DETECTION_START.toDouble(),
|
|
2161
|
+
),
|
|
2162
|
+
Pair<String, Double>(
|
|
2163
|
+
AndroidAccessibilityEvent.GESTURE_DETECTION_END,
|
|
2164
|
+
AccessibilityEvent.TYPE_GESTURE_DETECTION_END.toDouble(),
|
|
2165
|
+
),
|
|
2166
|
+
Pair<String, Double>(
|
|
2167
|
+
AndroidAccessibilityEvent.TOUCH_INTERACTION_START,
|
|
2168
|
+
AccessibilityEvent.TYPE_TOUCH_INTERACTION_START.toDouble(),
|
|
2169
|
+
),
|
|
2170
|
+
Pair<String, Double>(
|
|
2171
|
+
AndroidAccessibilityEvent.TOUCH_INTERACTION_END,
|
|
2172
|
+
AccessibilityEvent.TYPE_TOUCH_INTERACTION_END.toDouble(),
|
|
2173
|
+
),
|
|
2174
|
+
Pair<String, Double>(
|
|
2175
|
+
AndroidAccessibilityEvent.ALL_MASK,
|
|
2176
|
+
AccessibilityEvent.TYPES_ALL_MASK.toDouble(),
|
|
2177
|
+
),
|
|
2178
|
+
)
|
|
2179
|
+
)
|
|
2180
|
+
Core_application_application.accessibilityEventTypeMap =
|
|
2181
|
+
JSMap<Double, String>(
|
|
2182
|
+
JSArray<Pair<String, Double>>(
|
|
2183
|
+
((Core_application_application.accessibilityEventMap ?: jsObjectRequired())
|
|
2184
|
+
.entries())
|
|
2185
|
+
.toList()
|
|
2186
|
+
)
|
|
2187
|
+
.map(
|
|
2188
|
+
fun(__p0: Pair<String, Double>?): Pair<Double, String> {
|
|
2189
|
+
jsDestructurable(__p0, null)
|
|
2190
|
+
val k: String? = __p0.first
|
|
2191
|
+
val v: Double? = __p0.second
|
|
2192
|
+
return Pair((v ?: Double.NaN), (k ?: "undefined"))
|
|
2193
|
+
}
|
|
2194
|
+
)
|
|
2195
|
+
)
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
fun updateAccessibilityServiceState() {
|
|
2199
|
+
val accessibilityManager: AccessibilityManager? =
|
|
2200
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
2201
|
+
if (!jsTruthy(accessibilityManager)) {
|
|
2202
|
+
return
|
|
2203
|
+
}
|
|
2204
|
+
Core_accessibility_accessibility_common.setA11yEnabled(
|
|
2205
|
+
((accessibilityManager ?: jsCannotRead("isEnabled")).isEnabled()) &&
|
|
2206
|
+
((accessibilityManager ?: jsCannotRead("isTouchExplorationEnabled"))
|
|
2207
|
+
.isTouchExplorationEnabled())
|
|
2208
|
+
)
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
fun isAccessibilityServiceEnabled(): Boolean {
|
|
2212
|
+
val accessibilityServiceEnabled: Boolean? =
|
|
2213
|
+
Core_accessibility_accessibility_common.isA11yEnabled()
|
|
2214
|
+
if (jsTypeof(accessibilityServiceEnabled) == "boolean") {
|
|
2215
|
+
return (accessibilityServiceEnabled ?: false)
|
|
2216
|
+
}
|
|
2217
|
+
val accessibilityManager: AccessibilityManager? =
|
|
2218
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
2219
|
+
Core_application_application.accessibilityStateChangeListener =
|
|
2220
|
+
object : AccessibilityManager.AccessibilityStateChangeListener {
|
|
2221
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
2222
|
+
|
|
2223
|
+
@AnyThread
|
|
2224
|
+
override fun onAccessibilityStateChanged(enabled: Boolean) {
|
|
2225
|
+
jsElsewhere(__realm)?.let {
|
|
2226
|
+
return it.later { this.onAccessibilityStateChanged(enabled) }
|
|
2227
|
+
}
|
|
2228
|
+
jsReport {
|
|
2229
|
+
jsOnMainThread {
|
|
2230
|
+
Core_application_application
|
|
2231
|
+
.updateAccessibilityServiceState()
|
|
2232
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2233
|
+
org.nativescript.kit.Trace.write(
|
|
2234
|
+
"AccessibilityStateChangeListener state changed to: ${js(enabled)}",
|
|
2235
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2236
|
+
)
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
}
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
(accessibilityManager ?: jsCannotRead("addAccessibilityStateChangeListener"))
|
|
2243
|
+
.addAccessibilityStateChangeListener(
|
|
2244
|
+
(Core_application_application.accessibilityStateChangeListener
|
|
2245
|
+
?: jsObjectRequired())
|
|
2246
|
+
)
|
|
2247
|
+
if (Core_utils_constants.SDK_VERSION >= 19.0) {
|
|
2248
|
+
Core_application_application.touchExplorationStateChangeListener =
|
|
2249
|
+
object : AccessibilityManager.TouchExplorationStateChangeListener {
|
|
2250
|
+
private val __realm: JSRealm? = JSRealm.current()
|
|
2251
|
+
|
|
2252
|
+
@AnyThread
|
|
2253
|
+
override fun onTouchExplorationStateChanged(enabled: Boolean) {
|
|
2254
|
+
jsElsewhere(__realm)?.let {
|
|
2255
|
+
return it.later { this.onTouchExplorationStateChanged(enabled) }
|
|
2256
|
+
}
|
|
2257
|
+
jsReport {
|
|
2258
|
+
jsOnMainThread {
|
|
2259
|
+
Core_application_application
|
|
2260
|
+
.updateAccessibilityServiceState()
|
|
2261
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2262
|
+
org.nativescript.kit.Trace.write(
|
|
2263
|
+
"TouchExplorationStateChangeListener state changed to: ${js(enabled)}",
|
|
2264
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2265
|
+
)
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
(accessibilityManager
|
|
2272
|
+
?: jsCannotRead("addTouchExplorationStateChangeListener"))
|
|
2273
|
+
.addTouchExplorationStateChangeListener(
|
|
2274
|
+
(Core_application_application.touchExplorationStateChangeListener
|
|
2275
|
+
?: jsObjectRequired())
|
|
2276
|
+
)
|
|
2277
|
+
}
|
|
2278
|
+
Core_application_application.updateAccessibilityServiceState()
|
|
2279
|
+
(Core_application_application.Application.on
|
|
2280
|
+
?: jsNotAFunction("Application.on"))(
|
|
2281
|
+
Core_application_application.Application.exitEvent,
|
|
2282
|
+
fn1@{ args: Any? ->
|
|
2283
|
+
val activity: Activity? =
|
|
2284
|
+
jsCastCarried(jsGet(args, "android"), Activity::class.java)
|
|
2285
|
+
if (
|
|
2286
|
+
(jsTruthy(activity) &&
|
|
2287
|
+
!((activity ?: jsCannotRead("isFinishing")).isFinishing()))
|
|
2288
|
+
) {
|
|
2289
|
+
return@fn1
|
|
2290
|
+
}
|
|
2291
|
+
val accessibilityManager: AccessibilityManager? =
|
|
2292
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
2293
|
+
if (jsTruthy(accessibilityManager)) {
|
|
2294
|
+
if (
|
|
2295
|
+
jsTruthy(Core_application_application.accessibilityStateChangeListener)
|
|
2296
|
+
) {
|
|
2297
|
+
(accessibilityManager
|
|
2298
|
+
?: jsCannotRead("removeAccessibilityStateChangeListener"))
|
|
2299
|
+
.removeAccessibilityStateChangeListener(
|
|
2300
|
+
(Core_application_application.accessibilityStateChangeListener
|
|
2301
|
+
?: jsObjectRequired())
|
|
2302
|
+
)
|
|
2303
|
+
}
|
|
2304
|
+
if (
|
|
2305
|
+
jsTruthy(Core_application_application.touchExplorationStateChangeListener)
|
|
2306
|
+
) {
|
|
2307
|
+
(accessibilityManager
|
|
2308
|
+
?: jsCannotRead("removeTouchExplorationStateChangeListener"))
|
|
2309
|
+
.removeTouchExplorationStateChangeListener(
|
|
2310
|
+
(Core_application_application.touchExplorationStateChangeListener
|
|
2311
|
+
?: jsObjectRequired())
|
|
2312
|
+
)
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
Core_application_application.accessibilityStateChangeListener = null
|
|
2316
|
+
Core_application_application.touchExplorationStateChangeListener = null
|
|
2317
|
+
Core_application_application.Application.off(
|
|
2318
|
+
Core_application_application.Application.resumeEvent,
|
|
2319
|
+
Core_application_application::updateAccessibilityServiceState,
|
|
2320
|
+
null,
|
|
2321
|
+
)
|
|
2322
|
+
},
|
|
2323
|
+
null,
|
|
2324
|
+
)
|
|
2325
|
+
(Core_application_application.Application.on
|
|
2326
|
+
?: jsNotAFunction("Application.on"))(
|
|
2327
|
+
Core_application_application.Application.resumeEvent,
|
|
2328
|
+
{ _: Any? -> Core_application_application.updateAccessibilityServiceState() },
|
|
2329
|
+
null,
|
|
2330
|
+
)
|
|
2331
|
+
return jsConvertedBooleanOrFalse(accessibilityServiceEnabled)
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
@JvmField var updateAccessibilityPropertiesMicroTask: Any? = null
|
|
2335
|
+
@JvmField var pendingViews: JSSet<View>? = JSSet<View>()
|
|
2336
|
+
|
|
2337
|
+
fun updateAccessibilityProperties(view: View?) {
|
|
2338
|
+
if (
|
|
2339
|
+
!jsTruthy(
|
|
2340
|
+
jsCast(
|
|
2341
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
2342
|
+
android_view_View::class.java,
|
|
2343
|
+
)
|
|
2344
|
+
)
|
|
2345
|
+
) {
|
|
2346
|
+
return
|
|
2347
|
+
}
|
|
2348
|
+
(Core_application_application.pendingViews ?: jsCannotRead("add")).add(
|
|
2349
|
+
jsUnchecked<View>(view)
|
|
2350
|
+
)
|
|
2351
|
+
if (
|
|
2352
|
+
jsTruthy(Core_application_application.updateAccessibilityPropertiesMicroTask)
|
|
2353
|
+
) {
|
|
2354
|
+
return
|
|
2355
|
+
}
|
|
2356
|
+
Core_application_application.updateAccessibilityPropertiesMicroTask = true
|
|
2357
|
+
JSPromise.resolve<Unit>(Unit)
|
|
2358
|
+
.then<Unit>({ _: Unit? ->
|
|
2359
|
+
Core_application_application.updateAccessibilityPropertiesMicroTask =
|
|
2360
|
+
false
|
|
2361
|
+
var _pendingViews: JSArray<View>? =
|
|
2362
|
+
JSArray(
|
|
2363
|
+
(Core_application_application.pendingViews ?: jsObjectRequired()).toList()
|
|
2364
|
+
)
|
|
2365
|
+
Core_application_application.pendingViews = JSSet<View>()
|
|
2366
|
+
for (view in (_pendingViews ?: jsObjectRequired())) {
|
|
2367
|
+
if (
|
|
2368
|
+
!jsTruthy(
|
|
2369
|
+
jsCast(
|
|
2370
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
2371
|
+
android_view_View::class.java,
|
|
2372
|
+
)
|
|
2373
|
+
)
|
|
2374
|
+
) {
|
|
2375
|
+
continue
|
|
2376
|
+
}
|
|
2377
|
+
Core_application_application.setAccessibilityDelegate(view)
|
|
2378
|
+
Core_application_helpers.applyContentDescription(view)
|
|
2379
|
+
}
|
|
2380
|
+
_pendingViews = JSArray<View>()
|
|
2381
|
+
})
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2384
|
+
fun sendAccessibilityEvent(view: View?, eventType: String?, text: String? = null) {
|
|
2385
|
+
var text = text
|
|
2386
|
+
if (!Core_application_application.isAccessibilityServiceEnabled()) {
|
|
2387
|
+
return
|
|
2388
|
+
}
|
|
2389
|
+
val cls: String =
|
|
2390
|
+
"sendAccessibilityEvent(${jsToStringThrowing(view)}, ${jsToString((eventType ?: "undefined"))}, ${jsToString((text ?: "undefined"))})"
|
|
2391
|
+
val androidView: android_view_View? =
|
|
2392
|
+
(jsCast(
|
|
2393
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
2394
|
+
android_view_View::class.java,
|
|
2395
|
+
) ?: jsObjectRequired())
|
|
2396
|
+
if (!jsTruthy(androidView)) {
|
|
2397
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2398
|
+
org.nativescript.kit.Trace.write(
|
|
2399
|
+
"${cls}: no nativeView",
|
|
2400
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2401
|
+
)
|
|
2402
|
+
}
|
|
2403
|
+
return
|
|
2404
|
+
}
|
|
2405
|
+
if (eventType.isNullOrEmpty()) {
|
|
2406
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2407
|
+
org.nativescript.kit.Trace.write(
|
|
2408
|
+
"${cls}: no eventName provided",
|
|
2409
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2410
|
+
)
|
|
2411
|
+
}
|
|
2412
|
+
return
|
|
2413
|
+
}
|
|
2414
|
+
if (!Core_application_application.isAccessibilityServiceEnabled()) {
|
|
2415
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2416
|
+
org.nativescript.kit.Trace.write(
|
|
2417
|
+
"${cls} - TalkBack not enabled",
|
|
2418
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2419
|
+
)
|
|
2420
|
+
}
|
|
2421
|
+
return
|
|
2422
|
+
}
|
|
2423
|
+
val accessibilityManager: AccessibilityManager? =
|
|
2424
|
+
Core_application_application.getAndroidAccessibilityManager()
|
|
2425
|
+
if (!jsTruthy(accessibilityManager?.isEnabled())) {
|
|
2426
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2427
|
+
org.nativescript.kit.Trace.write(
|
|
2428
|
+
"${cls} - accessibility service not enabled",
|
|
2429
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2430
|
+
)
|
|
2431
|
+
}
|
|
2432
|
+
return
|
|
2433
|
+
}
|
|
2434
|
+
if (
|
|
2435
|
+
!((Core_application_application.accessibilityEventMap ?: jsCannotRead("has")).has(
|
|
2436
|
+
(eventType ?: "undefined")
|
|
2437
|
+
))
|
|
2438
|
+
) {
|
|
2439
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2440
|
+
org.nativescript.kit.Trace.write(
|
|
2441
|
+
"${cls} - unknown event",
|
|
2442
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2443
|
+
)
|
|
2444
|
+
}
|
|
2445
|
+
return
|
|
2446
|
+
}
|
|
2447
|
+
val eventInt: Double? =
|
|
2448
|
+
(Core_application_application.accessibilityEventMap ?: jsCannotRead("get")).get(
|
|
2449
|
+
(eventType ?: "undefined")
|
|
2450
|
+
)
|
|
2451
|
+
if (text.isNullOrEmpty()) {
|
|
2452
|
+
(androidView ?: jsCannotRead("sendAccessibilityEvent"))
|
|
2453
|
+
.sendAccessibilityEvent((eventInt ?: Double.NaN).toLong().toInt())
|
|
2454
|
+
return
|
|
2455
|
+
}
|
|
2456
|
+
val accessibilityEvent: AccessibilityEvent? =
|
|
2457
|
+
AccessibilityEvent.obtain((eventInt ?: Double.NaN).toLong().toInt())
|
|
2458
|
+
(accessibilityEvent ?: jsCannotRead("setSource")).setSource(androidView)
|
|
2459
|
+
(accessibilityEvent ?: jsCannotRead("getText")).getText().clear()
|
|
2460
|
+
if (text.isNullOrEmpty()) {
|
|
2461
|
+
Core_application_helpers.applyContentDescription(view)
|
|
2462
|
+
text =
|
|
2463
|
+
jsConvertedStringOrNull(
|
|
2464
|
+
jsOr(
|
|
2465
|
+
jsToString(
|
|
2466
|
+
(androidView ?: jsCannotRead("getContentDescription"))
|
|
2467
|
+
.getContentDescription()
|
|
2468
|
+
)
|
|
2469
|
+
) {
|
|
2470
|
+
jsGet((view ?: jsCannotRead("title")), "title")
|
|
2471
|
+
}
|
|
2472
|
+
)
|
|
2473
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2474
|
+
org.nativescript.kit.Trace.write(
|
|
2475
|
+
"${cls} - text not provided use androidView.getContentDescription() - ${jsToString((text ?: "undefined"))}",
|
|
2476
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2477
|
+
)
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2480
|
+
if (org.nativescript.kit.Trace.isEnabled()) {
|
|
2481
|
+
org.nativescript.kit.Trace.write(
|
|
2482
|
+
"${cls}: send event with text: '${(jsJSONStringify(text) ?: "undefined")}'",
|
|
2483
|
+
org.nativescript.kit.Trace.categories.Accessibility,
|
|
2484
|
+
)
|
|
2485
|
+
}
|
|
2486
|
+
if (!text.isNullOrEmpty()) {
|
|
2487
|
+
(accessibilityEvent ?: jsCannotRead("getText")).getText().add(text)
|
|
2488
|
+
}
|
|
2489
|
+
(accessibilityManager ?: jsCannotRead("sendAccessibilityEvent"))
|
|
2490
|
+
.sendAccessibilityEvent(accessibilityEvent)
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
fun setAccessibilityDelegate(view: View?) {
|
|
2494
|
+
if (
|
|
2495
|
+
!jsTruthy(
|
|
2496
|
+
jsCast(
|
|
2497
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
2498
|
+
android_view_View::class.java,
|
|
2499
|
+
)
|
|
2500
|
+
)
|
|
2501
|
+
) {
|
|
2502
|
+
return
|
|
2503
|
+
}
|
|
2504
|
+
Core_application_application.ensureNativeClasses()
|
|
2505
|
+
val androidView: android_view_View? =
|
|
2506
|
+
(jsCast(
|
|
2507
|
+
(view ?: jsCannotRead("nativeViewProtected")).nativeViewProtected,
|
|
2508
|
+
android_view_View::class.java,
|
|
2509
|
+
) ?: jsObjectRequired())
|
|
2510
|
+
if (
|
|
2511
|
+
!jsTruthy(androidView) ||
|
|
2512
|
+
!jsTruthy(
|
|
2513
|
+
jsJavaGet((androidView ?: jsObjectRequired()), "setAccessibilityDelegate")
|
|
2514
|
+
)
|
|
2515
|
+
) {
|
|
2516
|
+
return
|
|
2517
|
+
}
|
|
2518
|
+
Core_application_application.androidViewToTNSView.set(
|
|
2519
|
+
jsUnchecked<android_view_View>(androidView),
|
|
2520
|
+
JSWeakRef<View>(jsWeakRefTarget(view)),
|
|
2521
|
+
)
|
|
2522
|
+
var hasOldDelegate: Boolean = false
|
|
2523
|
+
if (
|
|
2524
|
+
jsTypeof(jsJavaGet((androidView ?: jsObjectRequired()), "getAccessibilityDelegate")) ==
|
|
2525
|
+
"function"
|
|
2526
|
+
) {
|
|
2527
|
+
hasOldDelegate =
|
|
2528
|
+
jsStrictEquals(
|
|
2529
|
+
(androidView ?: jsCannotRead("getAccessibilityDelegate"))
|
|
2530
|
+
.getAccessibilityDelegate(),
|
|
2531
|
+
Core_application_application.TNSAccessibilityDelegate,
|
|
2532
|
+
)
|
|
2533
|
+
}
|
|
2534
|
+
if (hasOldDelegate) {
|
|
2535
|
+
return
|
|
2536
|
+
}
|
|
2537
|
+
(androidView ?: jsCannotRead("setAccessibilityDelegate"))
|
|
2538
|
+
.setAccessibilityDelegate(
|
|
2539
|
+
(Core_application_application.TNSAccessibilityDelegate
|
|
2540
|
+
as android_view_View.AccessibilityDelegate?)
|
|
2541
|
+
)
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
@JvmField var applicationEvents: JSArray<String> = JSArray<String>()
|
|
2545
|
+
|
|
2546
|
+
fun toggleApplicationEventListeners(toAdd: Boolean, callback: (Any?) -> Unit) {
|
|
2547
|
+
for (eventName in Core_application_application.applicationEvents) {
|
|
2548
|
+
if (toAdd) {
|
|
2549
|
+
(Core_application_application.Application.on
|
|
2550
|
+
?: jsNotAFunction("Application.on"))(eventName, callback, null)
|
|
2551
|
+
} else {
|
|
2552
|
+
Core_application_application.Application.off(eventName, callback, null)
|
|
2553
|
+
}
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
fun onLiveSync(args: Any?) {
|
|
2558
|
+
if (jsTruthy(Core_application_helpers_common.getImageFetcher())) {
|
|
2559
|
+
(Core_application_helpers_common.getImageFetcher()
|
|
2560
|
+
?: jsCannotRead("clearCache"))
|
|
2561
|
+
.clearCache()
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
fun __init() {
|
|
2566
|
+
try {
|
|
2567
|
+
BroadcastReceiver =
|
|
2568
|
+
Core_utils_lazy.lazy({
|
|
2569
|
+
BroadcastReceiverImpl::class.java
|
|
2570
|
+
})
|
|
2571
|
+
Application = AndroidApplication()
|
|
2572
|
+
Core_accessibility_accessibility_common.setInitFontScale(
|
|
2573
|
+
Core_application_application::setupConfigListener
|
|
2574
|
+
)
|
|
2575
|
+
Core_accessibility_accessibility_common.setInitAccessibilityCssHelper(
|
|
2576
|
+
Core_application_application::initAccessibilityCssHelper
|
|
2577
|
+
)
|
|
2578
|
+
androidViewToTNSView = JSWeakMap<android_view_View, JSWeakRef<View>>()
|
|
2579
|
+
Core_application_helpers_common.setA11yUpdatePropertiesCallback({
|
|
2580
|
+
__r0: Any? ->
|
|
2581
|
+
Core_application_application.updateAccessibilityProperties(
|
|
2582
|
+
jsCast(__r0, View::class.java)
|
|
2583
|
+
)
|
|
2584
|
+
})
|
|
2585
|
+
applicationEvents =
|
|
2586
|
+
jsArrayOf<String>(
|
|
2587
|
+
Core_application_application.Application.orientationChangedEvent,
|
|
2588
|
+
Core_application_application.Application.systemAppearanceChangedEvent,
|
|
2589
|
+
)
|
|
2590
|
+
Core_application_helpers_common.setToggleApplicationEventListenersCallback(
|
|
2591
|
+
Core_application_application::toggleApplicationEventListeners
|
|
2592
|
+
)
|
|
2593
|
+
Core_application_helpers_common.setApplicationPropertiesCallback({
|
|
2594
|
+
jsObjectOf(
|
|
2595
|
+
"orientation" to Core_application_application.Application.orientation(),
|
|
2596
|
+
"systemAppearance" to
|
|
2597
|
+
Core_application_application.Application.systemAppearance(),
|
|
2598
|
+
)
|
|
2599
|
+
})
|
|
2600
|
+
jsCallMethod(
|
|
2601
|
+
jsGet(Core_globals_global_utils.getNativeScriptGlobals(), "events"),
|
|
2602
|
+
"on",
|
|
2603
|
+
"livesync",
|
|
2604
|
+
Core_application_application::onLiveSync,
|
|
2605
|
+
)
|
|
2606
|
+
jsCallMethod(
|
|
2607
|
+
Core_globals_global_utils.getNativeScriptGlobals(),
|
|
2608
|
+
"addEventWiring",
|
|
2609
|
+
{
|
|
2610
|
+
((Core_application_application.Application.android
|
|
2611
|
+
?: jsCannotRead("on"))
|
|
2612
|
+
.on ?: jsNotAFunction("Application.android.on"))(
|
|
2613
|
+
"activityStarted",
|
|
2614
|
+
{ args: Any? ->
|
|
2615
|
+
if (
|
|
2616
|
+
!jsTruthy(Core_application_helpers_common.getImageFetcher())
|
|
2617
|
+
) {
|
|
2618
|
+
Core_application_helpers_common.initImageCache(
|
|
2619
|
+
jsCast(jsGet(args, "activity"), Context::class.java)
|
|
2620
|
+
)
|
|
2621
|
+
} else {
|
|
2622
|
+
(Core_application_helpers_common.getImageFetcher()
|
|
2623
|
+
?: jsCannotRead("initCache"))
|
|
2624
|
+
.initCache()
|
|
2625
|
+
}
|
|
2626
|
+
},
|
|
2627
|
+
null,
|
|
2628
|
+
)
|
|
2629
|
+
},
|
|
2630
|
+
)
|
|
2631
|
+
jsCallMethod(
|
|
2632
|
+
Core_globals_global_utils.getNativeScriptGlobals(),
|
|
2633
|
+
"addEventWiring",
|
|
2634
|
+
{
|
|
2635
|
+
((Core_application_application.Application.android
|
|
2636
|
+
?: jsCannotRead("on"))
|
|
2637
|
+
.on ?: jsNotAFunction("Application.android.on"))(
|
|
2638
|
+
"activityStopped",
|
|
2639
|
+
{ _: Any? ->
|
|
2640
|
+
if (
|
|
2641
|
+
jsTruthy(Core_application_helpers_common.getImageFetcher())
|
|
2642
|
+
) {
|
|
2643
|
+
(Core_application_helpers_common.getImageFetcher()
|
|
2644
|
+
?: jsCannotRead("closeCache"))
|
|
2645
|
+
.closeCache()
|
|
2646
|
+
}
|
|
2647
|
+
},
|
|
2648
|
+
null,
|
|
2649
|
+
)
|
|
2650
|
+
},
|
|
2651
|
+
)
|
|
2652
|
+
} catch (__e: Throwable) {
|
|
2653
|
+
jsReportThrown(__e)
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
}
|