@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-22-2025-12918162303
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/accessibility/accessibility-service.d.ts +10 -0
- package/accessibility/font-scale.d.ts +9 -0
- package/accessibility/index.d.ts +37 -0
- package/animation-frame/animation-native.d.ts +4 -0
- package/animation-frame/index.d.ts +17 -3
- package/application/application.d.ts +194 -0
- package/application/index.d.ts +2 -0
- package/application-settings/index.d.ts +70 -0
- package/cli-hooks/before-checkForChanges.js +60 -0
- package/cli-hooks/postinstall.js +2 -0
- package/cli-hooks/preuninstall.js +2 -0
- package/color/index.d.ts +206 -0
- package/connectivity/index.d.ts +52 -0
- package/css/css-tree-parser.js +21 -17
- package/css/lib/parse/index.js +602 -0
- package/css/package.json +36 -0
- package/css/reworkcss.d.ts +47 -0
- package/css/reworkcss.js +1 -0
- package/css-value/package.json +23 -0
- package/css-value/reworkcss-value.d.ts +8 -0
- package/css-value/reworkcss-value.js +113 -0
- package/debugger/css-agent.d.ts +59 -0
- package/debugger/devtools-elements.d.ts +23 -5
- package/debugger/dom-node.d.ts +23 -20
- package/fetch/index.js +539 -0
- package/file-system/file-system-access.d.ts +441 -0
- package/file-system/index.d.ts +370 -95
- package/fps-meter/fps-native.d.ts +24 -0
- package/fps-meter/index.d.ts +24 -7
- package/global-types.d.ts +393 -0
- package/globals/index.d.ts +4 -19
- package/http/http-request/index.d.ts +3 -0
- package/http/index.d.ts +149 -73
- package/image-asset/index.d.ts +17 -0
- package/image-source/index.d.ts +350 -0
- package/index.d.ts +24 -7
- package/js-libs/easysax/easysax.d.ts +8 -0
- package/js-libs/easysax/easysax.js +782 -0
- package/js-libs/easysax/package.json +35 -0
- package/matrix/index.d.ts +32 -5
- package/module-name-resolver/index.d.ts +21 -13
- package/module-name-resolver/qualifier-matcher/index.d.ts +12 -6
- package/package.json +1 -1
- package/platform/device/index.d.ts +70 -0
- package/platform/index.d.ts +26 -0
- package/platform/screen/index.d.ts +48 -0
- package/platforms/android/native-api-usage.json +32 -0
- package/platforms/android/res/values/ids.xml +4 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/android/winter_tc-release.aar +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/Info.plist +102 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/_CodeSignature/CodeResources +146 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +102 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +52 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSCCrypto.h +60 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSData+Async.h +24 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSString+Async.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSLabel.h +16 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSProcess.h +29 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +25 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +26 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +17 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +18 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +223 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +82 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +82 -0
- package/platforms/ios/native-api-usage.json +41 -0
- package/platforms/ios/src/NativeScriptEmbedder.h +31 -0
- package/platforms/ios/src/NativeScriptEmbedder.m +43 -0
- package/platforms/ios/src/NativeScriptMainWindow.swift +196 -0
- package/platforms/ios/src/NativeScriptUtils.h +16 -0
- package/platforms/ios/src/NativeScriptUtils.m +137 -0
- package/platforms/ios/src/UIView+NativeScript.h +15 -0
- package/platforms/ios/src/UIView+NativeScript.m +148 -0
- package/platforms/ios/src/module.modulemap +14 -0
- package/platforms/ios/typings/objc!MaterialComponents.d.ts +808 -0
- package/platforms/ios/typings/objc!NativeScriptUtils.d.ts +18 -0
- package/profiling/index.d.ts +153 -26
- package/references.d.ts +10 -0
- package/text/formatted-string.d.ts +1 -1
- package/text/index.d.ts +36 -0
- package/text/span.d.ts +1 -1
- package/timer/index.d.ts +27 -0
- package/trace/index.d.ts +131 -105
- package/ui/action-bar/index.d.ts +304 -0
- package/ui/activity-indicator/index.d.ts +25 -0
- package/ui/animation/index.d.ts +139 -0
- package/ui/animation/keyframe-animation.d.ts +118 -67
- package/ui/builder/binding-builder.d.ts +15 -12
- package/ui/builder/index.d.ts +69 -27
- package/ui/button/index.d.ts +50 -0
- package/ui/content-view/index.d.ts +11 -21
- package/ui/core/control-state-change/index.d.ts +17 -0
- package/ui/core/view/index.d.ts +1216 -0
- package/ui/core/view/view-helper/index.d.ts +76 -0
- package/ui/core/weak-event-listener/index.d.ts +18 -2
- package/ui/date-picker/index.d.ts +95 -0
- package/ui/dialogs/index.d.ts +311 -0
- package/ui/editable-text-base/index.d.ts +142 -0
- package/ui/embedding/index.d.ts +10 -0
- package/ui/frame/fragment.d.ts +5 -0
- package/ui/frame/fragment.transitions.d.ts +43 -0
- package/ui/frame/frame-common.d.ts +1 -0
- package/ui/frame/frame-common.js +6 -0
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -0
- package/ui/frame/index.android.js +12 -15
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +590 -0
- package/ui/frame/index.ios.js +13 -0
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/frame/transition-definitions.android.d.ts +54 -0
- package/ui/gestures/index.d.ts +59 -0
- package/ui/html-view/index.d.ts +41 -0
- package/ui/image/index.d.ts +119 -0
- package/ui/image/symbol-effects.d.ts +13 -0
- package/ui/image-cache/index.d.ts +147 -0
- package/ui/label/index.d.ts +25 -0
- package/ui/layouts/absolute-layout/index.d.ts +42 -0
- package/ui/layouts/dock-layout/index.d.ts +39 -0
- package/ui/layouts/flexbox-layout/index.d.ts +98 -0
- package/ui/layouts/grid-layout/index.d.ts +201 -0
- package/ui/layouts/index.d.ts +1 -2
- package/ui/layouts/layout-base.d.ts +119 -0
- package/ui/layouts/root-layout/index.d.ts +48 -0
- package/ui/layouts/stack-layout/index.d.ts +22 -0
- package/ui/layouts/wrap-layout/index.d.ts +51 -0
- package/ui/list-picker/index.d.ts +43 -0
- package/ui/list-view/index.d.ts +232 -0
- package/ui/page/index.d.ts +241 -0
- package/ui/placeholder/index.d.ts +46 -8
- package/ui/progress/index.d.ts +50 -0
- package/ui/scroll-view/index.d.ts +99 -0
- package/ui/search-bar/index.d.ts +103 -0
- package/ui/segmented-bar/index.d.ts +122 -0
- package/ui/slider/index.d.ts +99 -0
- package/ui/styling/background.d.ts +95 -0
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/font.d.ts +62 -0
- package/ui/styling/style-properties.d.ts +101 -81
- package/ui/styling/style-scope.d.ts +48 -79
- package/ui/switch/index.d.ts +46 -0
- package/ui/tab-view/index.d.ts +213 -0
- package/ui/text-base/formatted-string.d.ts +97 -36
- package/ui/text-base/index.d.ts +208 -0
- package/ui/text-base/span.d.ts +111 -36
- package/ui/text-field/index.d.ts +54 -0
- package/ui/text-view/index.d.ts +35 -0
- package/ui/time-picker/index.d.ts +107 -0
- package/ui/transition/fade-transition.d.ts +3 -0
- package/ui/transition/flip-transition.d.ts +5 -0
- package/ui/transition/index.d.ts +59 -0
- package/ui/transition/modal-transition.d.ts +2 -0
- package/ui/transition/page-transition.d.ts +4 -0
- package/ui/transition/shared-transition-helper.d.ts +14 -0
- package/ui/transition/slide-transition.d.ts +5 -0
- package/ui/utils.d.ts +44 -0
- package/ui/web-view/index.d.ts +142 -0
- package/utils/constants.d.ts +1 -0
- package/utils/debug.d.ts +61 -17
- package/utils/index.d.ts +183 -0
- package/utils/layout-helper/index.d.ts +82 -0
- package/utils/lazy.d.ts +5 -0
- package/utils/macrotask-scheduler.d.ts +5 -1
- package/utils/mainthread-helper.d.ts +16 -0
- package/utils/native-helper.d.ts +280 -0
- package/utils/types.d.ts +115 -23
- package/utils/typescript-utils.d.ts +6 -0
- package/xml/index.d.ts +105 -44
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { ImageAsset } from '../image-asset';
|
|
2
|
+
import { Font } from '../ui/styling/font';
|
|
3
|
+
import { Color } from '../color';
|
|
4
|
+
/**
|
|
5
|
+
* Encapsulates the common abstraction behind a platform specific object (typically a Bitmap) that is used as a source for images.
|
|
6
|
+
*/
|
|
7
|
+
export class ImageSource {
|
|
8
|
+
/**
|
|
9
|
+
* Gets the height of this instance. This is a read-only property.
|
|
10
|
+
*/
|
|
11
|
+
height: number;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Gets the width of this instance. This is a read-only property.
|
|
15
|
+
*/
|
|
16
|
+
width: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Gets or sets the rotation angle that should be applied to the image. (Used in android)
|
|
20
|
+
*/
|
|
21
|
+
rotationAngle: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The iOS-specific [UIImage](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/) instance. Will be undefined when running on Android.
|
|
25
|
+
*/
|
|
26
|
+
ios: any /* UIImage */;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Android-specific [image](http://developer.android.com/reference/android/graphics/Bitmap.html) instance. Will be undefined when running on iOS.
|
|
30
|
+
*/
|
|
31
|
+
android: any /* android.graphics.Bitmap */;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Loads this instance from the specified asset asynchronously.
|
|
35
|
+
* @param asset The ImageAsset instance used to create ImageSource.
|
|
36
|
+
*/
|
|
37
|
+
static fromAsset(asset: ImageAsset): Promise<ImageSource>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Downloads the image from the provided Url and creates a new ImageSource instance from it.
|
|
41
|
+
* @param url The link to the remote image object. This operation will download and decode the image.
|
|
42
|
+
*/
|
|
43
|
+
static fromUrl(url: string): Promise<ImageSource>;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Loads this instance from the specified resource name.
|
|
47
|
+
* @param name The name of the resource (without its extension).
|
|
48
|
+
*/
|
|
49
|
+
static fromResourceSync(name: string): ImageSource;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Loads this instance from the specified resource name asynchronously.
|
|
53
|
+
* @param name The name of the resource (without its extension).
|
|
54
|
+
*/
|
|
55
|
+
static fromResource(name: string): Promise<ImageSource>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* (iOS only) Get system symbol scale
|
|
59
|
+
* @param scale symbol scale type
|
|
60
|
+
*/
|
|
61
|
+
static iosSymbolScaleFor(scale: iosSymbolScaleType): number;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Loads this instance from the specified system image name.
|
|
65
|
+
* @param name the name of the system image
|
|
66
|
+
*/
|
|
67
|
+
static fromSystemImageSync(name: string, scale?: iosSymbolScaleType): ImageSource;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Loads this instance from the specified system image name asynchronously.
|
|
71
|
+
* @param name the name of the system image
|
|
72
|
+
*/
|
|
73
|
+
static fromSystemImage(name: string, scale?: iosSymbolScaleType): Promise<ImageSource>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Loads this instance from the specified file.
|
|
77
|
+
* @param path The location of the file on the file system.
|
|
78
|
+
*/
|
|
79
|
+
static fromFileSync(path: string): ImageSource;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Loads this instance from the specified file asynchronously.
|
|
83
|
+
* @param path The location of the file on the file system.
|
|
84
|
+
*/
|
|
85
|
+
static fromFile(path: string): Promise<ImageSource>;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the "res://" prefix).
|
|
89
|
+
* @param path The location of the file on the file system.
|
|
90
|
+
*/
|
|
91
|
+
static fromFileOrResourceSync(path: string): ImageSource;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Loads this instance from the specified native image data.
|
|
95
|
+
* @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
|
|
96
|
+
*/
|
|
97
|
+
static fromDataSync(data: any): ImageSource;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Loads this instance from the specified native image data asynchronously.
|
|
101
|
+
* @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
|
|
102
|
+
*/
|
|
103
|
+
static fromData(data: any): Promise<ImageSource>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Loads this instance from the specified base64 encoded string.
|
|
107
|
+
* @param source The Base64 string to load the image from.
|
|
108
|
+
*/
|
|
109
|
+
static fromBase64Sync(source: string): ImageSource;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Loads this instance from the specified base64 encoded string asynchronously.
|
|
113
|
+
* @param source The Base64 string to load the image from.
|
|
114
|
+
*/
|
|
115
|
+
static fromBase64(source: string): Promise<ImageSource>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Creates a new ImageSource instance and loads it from the specified font icon code.
|
|
119
|
+
* @param source The hex font icon code string
|
|
120
|
+
* @param font The font for the corresponding font icon code
|
|
121
|
+
* @param color The color of the generated icon image
|
|
122
|
+
*/
|
|
123
|
+
static fromFontIconCodeSync(source: string, font: Font, color: Color): ImageSource;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap).
|
|
127
|
+
* The native source object will update either the android or ios properties, depending on the target os.
|
|
128
|
+
* @param nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS.
|
|
129
|
+
*/
|
|
130
|
+
constructor(nativeSource?: any);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Use ImageSource.fromAsset() instead.
|
|
134
|
+
* Loads this instance from the specified asset asynchronously.
|
|
135
|
+
* @param asset The ImageAsset instance used to create ImageSource.
|
|
136
|
+
*/
|
|
137
|
+
fromAsset(asset: ImageAsset): Promise<ImageSource>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Use ImageSource.fromResourceSync() instead.
|
|
141
|
+
* Loads this instance from the specified resource name.
|
|
142
|
+
* @param name The name of the resource (without its extension).
|
|
143
|
+
*/
|
|
144
|
+
loadFromResource(name: string): boolean;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated Use ImageSource.fromResource() instead.
|
|
148
|
+
* Loads this instance from the specified resource name asynchronously.
|
|
149
|
+
* @param name The name of the resource (without its extension).
|
|
150
|
+
*/
|
|
151
|
+
fromResource(name: string): Promise<boolean>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated Use ImageSource.fromFileSync() instead.
|
|
155
|
+
* Loads this instance from the specified file.
|
|
156
|
+
* @param path The location of the file on the file system.
|
|
157
|
+
*/
|
|
158
|
+
loadFromFile(path: string): boolean;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated Use ImageSource.fromFile() instead.
|
|
162
|
+
* Loads this instance from the specified file asynchronously.
|
|
163
|
+
* @param path The location of the file on the file system.
|
|
164
|
+
*/
|
|
165
|
+
fromFile(path: string): Promise<boolean>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Use ImageSource.fromDataSync() instead.
|
|
169
|
+
* Loads this instance from the specified native image data.
|
|
170
|
+
* @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
|
|
171
|
+
*/
|
|
172
|
+
loadFromData(data: any): boolean;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Use ImageSource.fromData() instead.
|
|
176
|
+
* Loads this instance from the specified native image data asynchronously.
|
|
177
|
+
* @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
|
|
178
|
+
*/
|
|
179
|
+
fromData(data: any): Promise<boolean>;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated Use ImageSource.fromBase64Sync() instead.
|
|
183
|
+
* Loads this instance from the specified base64 encoded string.
|
|
184
|
+
* @param source The Base64 string to load the image from.
|
|
185
|
+
*/
|
|
186
|
+
loadFromBase64(source: string): boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @deprecated Use ImageSource.fromBase64() instead.
|
|
190
|
+
* Loads this instance from the specified base64 encoded string asynchronously.
|
|
191
|
+
* @param source The Base64 string to load the image from.
|
|
192
|
+
*/
|
|
193
|
+
fromBase64(source: string): Promise<boolean>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @deprecated Use ImageSource.fromFontIconCode() instead.
|
|
197
|
+
* Loads this instance from the specified font icon code.
|
|
198
|
+
* @param source The hex font icon code string
|
|
199
|
+
* @param font The font for the corresponding font icon code
|
|
200
|
+
* @param color The color of the generated icon image
|
|
201
|
+
*/
|
|
202
|
+
loadFromFontIconCode(source: string, font: Font, color: Color): boolean;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Gets the native source object (typically a Bitmap or a UIImage).
|
|
206
|
+
*/
|
|
207
|
+
getNativeSource(): any;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Sets the provided native source object (typically a Bitmap or a UIImage).
|
|
211
|
+
* This will update either the android or ios properties, depending on the target os.
|
|
212
|
+
* @param nativeSource The native image object. Will be either a Bitmap for Android or a UIImage for iOS.
|
|
213
|
+
*/
|
|
214
|
+
setNativeSource(nativeSource: any): void;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Saves this instance to the specified file, using the provided image format and quality.
|
|
218
|
+
* @param path The path of the file on the file system to save to.
|
|
219
|
+
* @param format The format (encoding) of the image.
|
|
220
|
+
* @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
|
|
221
|
+
*/
|
|
222
|
+
saveToFile(path: string, format: 'png' | 'jpeg' | 'jpg', quality?: number): boolean;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Saves this instance to the specified file, using the provided image format and quality asynchronously.
|
|
226
|
+
* @param path The path of the file on the file system to save to.
|
|
227
|
+
* @param format The format (encoding) of the image.
|
|
228
|
+
* @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
|
|
229
|
+
*/
|
|
230
|
+
saveToFileAsync(path: string, format: 'png' | 'jpeg' | 'jpg', quality?: number): Promise<boolean>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Converts the image to base64 encoded string, using the provided image format and quality.
|
|
234
|
+
* @param format The format (encoding) of the image.
|
|
235
|
+
* @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
|
|
236
|
+
*/
|
|
237
|
+
toBase64String(format: 'png' | 'jpeg' | 'jpg', quality?: number): string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Converts the image to base64 encoded string, using the provided image format and quality asynchronously.
|
|
241
|
+
* @param format The format (encoding) of the image.
|
|
242
|
+
* @param quality Optional parameter, specifying the quality of the encoding. Defaults to the maximum available quality. Quality varies on a scale of 0 to 100.
|
|
243
|
+
*/
|
|
244
|
+
toBase64StringAsync(format: 'png' | 'jpeg' | 'jpg', quality?: number): Promise<string>;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize.
|
|
248
|
+
* @param maxSize The maximum pixel dimension of the resulting image.
|
|
249
|
+
* @param options Optional parameter, Only used for android, options.filter is a boolean which
|
|
250
|
+
* determines whether or not bilinear filtering should be used when scaling the bitmap.
|
|
251
|
+
* If this is true then bilinear filtering will be used when scaling which has
|
|
252
|
+
* better image quality at the cost of worse performance. If this is false then
|
|
253
|
+
* nearest-neighbor scaling is used instead which will have worse image quality
|
|
254
|
+
* but is faster. Recommended default is to set filter to 'true' as the cost of
|
|
255
|
+
* bilinear filtering is typically minimal and the improved image quality is significant.
|
|
256
|
+
*/
|
|
257
|
+
resize(maxSize: number, options?: any): ImageSource;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Returns a new ImageSource that is a resized version of this image with the same aspect ratio, but the max dimension set to the provided maxSize asynchronously.
|
|
261
|
+
* @param maxSize The maximum pixel dimension of the resulting image.
|
|
262
|
+
* @param options Optional parameter, Only used for android, options.filter is a boolean which
|
|
263
|
+
* determines whether or not bilinear filtering should be used when scaling the bitmap.
|
|
264
|
+
* If this is true then bilinear filtering will be used when scaling which has
|
|
265
|
+
* better image quality at the cost of worse performance. If this is false then
|
|
266
|
+
* nearest-neighbor scaling is used instead which will have worse image quality
|
|
267
|
+
* but is faster. Recommended default is to set filter to 'true' as the cost of
|
|
268
|
+
* bilinear filtering is typically minimal and the improved image quality is significant.
|
|
269
|
+
*/
|
|
270
|
+
resizeAsync(maxSize: number, options?: any): Promise<ImageSource>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* iOS only
|
|
275
|
+
* SF Symbol scale
|
|
276
|
+
*/
|
|
277
|
+
export type iosSymbolScaleType = 'default' | 'small' | 'medium' | 'large';
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* @deprecated Use ImageSource.fromAsset() instead.
|
|
281
|
+
* Creates a new ImageSource instance and loads it from the specified image asset asynchronously.
|
|
282
|
+
* @param asset The image asset.
|
|
283
|
+
*/
|
|
284
|
+
export function fromAsset(asset: ImageAsset): Promise<ImageSource>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @deprecated Use ImageSource.fromResourceSync() instead.
|
|
288
|
+
* Creates a new ImageSource instance and loads it from the specified resource name.
|
|
289
|
+
* @param name The name of the resource (without its extension).
|
|
290
|
+
*/
|
|
291
|
+
export function fromResource(name: string): ImageSource;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @deprecated Use ImageSource.fromFileSync() instead.
|
|
295
|
+
* Creates a new ImageSource instance and loads it from the specified file.
|
|
296
|
+
* @param path The location of the file on the file system.
|
|
297
|
+
*/
|
|
298
|
+
export function fromFile(path: string): ImageSource;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @deprecated Use ImageSource.fromDataSync() instead.
|
|
302
|
+
* Creates a new ImageSource instance and loads it from the specified native image data.
|
|
303
|
+
* @param data The native data (byte array) to load the image from. This will be either Stream for Android or NSData for iOS.
|
|
304
|
+
*/
|
|
305
|
+
export function fromData(data: any): ImageSource;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @deprecated Use ImageSource.fromBase64Sync() instead.
|
|
309
|
+
* Creates a new ImageSource instance and loads it from the specified base64 encoded string.
|
|
310
|
+
* @param source The base64 encoded string to load the image from.
|
|
311
|
+
*/
|
|
312
|
+
export function fromBase64(source: string): ImageSource;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @deprecated Use ImageSource constructor instead.
|
|
316
|
+
* Creates a new ImageSource instance and sets the provided native source object (typically a Bitmap).
|
|
317
|
+
* The native source object will update either the android or ios properties, depending on the target os.
|
|
318
|
+
* @param source The native image object. Will be either a Bitmap for Android or a UIImage for iOS.
|
|
319
|
+
*/
|
|
320
|
+
export function fromNativeSource(source: any): ImageSource;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* @deprecated Use ImageSource.fromFontIconCodeSync() instead.
|
|
324
|
+
* Creates a new ImageSource instance and loads it from the specified font icon code.
|
|
325
|
+
* @param source The hex font icon code string
|
|
326
|
+
* @param font The font for the corresponding font icon code
|
|
327
|
+
* @param color The color of the generated icon image
|
|
328
|
+
*/
|
|
329
|
+
export function fromFontIconCode(source: string, font: Font, color: Color): ImageSource;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @deprecated Use ImageSource.fromUrl() instead.
|
|
333
|
+
* Downloads the image from the provided Url and creates a new ImageSource instance from it.
|
|
334
|
+
* @param url The link to the remote image object. This operation will download and decode the image.
|
|
335
|
+
*/
|
|
336
|
+
export function fromUrl(url: string): Promise<ImageSource>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Use ImageSource.fromFileOrResourceSync() instead.
|
|
340
|
+
* Creates a new ImageSource instance and loads it from the specified local file or resource (if specified with the "res://" prefix).
|
|
341
|
+
* @param path The location of the file on the file system.
|
|
342
|
+
*/
|
|
343
|
+
export function fromFileOrResource(path: string): ImageSource;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* @deprecated Please use utils.isFileOrResourcePath instead.
|
|
347
|
+
* Returns true if the specified path points to a resource or local file.
|
|
348
|
+
* @param path The path.
|
|
349
|
+
*/
|
|
350
|
+
export function isFileOrResourcePath(path: string): boolean;
|
package/index.d.ts
CHANGED
|
@@ -1,21 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference path="./global-types.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTANT: this is not generated automatically due to this issue:
|
|
4
|
+
* https://github.com/microsoft/TypeScript/issues/36763
|
|
5
|
+
* the reference path above will get rewritten and break on compilation unless kept here
|
|
6
|
+
* Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc
|
|
7
|
+
*/
|
|
8
|
+
export type { NativeScriptConfig } from './config';
|
|
9
|
+
|
|
2
10
|
export * from './application';
|
|
3
11
|
export * as ApplicationSettings from './application-settings';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
12
|
+
import * as Accessibility from './accessibility';
|
|
13
|
+
export namespace AccessibilityEvents {
|
|
14
|
+
export const accessibilityBlurEvent = Accessibility.accessibilityBlurEvent;
|
|
15
|
+
export const accessibilityFocusEvent = Accessibility.accessibilityFocusEvent;
|
|
16
|
+
export const accessibilityFocusChangedEvent = Accessibility.accessibilityFocusChangedEvent;
|
|
17
|
+
export const accessibilityPerformEscapeEvent = Accessibility.accessibilityPerformEscapeEvent;
|
|
9
18
|
}
|
|
10
19
|
export { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, FontScaleCategory } from './accessibility';
|
|
11
20
|
export { Color } from './color';
|
|
12
21
|
export * as Connectivity from './connectivity';
|
|
22
|
+
// import { connectionType, getConnectionType, startMonitoring, stopMonitoring } from './connectivity';
|
|
23
|
+
// export declare const Connectivity: {
|
|
24
|
+
// connectionType: typeof connectionType;
|
|
25
|
+
// getConnectionType: typeof getConnectionType;
|
|
26
|
+
// startMonitoring: typeof startMonitoring;
|
|
27
|
+
// stopMonitoring: typeof stopMonitoring;
|
|
28
|
+
// };
|
|
13
29
|
export * from './core-types';
|
|
14
30
|
export { CSSUtils } from './css/system-classes';
|
|
15
31
|
export { ObservableArray, ChangeType } from './data/observable-array';
|
|
16
32
|
export type { ChangedData } from './data/observable-array';
|
|
17
33
|
export { Observable, WrappedValue, fromObject, fromObjectRecursive } from './data/observable';
|
|
18
|
-
export type { PropertyChangeData, EventData } from './data/observable';
|
|
34
|
+
export type { PropertyChangeData, EventData, EventDataValue } from './data/observable';
|
|
19
35
|
export { VirtualArray } from './data/virtual-array';
|
|
20
36
|
export type { ItemsLoading } from './data/virtual-array';
|
|
21
37
|
export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess, AndroidDirectory } from './file-system';
|
|
@@ -34,4 +50,5 @@ export { encoding } from './text';
|
|
|
34
50
|
export * from './trace';
|
|
35
51
|
export * from './ui';
|
|
36
52
|
export * as Utils from './utils';
|
|
53
|
+
|
|
37
54
|
export { XmlParser, ParserEventType, ParserEvent } from './xml';
|