Package apple.mapkit

Class MKMapView

    • Constructor Detail

      • MKMapView

        protected MKMapView​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        public static java.lang.Object appearance()
      • appearanceForTraitCollection

        public static java.lang.Object appearanceForTraitCollection​(UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceForTraitCollectionWhenContainedIn​(UITraitCollection trait,
                                                                                   UIAppearanceContainer ContainerClass,
                                                                                   java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                                     NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @Deprecated
        public static java.lang.Object appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                                 java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        public static java.lang.Object appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • beginAnimationsContext

        public static void beginAnimationsContext​(java.lang.String animationID,
                                                  org.moe.natj.general.ptr.VoidPtr context)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(java.lang.String identifier)
      • commitAnimations

        public static void commitAnimations()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • layerClass

        public static org.moe.natj.objc.Class layerClass()
      • new_objc

        public static java.lang.Object new_objc()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAnimationBeginsFromCurrentState

        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      • setAnimationCurve

        public static void setAnimationCurve​(long curve)
      • setAnimationDelay

        public static void setAnimationDelay​(double delay)
      • setAnimationDelegate

        public static void setAnimationDelegate​(java.lang.Object delegate)
      • setAnimationDidStopSelector

        public static void setAnimationDidStopSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationDuration_static

        public static void setAnimationDuration_static​(double duration)
      • setAnimationRepeatAutoreverses

        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      • setAnimationRepeatCount_static

        public static void setAnimationRepeatCount_static​(float repeatCount)
      • setAnimationStartDate

        public static void setAnimationStartDate​(NSDate startDate)
      • setAnimationTransitionForViewCache

        public static void setAnimationTransitionForViewCache​(long transition,
                                                              UIView view,
                                                              boolean cache)
      • setAnimationWillStartSelector

        public static void setAnimationWillStartSelector​(org.moe.natj.objc.SEL selector)
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • addAnnotation

        public void addAnnotation​(MKAnnotation annotation)
        Annotations are models used to annotate coordinates on the map. Implement mapView:viewForAnnotation: on MKMapViewDelegate to return the annotation view for each annotation.
      • addAnnotations

        public void addAnnotations​(NSArray<?> annotations)
      • addOverlay

        public void addOverlay​(MKOverlay overlay)
        These methods operate implicitly on overlays in MKOverlayLevelAboveLabels and may be deprecated in a future release in favor of the methods that specify the level.
      • addOverlayLevel

        public void addOverlayLevel​(MKOverlay overlay,
                                    long level)
        Overlays are models used to represent areas to be drawn on top of the map. This is in contrast to annotations, which represent points on the map. Implement -mapView:rendererForOverlay: on MKMapViewDelegate to return the renderer for each overlay.
      • addOverlays

        public void addOverlays​(NSArray<?> overlays)
      • addOverlaysLevel

        public void addOverlaysLevel​(NSArray<?> overlays,
                                     long level)
      • annotationVisibleRect

        public CGRect annotationVisibleRect()
        annotationVisibleRect is the visible rect where the annotations views are currently displayed. The delegate can use annotationVisibleRect when animating the adding of the annotations views in mapView:didAddAnnotationViews:
      • annotations

        public NSArray<?> annotations()
      • annotationsInMapRect

        public NSSet<?> annotationsInMapRect​(MKMapRect mapRect)
      • _appearance

        public java.lang.Object _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @Deprecated
        public java.lang.Object _appearanceWhenContainedIn​(UIAppearanceContainer ContainerClass,
                                                           java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down.
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • centerCoordinate

        public CLLocationCoordinate2D centerCoordinate()
        centerCoordinate allows the coordinate of the region to be changed without changing the zoom level.
      • dequeueReusableAnnotationViewWithIdentifier

        public MKAnnotationView dequeueReusableAnnotationViewWithIdentifier​(java.lang.String identifier)
        Used by the delegate to acquire a reusable annotation view, or create a new view for registered class, in lieu of allocating a new one.
      • deselectAnnotationAnimated

        public void deselectAnnotationAnimated​(MKAnnotation annotation,
                                               boolean animated)
      • exchangeOverlayWithOverlay

        public void exchangeOverlayWithOverlay​(MKOverlay overlay1,
                                               MKOverlay overlay2)
      • exchangeOverlayAtIndexWithOverlayAtIndex

        public void exchangeOverlayAtIndexWithOverlayAtIndex​(long index1,
                                                             long index2)
      • insertOverlayAboveOverlay

        public void insertOverlayAboveOverlay​(MKOverlay overlay,
                                              MKOverlay sibling)
      • insertOverlayAtIndex

        public void insertOverlayAtIndex​(MKOverlay overlay,
                                         long index)
      • insertOverlayAtIndexLevel

        public void insertOverlayAtIndexLevel​(MKOverlay overlay,
                                              long index,
                                              long level)
      • insertOverlayBelowOverlay

        public void insertOverlayBelowOverlay​(MKOverlay overlay,
                                              MKOverlay sibling)
      • isPitchEnabled

        public boolean isPitchEnabled()
      • setPitchEnabled

        public void setPitchEnabled​(boolean value)
      • isRotateEnabled

        public boolean isRotateEnabled()
        Rotate and pitch are enabled by default on Mac OS X and on iOS 7.0 and later.
      • setRotateEnabled

        public void setRotateEnabled​(boolean value)
        Rotate and pitch are enabled by default on Mac OS X and on iOS 7.0 and later.
      • isScrollEnabled

        public boolean isScrollEnabled()
      • setScrollEnabled

        public void setScrollEnabled​(boolean value)
      • isUserLocationVisible

        public boolean isUserLocationVisible()
        Returns YES if the user's location is displayed within the currently visible map region.
      • isZoomEnabled

        public boolean isZoomEnabled()
        Control the types of user interaction available Zoom and scroll are enabled by default.
      • setZoomEnabled

        public void setZoomEnabled​(boolean value)
        Control the types of user interaction available Zoom and scroll are enabled by default.
      • mapRectThatFits

        public MKMapRect mapRectThatFits​(MKMapRect mapRect)
        Returns an MKMapRect modified to fit the aspect ratio of the map.
      • mapType

        public long mapType()
        Changing the map type or region can cause the map to start loading map content. The loading delegate methods will be called as map content is loaded.
      • overlays

        public NSArray<?> overlays()
      • overlaysInLevel

        public NSArray<?> overlaysInLevel​(long level)
      • region

        public MKCoordinateRegion region()
        Region is the coordinate and span of the map. Region may be modified to fit the aspect ratio of the view using regionThatFits:.
      • regionThatFits

        public MKCoordinateRegion regionThatFits​(MKCoordinateRegion region)
        Returns a region of the aspect ratio of the map view that contains the given region, with the same center point.
      • removeAnnotation

        public void removeAnnotation​(MKAnnotation annotation)
      • removeAnnotations

        public void removeAnnotations​(NSArray<?> annotations)
      • removeOverlay

        public void removeOverlay​(MKOverlay overlay)
      • removeOverlays

        public void removeOverlays​(NSArray<?> overlays)
      • rendererForOverlay

        public MKOverlayRenderer rendererForOverlay​(MKOverlay overlay)
        Current renderer for overlay; returns nil if the overlay is not shown.
      • selectAnnotationAnimated

        public void selectAnnotationAnimated​(MKAnnotation annotation,
                                             boolean animated)
        Select or deselect a given annotation. Asks the delegate for the corresponding annotation view if necessary.
      • selectedAnnotations

        public NSArray<?> selectedAnnotations()
      • setCamera

        public void setCamera​(MKMapCamera value)
      • setCameraAnimated

        public void setCameraAnimated​(MKMapCamera camera,
                                      boolean animated)
      • setCenterCoordinate

        public void setCenterCoordinate​(CLLocationCoordinate2D value)
        centerCoordinate allows the coordinate of the region to be changed without changing the zoom level.
      • setCenterCoordinateAnimated

        public void setCenterCoordinateAnimated​(CLLocationCoordinate2D coordinate,
                                                boolean animated)
      • setMapType

        public void setMapType​(long value)
        Changing the map type or region can cause the map to start loading map content. The loading delegate methods will be called as map content is loaded.
      • setRegion

        public void setRegion​(MKCoordinateRegion value)
        Region is the coordinate and span of the map. Region may be modified to fit the aspect ratio of the view using regionThatFits:.
      • setRegionAnimated

        public void setRegionAnimated​(MKCoordinateRegion region,
                                      boolean animated)
      • setSelectedAnnotations

        public void setSelectedAnnotations​(NSArray<?> value)
      • setShowsBuildings

        public void setShowsBuildings​(boolean value)
        Affects MKMapTypeStandard
      • setShowsCompass

        public void setShowsCompass​(boolean value)
      • setShowsPointsOfInterest

        public void setShowsPointsOfInterest​(boolean value)
        Affects MKMapTypeStandard and MKMapTypeHybrid
      • setShowsScale

        public void setShowsScale​(boolean value)
      • setShowsTraffic

        public void setShowsTraffic​(boolean value)
        Affects MKMapTypeStandard and MKMapTypeHybrid
      • setShowsUserLocation

        public void setShowsUserLocation​(boolean value)
        Set to YES to add the user location annotation to the map and start updating its location
      • setUserTrackingMode

        public void setUserTrackingMode​(long value)
      • setUserTrackingModeAnimated

        public void setUserTrackingModeAnimated​(long mode,
                                                boolean animated)
      • setVisibleMapRect

        public void setVisibleMapRect​(MKMapRect value)
        Access the visible region of the map in projected coordinates.
      • setVisibleMapRectAnimated

        public void setVisibleMapRectAnimated​(MKMapRect mapRect,
                                              boolean animate)
      • setVisibleMapRectEdgePaddingAnimated

        public void setVisibleMapRectEdgePaddingAnimated​(MKMapRect mapRect,
                                                         UIEdgeInsets insets,
                                                         boolean animate)
      • showAnnotationsAnimated

        public void showAnnotationsAnimated​(NSArray<?> annotations,
                                            boolean animated)
        Position the map such that the provided array of annotations are all visible to the fullest extent possible.
      • showsBuildings

        public boolean showsBuildings()
        Affects MKMapTypeStandard
      • showsCompass

        public boolean showsCompass()
      • showsPointsOfInterest

        public boolean showsPointsOfInterest()
        Affects MKMapTypeStandard and MKMapTypeHybrid
      • showsScale

        public boolean showsScale()
      • showsTraffic

        public boolean showsTraffic()
        Affects MKMapTypeStandard and MKMapTypeHybrid
      • showsUserLocation

        public boolean showsUserLocation()
        Set to YES to add the user location annotation to the map and start updating its location
      • userLocation

        public MKUserLocation userLocation()
        The annotation representing the user's location
      • userTrackingMode

        public long userTrackingMode()
      • viewForAnnotation

        public MKAnnotationView viewForAnnotation​(MKAnnotation annotation)
        Currently displayed view for an annotation; returns nil if the view for the annotation isn't being displayed.
      • viewForOverlay

        public MKOverlayView viewForOverlay​(MKOverlay overlay)
        Currently displayed view for overlay; returns nil if the view has not been created yet. Prefer using MKOverlayRenderer and -rendererForOverlay.
      • visibleMapRect

        public MKMapRect visibleMapRect()
        Access the visible region of the map in projected coordinates.
      • dequeueReusableAnnotationViewWithIdentifierForAnnotation

        public MKAnnotationView dequeueReusableAnnotationViewWithIdentifierForAnnotation​(java.lang.String identifier,
                                                                                         MKAnnotation annotation)
        Used by the delegate to acquire a reusable annotation view, or create a new view for registered class, in lieu of allocating a new one. Throws an exception if view could not be aquired.
      • registerClassForAnnotationViewWithReuseIdentifier

        public void registerClassForAnnotationViewWithReuseIdentifier​(org.moe.natj.objc.Class viewClass,
                                                                      java.lang.String identifier)
        Register a MKAnnotationView subclass to be instantiated when dequeueReusableAnnotationViewWithIdentifier: does not have a view to reuse.
      • setCameraBoundaryAnimated

        public void setCameraBoundaryAnimated​(MKMapCameraBoundary cameraBoundary,
                                              boolean animated)
      • setCameraZoomRangeAnimated

        public void setCameraZoomRangeAnimated​(MKMapCameraZoomRange cameraZoomRange,
                                               boolean animated)