Skip to content

CAActivityIndicatorView

9miao edited this page Sep 17, 2014 · 1 revision

CAActivityIndicatorView

Class Description

activity indicator, namely the loading animation.

Base Class

CAView

Attribute

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

Method

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

Attribute Description

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{}.

Method Description

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

Descripiton: operation after canceling activity indicator, define this operation via callback function.
Clone this wiki locally