Package org.robovm.apple.mapkit
Class MKMapView
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- org.robovm.apple.mapkit.MKMapView
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
public class MKMapView extends UIView implements NSCoding
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MKMapView.MKMapViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MKMapView()
MKMapView(CGRect frame)
MKMapView(NSCoder decoder)
protected
MKMapView(NSObject.Handle h, long handle)
protected
MKMapView(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
MKMapView
public MKMapView()
-
MKMapView
protected MKMapView(NSObject.Handle h, long handle)
-
MKMapView
protected MKMapView(NSObject.SkipInit skipInit)
-
MKMapView
public MKMapView(CGRect frame)
-
MKMapView
public MKMapView(NSCoder decoder)
-
-
Method Detail
-
getDelegate
public MKMapViewDelegate getDelegate()
-
setDelegate
public void setDelegate(MKMapViewDelegate v)
-
getMapType
public MKMapType getMapType()
-
setMapType
public void setMapType(MKMapType v)
-
getRegion
public MKCoordinateRegion getRegion()
-
setRegion
public void setRegion(MKCoordinateRegion v)
-
getCenterCoordinate
public CLLocationCoordinate2D getCenterCoordinate()
-
setCenterCoordinate
public void setCenterCoordinate(CLLocationCoordinate2D v)
-
getVisibleMapRect
public MKMapRect getVisibleMapRect()
-
setVisibleMapRect
public void setVisibleMapRect(MKMapRect v)
-
getCamera
public MKMapCamera getCamera()
- Since:
- Available in iOS 7.0 and later.
-
setCamera
public void setCamera(MKMapCamera v)
- Since:
- Available in iOS 7.0 and later.
-
isZoomEnabled
public boolean isZoomEnabled()
-
setZoomEnabled
public void setZoomEnabled(boolean v)
-
isScrollEnabled
public boolean isScrollEnabled()
-
setScrollEnabled
public void setScrollEnabled(boolean v)
-
isRotateEnabled
public boolean isRotateEnabled()
- Since:
- Available in iOS 7.0 and later.
-
setRotateEnabled
public void setRotateEnabled(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
isPitchEnabled
public boolean isPitchEnabled()
- Since:
- Available in iOS 7.0 and later.
-
setPitchEnabled
public void setPitchEnabled(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
showsCompass
public boolean showsCompass()
- Since:
- Available in iOS 9.0 and later.
-
setShowsCompass
public void setShowsCompass(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
showsScale
public boolean showsScale()
- Since:
- Available in iOS 9.0 and later.
-
setShowsScale
public void setShowsScale(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
showsPointsOfInterest
public boolean showsPointsOfInterest()
- Since:
- Available in iOS 7.0 and later.
-
setShowsPointsOfInterest
public void setShowsPointsOfInterest(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
showsBuildings
public boolean showsBuildings()
- Since:
- Available in iOS 7.0 and later.
-
setShowsBuildings
public void setShowsBuildings(boolean v)
- Since:
- Available in iOS 7.0 and later.
-
showsTraffic
public boolean showsTraffic()
- Since:
- Available in iOS 9.0 and later.
-
setShowsTraffic
public void setShowsTraffic(boolean v)
- Since:
- Available in iOS 9.0 and later.
-
showsUserLocation
public boolean showsUserLocation()
-
setShowsUserLocation
public void setShowsUserLocation(boolean v)
-
getUserLocation
public MKUserLocation getUserLocation()
-
getUserTrackingMode
public MKUserTrackingMode getUserTrackingMode()
- Since:
- Available in iOS 5.0 and later.
-
setUserTrackingMode
public void setUserTrackingMode(MKUserTrackingMode v)
- Since:
- Available in iOS 5.0 and later.
-
isUserLocationVisible
public boolean isUserLocationVisible()
-
getAnnotations
public java.util.List<? extends MKAnnotation> getAnnotations()
-
getSelectedAnnotations
public java.util.List<? extends MKAnnotation> getSelectedAnnotations()
-
setSelectedAnnotations
public void setSelectedAnnotations(java.util.List<? extends MKAnnotation> v)
-
getAnnotationVisibleRect
public CGRect getAnnotationVisibleRect()
-
getOverlays
public java.util.List<? extends MKOverlay> getOverlays()
- Since:
- Available in iOS 4.0 and later.
-
getDefaultAnnotationViewReuseIdentifier
public static java.lang.String getDefaultAnnotationViewReuseIdentifier()
- Since:
- Available in iOS 11.0 and later.
-
getDefaultClusterAnnotationViewReuseIdentifier
public static java.lang.String getDefaultClusterAnnotationViewReuseIdentifier()
- Since:
- Available in iOS 11.0 and later.
-
setRegion
public void setRegion(MKCoordinateRegion region, boolean animated)
-
setCenterCoordinate
public void setCenterCoordinate(CLLocationCoordinate2D coordinate, boolean animated)
-
getRegionThatFits
public MKCoordinateRegion getRegionThatFits(MKCoordinateRegion region)
-
setVisibleMapRect
public void setVisibleMapRect(MKMapRect mapRect, boolean animate)
-
setVisibleMapRect
public void setVisibleMapRect(MKMapRect mapRect, UIEdgeInsets insets, boolean animate)
-
getMapRectThatFits
public MKMapRect getMapRectThatFits(MKMapRect mapRect, UIEdgeInsets insets)
-
setCamera
public void setCamera(MKMapCamera camera, boolean animated)
- Since:
- Available in iOS 7.0 and later.
-
convertCoordinateToPointToView
public CGPoint convertCoordinateToPointToView(CLLocationCoordinate2D coordinate, UIView view)
-
convertPointToCoordinateFromView
public CLLocationCoordinate2D convertPointToCoordinateFromView(CGPoint point, UIView view)
-
convertRegionToRectToView
public CGRect convertRegionToRectToView(MKCoordinateRegion region, UIView view)
-
convertRectToRegionFromView
public MKCoordinateRegion convertRectToRegionFromView(CGRect rect, UIView view)
-
setUserTrackingMode
public void setUserTrackingMode(MKUserTrackingMode mode, boolean animated)
- Since:
- Available in iOS 5.0 and later.
-
addAnnotation
public void addAnnotation(MKAnnotation annotation)
-
addAnnotations
public void addAnnotations(java.util.List<? extends MKAnnotation> annotations)
-
removeAnnotation
public void removeAnnotation(MKAnnotation annotation)
-
removeAnnotations
public void removeAnnotations(java.util.List<? extends MKAnnotation> annotations)
-
getAnnotations
public java.util.Set<? extends MKAnnotation> getAnnotations(MKMapRect mapRect)
- Since:
- Available in iOS 4.2 and later.
-
getView
public MKAnnotationView getView(MKAnnotation annotation)
-
dequeueReusableAnnotationView
public MKAnnotationView dequeueReusableAnnotationView(java.lang.String identifier)
-
dequeueReusableAnnotationView
public MKAnnotationView dequeueReusableAnnotationView(java.lang.String identifier, MKAnnotation annotation)
- Since:
- Available in iOS 11.0 and later.
-
registerClass
public void registerClass(java.lang.Class<?> viewClass, java.lang.String identifier)
- Since:
- Available in iOS 11.0 and later.
-
selectAnnotation
public void selectAnnotation(MKAnnotation annotation, boolean animated)
-
deselectAnnotation
public void deselectAnnotation(MKAnnotation annotation, boolean animated)
-
showAnnotations
public void showAnnotations(java.util.List<? extends MKAnnotation> annotations, boolean animated)
- Since:
- Available in iOS 7.0 and later.
-
addOverlay
public void addOverlay(MKOverlay overlay, MKOverlayLevel level)
- Since:
- Available in iOS 7.0 and later.
-
addOverlays
public void addOverlays(java.util.List<? extends MKOverlay> overlays, MKOverlayLevel level)
- Since:
- Available in iOS 7.0 and later.
-
removeOverlay
public void removeOverlay(MKOverlay overlay)
- Since:
- Available in iOS 4.0 and later.
-
removeOverlays
public void removeOverlays(java.util.List<? extends MKOverlay> overlays)
- Since:
- Available in iOS 4.0 and later.
-
insertOverlay
public void insertOverlay(MKOverlay overlay, long index, MKOverlayLevel level)
- Since:
- Available in iOS 7.0 and later.
-
insertOverlayAbove
public void insertOverlayAbove(MKOverlay overlay, MKOverlay sibling)
- Since:
- Available in iOS 4.0 and later.
-
insertOverlayBelow
public void insertOverlayBelow(MKOverlay overlay, MKOverlay sibling)
- Since:
- Available in iOS 4.0 and later.
-
exchangeOverlay
public void exchangeOverlay(MKOverlay overlay1, MKOverlay overlay2)
- Since:
- Available in iOS 7.0 and later.
-
getOverlays
public java.util.List<? extends MKOverlay> getOverlays(MKOverlayLevel level)
- Since:
- Available in iOS 7.0 and later.
-
getOverlayRenderer
public MKOverlayRenderer getOverlayRenderer(MKOverlay overlay)
- Since:
- Available in iOS 7.0 and later.
-
getOverlayView
@Deprecated public MKOverlayView getOverlayView(MKOverlay overlay)
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 4.0 and later.
-
addOverlay
public void addOverlay(MKOverlay overlay)
- Since:
- Available in iOS 4.0 and later.
-
addOverlays
public void addOverlays(java.util.List<? extends MKOverlay> overlays)
- Since:
- Available in iOS 4.0 and later.
-
insertOverlay
public void insertOverlay(MKOverlay overlay, long index)
- Since:
- Available in iOS 4.0 and later.
-
exchangeOverlay
public void exchangeOverlay(long index1, long index2)
- Since:
- Available in iOS 4.0 and later.
-
-