public static unsafe global::Com.Ant.Liao.GifView.GifImageType 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/ant/liao/GifView$GifImageType;"); } IntPtr native_p0 = JNIEnv.NewString(p0); try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(native_p0); global::Com.Ant.Liao.GifView.GifImageType __ret = global::Java.Lang.Object.GetObject <global::Com.Ant.Liao.GifView.GifImageType> (JNIEnv.CallStaticObjectMethod(class_ref, id_valueOf_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p0); } }
public virtual unsafe void SetGifImageType(global::Com.Ant.Liao.GifView.GifImageType p0) { if (id_setGifImageType_Lcom_ant_liao_GifView_GifImageType_ == IntPtr.Zero) { id_setGifImageType_Lcom_ant_liao_GifView_GifImageType_ = JNIEnv.GetMethodID(class_ref, "setGifImageType", "(Lcom/ant/liao/GifView$GifImageType;)V"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); if (GetType() == ThresholdType) { JNIEnv.CallVoidMethod(Handle, id_setGifImageType_Lcom_ant_liao_GifView_GifImageType_, __args); } else { JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setGifImageType", "(Lcom/ant/liao/GifView$GifImageType;)V"), __args); } } finally { } }
static void n_SetGifImageType_Lcom_ant_liao_GifView_GifImageType_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Ant.Liao.GifView __this = global::Java.Lang.Object.GetObject <global::Com.Ant.Liao.GifView> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Ant.Liao.GifView.GifImageType p0 = global::Java.Lang.Object.GetObject <global::Com.Ant.Liao.GifView.GifImageType> (native_p0, JniHandleOwnership.DoNotTransfer); __this.SetGifImageType(p0); }