forked from mwkoelb/MWKProgressIndicator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMWKProgressIndicator.h
43 lines (31 loc) · 1009 Bytes
/
MWKProgressIndicator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// MWKProgressIndicator.h
// routemev1
//
// Created by Max Kölb on 28/03/14.
// Copyright (c) 2014 Max Kölb. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, MWKProgressMessageUpdateType)
{
MWKProgressMessageUpdateTypeText,
MWKProgressMessageUpdateTypeVoice,
MWKProgressMessageUpdateTypeAll
};
@interface MWKProgressIndicator : UIView
+ (void)show;
+ (void)dismiss;
+ (void)dismissWithoutAnimation;
/// Update progress from 0.0 -> 1.0
+ (void)updateProgress:(float)progress;
/// Updates message
+ (void)updateMessage:(NSString *)message;
/// Updates a combination of voice or text, determined by updatetype
+ (void)updateMessage:(NSString *)message type:(MWKProgressMessageUpdateType)type;
/// Display an error for 2 seconds
+ (void)showErrorMessage:(NSString *)errorMessage;
/// Display success for 2 seconds
+ (void)showSuccessMessage:(NSString *)successMessage;
/// Convenience message for speaking
+ (void)speakMessage:(NSString *)message;
@end