Пример #1
0
 static void n_OnLocationChanged_Landroid_location_Location_Lorg_osmdroid_views_overlay_mylocation_IMyLocationProvider_(IntPtr jnienv, IntPtr native__this, IntPtr native_location, IntPtr native_source)
 {
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer __this = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Locations.Location location = global::Java.Lang.Object.GetObject <global::Android.Locations.Location> (native_location, JniHandleOwnership.DoNotTransfer);
     global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider source = (global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider)global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (native_source, JniHandleOwnership.DoNotTransfer);
     __this.OnLocationChanged(location, source);
 }
Пример #2
0
        static bool n_StartLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_(IntPtr jnienv, IntPtr native__this, IntPtr native_myLocationConsumer)
        {
            global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider __this             = global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer myLocationConsumer = (global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer)global::Java.Lang.Object.GetObject <global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer> (native_myLocationConsumer, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.StartLocationProvider(myLocationConsumer);

            return(__ret);
        }
Пример #3
0
        public bool StartLocationProvider(global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer myLocationConsumer)
        {
            if (id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_ == IntPtr.Zero)
            {
                id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_ = JNIEnv.GetMethodID(class_ref, "startLocationProvider", "(Lorg/osmdroid/views/overlay/mylocation/IMyLocationConsumer;)Z");
            }
            bool __ret = JNIEnv.CallBooleanMethod(Handle, id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_, new JValue(myLocationConsumer));

            return(__ret);
        }
Пример #4
0
        public virtual bool StartLocationProvider(global::Org.Osmdroid.Views.Overlay.Mylocation.IMyLocationConsumer myLocationConsumer)
        {
            if (id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_ == IntPtr.Zero)
            {
                id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_ = JNIEnv.GetMethodID(class_ref, "startLocationProvider", "(Lorg/osmdroid/views/overlay/mylocation/IMyLocationConsumer;)Z");
            }

            bool __ret;

            if (GetType() == ThresholdType)
            {
                __ret = JNIEnv.CallBooleanMethod(Handle, id_startLocationProvider_Lorg_osmdroid_views_overlay_mylocation_IMyLocationConsumer_, new JValue(myLocationConsumer));
            }
            else
            {
                __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "startLocationProvider", "(Lorg/osmdroid/views/overlay/mylocation/IMyLocationConsumer;)Z"), new JValue(myLocationConsumer));
            }
            return(__ret);
        }