@thegrizzlylabs/react-native-genius-scan 5.17.3 → 6.0.0-beta02

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.
Files changed (120) hide show
  1. package/README.md +4 -4
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/com/geniusscansdk/reactnative/RNGeniusScanModule.java +12 -10
  4. package/index.d.ts +7 -7
  5. package/index.js +1 -1
  6. package/ios/GSSDK/GSSDK.xcframework/Info.plist +5 -5
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Assets.car +0 -0
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDefaultLogLevel.h +1 -1
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKError.h +7 -3
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLog.h +1 -1
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKLogger.h +1 -1
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKRotation.h +5 -1
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
  24. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +459 -344
  25. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK.h +0 -6
  26. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
  27. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  28. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +19923 -17290
  29. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +334 -279
  30. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  31. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +334 -279
  32. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
  33. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
  34. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
  35. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
  36. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  37. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
  38. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
  39. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
  40. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
  41. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
  42. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
  43. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
  44. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
  45. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
  46. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
  47. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
  48. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
  49. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
  50. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
  51. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Assets.car +0 -0
  52. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/DeviceList.plist +0 -0
  53. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/Info.plist +0 -0
  54. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/DeviceGuru_DeviceGuru.bundle/PrivacyInfo.xcprivacy +34 -0
  55. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  56. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDefaultLogLevel.h +1 -1
  57. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKDocumentDetector.h +5 -3
  58. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEnhancementConfiguration.h +0 -8
  59. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKError.h +7 -3
  60. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLog.h +1 -1
  61. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKLogger.h +1 -1
  62. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKProcessingResult.h +0 -4
  63. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKQuadrangle.h +1 -7
  64. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKReadabilityResult.h +1 -1
  65. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKRotation.h +5 -1
  66. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +2 -2
  67. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanProcessor.h +6 -5
  68. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +932 -702
  69. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK.h +0 -6
  70. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/UIImage+GSKUtils.h +12 -3
  71. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  72. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +19923 -17290
  73. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +334 -279
  74. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  75. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +334 -279
  76. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +19923 -17290
  77. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +334 -279
  78. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  79. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +334 -279
  80. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ar.lproj/GSSDK.stringsdict +0 -0
  81. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/da.lproj/GSSDK.stringsdict +0 -0
  82. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/de.lproj/GSSDK.stringsdict +0 -0
  83. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/es.lproj/GSSDK.stringsdict +0 -0
  84. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.strings +0 -0
  85. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/fr.lproj/GSSDK.stringsdict +0 -0
  86. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/he.lproj/GSSDK.stringsdict +0 -0
  87. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/hu.lproj/GSSDK.stringsdict +0 -0
  88. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/it.lproj/GSSDK.stringsdict +0 -0
  89. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ja.lproj/GSSDK.stringsdict +0 -0
  90. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ko.lproj/GSSDK.stringsdict +0 -0
  91. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/nl.lproj/GSSDK.stringsdict +0 -0
  92. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pl.lproj/GSSDK.stringsdict +0 -0
  93. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/pt-BR.lproj/GSSDK.stringsdict +0 -0
  94. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/ru.lproj/GSSDK.stringsdict +0 -0
  95. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/sv.lproj/GSSDK.stringsdict +0 -0
  96. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/tr.lproj/GSSDK.stringsdict +0 -0
  97. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/vi.lproj/GSSDK.stringsdict +0 -0
  98. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/zh-Hans.lproj/GSSDK.stringsdict +0 -0
  99. package/ios/RNGeniusScan.m +8 -8
  100. package/package.json +1 -1
  101. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
  102. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
  103. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
  104. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKFilterType.h +0 -43
  105. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
  106. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKShutterView.h +0 -28
  107. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKView.h +0 -70
  108. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/png.h +0 -3358
  109. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
  110. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
  111. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameView.h +0 -71
  112. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditFrameViewController.h +0 -62
  113. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKEditableFrame.h +0 -68
  114. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKFilterType.h +0 -43
  115. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKMBProgressHUD.h +0 -410
  116. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKShutterView.h +0 -28
  117. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKView.h +0 -70
  118. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/png.h +0 -3358
  119. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pngconf.h +0 -615
  120. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/PrivateHeaders/pnglibconf.h +0 -233
@@ -1,410 +0,0 @@
1
- //
2
- // GSKMBProgressHUD.h
3
- // Version 1.2.0
4
- // Created by Matej Bukovinski on 2.4.09.
5
- //
6
-
7
- // This code is distributed under the terms and conditions of the MIT license.
8
-
9
- // Copyright © 2009-2020 Matej Bukovinski
10
- //
11
- // Permission is hereby granted, free of charge, to any person obtaining a copy
12
- // of this software and associated documentation files (the "Software"), to deal
13
- // in the Software without restriction, including without limitation the rights
14
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- // copies of the Software, and to permit persons to whom the Software is
16
- // furnished to do so, subject to the following conditions:
17
- //
18
- // The above copyright notice and this permission notice shall be included in
19
- // all copies or substantial portions of the Software.
20
- //
21
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
- // THE SOFTWARE.
28
-
29
- #import <CoreGraphics/CoreGraphics.h>
30
- #import <Foundation/Foundation.h>
31
- #import <UIKit/UIKit.h>
32
-
33
- @class GSKMBBackgroundView;
34
- @protocol GSKMBProgressHUDDelegate;
35
-
36
- extern CGFloat const GSKMBProgressMaxOffset;
37
-
38
- typedef NS_ENUM(NSInteger, GSKMBProgressHUDMode) {
39
- /// UIActivityIndicatorView.
40
- GSKMBProgressHUDModeIndeterminate,
41
- /// A round, pie-chart like, progress view.
42
- GSKMBProgressHUDModeDeterminate,
43
- /// Horizontal progress bar.
44
- GSKMBProgressHUDModeDeterminateHorizontalBar,
45
- /// Ring-shaped progress view.
46
- GSKMBProgressHUDModeAnnularDeterminate,
47
- /// Shows a custom view.
48
- GSKMBProgressHUDModeCustomView,
49
- /// Shows only labels.
50
- GSKMBProgressHUDModeText
51
- };
52
-
53
- typedef NS_ENUM(NSInteger, GSKMBProgressHUDAnimation) {
54
- /// Opacity animation
55
- GSKMBProgressHUDAnimationFade,
56
- /// Opacity + scale animation (zoom in when appearing zoom out when disappearing)
57
- GSKMBProgressHUDAnimationZoom,
58
- /// Opacity + scale animation (zoom out style)
59
- GSKMBProgressHUDAnimationZoomOut,
60
- /// Opacity + scale animation (zoom in style)
61
- GSKMBProgressHUDAnimationZoomIn
62
- };
63
-
64
- typedef NS_ENUM(NSInteger, GSKMBProgressHUDBackgroundStyle) {
65
- /// Solid color background
66
- GSKMBProgressHUDBackgroundStyleSolidColor,
67
- /// UIVisualEffectView or UIToolbar.layer background view
68
- GSKMBProgressHUDBackgroundStyleBlur
69
- };
70
-
71
- typedef void (^GSKMBProgressHUDCompletionBlock)(void);
72
-
73
- NS_ASSUME_NONNULL_BEGIN
74
-
75
- /**
76
- * Displays a simple HUD window containing a progress indicator and two optional labels for short messages.
77
- *
78
- * This is a simple drop-in class for displaying a progress HUD view similar to Apple's private UIProgressHUD class.
79
- * The GSKMBProgressHUD window spans over the entire space given to it by the initWithFrame: constructor and catches all
80
- * user input on this region, thereby preventing the user operations on components below the view.
81
- *
82
- * @note To still allow touches to pass through the HUD, you can set hud.userInteractionEnabled = NO.
83
- * @attention GSKMBProgressHUD is a UI class and should therefore only be accessed on the main thread.
84
- */
85
- @interface GSKMBProgressHUD : UIView
86
-
87
- /**
88
- * Creates a new HUD, adds it to provided view and shows it. The counterpart to this method is hideHUDForView:animated:.
89
- *
90
- * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when
91
- * hidden.
92
- *
93
- * @param view The view that the HUD will be added to
94
- * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
95
- * animations while appearing.
96
- * @return A reference to the created HUD.
97
- *
98
- * @see hideHUDForView:animated:
99
- * @see animationType
100
- */
101
- + (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
102
-
103
- /// @name Showing and hiding
104
-
105
- /**
106
- * Finds the top-most HUD subview that hasn't finished and hides it. The counterpart to this method is
107
- * showHUDAddedTo:animated:.
108
- *
109
- * @note This method sets removeFromSuperViewOnHide. The HUD will automatically be removed from the view hierarchy when
110
- * hidden.
111
- *
112
- * @param view The view that is going to be searched for a HUD subview.
113
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
114
- * use animations while disappearing.
115
- * @return YES if a HUD was found and removed, NO otherwise.
116
- *
117
- * @see showHUDAddedTo:animated:
118
- * @see animationType
119
- */
120
- + (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
121
-
122
- /**
123
- * Finds the top-most HUD subview that hasn't finished and returns it.
124
- *
125
- * @param view The view that is going to be searched.
126
- * @return A reference to the last HUD subview discovered.
127
- */
128
- + (nullable GSKMBProgressHUD *)HUDForView:(UIView *)view NS_SWIFT_NAME(forView(_:));
129
-
130
- /**
131
- * A convenience constructor that initializes the HUD with the view's bounds. Calls the designated constructor with
132
- * view.bounds as the parameter.
133
- *
134
- * @param view The view instance that will provide the bounds for the HUD. Should be the same instance as
135
- * the HUD's superview (i.e., the view that the HUD will be added to).
136
- */
137
- - (instancetype)initWithView:(UIView *)view;
138
-
139
- /**
140
- * Displays the HUD.
141
- *
142
- * @note You need to make sure that the main thread completes its run loop soon after this method call so that
143
- * the user interface can be updated. Call this method when your task is already set up to be executed in a new thread
144
- * (e.g., when using something like NSOperation or making an asynchronous call like NSURLRequest).
145
- *
146
- * @param animated If set to YES the HUD will appear using the current animationType. If set to NO the HUD will not use
147
- * animations while appearing.
148
- *
149
- * @see animationType
150
- */
151
- - (void)showAnimated:(BOOL)animated;
152
-
153
- /**
154
- * Hides the HUD. This still calls the hudWasHidden: delegate. This is the counterpart of the show: method. Use it to
155
- * hide the HUD when your task completes.
156
- *
157
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
158
- * use animations while disappearing.
159
- *
160
- * @see animationType
161
- */
162
- - (void)hideAnimated:(BOOL)animated;
163
-
164
- /**
165
- * Hides the HUD after a delay. This still calls the hudWasHidden: delegate. This is the counterpart of the show:
166
- * method. Use it to hide the HUD when your task completes.
167
- *
168
- * @param animated If set to YES the HUD will disappear using the current animationType. If set to NO the HUD will not
169
- * use animations while disappearing.
170
- * @param delay Delay in seconds until the HUD is hidden.
171
- *
172
- * @see animationType
173
- */
174
- - (void)hideAnimated:(BOOL)animated afterDelay:(NSTimeInterval)delay;
175
-
176
- /**
177
- * The HUD delegate object. Receives HUD state notifications.
178
- */
179
- @property (weak, nonatomic) id<GSKMBProgressHUDDelegate> delegate;
180
-
181
- /**
182
- * Called after the HUD is hidden.
183
- */
184
- @property (copy, nullable) GSKMBProgressHUDCompletionBlock completionBlock;
185
-
186
- /**
187
- * Grace period is the time (in seconds) that the invoked method may be run without
188
- * showing the HUD. If the task finishes before the grace time runs out, the HUD will
189
- * not be shown at all.
190
- * This may be used to prevent HUD display for very short tasks.
191
- * Defaults to 0 (no grace time).
192
- * @note The graceTime needs to be set before the hud is shown. You thus can't use `showHUDAddedTo:animated:`,
193
- * but instead need to alloc / init the HUD, configure the grace time and than show it manually.
194
- */
195
- @property (assign, nonatomic) NSTimeInterval graceTime;
196
-
197
- /**
198
- * The minimum time (in seconds) that the HUD is shown.
199
- * This avoids the problem of the HUD being shown and than instantly hidden.
200
- * Defaults to 0 (no minimum show time).
201
- */
202
- @property (assign, nonatomic) NSTimeInterval minShowTime;
203
-
204
- /**
205
- * Removes the HUD from its parent view when hidden.
206
- * Defaults to NO.
207
- */
208
- @property (assign, nonatomic) BOOL removeFromSuperViewOnHide;
209
-
210
- /// @name Appearance
211
-
212
- /**
213
- * GSKMBProgressHUD operation mode. The default is GSKMBProgressHUDModeIndeterminate.
214
- */
215
- @property (assign, nonatomic) GSKMBProgressHUDMode mode;
216
-
217
- /**
218
- * A color that gets forwarded to all labels and supported indicators. Also sets the tintColor
219
- * for custom views on iOS 7+. Set to nil to manage color individually.
220
- * Defaults to semi-translucent black on iOS 7 and later and white on earlier iOS versions.
221
- */
222
- @property (strong, nonatomic, nullable) UIColor *contentColor UI_APPEARANCE_SELECTOR;
223
-
224
- /**
225
- * The animation type that should be used when the HUD is shown and hidden.
226
- */
227
- @property (assign, nonatomic) GSKMBProgressHUDAnimation animationType UI_APPEARANCE_SELECTOR;
228
-
229
- /**
230
- * The bezel offset relative to the center of the view. You can use GSKMBProgressMaxOffset
231
- * and -GSKMBProgressMaxOffset to move the HUD all the way to the screen edge in each direction.
232
- * E.g., CGPointMake(0.f, GSKMBProgressMaxOffset) would position the HUD centered on the bottom edge.
233
- */
234
- @property (assign, nonatomic) CGPoint offset UI_APPEARANCE_SELECTOR;
235
-
236
- /**
237
- * The amount of space between the HUD edge and the HUD elements (labels, indicators or custom views).
238
- * This also represents the minimum bezel distance to the edge of the HUD view.
239
- * Defaults to 20.f
240
- */
241
- @property (assign, nonatomic) CGFloat margin UI_APPEARANCE_SELECTOR;
242
-
243
- /**
244
- * The minimum size of the HUD bezel. Defaults to CGSizeZero (no minimum size).
245
- */
246
- @property (assign, nonatomic) CGSize minSize UI_APPEARANCE_SELECTOR;
247
-
248
- /**
249
- * Force the HUD dimensions to be equal if possible.
250
- */
251
- @property (assign, nonatomic, getter=isSquare) BOOL square UI_APPEARANCE_SELECTOR;
252
-
253
- /**
254
- * When enabled, the bezel center gets slightly affected by the device accelerometer data.
255
- * Defaults to NO.
256
- *
257
- * @note This can cause main thread checker assertions on certain devices.
258
- * https://github.com/jdg/GSKMBProgressHUD/issues/552
259
- */
260
- @property (assign, nonatomic, getter=areDefaultMotionEffectsEnabled)
261
- BOOL defaultMotionEffectsEnabled UI_APPEARANCE_SELECTOR;
262
-
263
- /// @name Progress
264
-
265
- /**
266
- * The progress of the progress indicator, from 0.0 to 1.0. Defaults to 0.0.
267
- */
268
- @property (assign, nonatomic) float progress;
269
-
270
- /// @name ProgressObject
271
-
272
- /**
273
- * The NSProgress object feeding the progress information to the progress indicator.
274
- */
275
- @property (strong, nonatomic, nullable) NSProgress *progressObject;
276
-
277
- /// @name Views
278
-
279
- /**
280
- * The view containing the labels and indicator (or customView).
281
- */
282
- @property (strong, nonatomic, readonly) GSKMBBackgroundView *bezelView;
283
-
284
- /**
285
- * View covering the entire HUD area, placed behind bezelView.
286
- */
287
- @property (strong, nonatomic, readonly) GSKMBBackgroundView *backgroundView;
288
-
289
- /**
290
- * The UIView (e.g., a UIImageView) to be shown when the HUD is in GSKMBProgressHUDModeCustomView.
291
- * The view should implement intrinsicContentSize for proper sizing. For best results use approximately 37 by 37 pixels.
292
- */
293
- @property (strong, nonatomic, nullable) UIView *customView;
294
-
295
- /**
296
- * A label that holds an optional short message to be displayed below the activity indicator. The HUD is automatically
297
- * resized to fit the entire text.
298
- */
299
- @property (strong, nonatomic, readonly) UILabel *label;
300
-
301
- /**
302
- * A label that holds an optional details message displayed below the labelText message. The details text can span
303
- * multiple lines.
304
- */
305
- @property (strong, nonatomic, readonly) UILabel *detailsLabel;
306
-
307
- /**
308
- * A button that is placed below the labels. Visible only if a target / action is added and a title is assigned..
309
- */
310
- @property (strong, nonatomic, readonly) UIButton *button;
311
-
312
- @end
313
-
314
- @protocol GSKMBProgressHUDDelegate <NSObject>
315
-
316
- @optional
317
-
318
- /**
319
- * Called after the HUD was fully hidden from the screen.
320
- */
321
- - (void)hudWasHidden:(GSKMBProgressHUD *)hud;
322
-
323
- @end
324
-
325
- /**
326
- * A progress view for showing definite progress by filling up a circle (pie chart).
327
- */
328
- @interface GSKMBRoundProgressView : UIView
329
-
330
- /**
331
- * Progress (0.0 to 1.0)
332
- */
333
- @property (nonatomic, assign) float progress;
334
-
335
- /**
336
- * Indicator progress color.
337
- * Defaults to white [UIColor whiteColor].
338
- */
339
- @property (nonatomic, strong) UIColor *progressTintColor;
340
-
341
- /**
342
- * Indicator background (non-progress) color.
343
- * Only applicable on iOS versions older than iOS 7.
344
- * Defaults to translucent white (alpha 0.1).
345
- */
346
- @property (nonatomic, strong) UIColor *backgroundTintColor;
347
-
348
- /*
349
- * Display mode - NO = round or YES = annular. Defaults to round.
350
- */
351
- @property (nonatomic, assign, getter=isAnnular) BOOL annular;
352
-
353
- @end
354
-
355
- /**
356
- * A flat bar progress view.
357
- */
358
- @interface GSKMBBarProgressView : UIView
359
-
360
- /**
361
- * Progress (0.0 to 1.0)
362
- */
363
- @property (nonatomic, assign) float progress;
364
-
365
- /**
366
- * Bar border line color.
367
- * Defaults to white [UIColor whiteColor].
368
- */
369
- @property (nonatomic, strong) UIColor *lineColor;
370
-
371
- /**
372
- * Bar background color.
373
- * Defaults to clear [UIColor clearColor];
374
- */
375
- @property (nonatomic, strong) UIColor *progressRemainingColor;
376
-
377
- /**
378
- * Bar progress color.
379
- * Defaults to white [UIColor whiteColor].
380
- */
381
- @property (nonatomic, strong) UIColor *progressColor;
382
-
383
- @end
384
-
385
- @interface GSKMBBackgroundView : UIView
386
-
387
- /**
388
- * The background style.
389
- * Defaults to GSKMBProgressHUDBackgroundStyleBlur.
390
- */
391
- @property (nonatomic) GSKMBProgressHUDBackgroundStyle style;
392
-
393
- /**
394
- * The blur effect style, when using GSKMBProgressHUDBackgroundStyleBlur.
395
- * Defaults to UIBlurEffectStyleLight.
396
- */
397
- @property (nonatomic) UIBlurEffectStyle blurEffectStyle;
398
-
399
- /**
400
- * The background color or the blur tint color.
401
- *
402
- * Defaults to nil on iOS 13 and later and
403
- * `[UIColor colorWithWhite:0.8f alpha:0.6f]`
404
- * on older systems.
405
- */
406
- @property (nonatomic, strong, nullable) UIColor *color;
407
-
408
- @end
409
-
410
- NS_ASSUME_NONNULL_END
@@ -1,28 +0,0 @@
1
- //
2
- // Genius Scan SDK
3
- //
4
- // Copyright 2010-2019 The Grizzly Labs
5
- //
6
- // Subject to the Genius Scan SDK Licensing Agreement
7
- // sdk@thegrizzlylabs.com
8
- //
9
-
10
- #import <UIKit/UIKit.h>
11
-
12
- /**
13
- A view to simulate a camera shutter effect.
14
- */
15
- @interface GSKShutterView : UIView
16
-
17
- /**
18
- Simulate closing the shutter.
19
- */
20
- - (void)shut;
21
-
22
- /**
23
- Simulate opening the shutter.
24
- */
25
- - (void)revealOnComplete:(void (^)(void))onCompletion;
26
- - (void)reveal;
27
-
28
- @end
@@ -1,70 +0,0 @@
1
- //
2
- // Genius Scan SDK
3
- //
4
- // Copyright 2010-2019 The Grizzly Labs
5
- //
6
- // Subject to the Genius Scan SDK Licensing Agreement
7
- // sdk@thegrizzlylabs.com
8
- //
9
-
10
- #import <UIKit/UIKit.h>
11
-
12
- #import <AVFoundation/AVFoundation.h>
13
-
14
- NS_ASSUME_NONNULL_BEGIN
15
-
16
- @class GSKCameraSession;
17
- @class GSKQuadrangle;
18
- @class GSKView;
19
-
20
- @protocol GSKViewDelegate <NSObject>
21
-
22
- - (void)cameraView:(GSKView *)cameraView requestedFocusAtPoint:(CGPoint)focusPoint;
23
-
24
- @end
25
-
26
- @interface GSKView : UIView
27
-
28
- /// Handle interface orientation change
29
- - (void)initializeRotationWithInterfaceOrientation:(UIInterfaceOrientation)orientation;
30
- - (void)rotateWithCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;
31
-
32
- /// Displays the focus indicator at the requested location
33
- - (void)animateFocusAtLocation:(CGPoint)location;
34
-
35
- /// Updates the quadrangle overlay. Removes the quadrangle if @param quadrangle is nil.
36
- - (void)updateQuadrangle:(GSKQuadrangle * _Nullable)quadrangle;
37
-
38
- - (void)setCameraSession:(GSKCameraSession *)session;
39
- - (void)setCaptureSession:(AVCaptureSession *)session; // Deprecated. Use `setCameraSession` instead.
40
-
41
- /**
42
- Freeze the capture preview. This is very fast as this doesn't interrupt the camera session.
43
- */
44
- - (void)pausePreview;
45
-
46
- /**
47
- Resumes the capture preview.
48
- */
49
- - (void)resumePreview;
50
-
51
- /**
52
- Returns the metadata output rect converted to the preview layer's coordinates.
53
- */
54
- - (CGRect)layerRectConvertedFromMetadataOutputRect:(CGRect)rect;
55
-
56
- @property (nonatomic, readonly) UIView *previewView;
57
-
58
- /**
59
- The document frame layer
60
- */
61
- @property (nonatomic, readonly) CAShapeLayer *frameLayer;
62
- @property (nonatomic, readonly) CAShapeLayer *snapFrameLayer;
63
-
64
- @property (nonatomic, copy) UIColor *overlayColor;
65
-
66
- @property (nonatomic, weak) id<GSKViewDelegate> delegate;
67
-
68
- @end
69
-
70
- NS_ASSUME_NONNULL_END