@momo-kits/native-kits 0.0.1-beta.5 → 0.89.1-2
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/README.md +1 -0
- package/android/.gradle/8.0/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0/gc.properties +0 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +12 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +50 -0
- package/android/build.gradle +35 -69
- package/android/local.properties +8 -0
- package/android/proguard-rules.pro +21 -0
- package/android/src/main/AndroidManifest.xml +2 -2
- package/android/src/main/java/com/momoplatform/nativekits/foundations/Button.kt +16 -0
- package/android/src/main/java/com/momoplatform/nativekits/libs/Logo.kt +63 -0
- package/android/src/main/java/com/momoplatform/nativekits/libs/TrustBanner.kt +246 -0
- package/android/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/android/src/main/res/drawable-v24/ic_launcher_foreground.xml +30 -0
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +6 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/values/colors.xml +10 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/themes.xml +3 -0
- package/android/src/main/res/values-night/themes.xml +3 -0
- package/android/src/main/res/xml/backup_rules.xml +13 -0
- package/android/src/main/res/xml/data_extraction_rules.xml +19 -0
- package/build.gradle.kts +18 -0
- package/compose/build.gradle.kts +82 -0
- package/compose/src/androidMain/AndroidManifest.xml +2 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/utils/Platform.kt +3 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/utils/SetMaskFilter.kt +8 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/utils/Utils.android.kt +14 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Components.kt +194 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +197 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Screen.kt +133 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +62 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeDot.kt +27 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +288 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +80 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Divider.kt +23 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +42 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +126 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +51 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +299 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +246 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +223 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +244 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +281 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/PromotionPopup.kt +72 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +65 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +64 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +63 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +73 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +42 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Colors.kt +150 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Radius.kt +12 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Spacing.kt +13 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +173 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +242 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +2 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +2 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +2 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +50 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Icons.kt +1321 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Platform.kt +3 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/SetMaskFilter.kt +5 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +97 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/utils/Platform.kt +3 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/utils/SetMaskFilter.kt +9 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/utils/Utils.ios.kt +18 -0
- package/gradle.properties +19 -0
- package/gradlew +240 -0
- package/gradlew.bat +91 -0
- package/ios/Button/Button.swift +9 -2
- package/ios/CalculatorKeyboard/CalculatorKeyboard.swift +126 -0
- package/ios/Colors+Radius+Spacing/Colors.swift +21 -19
- package/ios/Input/Input.swift +1 -0
- package/ios/OTPKeyboard/KeyboardButton.swift +12 -4
- package/ios/Popup/PopupDisplay.swift +72 -81
- package/ios/Popup/PopupInput.swift +96 -0
- package/ios/Popup/PopupPromotion.swift +52 -0
- package/ios/ScrollIndicator/ScrollIndicator.swift +79 -0
- package/ios/Template/Logo/Logo.swift +75 -0
- package/ios/Template/TrustBanner/TrustBanner.swift +189 -0
- package/ios/native-kits.podspec +1 -1
- package/local.properties +8 -0
- package/package.json +6 -6
- package/publish.sh +1 -10
- package/settings.gradle.kts +41 -0
- package/android/gradle.properties +0 -5
- package/android/src/main/java/com/momoplatform/nativekits/NativeKitsPackage.kt +0 -17
- package/android/src/main/java/com/momoplatform/nativekits/NativeKitsViewManager.kt +0 -20
- package/example/ios/Example/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -63
- package/example/ios/Example/Assets.xcassets/Background.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Border.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Card.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Contents.json +0 -6
- package/example/ios/Example/Assets.xcassets/Error.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Primary.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/PrimaryDark.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/PrimaryLight.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Secondary.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Success.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Text.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/TextSecondary.colorset/Contents.json +0 -38
- package/example/ios/Example/Assets.xcassets/Warning.colorset/Contents.json +0 -38
- package/example/ios/Example/ComponentDetail.swift +0 -35
- package/example/ios/Example/ComponentItem.swift +0 -24
- package/example/ios/Example/ComponentModel.swift +0 -38
- package/example/ios/Example/ContentView.swift +0 -39
- package/example/ios/Example/Example.entitlements +0 -10
- package/example/ios/Example/Foundation/ButtonDemo.swift +0 -80
- package/example/ios/Example/Foundation/ImageDemo.swift +0 -43
- package/example/ios/Example/Foundation/Popup/ActionSheets.swift +0 -136
- package/example/ios/Example/Foundation/Popup/Floats.swift +0 -127
- package/example/ios/Example/Foundation/Popup/Popups.swift +0 -51
- package/example/ios/Example/Foundation/PopupDemo.swift +0 -389
- package/example/ios/Example/Foundation/TextInputDemo.swift +0 -36
- package/example/ios/Example/Foundation/TypographyDemo.swift +0 -53
- package/example/ios/Example/Foundation.swift +0 -26
- package/example/ios/Example/Info.plist +0 -18
- package/example/ios/Example/Library/CheckboxDemo.swift +0 -19
- package/example/ios/Example/Library/SwipeableDemo.swift +0 -105
- package/example/ios/Example/Library/SwitchDemo.swift +0 -19
- package/example/ios/Example/Library.swift +0 -26
- package/example/ios/Example/Main.swift +0 -27
- package/example/ios/Example/Overview.swift +0 -20
- package/example/ios/Example/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
- package/example/ios/Example/Resource/SFProText-Black.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Bold.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Heavy.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Light.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Medium.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Regular.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Semibold.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Thin.ttf +0 -0
- package/example/ios/Example/Resource/SFProText-Ultralight.ttf +0 -0
- package/example/ios/Example/Resource/foundation.json +0 -33
- package/example/ios/Example/Resource/library.json +0 -18
- package/example/ios/Example/Utils.swift +0 -30
- package/example/ios/Example/ViewModifier/DarkViewModifier.swift +0 -22
- package/example/ios/Example.xcodeproj/project.pbxproj +0 -581
- package/example/ios/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/example/ios/Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/ios/Example.xcodeproj/project.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/Example.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/example/ios/Example.xcworkspace/contents.xcworkspacedata +0 -10
- package/example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/example/ios/Example.xcworkspace/xcuserdata/wem.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -6
- package/example/ios/Podfile +0 -7
- package/example/ios/Podfile.lock +0 -35
- package/example/ios/Pods/Local Podspecs/MoMoUIKits.podspec.json +0 -37
- package/example/ios/Pods/Manifest.lock +0 -35
- package/example/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -2047
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/MoMoUIKits.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/Pods-Example.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SDWebImage.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SDWebImageSwiftUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/SkeletonUI.xcscheme +0 -58
- package/example/ios/Pods/Pods.xcodeproj/xcuserdata/wem.xcuserdatad/xcschemes/xcschememanagement.plist +0 -46
- package/example/ios/Pods/SDWebImage/LICENSE +0 -20
- package/example/ios/Pods/SDWebImage/README.md +0 -352
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSButton+WebCache.h +0 -340
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSButton+WebCache.m +0 -172
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSData+ImageContentType.h +0 -63
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSData+ImageContentType.m +0 -165
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSImage+Compatibility.h +0 -67
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/NSImage+Compatibility.m +0 -120
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImage.h +0 -114
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImage.m +0 -392
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImagePlayer.h +0 -112
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImagePlayer.m +0 -420
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageRep.h +0 -23
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageRep.m +0 -133
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView+WebCache.h +0 -168
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView+WebCache.m +0 -79
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.h +0 -110
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDAnimatedImageView.m +0 -540
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDDiskCache.h +0 -145
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDDiskCache.m +0 -326
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDGraphicsImageRenderer.h +0 -73
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDGraphicsImageRenderer.m +0 -256
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAPNGCoder.h +0 -19
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAPNGCoder.m +0 -58
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAWebPCoder.h +0 -23
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageAWebPCoder.m +0 -98
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCache.h +0 -450
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCache.m +0 -1030
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheConfig.h +0 -153
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheConfig.m +0 -68
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheDefine.h +0 -156
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCacheDefine.m +0 -138
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCachesManager.h +0 -81
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCachesManager.m +0 -556
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoder.h +0 -297
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoder.m +0 -26
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.h +0 -153
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.m +0 -822
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCodersManager.h +0 -58
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCodersManager.m +0 -130
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageFrame.h +0 -36
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageFrame.m +0 -28
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGIFCoder.h +0 -22
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGIFCoder.m +0 -58
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGraphics.h +0 -28
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageGraphics.m +0 -127
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageHEICCoder.h +0 -25
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageHEICCoder.m +0 -101
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOAnimatedCoder.h +0 -58
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOAnimatedCoder.m +0 -807
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOCoder.h +0 -30
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageIOCoder.m +0 -420
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoader.h +0 -146
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoader.m +0 -170
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoadersManager.h +0 -40
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageLoadersManager.m +0 -123
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageTransformer.h +0 -241
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDImageTransformer.m +0 -331
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDMemoryCache.h +0 -78
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDMemoryCache.m +0 -158
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheKeyFilter.h +0 -32
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheKeyFilter.m +0 -39
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheSerializer.h +0 -36
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCacheSerializer.m +0 -39
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCompat.h +0 -95
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageCompat.m +0 -17
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDefine.h +0 -352
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDefine.m +0 -149
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloader.h +0 -314
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloader.m +0 -658
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderConfig.h +0 -113
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderConfig.m +0 -60
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderDecryptor.h +0 -49
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderDecryptor.m +0 -55
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderOperation.h +0 -191
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderOperation.m +0 -722
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderRequestModifier.h +0 -69
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderRequestModifier.m +0 -71
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderResponseModifier.h +0 -69
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageDownloaderResponseModifier.m +0 -73
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageError.h +0 -32
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageError.m +0 -16
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageIndicator.h +0 -115
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageIndicator.m +0 -275
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageManager.h +0 -290
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageManager.m +0 -775
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOperation.h +0 -27
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOperation.m +0 -14
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOptionsProcessor.h +0 -72
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageOptionsProcessor.m +0 -59
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImagePrefetcher.h +0 -143
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImagePrefetcher.m +0 -303
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageTransition.h +0 -131
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/SDWebImageTransition.m +0 -194
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIButton+WebCache.h +0 -387
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIButton+WebCache.m +0 -234
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ExtendedCacheData.h +0 -24
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ExtendedCacheData.m +0 -23
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ForceDecode.h +0 -46
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+ForceDecode.m +0 -60
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+GIF.h +0 -26
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+GIF.m +0 -22
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MemoryCacheCost.h +0 -27
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MemoryCacheCost.m +0 -47
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Metadata.h +0 -89
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Metadata.m +0 -221
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MultiFormat.h +0 -80
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+MultiFormat.m +0 -47
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Transform.h +0 -146
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImage+Transform.m +0 -824
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+HighlightedWebCache.h +0 -129
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+HighlightedWebCache.m +0 -76
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+WebCache.h +0 -194
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIImageView+WebCache.m +0 -67
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCache.h +0 -110
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCache.m +0 -446
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCacheOperation.h +0 -48
- package/example/ios/Pods/SDWebImage/SDWebImage/Core/UIView+WebCacheOperation.m +0 -82
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/NSBezierPath+SDRoundedCorners.h +0 -24
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/NSBezierPath+SDRoundedCorners.m +0 -42
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAssociatedObject.h +0 -14
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAssociatedObject.m +0 -29
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.h +0 -21
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.m +0 -92
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDeviceHelper.h +0 -18
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDeviceHelper.m +0 -32
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDisplayLink.h +0 -29
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDDisplayLink.m +0 -227
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDFileAttributeHelper.h +0 -19
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDFileAttributeHelper.m +0 -127
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageAssetManager.h +0 -23
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageAssetManager.m +0 -164
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageCachesManagerOperation.h +0 -21
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageCachesManagerOperation.m +0 -83
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDImageIOAnimatedCoderInternal.h +0 -39
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDInternalMacros.h +0 -122
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDInternalMacros.m +0 -13
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWeakProxy.h +0 -20
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWeakProxy.m +0 -79
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDWebImageTransitionInternal.h +0 -19
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/SDmetamacros.h +0 -667
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/UIColor+SDHexString.h +0 -18
- package/example/ios/Pods/SDWebImage/SDWebImage/Private/UIColor+SDHexString.m +0 -42
- package/example/ios/Pods/SDWebImage/WebImage/SDWebImage.h +0 -89
- package/example/ios/Pods/SDWebImageSwiftUI/LICENSE +0 -19
- package/example/ios/Pods/SDWebImageSwiftUI/README.md +0 -690
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/AnimatedImage.swift +0 -870
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/Backport.swift +0 -59
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/OnChange.swift +0 -52
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/Overlay.swift +0 -124
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Backports/StateObject.swift +0 -151
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Image.swift +0 -78
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImageManager.swift +0 -132
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImagePlayer.swift +0 -122
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/ImageViewWrapper.swift +0 -133
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/ActivityIndicator.swift +0 -82
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/Indicator.swift +0 -97
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Indicator/ProgressIndicator.swift +0 -114
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/SDWebImageSwiftUI.swift +0 -64
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/SwiftUICompatibility.swift +0 -92
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/Transition/Transition.swift +0 -93
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Classes/WebImage.swift +0 -509
- package/example/ios/Pods/SDWebImageSwiftUI/SDWebImageSwiftUI/Module/SDWebImageSwiftUI.h +0 -15
- package/example/ios/Pods/SkeletonUI/LICENSE +0 -21
- package/example/ios/Pods/SkeletonUI/README.md +0 -137
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Angle/AngleInteractor.swift +0 -29
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Angle/AnglePresenter.swift +0 -7
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Animation/AnimationInteractor.swift +0 -56
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Appearance/AppearanceInteractor.swift +0 -58
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Appearance/AppearancePresenter.swift +0 -5
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/ClosedRange+Normalize.swift +0 -16
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Image+OptionalType.swift +0 -102
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/ModifiedContent+SkeletonModifier.swift +0 -26
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Optional+OptionalType.swift +0 -5
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/SecureField+OptionalType.swift +0 -19
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Text+OptionalType.swift +0 -27
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/TextField+OptionalType.swift +0 -35
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/Toggle+OptionalType.swift +0 -29
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/UnitPoint+Angle.swift +0 -8
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Extensions/View+SkeletonModifier.swift +0 -8
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Modifiers/SkeletonModifier.swift +0 -52
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Multiline/MultilineInteractor.swift +0 -41
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Multiline/MultilinePresenter.swift +0 -9
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Opacity/OpacityInteractor.swift +0 -29
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Opacity/OpacityPresenter.swift +0 -7
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Position/PositionInteractor.swift +0 -29
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Position/PositionPresenter.swift +0 -7
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Protocols/OptionalType.swift +0 -4
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Radius/RadiusInteractor.swift +0 -29
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Radius/RadiusPresenter.swift +0 -7
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Shape/ShapeInteractor.swift +0 -33
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Shape/ShapePresenter.swift +0 -5
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonForEach.swift +0 -20
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonInteractor.swift +0 -27
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonList.swift +0 -20
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonPresenter.swift +0 -15
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonShape.swift +0 -64
- package/example/ios/Pods/SkeletonUI/Sources/SkeletonUI/Skeleton/SkeletonView.swift +0 -25
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-dummy.m +0 -5
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-prefix.pch +0 -12
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits-umbrella.h +0 -16
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.debug.xcconfig +0 -15
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.modulemap +0 -6
- package/example/ios/Pods/Target Support Files/MoMoUIKits/MoMoUIKits.release.xcconfig +0 -15
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown +0 -75
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.plist +0 -119
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-dummy.m +0 -5
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example-umbrella.h +0 -16
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig +0 -15
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.modulemap +0 -6
- package/example/ios/Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig +0 -15
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-dummy.m +0 -5
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-prefix.pch +0 -12
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage-umbrella.h +0 -75
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.debug.xcconfig +0 -14
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.modulemap +0 -6
- package/example/ios/Pods/Target Support Files/SDWebImage/SDWebImage.release.xcconfig +0 -14
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-dummy.m +0 -5
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-prefix.pch +0 -12
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI-umbrella.h +0 -17
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.debug.xcconfig +0 -17
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.modulemap +0 -6
- package/example/ios/Pods/Target Support Files/SDWebImageSwiftUI/SDWebImageSwiftUI.release.xcconfig +0 -17
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-dummy.m +0 -5
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-prefix.pch +0 -12
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI-umbrella.h +0 -16
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.debug.xcconfig +0 -12
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.modulemap +0 -6
- package/example/ios/Pods/Target Support Files/SkeletonUI/SkeletonUI.release.xcconfig +0 -12
- package/ios/Extensions/View++.swift +0 -9
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the SDWebImage package.
|
|
3
|
-
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the LICENSE
|
|
6
|
-
* file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
#import "SDWebImageCompat.h"
|
|
10
|
-
|
|
11
|
-
#if SD_UIKIT
|
|
12
|
-
|
|
13
|
-
#import "SDWebImageManager.h"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Integrates SDWebImage async downloading and caching of remote images with UIImageView for highlighted state.
|
|
17
|
-
*/
|
|
18
|
-
@interface UIImageView (HighlightedWebCache)
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Set the imageView `highlightedImage` with an `url`.
|
|
22
|
-
*
|
|
23
|
-
* The download is asynchronous and cached.
|
|
24
|
-
*
|
|
25
|
-
* @param url The url for the image.
|
|
26
|
-
*/
|
|
27
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
31
|
-
*
|
|
32
|
-
* The download is asynchronous and cached.
|
|
33
|
-
*
|
|
34
|
-
* @param url The url for the image.
|
|
35
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
36
|
-
*/
|
|
37
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
38
|
-
options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Set the imageView `highlightedImage` with an `url`, custom options and context.
|
|
42
|
-
*
|
|
43
|
-
* The download is asynchronous and cached.
|
|
44
|
-
*
|
|
45
|
-
* @param url The url for the image.
|
|
46
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
47
|
-
* @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
|
|
48
|
-
*/
|
|
49
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
50
|
-
options:(SDWebImageOptions)options
|
|
51
|
-
context:(nullable SDWebImageContext *)context;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Set the imageView `highlightedImage` with an `url`.
|
|
55
|
-
*
|
|
56
|
-
* The download is asynchronous and cached.
|
|
57
|
-
*
|
|
58
|
-
* @param url The url for the image.
|
|
59
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
60
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
61
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
62
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
63
|
-
* The fourth parameter is the original image url.
|
|
64
|
-
*/
|
|
65
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
66
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
70
|
-
*
|
|
71
|
-
* The download is asynchronous and cached.
|
|
72
|
-
*
|
|
73
|
-
* @param url The url for the image.
|
|
74
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
75
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
76
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
77
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
78
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
79
|
-
* The fourth parameter is the original image url.
|
|
80
|
-
*/
|
|
81
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
82
|
-
options:(SDWebImageOptions)options
|
|
83
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Set the imageView `highlightedImage` with an `url` and custom options.
|
|
87
|
-
*
|
|
88
|
-
* The download is asynchronous and cached.
|
|
89
|
-
*
|
|
90
|
-
* @param url The url for the image.
|
|
91
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
92
|
-
* @param progressBlock A block called while image is downloading
|
|
93
|
-
* @note the progress block is executed on a background queue
|
|
94
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
95
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
96
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
97
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
98
|
-
* The fourth parameter is the original image url.
|
|
99
|
-
*/
|
|
100
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
101
|
-
options:(SDWebImageOptions)options
|
|
102
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
103
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Set the imageView `highlightedImage` with an `url`, custom options and context.
|
|
107
|
-
*
|
|
108
|
-
* The download is asynchronous and cached.
|
|
109
|
-
*
|
|
110
|
-
* @param url The url for the image.
|
|
111
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
112
|
-
* @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
|
|
113
|
-
* @param progressBlock A block called while image is downloading
|
|
114
|
-
* @note the progress block is executed on a background queue
|
|
115
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
116
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
117
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
118
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
119
|
-
* The fourth parameter is the original image url.
|
|
120
|
-
*/
|
|
121
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
122
|
-
options:(SDWebImageOptions)options
|
|
123
|
-
context:(nullable SDWebImageContext *)context
|
|
124
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
125
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
126
|
-
|
|
127
|
-
@end
|
|
128
|
-
|
|
129
|
-
#endif
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the SDWebImage package.
|
|
3
|
-
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the LICENSE
|
|
6
|
-
* file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
#import "UIImageView+HighlightedWebCache.h"
|
|
10
|
-
|
|
11
|
-
#if SD_UIKIT
|
|
12
|
-
|
|
13
|
-
#import "UIView+WebCacheOperation.h"
|
|
14
|
-
#import "UIView+WebCache.h"
|
|
15
|
-
#import "SDInternalMacros.h"
|
|
16
|
-
|
|
17
|
-
static NSString * const SDHighlightedImageOperationKey = @"UIImageViewImageOperationHighlighted";
|
|
18
|
-
|
|
19
|
-
@implementation UIImageView (HighlightedWebCache)
|
|
20
|
-
|
|
21
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url {
|
|
22
|
-
[self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:nil];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options {
|
|
26
|
-
[self sd_setHighlightedImageWithURL:url options:options progress:nil completed:nil];
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options context:(nullable SDWebImageContext *)context {
|
|
30
|
-
[self sd_setHighlightedImageWithURL:url options:options context:context progress:nil completed:nil];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
34
|
-
[self sd_setHighlightedImageWithURL:url options:0 progress:nil completed:completedBlock];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url options:(SDWebImageOptions)options completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
38
|
-
[self sd_setHighlightedImageWithURL:url options:options progress:nil completed:completedBlock];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
- (void)sd_setHighlightedImageWithURL:(NSURL *)url options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
42
|
-
[self sd_setHighlightedImageWithURL:url options:options context:nil progress:progressBlock completed:completedBlock];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
- (void)sd_setHighlightedImageWithURL:(nullable NSURL *)url
|
|
46
|
-
options:(SDWebImageOptions)options
|
|
47
|
-
context:(nullable SDWebImageContext *)context
|
|
48
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
49
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
50
|
-
@weakify(self);
|
|
51
|
-
SDWebImageMutableContext *mutableContext;
|
|
52
|
-
if (context) {
|
|
53
|
-
mutableContext = [context mutableCopy];
|
|
54
|
-
} else {
|
|
55
|
-
mutableContext = [NSMutableDictionary dictionary];
|
|
56
|
-
}
|
|
57
|
-
mutableContext[SDWebImageContextSetImageOperationKey] = SDHighlightedImageOperationKey;
|
|
58
|
-
[self sd_internalSetImageWithURL:url
|
|
59
|
-
placeholderImage:nil
|
|
60
|
-
options:options
|
|
61
|
-
context:mutableContext
|
|
62
|
-
setImageBlock:^(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
|
|
63
|
-
@strongify(self);
|
|
64
|
-
self.highlightedImage = image;
|
|
65
|
-
}
|
|
66
|
-
progress:progressBlock
|
|
67
|
-
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
|
|
68
|
-
if (completedBlock) {
|
|
69
|
-
completedBlock(image, error, cacheType, imageURL);
|
|
70
|
-
}
|
|
71
|
-
}];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@end
|
|
75
|
-
|
|
76
|
-
#endif
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the SDWebImage package.
|
|
3
|
-
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the LICENSE
|
|
6
|
-
* file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
#import "SDWebImageCompat.h"
|
|
10
|
-
#import "SDWebImageManager.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Usage with a UITableViewCell sub-class:
|
|
14
|
-
*
|
|
15
|
-
* @code
|
|
16
|
-
|
|
17
|
-
#import <SDWebImage/UIImageView+WebCache.h>
|
|
18
|
-
|
|
19
|
-
...
|
|
20
|
-
|
|
21
|
-
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
|
22
|
-
{
|
|
23
|
-
static NSString *MyIdentifier = @"MyIdentifier";
|
|
24
|
-
|
|
25
|
-
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
|
|
26
|
-
|
|
27
|
-
if (cell == nil) {
|
|
28
|
-
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Here we use the provided sd_setImageWithURL:placeholderImage: method to load the web image
|
|
32
|
-
// Ensure you use a placeholder image otherwise cells will be initialized with no image
|
|
33
|
-
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:@"http://example.com/image.jpg"]
|
|
34
|
-
placeholderImage:[UIImage imageNamed:@"placeholder"]];
|
|
35
|
-
|
|
36
|
-
cell.textLabel.text = @"My Text";
|
|
37
|
-
return cell;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
* @endcode
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Integrates SDWebImage async downloading and caching of remote images with UIImageView.
|
|
45
|
-
*/
|
|
46
|
-
@interface UIImageView (WebCache)
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Set the imageView `image` with an `url`.
|
|
50
|
-
*
|
|
51
|
-
* The download is asynchronous and cached.
|
|
52
|
-
*
|
|
53
|
-
* @param url The url for the image.
|
|
54
|
-
*/
|
|
55
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url NS_REFINED_FOR_SWIFT;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Set the imageView `image` with an `url` and a placeholder.
|
|
59
|
-
*
|
|
60
|
-
* The download is asynchronous and cached.
|
|
61
|
-
*
|
|
62
|
-
* @param url The url for the image.
|
|
63
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
64
|
-
* @see sd_setImageWithURL:placeholderImage:options:
|
|
65
|
-
*/
|
|
66
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
67
|
-
placeholderImage:(nullable UIImage *)placeholder NS_REFINED_FOR_SWIFT;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Set the imageView `image` with an `url`, placeholder and custom options.
|
|
71
|
-
*
|
|
72
|
-
* The download is asynchronous and cached.
|
|
73
|
-
*
|
|
74
|
-
* @param url The url for the image.
|
|
75
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
76
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
77
|
-
*/
|
|
78
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
79
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
80
|
-
options:(SDWebImageOptions)options NS_REFINED_FOR_SWIFT;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Set the imageView `image` with an `url`, placeholder, custom options and context.
|
|
84
|
-
*
|
|
85
|
-
* The download is asynchronous and cached.
|
|
86
|
-
*
|
|
87
|
-
* @param url The url for the image.
|
|
88
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
89
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
90
|
-
* @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
|
|
91
|
-
*/
|
|
92
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
93
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
94
|
-
options:(SDWebImageOptions)options
|
|
95
|
-
context:(nullable SDWebImageContext *)context;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Set the imageView `image` with an `url`.
|
|
99
|
-
*
|
|
100
|
-
* The download is asynchronous and cached.
|
|
101
|
-
*
|
|
102
|
-
* @param url The url for the image.
|
|
103
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
104
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
105
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
106
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
107
|
-
* The fourth parameter is the original image url.
|
|
108
|
-
*/
|
|
109
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
110
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Set the imageView `image` with an `url`, placeholder.
|
|
114
|
-
*
|
|
115
|
-
* The download is asynchronous and cached.
|
|
116
|
-
*
|
|
117
|
-
* @param url The url for the image.
|
|
118
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
119
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
120
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
121
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
122
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
123
|
-
* The fourth parameter is the original image url.
|
|
124
|
-
*/
|
|
125
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
126
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
127
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock NS_REFINED_FOR_SWIFT;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Set the imageView `image` with an `url`, placeholder and custom options.
|
|
131
|
-
*
|
|
132
|
-
* The download is asynchronous and cached.
|
|
133
|
-
*
|
|
134
|
-
* @param url The url for the image.
|
|
135
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
136
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
137
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
138
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
139
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
140
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
141
|
-
* The fourth parameter is the original image url.
|
|
142
|
-
*/
|
|
143
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
144
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
145
|
-
options:(SDWebImageOptions)options
|
|
146
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Set the imageView `image` with an `url`, placeholder and custom options.
|
|
150
|
-
*
|
|
151
|
-
* The download is asynchronous and cached.
|
|
152
|
-
*
|
|
153
|
-
* @param url The url for the image.
|
|
154
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
155
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
156
|
-
* @param progressBlock A block called while image is downloading
|
|
157
|
-
* @note the progress block is executed on a background queue
|
|
158
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
159
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
160
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
161
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
162
|
-
* The fourth parameter is the original image url.
|
|
163
|
-
*/
|
|
164
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
165
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
166
|
-
options:(SDWebImageOptions)options
|
|
167
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
168
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Set the imageView `image` with an `url`, placeholder, custom options and context.
|
|
172
|
-
*
|
|
173
|
-
* The download is asynchronous and cached.
|
|
174
|
-
*
|
|
175
|
-
* @param url The url for the image.
|
|
176
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
177
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
178
|
-
* @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
|
|
179
|
-
* @param progressBlock A block called while image is downloading
|
|
180
|
-
* @note the progress block is executed on a background queue
|
|
181
|
-
* @param completedBlock A block called when operation has been completed. This block has no return value
|
|
182
|
-
* and takes the requested UIImage as first parameter. In case of error the image parameter
|
|
183
|
-
* is nil and the second parameter may contain an NSError. The third parameter is a Boolean
|
|
184
|
-
* indicating if the image was retrieved from the local cache or from the network.
|
|
185
|
-
* The fourth parameter is the original image url.
|
|
186
|
-
*/
|
|
187
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
188
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
189
|
-
options:(SDWebImageOptions)options
|
|
190
|
-
context:(nullable SDWebImageContext *)context
|
|
191
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
192
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock;
|
|
193
|
-
|
|
194
|
-
@end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the SDWebImage package.
|
|
3
|
-
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the LICENSE
|
|
6
|
-
* file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
#import "UIImageView+WebCache.h"
|
|
10
|
-
#import "objc/runtime.h"
|
|
11
|
-
#import "UIView+WebCacheOperation.h"
|
|
12
|
-
#import "UIView+WebCache.h"
|
|
13
|
-
|
|
14
|
-
@implementation UIImageView (WebCache)
|
|
15
|
-
|
|
16
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url {
|
|
17
|
-
[self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:nil];
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder {
|
|
21
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:nil];
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options {
|
|
25
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:nil];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options context:(nullable SDWebImageContext *)context {
|
|
29
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:options context:context progress:nil completed:nil];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
33
|
-
[self sd_setImageWithURL:url placeholderImage:nil options:0 progress:nil completed:completedBlock];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
37
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:0 progress:nil completed:completedBlock];
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
41
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:options progress:nil completed:completedBlock];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url placeholderImage:(nullable UIImage *)placeholder options:(SDWebImageOptions)options progress:(nullable SDImageLoaderProgressBlock)progressBlock completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
45
|
-
[self sd_setImageWithURL:url placeholderImage:placeholder options:options context:nil progress:progressBlock completed:completedBlock];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
- (void)sd_setImageWithURL:(nullable NSURL *)url
|
|
49
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
50
|
-
options:(SDWebImageOptions)options
|
|
51
|
-
context:(nullable SDWebImageContext *)context
|
|
52
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
53
|
-
completed:(nullable SDExternalCompletionBlock)completedBlock {
|
|
54
|
-
[self sd_internalSetImageWithURL:url
|
|
55
|
-
placeholderImage:placeholder
|
|
56
|
-
options:options
|
|
57
|
-
context:context
|
|
58
|
-
setImageBlock:nil
|
|
59
|
-
progress:progressBlock
|
|
60
|
-
completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
|
|
61
|
-
if (completedBlock) {
|
|
62
|
-
completedBlock(image, error, cacheType, imageURL);
|
|
63
|
-
}
|
|
64
|
-
}];
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@end
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of the SDWebImage package.
|
|
3
|
-
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
4
|
-
*
|
|
5
|
-
* For the full copyright and license information, please view the LICENSE
|
|
6
|
-
* file that was distributed with this source code.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
#import "SDWebImageCompat.h"
|
|
10
|
-
#import "SDWebImageDefine.h"
|
|
11
|
-
#import "SDWebImageManager.h"
|
|
12
|
-
#import "SDWebImageTransition.h"
|
|
13
|
-
#import "SDWebImageIndicator.h"
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
The value specify that the image progress unit count cannot be determined because the progressBlock is not been called.
|
|
17
|
-
*/
|
|
18
|
-
FOUNDATION_EXPORT const int64_t SDWebImageProgressUnitCountUnknown; /* 1LL */
|
|
19
|
-
|
|
20
|
-
typedef void(^SDSetImageBlock)(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL);
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
Integrates SDWebImage async downloading and caching of remote images with UIView subclass.
|
|
24
|
-
*/
|
|
25
|
-
@interface UIView (WebCache)
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Get the current image URL.
|
|
29
|
-
*
|
|
30
|
-
* @note Note that because of the limitations of categories this property can get out of sync if you use setImage: directly.
|
|
31
|
-
*/
|
|
32
|
-
@property (nonatomic, strong, readonly, nullable) NSURL *sd_imageURL;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Get the current image operation key. Operation key is used to identify the different queries for one view instance (like UIButton).
|
|
36
|
-
* See more about this in `SDWebImageContextSetImageOperationKey`.
|
|
37
|
-
* If you cancel current image load, the key will be set to nil.
|
|
38
|
-
* @note You can use method `UIView+WebCacheOperation` to investigate different queries' operation.
|
|
39
|
-
*/
|
|
40
|
-
@property (nonatomic, strong, readonly, nullable) NSString *sd_latestOperationKey;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The current image loading progress associated to the view. The unit count is the received size and excepted size of download.
|
|
44
|
-
* The `totalUnitCount` and `completedUnitCount` will be reset to 0 after a new image loading start (change from current queue). And they will be set to `SDWebImageProgressUnitCountUnknown` if the progressBlock not been called but the image loading success to mark the progress finished (change from main queue).
|
|
45
|
-
* @note You can use Key-Value Observing on the progress, but you should take care that the change to progress is from a background queue during download(the same as progressBlock). If you want to using KVO and update the UI, make sure to dispatch on the main queue. And it's recommend to use some KVO libs like KVOController because it's more safe and easy to use.
|
|
46
|
-
* @note The getter will create a progress instance if the value is nil. But by default, we don't create one. If you need to use Key-Value Observing, you must trigger the getter or set a custom progress instance before the loading start. The default value is nil.
|
|
47
|
-
* @note Note that because of the limitations of categories this property can get out of sync if you update the progress directly.
|
|
48
|
-
*/
|
|
49
|
-
@property (nonatomic, strong, null_resettable) NSProgress *sd_imageProgress;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Set the imageView `image` with an `url` and optionally a placeholder image.
|
|
53
|
-
*
|
|
54
|
-
* The download is asynchronous and cached.
|
|
55
|
-
*
|
|
56
|
-
* @param url The url for the image.
|
|
57
|
-
* @param placeholder The image to be set initially, until the image request finishes.
|
|
58
|
-
* @param options The options to use when downloading the image. @see SDWebImageOptions for the possible values.
|
|
59
|
-
* @param context A context contains different options to perform specify changes or processes, see `SDWebImageContextOption`. This hold the extra objects which `options` enum can not hold.
|
|
60
|
-
* @param setImageBlock Block used for custom set image code. If not provide, use the built-in set image code (supports `UIImageView/NSImageView` and `UIButton/NSButton` currently)
|
|
61
|
-
* @param progressBlock A block called while image is downloading
|
|
62
|
-
* @note the progress block is executed on a background queue
|
|
63
|
-
* @param completedBlock A block called when operation has been completed.
|
|
64
|
-
* This block has no return value and takes the requested UIImage as first parameter and the NSData representation as second parameter.
|
|
65
|
-
* In case of error the image parameter is nil and the third parameter may contain an NSError.
|
|
66
|
-
*
|
|
67
|
-
* The forth parameter is an `SDImageCacheType` enum indicating if the image was retrieved from the local cache
|
|
68
|
-
* or from the memory cache or from the network.
|
|
69
|
-
*
|
|
70
|
-
* The fifth parameter normally is always YES. However, if you provide SDWebImageAvoidAutoSetImage with SDWebImageProgressiveLoad options to enable progressive downloading and set the image yourself. This block is thus called repeatedly with a partial image. When image is fully downloaded, the
|
|
71
|
-
* block is called a last time with the full image and the last parameter set to YES.
|
|
72
|
-
*
|
|
73
|
-
* The last parameter is the original image URL
|
|
74
|
-
* @return The returned operation for cancelling cache and download operation, typically type is `SDWebImageCombinedOperation`
|
|
75
|
-
*/
|
|
76
|
-
- (nullable id<SDWebImageOperation>)sd_internalSetImageWithURL:(nullable NSURL *)url
|
|
77
|
-
placeholderImage:(nullable UIImage *)placeholder
|
|
78
|
-
options:(SDWebImageOptions)options
|
|
79
|
-
context:(nullable SDWebImageContext *)context
|
|
80
|
-
setImageBlock:(nullable SDSetImageBlock)setImageBlock
|
|
81
|
-
progress:(nullable SDImageLoaderProgressBlock)progressBlock
|
|
82
|
-
completed:(nullable SDInternalCompletionBlock)completedBlock;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Cancel the current image load
|
|
86
|
-
*/
|
|
87
|
-
- (void)sd_cancelCurrentImageLoad;
|
|
88
|
-
|
|
89
|
-
#if SD_UIKIT || SD_MAC
|
|
90
|
-
|
|
91
|
-
#pragma mark - Image Transition
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
The image transition when image load finished. See `SDWebImageTransition`.
|
|
95
|
-
If you specify nil, do not do transition. Defaults to nil.
|
|
96
|
-
*/
|
|
97
|
-
@property (nonatomic, strong, nullable) SDWebImageTransition *sd_imageTransition;
|
|
98
|
-
|
|
99
|
-
#pragma mark - Image Indicator
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
The image indicator during the image loading. If you do not need indicator, specify nil. Defaults to nil
|
|
103
|
-
The setter will remove the old indicator view and add new indicator view to current view's subview.
|
|
104
|
-
@note Because this is UI related, you should access only from the main queue.
|
|
105
|
-
*/
|
|
106
|
-
@property (nonatomic, strong, nullable) id<SDWebImageIndicator> sd_imageIndicator;
|
|
107
|
-
|
|
108
|
-
#endif
|
|
109
|
-
|
|
110
|
-
@end
|