Пример #1
0
        static IntPtr n_GetIdentifierForAnnotation_Lcom_pspdfkit_annotations_Annotation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::PSPDFKit.Instant.IInstantAnnotationProvider __this = global::Java.Lang.Object.GetObject <global::PSPDFKit.Instant.IInstantAnnotationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::PSPDFKit.Annotations.Annotation             p0     = global::Java.Lang.Object.GetObject <global::PSPDFKit.Annotations.Annotation> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewString(__this.GetIdentifierForAnnotation(p0));

            return(__ret);
        }
Пример #2
0
        public unsafe void RemoveAnnotationFromPage(global::PSPDFKit.Annotations.Annotation p0)
        {
            if (id_removeAnnotationFromPage_Lcom_pspdfkit_annotations_Annotation_ == IntPtr.Zero)
            {
                id_removeAnnotationFromPage_Lcom_pspdfkit_annotations_Annotation_ = JNIEnv.GetMethodID(class_ref, "removeAnnotationFromPage", "(Lcom/pspdfkit/annotations/Annotation;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_removeAnnotationFromPage_Lcom_pspdfkit_annotations_Annotation_, __args);
        }
Пример #3
0
        public unsafe string GetIdentifierForAnnotation(global::PSPDFKit.Annotations.Annotation p0)
        {
            if (id_getIdentifierForAnnotation_Lcom_pspdfkit_annotations_Annotation_ == IntPtr.Zero)
            {
                id_getIdentifierForAnnotation_Lcom_pspdfkit_annotations_Annotation_ = JNIEnv.GetMethodID(class_ref, "getIdentifierForAnnotation", "(Lcom/pspdfkit/annotations/Annotation;)Ljava/lang/String;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue(p0);
            string __ret = JNIEnv.GetString(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getIdentifierForAnnotation_Lcom_pspdfkit_annotations_Annotation_, __args), JniHandleOwnership.TransferLocalRef);

            return(__ret);
        }
Пример #4
0
        public unsafe global::PSPDFKit.Annotations.Annotation GetAnnotationForIdentifier(string p0)
        {
            if (id_getAnnotationForIdentifier_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_getAnnotationForIdentifier_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "getAnnotationForIdentifier", "(Ljava/lang/String;)Lcom/pspdfkit/annotations/Annotation;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            global::PSPDFKit.Annotations.Annotation __ret = global::Java.Lang.Object.GetObject <global::PSPDFKit.Annotations.Annotation> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getAnnotationForIdentifier_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
Пример #5
0
 static void n_RemoveAnnotationFromPage_Lcom_pspdfkit_annotations_Annotation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::PSPDFKit.Instant.IInstantAnnotationProvider __this = global::Java.Lang.Object.GetObject <global::PSPDFKit.Instant.IInstantAnnotationProvider> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::PSPDFKit.Annotations.Annotation             p0     = global::Java.Lang.Object.GetObject <global::PSPDFKit.Annotations.Annotation> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.RemoveAnnotationFromPage(p0);
 }