示例#1
0
            static IntPtr n_Gradient_Lcom_baidu_mapapi_map_Gradient_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
            {
                global::Com.Baidu.Mapapi.Map.HeatMap.Builder __this = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.HeatMap.Builder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Com.Baidu.Mapapi.Map.Gradient        p0     = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.Gradient> (native_p0, JniHandleOwnership.DoNotTransfer);
                IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Gradient(p0));

                return(__ret);
            }
示例#2
0
            public virtual unsafe global::Com.Baidu.Mapapi.Map.HeatMap.Builder Gradient(global::Com.Baidu.Mapapi.Map.Gradient p0)
            {
                if (id_gradient_Lcom_baidu_mapapi_map_Gradient_ == IntPtr.Zero)
                {
                    id_gradient_Lcom_baidu_mapapi_map_Gradient_ = JNIEnv.GetMethodID(class_ref, "gradient", "(Lcom/baidu/mapapi/map/Gradient;)Lcom/baidu/mapapi/map/HeatMap$Builder;");
                }
                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(p0);

                    global::Com.Baidu.Mapapi.Map.HeatMap.Builder __ret;
                    if (((object)this).GetType() == ThresholdType)
                    {
                        __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.HeatMap.Builder> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_gradient_Lcom_baidu_mapapi_map_Gradient_, __args), JniHandleOwnership.TransferLocalRef);
                    }
                    else
                    {
                        __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.HeatMap.Builder> (JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "gradient", "(Lcom/baidu/mapapi/map/Gradient;)Lcom/baidu/mapapi/map/HeatMap$Builder;"), __args), JniHandleOwnership.TransferLocalRef);
                    }
                    return(__ret);
                } finally {
                }
            }
            public virtual unsafe global::Com.Baidu.Mapapi.Map.HeatMap.Builder Gradient(global::Com.Baidu.Mapapi.Map.Gradient p0)
            {
                const string __id = "gradient.(Lcom/baidu/mapapi/map/Gradient;)Lcom/baidu/mapapi/map/HeatMap$Builder;";

                try {
                    JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                    __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                    var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.HeatMap.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }