public class UIActivityIndicatorView extends UIView
NoIntrinsicMetric
Constructor and Description |
---|
UIActivityIndicatorView()
The default constructor of the UIActivityIndicatorView.
|
UIActivityIndicatorView(int UIActivityIndicatorViewStyle)
Constructs and returns a UIActivityIndicatorView object with the
specified style.
|
Modifier and Type | Method and Description |
---|---|
int |
activityIndicatorViewStyle()
Returns a number that represents the style of this activity indicator.
|
UIColor |
color()
Returns the color of the animator
|
void |
drawRect(CGRect rect)
This method is implicitly called when a view is first displayed or when
an event occurs that invalidates a visible part of the view and the view
needs to be redrawn.
|
boolean |
hidesWhenStopped()
Returns a Boolean value that shows whether this activity indicator is
hidden when the animation stops.
|
boolean |
isAnimating()
Returns whether the view is currently animating
|
void |
setActivityIndicatorViewStyle(int style)
Sets the style for this activity indicator.
|
void |
setColor(UIColor color)
Sets the color of the animator
|
void |
setHidden(boolean hidden)
Sets a Boolean value that defines whether this view is hidden or not.
|
void |
setHidesWhenStopped(boolean flag)
Sets a Boolean value that defines whether this activity indicator is
hidden when the animation stops.
|
void |
startAnimating()
Enables progress indicator's animation.
|
void |
stopAnimating()
Stops progress indicator's animation.
|
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UIActivityIndicatorView()
public UIActivityIndicatorView(int UIActivityIndicatorViewStyle)
UIActivityIndicatorViewStyle
- The style of the new object.UIActivityIndicatorViewStyle
public void setActivityIndicatorViewStyle(int style)
style
- The style for this activity indicator.UIActivityIndicatorViewStyle
public void setColor(UIColor color)
color
- The desired animator colorpublic UIColor color()
public boolean isAnimating()
public int activityIndicatorViewStyle()
UIActivityIndicatorViewStyle
public void setHidesWhenStopped(boolean flag)
flag
- A Boolean value that shows whether this activity indicator is
hidden when the animation stops.public boolean hidesWhenStopped()
public void startAnimating()
public void stopAnimating()
public void setHidden(boolean hidden)
UIView
Copyright © 2020. All rights reserved.