public static unsafe void Set(global::Artifex.MuPdf.SearchTaskResult p0)
 {
     if (id_set_Lcom_artifex_mupdfdemo_SearchTaskResult_ == IntPtr.Zero)
     {
         id_set_Lcom_artifex_mupdfdemo_SearchTaskResult_ = JNIEnv.GetStaticMethodID(class_ref, "set", "(Lcom/artifex/mupdfdemo/SearchTaskResult;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallStaticVoidMethod(class_ref, id_set_Lcom_artifex_mupdfdemo_SearchTaskResult_, __args);
     } finally {
     }
 }
 protected override unsafe void OnTextFound(global::Artifex.MuPdf.SearchTaskResult p0)
 {
     if (id_onTextFound_Lcom_artifex_mupdfdemo_SearchTaskResult_ == IntPtr.Zero)
     {
         id_onTextFound_Lcom_artifex_mupdfdemo_SearchTaskResult_ = JNIEnv.GetMethodID(class_ref, "onTextFound", "(Lcom/artifex/mupdfdemo/SearchTaskResult;)V");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onTextFound_Lcom_artifex_mupdfdemo_SearchTaskResult_, __args);
     } finally {
     }
 }
 protected abstract void OnTextFound(global::Artifex.MuPdf.SearchTaskResult p0);
 static void n_OnTextFound_Lcom_artifex_mupdfdemo_SearchTaskResult_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Artifex.MuPdf.SearchTask       __this = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.SearchTask> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Artifex.MuPdf.SearchTaskResult p0     = global::Java.Lang.Object.GetObject <global::Artifex.MuPdf.SearchTaskResult> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnTextFound(p0);
 }