All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.mapkit.MKMapView Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.mapkit;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.corelocation.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.dispatch.*;
/**/

/**/
/**
 * @since Available in iOS 3.0 and later.
 */
/**/
/**/@Library("MapKit") @NativeClass/**/
/**/public/**/ class /**/MKMapView/**/ 
    extends /**/UIView/**/ 
    /**/implements NSCoding/**/ {

    /**/public static class MKMapViewPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(MKMapView.class); }/**/
    /**//**/
    /**/
    public MKMapView() {}
    protected MKMapView(SkipInit skipInit) { super(skipInit); }
    /**/
    public MKMapView(CGRect frame) {
    	super(frame);
    }
    /**/
    @Property(selector = "delegate")
    public native MKMapViewDelegate getDelegate();
    @Property(selector = "setDelegate:", strongRef = true)
    public native void setDelegate(MKMapViewDelegate v);
    @Property(selector = "mapType")
    public native MKMapType getMapType();
    @Property(selector = "setMapType:")
    public native void setMapType(MKMapType v);
    @Property(selector = "region")
    public native @ByVal MKCoordinateRegion getRegion();
    @Property(selector = "setRegion:")
    public native void setRegion(@ByVal MKCoordinateRegion v);
    @Property(selector = "centerCoordinate")
    public native @ByVal CLLocationCoordinate2D getCenterCoordinate();
    @Property(selector = "setCenterCoordinate:")
    public native void setCenterCoordinate(@ByVal CLLocationCoordinate2D v);
    @Property(selector = "visibleMapRect")
    public native @ByVal MKMapRect getVisibleMapRect();
    @Property(selector = "setVisibleMapRect:")
    public native void setVisibleMapRect(@ByVal MKMapRect v);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "camera")
    public native MKMapCamera getCamera();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "setCamera:")
    public native void setCamera(MKMapCamera v);
    @Property(selector = "isZoomEnabled")
    public native boolean isZoomEnabled();
    @Property(selector = "setZoomEnabled:")
    public native void setZoomEnabled(boolean v);
    @Property(selector = "isScrollEnabled")
    public native boolean isScrollEnabled();
    @Property(selector = "setScrollEnabled:")
    public native void setScrollEnabled(boolean v);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "isRotateEnabled")
    public native boolean isRotateEnabled();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "setRotateEnabled:")
    public native void setRotateEnabled(boolean v);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "isPitchEnabled")
    public native boolean isPitchEnabled();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "setPitchEnabled:")
    public native void setPitchEnabled(boolean v);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "showsCompass")
    public native boolean showsCompass();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "setShowsCompass:")
    public native void setShowsCompass(boolean v);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "showsScale")
    public native boolean showsScale();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "setShowsScale:")
    public native void setShowsScale(boolean v);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "showsPointsOfInterest")
    public native boolean showsPointsOfInterest();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "setShowsPointsOfInterest:")
    public native void setShowsPointsOfInterest(boolean v);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "showsBuildings")
    public native boolean showsBuildings();
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Property(selector = "setShowsBuildings:")
    public native void setShowsBuildings(boolean v);
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "showsTraffic")
    public native boolean showsTraffic();
    /**
     * @since Available in iOS 9.0 and later.
     */
    @Property(selector = "setShowsTraffic:")
    public native void setShowsTraffic(boolean v);
    @Property(selector = "showsUserLocation")
    public native boolean showsUserLocation();
    @Property(selector = "setShowsUserLocation:")
    public native void setShowsUserLocation(boolean v);
    @Property(selector = "userLocation")
    public native MKUserLocation getUserLocation();
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Property(selector = "userTrackingMode")
    public native MKUserTrackingMode getUserTrackingMode();
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Property(selector = "setUserTrackingMode:")
    public native void setUserTrackingMode(MKUserTrackingMode v);
    @Property(selector = "isUserLocationVisible")
    public native boolean isUserLocationVisible();
    @Property(selector = "annotations")
    public native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getAnnotations();
    @Property(selector = "selectedAnnotations")
    public native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getSelectedAnnotations();
    @Property(selector = "setSelectedAnnotations:")
    public native void setSelectedAnnotations(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List v);
    @Property(selector = "annotationVisibleRect")
    public native @ByVal CGRect getAnnotationVisibleRect();
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Property(selector = "overlays")
    public native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getOverlays();
    /**/
    /**//**/
    /**/
    @Method(selector = "setRegion:animated:")
    public native void setRegion(@ByVal MKCoordinateRegion region, boolean animated);
    @Method(selector = "setCenterCoordinate:animated:")
    public native void setCenterCoordinate(@ByVal CLLocationCoordinate2D coordinate, boolean animated);
    @Method(selector = "regionThatFits:")
    public native @ByVal MKCoordinateRegion getRegionThatFits(@ByVal MKCoordinateRegion region);
    @Method(selector = "setVisibleMapRect:animated:")
    public native void setVisibleMapRect(@ByVal MKMapRect mapRect, boolean animate);
    @Method(selector = "mapRectThatFits:")
    public native @ByVal MKMapRect getMapRectThatFits(@ByVal MKMapRect mapRect);
    @Method(selector = "_handleSelectionAtPoint:")
    public native void handleSelectionAtPoint(@ByVal CGPoint locationInView);
    @Method(selector = "setVisibleMapRect:edgePadding:animated:")
    public native void setVisibleMapRect(@ByVal MKMapRect mapRect, @ByVal UIEdgeInsets insets, boolean animate);
    @Method(selector = "mapRectThatFits:edgePadding:")
    public native @ByVal MKMapRect getMapRectThatFits(@ByVal MKMapRect mapRect, @ByVal UIEdgeInsets insets);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "setCamera:animated:")
    public native void setCamera(MKMapCamera camera, boolean animated);
    @Method(selector = "convertCoordinate:toPointToView:")
    public native @ByVal CGPoint convertCoordinateToPointToView(@ByVal CLLocationCoordinate2D coordinate, UIView view);
    @Method(selector = "convertPoint:toCoordinateFromView:")
    public native @ByVal CLLocationCoordinate2D convertPointToCoordinateFromView(@ByVal CGPoint point, UIView view);
    @Method(selector = "convertRegion:toRectToView:")
    public native @ByVal CGRect convertRegionToRectToView(@ByVal MKCoordinateRegion region, UIView view);
    @Method(selector = "convertRect:toRegionFromView:")
    public native @ByVal MKCoordinateRegion convertRectToRegionFromView(@ByVal CGRect rect, UIView view);
    /**
     * @since Available in iOS 5.0 and later.
     */
    @Method(selector = "setUserTrackingMode:animated:")
    public native void setUserTrackingMode(MKUserTrackingMode mode, boolean animated);
    @Method(selector = "addAnnotation:")
    public native void addAnnotation(MKAnnotation annotation);
    @Method(selector = "addAnnotations:")
    public native void addAnnotations(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List annotations);
    @Method(selector = "removeAnnotation:")
    public native void removeAnnotation(MKAnnotation annotation);
    @Method(selector = "removeAnnotations:")
    public native void removeAnnotations(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List annotations);
    /**
     * @since Available in iOS 4.2 and later.
     */
    @Method(selector = "annotationsInMapRect:")
    public native @com.bugvm.rt.bro.annotation.Marshaler(NSSet.AsSetMarshaler.class) Set getAnnotations(@ByVal MKMapRect mapRect);
    @Method(selector = "viewForAnnotation:")
    public native MKAnnotationView getView(MKAnnotation annotation);
    @Method(selector = "dequeueReusableAnnotationViewWithIdentifier:")
    public native MKAnnotationView dequeueReusableAnnotationView(String identifier);
    @Method(selector = "selectAnnotation:animated:")
    public native void selectAnnotation(MKAnnotation annotation, boolean animated);
    @Method(selector = "deselectAnnotation:animated:")
    public native void deselectAnnotation(MKAnnotation annotation, boolean animated);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "showAnnotations:animated:")
    public native void showAnnotations(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List annotations, boolean animated);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "addOverlay:level:")
    public native void addOverlay(MKOverlay overlay, MKOverlayLevel level);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "addOverlays:level:")
    public native void addOverlays(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List overlays, MKOverlayLevel level);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "removeOverlay:")
    public native void removeOverlay(MKOverlay overlay);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "removeOverlays:")
    public native void removeOverlays(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List overlays);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "insertOverlay:atIndex:level:")
    public native void insertOverlay(MKOverlay overlay, @MachineSizedUInt long index, MKOverlayLevel level);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "insertOverlay:aboveOverlay:")
    public native void insertOverlayAbove(MKOverlay overlay, MKOverlay sibling);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "insertOverlay:belowOverlay:")
    public native void insertOverlayBelow(MKOverlay overlay, MKOverlay sibling);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "exchangeOverlay:withOverlay:")
    public native void exchangeOverlay(MKOverlay overlay1, MKOverlay overlay2);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "overlaysInLevel:")
    public native @com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List getOverlays(MKOverlayLevel level);
    /**
     * @since Available in iOS 7.0 and later.
     */
    @Method(selector = "rendererForOverlay:")
    public native MKOverlayRenderer getOverlayRenderer(MKOverlay overlay);
    /**
     * @since Available in iOS 4.0 and later.
     * @deprecated Deprecated in iOS 7.0.
     */
    @Deprecated
    @Method(selector = "viewForOverlay:")
    public native MKOverlayView getOverlayView(MKOverlay overlay);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "addOverlay:")
    public native void addOverlay(MKOverlay overlay);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "addOverlays:")
    public native void addOverlays(@com.bugvm.rt.bro.annotation.Marshaler(NSArray.AsListMarshaler.class) List overlays);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "insertOverlay:atIndex:")
    public native void insertOverlay(MKOverlay overlay, @MachineSizedUInt long index);
    /**
     * @since Available in iOS 4.0 and later.
     */
    @Method(selector = "exchangeOverlayAtIndex:withOverlayAtIndex:")
    public native void exchangeOverlay(@MachineSizedUInt long index1, @MachineSizedUInt long index2);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy