CLURecordIndicatorView
@interface CLURecordIndicatorView : UIView
CLURecordIndicatorView is a view object to indicate recording process to user, will appear at the top of the screen, right after statusBar
-
UIViewControllerwhereCLURecordIndicatorViewwill be presentedDeclaration
Objective-C
@property (readonly, nonatomic) UIViewController *viewController;Swift
var viewController: UIViewController! { get } -
Create new
CLURecordIndicatorViewinstance with specificUIViewController@params viewController
UIViewControllerwhereCLURecordIndicatorViewwill be presentedDeclaration
Objective-C
- (instancetype)initWithViewController:(UIViewController *)viewController;Swift
init!(viewController: UIViewController!)Parameters
viewControllerUIViewControllerwhereCLURecordIndicatorViewwill be presentedReturn Value
CLURecordIndicatorViewinstance -
Specify target and action which would be triggered in case of countdown timer timeout or user press on the view. Since we can’t record report forever we have to limit recording time
Declaration
Objective-C
- (void)setTarget:(id)target andAction:(SEL)action;Swift
func setTarget(_ target: Any!, andAction action: Selector!)Parameters
targetTarget object which will handle action selector
actionAction method selector which will handle the event
-
Switch
CLURecordIndicatorViewto waiting mode where user will seeWaiting…
text on the indicator. Used after successful record during report file writing process.Declaration
Objective-C
- (void)setWaitingMode:(BOOL)isWaitingMode;Swift
func setWaitingMode(_ isWaitingMode: Bool)Parameters
isWaitingModeBOOL flag to indicate whether waiting mode currently enable or not
-
Start countdown timer with specific amount of time. Which will perform target and action at the timeout
Declaration
Objective-C
- (void)startCountdownTimerWithMaxTime:(NSDateComponents *)maxTime;Swift
func startCountdownTimer(withMaxTime maxTime: DateComponents!)Parameters
maxTimeMaximum time specified in
NSDateComponentsminutes and seconds -
Stop immediately countdown timer and invalidate it
Declaration
Objective-C
- (void)stopCountdownTimer;Swift
func stopCountdownTimer()
CLURecordIndicatorView Class Reference