//
//  MCActivityIndicator.h
//  InforMobile
//
//  Created by Nookaraju Maddila on 7/14/17.
//  Copyright © 2017 Infor Global Solutions. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AppDefinitions.h"
typedef enum{
    ActivityIndicatorLocationLeft = 1,
    ActivityIndicatorLocationRight = 2,
    ActivityIndicatorLocationCenter = 3,
    ActivityIndicatorLocationTop = 4,
    ActivityIndicatorLocationBottom = 5,
    ActivityIndicatorLocationFullScreenCenter = 6,
    ActivityIndicatorLocationFullScreenTop = 7,
    ActivityIndicatorLocationFullScreenBottom = 8,
} ActivityIndicatorLocation;

typedef enum{
    ActivityIndicatorStatusCompleted = 1,
    ActivityIndicatorStatusTimedOut = 2,
} ActivityIndicatorStatus;

@interface MCActivityIndicator : UIView
@property(nonatomic ,assign)BOOL isInteractionRequired;
- (id) initWithFrame:(CGRect) frame target:(UIView *) target;

#pragma get instance
+ (MCActivityIndicator *) createActivityIndicator:(UIView *) target;

#pragma utils
- (void) setTarget:(UIView *) target location:(ActivityIndicatorLocation)  activityIndicatorLocation tracking:(id) trackingParams startTimer:(int) timeout block:(MCActivitityCompleteBlock) block;
-(void) setLocation;

#pragma animating
- (BOOL) isAnimating;
- (void) startAnimating;
- (void) stopAnimating;

@end
