MBCameraReticle
A camera reticle that locates at the center of screen and uses circle arc rotation to indicate that the system is active but has not detected an object yet.
-
Whether the reticle is currently animating.
Declaration
Objective-C
@property (nonatomic) BOOL isAnimating;
Swift
var isAnimating: Bool { get set }
-
Whether the reticle is currently detecting.
Declaration
Objective-C
@property (nonatomic) BOOL isDetecting;
Swift
var isDetecting: Bool { get set }
-
Whether the reticle is currently confirming.
Declaration
Objective-C
@property (nonatomic) BOOL isConfirming;
Swift
var isConfirming: Bool { get set }
-
Starts animating the reticle. Does nothing if the reticle is already animating.
Declaration
Objective-C
- (void)startAnimating;
Swift
func startAnimating()
-
Stops animating the reticle. Does nothing if the reticle is not animating.
Declaration
Objective-C
- (void)stopAnimating;
Swift
func stopAnimating()
-
Starts animating the detection spinner. Does nothing if the detection is already animating.
Declaration
Objective-C
- (void)startDetecting;
Swift
func startDetecting()
-
Stops animating the detection spinner. Does nothing if the detection is not animating.
Declaration
Objective-C
- (void)stopDetecting;
Swift
func stopDetecting()
-
Stops all animations and remove all layers to reset state to beginning
Declaration
Objective-C
- (void)resetAll;
Swift
func resetAll()
-
Starts animating the reticle. Does nothing if the reticle is already animating.
Declaration
Objective-C
- (void)animateArcRotation;
Swift
func animateArcRotation()
-
Custom reticle image. Shown instead of default circle. Content mode: center. Size: 88 x 88. Default: nil
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIImage *reticleImage;
Swift
var reticleImage: UIImage? { get set }
-
Custom tint color used for arc and progress animation. Default white.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull reticleColor;
Swift
var reticleColor: UIColor { get set }
-
Custom tint color used for tinting reticleImage. Ignored if white.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull reticleDefaultColor;
Swift
var reticleDefaultColor: UIColor { get set }