public DirectedLocationOverlay(global::Android.Content.Context ctx, global::Osmdroid.IResourceProxy pResourceProxy) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(DirectedLocationOverlay)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/Context;Lorg/osmdroid/ResourceProxy;)V", new JValue(ctx), new JValue(pResourceProxy)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/Context;Lorg/osmdroid/ResourceProxy;)V", new JValue(ctx), new JValue(pResourceProxy)); return; } if (id_ctor_Landroid_content_Context_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_ctor_Landroid_content_Context_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Lorg/osmdroid/ResourceProxy;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Lorg_osmdroid_ResourceProxy_, new JValue(ctx), new JValue(pResourceProxy)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_Context_Lorg_osmdroid_ResourceProxy_, new JValue(ctx), new JValue(pResourceProxy)); }
public GroundOverlay(global::Osmdroid.IResourceProxy p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(GroundOverlay)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/osmdroid/ResourceProxy;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Lorg/osmdroid/ResourceProxy;)V", new JValue(p0)); return; } if (id_ctor_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_ctor_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/osmdroid/ResourceProxy;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_osmdroid_ResourceProxy_, new JValue(p0)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Lorg_osmdroid_ResourceProxy_, new JValue(p0)); }
static IntPtr n_LocalizedName_Lorg_osmdroid_ResourceProxy_(IntPtr jnienv, IntPtr native__this, IntPtr native_proxy) { global::Osmdroid.TileProvider.TileSource.ITileSource __this = global::Java.Lang.Object.GetObject <global::Osmdroid.TileProvider.TileSource.ITileSource> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Osmdroid.IResourceProxy proxy = (global::Osmdroid.IResourceProxy)global::Java.Lang.Object.GetObject <global::Osmdroid.IResourceProxy> (native_proxy, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.NewString(__this.LocalizedName(proxy)); return(__ret); }
public string LocalizedName(global::Osmdroid.IResourceProxy proxy) { if (id_localizedName_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_localizedName_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "localizedName", "(Lorg/osmdroid/ResourceProxy;)Ljava/lang/String;"); } string __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(Handle, id_localizedName_Lorg_osmdroid_ResourceProxy_, new JValue(proxy)), JniHandleOwnership.TransferLocalRef); return(__ret); }
public virtual string LocalizedName(global::Osmdroid.IResourceProxy proxy) { if (id_localizedName_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_localizedName_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "localizedName", "(Lorg/osmdroid/ResourceProxy;)Ljava/lang/String;"); } string __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(Handle, id_localizedName_Lorg_osmdroid_ResourceProxy_, new JValue(proxy)), JniHandleOwnership.TransferLocalRef); } else { __ret = JNIEnv.GetString(JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "localizedName", "(Lorg/osmdroid/ResourceProxy;)Ljava/lang/String;"), new JValue(proxy)), JniHandleOwnership.TransferLocalRef); } return(__ret); }
public ItemizedOverlayControlView(global::Android.Content.Context context, global::Android.Util.IAttributeSet attrs, global::Osmdroid.IResourceProxy pResourceProxy) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(ItemizedOverlayControlView)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/content/Context;Landroid/util/AttributeSet;Lorg/osmdroid/ResourceProxy;)V", new JValue(context), new JValue(attrs), new JValue(pResourceProxy)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/content/Context;Landroid/util/AttributeSet;Lorg/osmdroid/ResourceProxy;)V", new JValue(context), new JValue(attrs), new JValue(pResourceProxy)); return; } if (id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;Lorg/osmdroid/ResourceProxy;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_Lorg_osmdroid_ResourceProxy_, new JValue(context), new JValue(attrs), new JValue(pResourceProxy)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_content_Context_Landroid_util_AttributeSet_Lorg_osmdroid_ResourceProxy_, new JValue(context), new JValue(attrs), new JValue(pResourceProxy)); }
public ItemizedOverlayWithFocus(global::System.Collections.IList p0, global::Android.Graphics.Drawables.Drawable p1, global::Android.Graphics.Drawables.Drawable p2, int p3, global::Osmdroid.Views.Overlay.ItemizedIconOverlay.IOnItemGestureListener p4, global::Osmdroid.IResourceProxy p5) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } IntPtr native_p0 = global::Android.Runtime.JavaList.ToLocalJniHandle(p0);; if (GetType() != typeof(ItemizedOverlayWithFocus)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/util/List;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;ILorg/osmdroid/views/overlay/ItemizedIconOverlay$OnItemGestureListener;Lorg/osmdroid/ResourceProxy;)V", new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4), new JValue(p5)), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Ljava/util/List;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;ILorg/osmdroid/views/overlay/ItemizedIconOverlay$OnItemGestureListener;Lorg/osmdroid/ResourceProxy;)V", new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4), new JValue(p5)); JNIEnv.DeleteLocalRef(native_p0); return; } if (id_ctor_Ljava_util_List_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_ILorg_osmdroid_views_overlay_ItemizedIconOverlay_OnItemGestureListener_Lorg_osmdroid_ResourceProxy_ == IntPtr.Zero) { id_ctor_Ljava_util_List_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_ILorg_osmdroid_views_overlay_ItemizedIconOverlay_OnItemGestureListener_Lorg_osmdroid_ResourceProxy_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/util/List;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;ILorg/osmdroid/views/overlay/ItemizedIconOverlay$OnItemGestureListener;Lorg/osmdroid/ResourceProxy;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_util_List_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_ILorg_osmdroid_views_overlay_ItemizedIconOverlay_OnItemGestureListener_Lorg_osmdroid_ResourceProxy_, new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4), new JValue(p5)), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Ljava_util_List_Landroid_graphics_drawable_Drawable_Landroid_graphics_drawable_Drawable_ILorg_osmdroid_views_overlay_ItemizedIconOverlay_OnItemGestureListener_Lorg_osmdroid_ResourceProxy_, new JValue(native_p0), new JValue(p1), new JValue(p2), new JValue(p3), new JValue(p4), new JValue(p5)); JNIEnv.DeleteLocalRef(native_p0); }