@nativescript/core 8.9.0-next-01-17-2025-12834437745 → 8.9.0-next-01-18-2025-12839190246
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/index.d.ts +590 -0
- 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
package/file-system/index.d.ts
CHANGED
|
@@ -1,105 +1,380 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FileSystemAccess } from './file-system-access';
|
|
2
|
+
|
|
3
|
+
export enum AndroidDirectory {
|
|
4
|
+
ALARMS,
|
|
5
|
+
AUDIOBOOKS,
|
|
6
|
+
DCIM,
|
|
7
|
+
DOCUMENTS,
|
|
8
|
+
DOWNLOADS,
|
|
9
|
+
MOVIES,
|
|
10
|
+
MUSIC,
|
|
11
|
+
NOTIFICATIONS,
|
|
12
|
+
PICTURES,
|
|
13
|
+
PODCASTS,
|
|
14
|
+
RINGTONES,
|
|
15
|
+
SCREENSHOTS,
|
|
16
|
+
}
|
|
17
|
+
|
|
2
18
|
/**
|
|
3
19
|
* Returns FileSystemAccess, a shared singleton utility class to provide methods to access and work with the file system. This is used under the hood of all the file system apis in @nativescript/core and provided as a lower level convenience if needed.
|
|
4
20
|
* @returns FileSystemAccess
|
|
5
21
|
*/
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
export function getFileAccess(): FileSystemAccess;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Represents a single entity on the file system.
|
|
26
|
+
*/
|
|
27
|
+
export class FileSystemEntity {
|
|
28
|
+
/**
|
|
29
|
+
* Gets the Date object specifying the last time this entity was modified.
|
|
30
|
+
*/
|
|
31
|
+
lastModified: Date;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets the name of the entity.
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Gets the fully-qualified path (including the extension for a File) of the entity.
|
|
40
|
+
*/
|
|
41
|
+
path: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gets the Folder object representing the parent of this entity.
|
|
45
|
+
* Will be null for a root folder like Documents or Temporary.
|
|
46
|
+
* This property is readonly.
|
|
47
|
+
*/
|
|
48
|
+
parent: Folder;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Removes (deletes) the current Entity from the file system.
|
|
52
|
+
*/
|
|
53
|
+
remove(): Promise<any>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Removes (deletes) the current Entity from the file system synchronously.
|
|
57
|
+
*/
|
|
58
|
+
removeSync(onError?: (error: any) => any): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Renames the current entity using the specified name.
|
|
62
|
+
* @param newName The new name to be applied to the entity.
|
|
63
|
+
*/
|
|
64
|
+
rename(newName: string): Promise<any>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Renames the current entity synchronously, using the specified name.
|
|
68
|
+
* @param newName The new name to be applied to the entity.
|
|
69
|
+
*/
|
|
70
|
+
renameSync(newName: string, onError?: (error: any) => any): void;
|
|
44
71
|
}
|
|
45
|
-
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Contains Android-specific the file system helpers.
|
|
75
|
+
*/
|
|
76
|
+
class Android {
|
|
77
|
+
createFile(options: { relativePath?: string; name: string; mime: string; directory: AndroidDirectory }): File;
|
|
46
78
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Contains iOS-specific the file system helpers.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
class iOS {}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Represents a File entity on the file system.
|
|
88
|
+
*/
|
|
89
|
+
export class File extends FileSystemEntity {
|
|
90
|
+
static readonly android: Android;
|
|
91
|
+
|
|
92
|
+
static readonly ios: iOS;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Checks whether a File with the specified path already exists.
|
|
96
|
+
* @param path The path to check for.
|
|
97
|
+
*/
|
|
98
|
+
static exists(path: string): boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets the extension of the file.
|
|
102
|
+
*/
|
|
103
|
+
extension: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Gets the size in bytes of the file.
|
|
107
|
+
*/
|
|
108
|
+
size: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Gets a value indicating whether the file is currently locked, meaning a background operation associated with this file is running.
|
|
112
|
+
*/
|
|
113
|
+
isLocked: boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Appends the provided string to the file, using the specified encoding (defaults to UTF-8).
|
|
117
|
+
* @param content The content to be saved to the file.
|
|
118
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
119
|
+
*/
|
|
120
|
+
appendText(content: string, encoding?: string): Promise<any>;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Appends the provided string to the file synchronously, using the specified encoding (defaults to UTF-8).
|
|
124
|
+
* @param content The content to be saved to the file.
|
|
125
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
126
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
127
|
+
*/
|
|
128
|
+
appendTextSync(content: string, onError?: (error: any) => any, encoding?: string): void;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Appends the provided binary content to the file.
|
|
132
|
+
* @param content The binary content to be saved to the file.
|
|
133
|
+
*/
|
|
134
|
+
append(content: any): Promise<void>;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Appends the provided binary content to the file synchronously.
|
|
138
|
+
* @param content The binary content to be saved to the file.
|
|
139
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
140
|
+
*/
|
|
141
|
+
appendSync(content: any, onError?: (error: any) => any): void;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Copies a file to a given path.
|
|
145
|
+
* @param dest The path to the destination file.
|
|
146
|
+
* Returns a Promise with a boolean.
|
|
147
|
+
*/
|
|
148
|
+
copy(dest: string): Promise<boolean>;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Copies a file to a given path.
|
|
152
|
+
* @param dest The path to the destination file.
|
|
153
|
+
* @param onError (optional) A callback function to use if any error occurs.
|
|
154
|
+
* Returns a Promise with a boolean.
|
|
155
|
+
*/
|
|
156
|
+
copySync(dest: string, onError?: (error: any) => any): any;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Gets or creates a File entity at the specified path.
|
|
160
|
+
* @param path The path to get/create the file at.
|
|
161
|
+
* @param copy An optional value when set, copies the content-uri to a temp file enabling the legacy behaviour
|
|
162
|
+
*/
|
|
163
|
+
static fromPath(path: string, copy?: boolean): File;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Reads the content of the file as a string using the specified encoding (defaults to UTF-8).
|
|
167
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
168
|
+
*/
|
|
169
|
+
readText(encoding?: string): Promise<string>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Reads the content of the file as a string synchronously, using the specified encoding (defaults to UTF-8).
|
|
173
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
174
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
175
|
+
*/
|
|
176
|
+
readTextSync(onError?: (error: any) => any, encoding?: string): string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Reads the binary content of the file asynchronously.
|
|
180
|
+
*/
|
|
181
|
+
read(): Promise<any>;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Reads the binary content of the file synchronously.
|
|
185
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
186
|
+
*/
|
|
187
|
+
readSync(onError?: (error: any) => any): any;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Writes the provided string to the file, using the specified encoding (defaults to UTF-8).
|
|
191
|
+
* @param content The content to be saved to the file.
|
|
192
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
193
|
+
*/
|
|
194
|
+
writeText(content: string, encoding?: string): Promise<any>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Writes the provided string to the file synchronously, using the specified encoding (defaults to UTF-8).
|
|
198
|
+
* @param content The content to be saved to the file.
|
|
199
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
200
|
+
* @param encoding An optional value specifying the preferred encoding (defaults to UTF-8).
|
|
201
|
+
*/
|
|
202
|
+
writeTextSync(content: string, onError?: (error: any) => any, encoding?: string): void;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Writes the provided binary content to the file.
|
|
206
|
+
* @param content The binary content to be saved to the file.
|
|
207
|
+
*/
|
|
208
|
+
write(content: any): Promise<void>;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Writes the provided binary content to the file synchronously.
|
|
212
|
+
* @param content The binary content to be saved to the file.
|
|
213
|
+
* @param onError An optional function to be called if some IO-error occurs.
|
|
214
|
+
*/
|
|
215
|
+
writeSync(content: any, onError?: (error: any) => any): void;
|
|
70
216
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Represents a Folder (directory) entity on the file system.
|
|
220
|
+
*/
|
|
221
|
+
export class Folder extends FileSystemEntity {
|
|
222
|
+
/**
|
|
223
|
+
* Determines whether this instance is a KnownFolder (accessed through the KnownFolders object).
|
|
224
|
+
*/
|
|
225
|
+
isKnown: boolean;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Gets or creates a Folder entity at the specified path.
|
|
229
|
+
* @param path The path to get/create the folder at.
|
|
230
|
+
*/
|
|
231
|
+
static fromPath(path: string): Folder;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Checks whether a Folder with the specified path already exists.
|
|
235
|
+
* @param path The path to check for.
|
|
236
|
+
*/
|
|
237
|
+
static exists(path: string): boolean;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Checks whether this Folder contains an Entity with the specified name.
|
|
241
|
+
* The path of the folder is added to the name to resolve the complete path to check for.
|
|
242
|
+
* @param name The name of the entity to check for.
|
|
243
|
+
*/
|
|
244
|
+
contains(name: string): boolean;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Deletes all the files and folders (recursively), contained within this Folder.
|
|
248
|
+
*/
|
|
249
|
+
clear(): Promise<any>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Deletes all the files and folders (recursively), contained within this Folder synchronously.
|
|
253
|
+
* @param onError An optional function to be called if some error occurs.
|
|
254
|
+
*/
|
|
255
|
+
clearSync(onError?: (error: any) => void): void;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Gets or creates a File entity with the specified name within this Folder.
|
|
259
|
+
* @param name The name of the file to get/create.
|
|
260
|
+
*/
|
|
261
|
+
getFile(name: string): File;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Gets or creates a Folder entity with the specified name within this Folder.
|
|
265
|
+
* @param name The name of the folder to get/create.
|
|
266
|
+
*/
|
|
267
|
+
getFolder(name: string): Folder;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Gets all the top-level entities residing within this folder.
|
|
271
|
+
*/
|
|
272
|
+
getEntities(): Promise<Array<FileSystemEntity>>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Gets all the top-level entities residing within this folder synchronously.
|
|
276
|
+
* @param onError An optional function to be called if some error occurs.
|
|
277
|
+
*/
|
|
278
|
+
getEntitiesSync(onError?: (error: any) => any): Array<FileSystemEntity>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Enumerates all the top-level FileSystem entities residing within this folder.
|
|
282
|
+
* @param onEntity A callback that receives the current entity. If the callback returns false this will mean for the iteration to stop.
|
|
283
|
+
*/
|
|
284
|
+
eachEntity(onEntity: (entity: FileSystemEntity) => boolean);
|
|
83
285
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Provides access to the top-level Folders instances that are accessible from the application. Use these as entry points to access the FileSystem.
|
|
289
|
+
*/
|
|
290
|
+
export module knownFolders {
|
|
291
|
+
/**
|
|
292
|
+
* Gets the Documents folder available for the current application. This Folder is private for the application and not accessible from Users/External apps.
|
|
293
|
+
*/
|
|
294
|
+
export function documents(): Folder;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Gets the Documents folder available for the current application on an external storage. This Folder is private for the application and not accessible from Users/External apps.
|
|
298
|
+
* On android this requires READ_EXTERNAL_STORAGE/WRITE_EXTERNAL_STORAGE permissions
|
|
299
|
+
* There is no external storage on iOS os it is the same as `documents()`
|
|
300
|
+
*/
|
|
301
|
+
export function externalDocuments(): Folder;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps.
|
|
305
|
+
*/
|
|
306
|
+
export function temp(): Folder;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Gets the root folder for the current application. This Folder is private for the application and not accessible from Users/External apps.
|
|
310
|
+
* iOS - this folder is read-only and contains the app and all its resources.
|
|
311
|
+
*/
|
|
312
|
+
export function currentApp(): Folder;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Contains iOS-specific known folders.
|
|
316
|
+
*/
|
|
317
|
+
module ios {
|
|
318
|
+
/**
|
|
319
|
+
* Gets the NSLibraryDirectory. Note that the folder will not be created if it did not exist.
|
|
320
|
+
*/
|
|
321
|
+
export function library(): Folder;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Gets the NSDeveloperDirectory. Note that the folder will not be created if it did not exist.
|
|
325
|
+
*/
|
|
326
|
+
export function developer(): Folder;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Gets the NSDesktopDirectory. Note that the folder will not be created if it did not exist.
|
|
330
|
+
*/
|
|
331
|
+
export function desktop(): Folder;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Gets the NSDownloadsDirectory. Note that the folder will not be created if it did not exist.
|
|
335
|
+
*/
|
|
336
|
+
export function downloads(): Folder;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Gets the NSMoviesDirectory. Note that the folder will not be created if it did not exist.
|
|
340
|
+
*/
|
|
341
|
+
export function movies(): Folder;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Gets the NSMusicDirectory. Note that the folder will not be created if it did not exist.
|
|
345
|
+
*/
|
|
346
|
+
export function music(): Folder;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Gets the NSPicturesDirectory. Note that the folder will not be created if it did not exist.
|
|
350
|
+
*/
|
|
351
|
+
export function pictures(): Folder;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Gets the NSSharedPublicDirectory. Note that the folder will not be created if it did not exist.
|
|
355
|
+
*/
|
|
356
|
+
export function sharedPublic(): Folder;
|
|
357
|
+
}
|
|
99
358
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Enables path-specific operations like join, extension, etc.
|
|
362
|
+
*/
|
|
363
|
+
export module path {
|
|
364
|
+
/**
|
|
365
|
+
* Normalizes a path, taking care of occurrances like ".." and "//".
|
|
366
|
+
* @param path The path to be normalized.
|
|
367
|
+
*/
|
|
368
|
+
export function normalize(path: string): string;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Joins all the provided string components, forming a valid and normalized path.
|
|
372
|
+
* @param paths An array of string components to be joined.
|
|
373
|
+
*/
|
|
374
|
+
export function join(...paths: string[]): string;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Gets the string used to separate file paths.
|
|
378
|
+
*/
|
|
379
|
+
export const separator: string;
|
|
104
380
|
}
|
|
105
|
-
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An utility class used to measure frames per second.
|
|
3
|
+
*/
|
|
4
|
+
export class FPSCallback {
|
|
5
|
+
/**
|
|
6
|
+
* Initializes a new instance of FPSCallback class.
|
|
7
|
+
*/
|
|
8
|
+
constructor(onFrame: (currentTimeMillis: number) => void);
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Starts the frame per seconds measurement.
|
|
12
|
+
*/
|
|
13
|
+
start(): void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Stops the frame per seconds measurement.
|
|
17
|
+
*/
|
|
18
|
+
stop(): void;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Gets if the current instance of FPSCallback is running.
|
|
22
|
+
*/
|
|
23
|
+
running: boolean;
|
|
24
|
+
}
|
package/fps-meter/index.d.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Starts the frames-per-second meter.
|
|
3
|
+
*/
|
|
4
|
+
export function start(): void;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Stops the frames-per-second meter.
|
|
8
|
+
*/
|
|
9
|
+
export function stop(): void;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Returns a valid indicating whether the frames-per-second meter is currently running.
|
|
13
|
+
*/
|
|
14
|
+
export function running(): boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Adds a callback function to be called each time FPS data is due to be reported. Returns an unique id which can be used to remove this callback later.
|
|
18
|
+
*/
|
|
19
|
+
export function addCallback(callback: (fps: number, minFps?: number) => void): number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Removes the callback with the specified id.
|
|
23
|
+
*/
|
|
24
|
+
export function removeCallback(id: number);
|