public static unsafe global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.ELayoutMode ValueOf(string p0)
            {
                if (id_valueOf_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_valueOf_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "valueOf", "(Ljava/lang/String;)Lcom/baidu/mapapi/map/MapViewLayoutParams$ELayoutMode;");
                }
                IntPtr native_p0 = JNIEnv.NewString(p0);

                try {
                    JValue *__args = stackalloc JValue [1];
                    __args [0] = new JValue(native_p0);
                    global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.ELayoutMode __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.ELayoutMode> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
                    return(__ret);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p0);
                }
            }
 public unsafe global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.Builder LayoutMode(global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.ELayoutMode p0)
 {
     if (id_layoutMode_Lcom_baidu_mapapi_map_MapViewLayoutParams_ELayoutMode_ == IntPtr.Zero)
     {
         id_layoutMode_Lcom_baidu_mapapi_map_MapViewLayoutParams_ELayoutMode_ = JNIEnv.GetMethodID(class_ref, "layoutMode", "(Lcom/baidu/mapapi/map/MapViewLayoutParams$ELayoutMode;)Lcom/baidu/mapapi/map/MapViewLayoutParams$Builder;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.Builder __ret = global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.Builder> (JNIEnv.CallObjectMethod(Handle, id_layoutMode_Lcom_baidu_mapapi_map_MapViewLayoutParams_ELayoutMode_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
Exemple #3
0
            public unsafe global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.Builder LayoutMode(global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.ELayoutMode p0)
            {
                const string __id = "layoutMode.(Lcom/baidu/mapapi/map/MapViewLayoutParams$ELayoutMode;)Lcom/baidu/mapapi/map/MapViewLayoutParams$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.InvokeAbstractObjectMethod(__id, this, __args);
                    return(global::Java.Lang.Object.GetObject <global::Com.Baidu.Mapapi.Map.MapViewLayoutParams.Builder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
                } finally {
                }
            }