com.bugvm.apple.mapkit.MKAnnotationView Maven / Gradle / Ivy
/*
* 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 /**/MKAnnotationView/* */
extends /**/UIView/* */
/**//* */ {
/**/public static class MKAnnotationViewPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(MKAnnotationView.class); }/* */
/**//* */
/**/
public MKAnnotationView() {}
protected MKAnnotationView(SkipInit skipInit) { super(skipInit); }
public MKAnnotationView(MKAnnotation annotation, String reuseIdentifier) { super((SkipInit) null); initObject(init(annotation, reuseIdentifier)); }
/* */
public MKAnnotationView(CGRect frame) {
super(frame);
}
/**/
@Property(selector = "reuseIdentifier")
public native String getReuseIdentifier();
@Property(selector = "annotation")
public native MKAnnotation getAnnotation();
@Property(selector = "setAnnotation:")
public native void setAnnotation(MKAnnotation v);
@Property(selector = "image")
public native UIImage getImage();
@Property(selector = "setImage:")
public native void setImage(UIImage v);
@Property(selector = "centerOffset")
public native @ByVal CGPoint getCenterOffset();
@Property(selector = "setCenterOffset:")
public native void setCenterOffset(@ByVal CGPoint v);
@Property(selector = "calloutOffset")
public native @ByVal CGPoint getCalloutOffset();
@Property(selector = "setCalloutOffset:")
public native void setCalloutOffset(@ByVal CGPoint v);
@Property(selector = "isEnabled")
public native boolean isEnabled();
@Property(selector = "setEnabled:")
public native void setEnabled(boolean v);
@Property(selector = "isHighlighted")
public native boolean isHighlighted();
@Property(selector = "setHighlighted:")
public native void setHighlighted(boolean v);
@Property(selector = "isSelected")
public native boolean isSelected();
@Property(selector = "setSelected:")
public native void setSelected(boolean v);
@Property(selector = "canShowCallout")
public native boolean canShowCallout();
@Property(selector = "setCanShowCallout:")
public native void setCanShowCallout(boolean v);
@Property(selector = "leftCalloutAccessoryView")
public native UIView getLeftCalloutAccessoryView();
@Property(selector = "setLeftCalloutAccessoryView:")
public native void setLeftCalloutAccessoryView(UIView v);
@Property(selector = "rightCalloutAccessoryView")
public native UIView getRightCalloutAccessoryView();
@Property(selector = "setRightCalloutAccessoryView:")
public native void setRightCalloutAccessoryView(UIView v);
/**
* @since Available in iOS 9.0 and later.
*/
@Property(selector = "detailCalloutAccessoryView")
public native UIView getDetailCalloutAccessoryView();
/**
* @since Available in iOS 9.0 and later.
*/
@Property(selector = "setDetailCalloutAccessoryView:")
public native void setDetailCalloutAccessoryView(UIView v);
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "isDraggable")
public native boolean isDraggable();
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "setDraggable:")
public native void setDraggable(boolean v);
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "dragState")
public native MKAnnotationViewDragState getDragState();
/**
* @since Available in iOS 4.0 and later.
*/
@Property(selector = "setDragState:")
public native void setDragState(MKAnnotationViewDragState v);
/* */
/**//* */
/**/
@Method(selector = "initWithAnnotation:reuseIdentifier:")
protected native @Pointer long init(MKAnnotation annotation, String reuseIdentifier);
@Method(selector = "prepareForReuse")
public native void prepareForReuse();
@Method(selector = "setSelected:animated:")
public native void setSelected(boolean selected, boolean animated);
/**
* @since Available in iOS 4.2 and later.
*/
@Method(selector = "setDragState:animated:")
public native void setDragState(MKAnnotationViewDragState newDragState, boolean animated);
/* */
}