Skip to content

Commit

Permalink
45.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichanyline committed Apr 21, 2023
1 parent 8a1d803 commit 7bb1fa0
Show file tree
Hide file tree
Showing 582 changed files with 2,731 additions and 1,563 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
#import "ALPluginResultHelper.h"
#import "UIFont+ALExamplesAdditions.h"
#import "UIColor+ALExamplesAdditions.h"
#import "ALConfigurationDialogViewController.h"
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,9 @@ - (UIViewController *)pageViewController:(UIPageViewController *)pageViewControl
}

- (NSString *)titleOfExampleManager:(UIViewController *)viewController {
id<ALExampleManagerController> vc = (id<ALExampleManagerController>)viewController;
return vc.exampleManager.title;
return viewController.title; // "Scanners" or "Industries" (APP-169)
}


- (NSString *)titleOfExampleManagerOnIndex:(NSInteger)idx {
return [self titleOfExampleManager:[_pages objectAtIndex:idx]];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
NS_ASSUME_NONNULL_BEGIN

@class ALResultEntry;
@class ALModeSelectionButton;

@interface ALBaseScanViewController : UIViewController <ALScanViewDelegate>

@property (nonatomic, strong, nullable) ALScanView *scanView;

@property (nonatomic, readonly, nullable) NSObject<ALScanViewPluginBase> *scanViewPlugin;

@property (nonatomic, strong) NSManagedObjectContext *managedObjectContext;

@property (nonatomic, assign) CFTimeInterval startTime;
Expand All @@ -22,6 +25,11 @@ NS_ASSUME_NONNULL_BEGIN

@property (nullable, nonatomic, strong) UIButton *flipOrientationButton;

/// Call -addModeSelectButtonWithTitle:buttonPressed: to add the button. You would
/// have to position the button yourself, and ensure that it is added on above the
/// scan view. You will also have to determine the on-tap implementation as well.
@property (nullable, nonatomic, strong) ALModeSelectionButton *modeSelectButton;

@property () BOOL isOrientationFlipped;

@property (nonatomic, readonly) BOOL isDarkMode;
Expand All @@ -30,13 +38,21 @@ NS_ASSUME_NONNULL_BEGIN

- (NSString * _Nullable)configJSONStrWithFilename:(NSString *_Nonnull)filename;

- (void)installScanView:(ALScanView *_Nonnull)scanView;
- (void)installScanView:(ALScanView * _Nonnull)scanView;

- (void)updateScanWarnings:(ALWarningState)warningState;
- (BOOL)startScanning:(NSError * _Nullable * _Nullable)error;

- (void)updateBrightness:(CGFloat)brightness forModule:(id)anylineModule ignoreTooDark:(BOOL)ignoreTooDark;
- (void)stopScanning;

- (void)updateBrightness:(CGFloat)brightness forModule:(id)anylineModule;
/// Adds a toggle button on the main view (above where the scan view is). Do this after
/// installing the scan view.
/// - Parameters:
/// - title: the title initially shown on the button
/// - buttonPressed: block indicating what will be done after the button is pressed
- (void)addModeSelectButtonWithTitle:(NSString * _Nonnull)title
buttonPressed:(void (^ _Nullable)(void))buttonPressed;

- (void)updateScanWarnings:(ALWarningState)warningState;


// MARK: - AnylineDidFindResult methods
Expand Down
Loading

0 comments on commit 7bb1fa0

Please sign in to comment.