-
Notifications
You must be signed in to change notification settings - Fork 421
CAActivityIndicatorView
activity indicator, namely the loading animation.
CAView
Access modifier |
Attribute name |
Description |
protected |
Style |
activity indicator type |
protected |
ActivityIndicatorView |
activity indicator’s animation view |
protected |
ActivityBackView |
activity indicator’s background view |
protected |
LoadingMinTime |
minimum loading time |
Access modifier |
Method name |
Description |
public |
startAnimating |
start activity indicator |
public |
stopAnimating |
stop activity indicator |
public |
isAnimating |
activity indicator is running or not |
public |
setTargetOnCancel |
callback when canceling activity indicator |
Style
Type: CAActivityIndicatorViewStyle
Descripiton: set activity indicator type, enumeration value, including four types by default, get/set{}.
typedef enum
{
CAActivityIndicatorViewStyleWhiteLarge,
CAActivityIndicatorViewStyleWhite,
CAActivityIndicatorViewStyleGray,
CAActivityIndicatorViewStyleImage,
}CAActivityIndicatorViewStyle;
ActivityIndicatorView
Type: CAView*
Descripiton: activity indicator’s animation view, action is repetitive revolving animation, get/set{}.
ActivityBackView
Type: CAView*
Descripiton: activity indicator’s background view, get/set{}.
LoadingMinTime
Type: float
Descripiton: minimum loading time, 0 by default, loading animation cannot be stopped if loading time is less than the minimum time, get/set{}.
void startAnimating()
Return value: void
Descripiton: start activity indicator
void stopAnimating()
Return value: void
Descripiton: stop activity indicator
bool isAnimating()
Return value: bool
Descripiton: judge if activity indicator is running or not, namely if there is/are task(s) waiting.
void setTargetOnCancel(CAObject target, SEL_CallFunc callBack)*
Return value: void
Return value:
Type |
Parameter name |
Description |
CAObject* |
target |
current object |
SEL_CallFunc |
SEL_CallFunc |
callback |