public class MKPinAnnotationView extends MKAnnotationView
NoIntrinsicMetric| Constructor and Description |
|---|
MKPinAnnotationView(MKAnnotation annotation,
String reuseIdentifier)
Constructs a MKPinAnnotationView object initialized with the specified
annotation and id.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
animatesDrop()
Returns a Boolean that shows whether the annotation view is animated or
not.
|
int |
pinColor()
Returns the color of the pin head.
|
void |
setAnimatesDrop(boolean animatesDrop)
Sets a Boolean that defines whether the annotation view is animated or
not.
|
void |
setPinColor(int MKPinAnnotationColor)
Sets the specified color for the pin head.
|
annotation, calloutOffset, canShowCallout, centerOffset, dragState, image, isDraggable, isEnabled, isHighlighted, isSelected, leftCalloutAccessoryView, prepareForReuse, reuseIdentifier, rightCalloutAccessoryView, setAnnotation, setCalloutOffset, setCanShowCallout, setCenterOffset, setDraggable, setDragState, setDragState, setEnabled, setHighlighted, setImage, setLeftCalloutAccessoryView, setRightCalloutAccessoryView, setSelected, setSelectedaccessibilityIdentifier, 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, drawRect, 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, setHidden, 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, windowbecomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMovedaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeypublic MKPinAnnotationView(MKAnnotation annotation, String reuseIdentifier)
annotation - The MKAnnotation object of this MKPinAnnotationView.reuseIdentifier - The id of this view in order to reuse it in the
future.public boolean animatesDrop()
public void setAnimatesDrop(boolean animatesDrop)
animatesDrop - TRUE the annotation view is animated.public int pinColor()
MKPinAnnotationColorpublic void setPinColor(int MKPinAnnotationColor)
MKPinAnnotationColor - The color of the pin head.MKPinAnnotationColorCopyright © 2020. All rights reserved.