public unsafe UMWeb(string p0, string p1, string p2, global::Com.Umeng.Socialize.Media.UMImage p3) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_p0 = JNIEnv.NewString(p0); IntPtr native_p1 = JNIEnv.NewString(p1); IntPtr native_p2 = JNIEnv.NewString(p2); try { JValue *__args = stackalloc JValue [4]; __args [0] = new JValue(native_p0); __args [1] = new JValue(native_p1); __args [2] = new JValue(native_p2); __args [3] = new JValue(p3); if (GetType() != typeof(UMWeb)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/umeng/socialize/media/UMImage;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/umeng/socialize/media/UMImage;)V", __args); return; } if (id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_umeng_socialize_media_UMImage_ == IntPtr.Zero) { id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_umeng_socialize_media_UMImage_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/umeng/socialize/media/UMImage;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_umeng_socialize_media_UMImage_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Lcom_umeng_socialize_media_UMImage_, __args); } finally { JNIEnv.DeleteLocalRef(native_p0); JNIEnv.DeleteLocalRef(native_p1); JNIEnv.DeleteLocalRef(native_p2); } }
public virtual unsafe void SetThumb(global::Com.Umeng.Socialize.Media.UMImage p0) { if (id_setThumb_Lcom_umeng_socialize_media_UMImage_ == IntPtr.Zero) { id_setThumb_Lcom_umeng_socialize_media_UMImage_ = JNIEnv.GetMethodID(class_ref, "setThumb", "(Lcom/umeng/socialize/media/UMImage;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setThumb_Lcom_umeng_socialize_media_UMImage_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setThumb", "(Lcom/umeng/socialize/media/UMImage;)V"), __args); } } finally { } }
static void n_SetThumb_Lcom_umeng_socialize_media_UMImage_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Umeng.Socialize.Media.BaseMediaObject __this = global::Java.Lang.Object.GetObject <global::Com.Umeng.Socialize.Media.BaseMediaObject> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Umeng.Socialize.Media.UMImage p0 = global::Java.Lang.Object.GetObject <global::Com.Umeng.Socialize.Media.UMImage> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetThumb(p0); }