예제 #1
0
 public static global::Android.Gms.Maps.CameraUpdate NewCameraPosition(global::Android.Gms.Maps.Model.CameraPosition p0)
 {
     if (id_newCameraPosition_Lcom_google_android_gms_maps_model_CameraPosition_ == IntPtr.Zero)
     {
         id_newCameraPosition_Lcom_google_android_gms_maps_model_CameraPosition_ = JNIEnv.GetStaticMethodID(class_ref, "newCameraPosition", "(Lcom/google/android/gms/maps/model/CameraPosition;)Lcom/google/android/gms/maps/CameraUpdate;");
     }
     global::Android.Gms.Maps.CameraUpdate __ret = global::Java.Lang.Object.GetObject <global::Android.Gms.Maps.CameraUpdate> (JNIEnv.CallStaticObjectMethod(class_ref, id_newCameraPosition_Lcom_google_android_gms_maps_model_CameraPosition_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
 public global::Android.Gms.Maps.GoogleMapOptions InvokeCamera(global::Android.Gms.Maps.Model.CameraPosition p0)
 {
     if (id_camera_Lcom_google_android_gms_maps_model_CameraPosition_ == IntPtr.Zero)
     {
         id_camera_Lcom_google_android_gms_maps_model_CameraPosition_ = JNIEnv.GetMethodID(class_ref, "camera", "(Lcom/google/android/gms/maps/model/CameraPosition;)Lcom/google/android/gms/maps/GoogleMapOptions;");
     }
     global::Android.Gms.Maps.GoogleMapOptions __ret = global::Java.Lang.Object.GetObject <global::Android.Gms.Maps.GoogleMapOptions> (JNIEnv.CallObjectMethod(Handle, id_camera_Lcom_google_android_gms_maps_model_CameraPosition_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
 public static global::Android.Gms.Maps.Model.CameraPosition FromLatLngZoom(global::Android.Gms.Maps.Model.LatLng p0, float p1)
 {
     if (id_fromLatLngZoom_Lcom_google_android_gms_maps_model_LatLng_F == IntPtr.Zero)
     {
         id_fromLatLngZoom_Lcom_google_android_gms_maps_model_LatLng_F = JNIEnv.GetStaticMethodID(class_ref, "fromLatLngZoom", "(Lcom/google/android/gms/maps/model/LatLng;F)Lcom/google/android/gms/maps/model/CameraPosition;");
     }
     global::Android.Gms.Maps.Model.CameraPosition __ret = global::Java.Lang.Object.GetObject <global::Android.Gms.Maps.Model.CameraPosition> (JNIEnv.CallStaticObjectMethod(class_ref, id_fromLatLngZoom_Lcom_google_android_gms_maps_model_LatLng_F, new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
 public static global::Android.Gms.Maps.Model.CameraPosition CreateFromAttributes(global::Android.Content.Context p0, global::Android.Util.IAttributeSet p1)
 {
     if (id_createFromAttributes_Landroid_content_Context_Landroid_util_AttributeSet_ == IntPtr.Zero)
     {
         id_createFromAttributes_Landroid_content_Context_Landroid_util_AttributeSet_ = JNIEnv.GetStaticMethodID(class_ref, "createFromAttributes", "(Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/google/android/gms/maps/model/CameraPosition;");
     }
     global::Android.Gms.Maps.Model.CameraPosition __ret = global::Java.Lang.Object.GetObject <global::Android.Gms.Maps.Model.CameraPosition> (JNIEnv.CallStaticObjectMethod(class_ref, id_createFromAttributes_Landroid_content_Context_Landroid_util_AttributeSet_, new JValue(p0), new JValue(p1)), JniHandleOwnership.TransferLocalRef);
     return(__ret);
 }
예제 #5
0
        private void NativeMapOnCameraIdle(object sender, EventArgs e)
        {
            var cameraPosition = NativeMap.CameraPosition;

            if (previousCameraPostion == null || Math.Abs(previousCameraPostion.Zoom - cameraPosition.Zoom) > 0.001)
            {
                previousCameraPostion = NativeMap.CameraPosition;
                clusterManager.Cluster();
            }
        }
            public Builder(global::Android.Gms.Maps.Model.CameraPosition p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (Handle != IntPtr.Zero)
                {
                    return;
                }

                if (GetType() != typeof(Builder))
                {
                    SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Lcom/google/android/gms/maps/model/CameraPosition;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef);
                    return;
                }

                if (id_ctor_Lcom_google_android_gms_maps_model_CameraPosition_ == IntPtr.Zero)
                {
                    id_ctor_Lcom_google_android_gms_maps_model_CameraPosition_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/google/android/gms/maps/model/CameraPosition;)V");
                }
                SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Lcom_google_android_gms_maps_model_CameraPosition_, new JValue(p0)), JniHandleOwnership.TransferLocalRef);
            }