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

  • UIViewController where CLURecordIndicatorView will be presented

    Declaration

    Objective-C

    @property (readonly, nonatomic) UIViewController *viewController;

    Swift

    var viewController: UIViewController! { get }
  • Create new CLURecordIndicatorView instance with specific UIViewController

    @params viewController UIViewController where CLURecordIndicatorView will be presented

    Declaration

    Objective-C

    - (instancetype)initWithViewController:(UIViewController *)viewController;

    Swift

    init!(viewController: UIViewController!)

    Parameters

    viewController

    UIViewController where CLURecordIndicatorView will be presented

    Return Value

    CLURecordIndicatorView instance

  • 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

    target

    Target object which will handle action selector

    action

    Action method selector which will handle the event

  • Switch CLURecordIndicatorView to waiting mode where user will see Waiting… 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

    isWaitingMode

    BOOL 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

    maxTime

    Maximum time specified in NSDateComponents minutes and seconds

  • Stop immediately countdown timer and invalidate it

    Declaration

    Objective-C

    - (void)stopCountdownTimer;

    Swift

    func stopCountdownTimer()