Beispiel #1
0
        static void n_OnImageLoaded_Ljava_lang_String_IZ(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1, bool p2)
        {
            global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string p0 = JNIEnv.GetString(native_p0, JniHandleOwnership.DoNotTransfer);

            __this.OnImageLoaded(p0, p1, p2);
        }
Beispiel #2
0
        public virtual unsafe void RemoveImageOriginListener(global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener listener)
        {
            const string __id = "removeImageOriginListener.(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((listener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)listener).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Beispiel #3
0
        public unsafe ImageOriginRequestListener(string controllerId, global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener imageOriginLister)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Ljava/lang/String;Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_controllerId = JNIEnv.NewString(controllerId);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_controllerId);
                __args [1] = new JniArgumentValue((imageOriginLister == null) ? IntPtr.Zero : ((global::Java.Lang.Object)imageOriginLister).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_controllerId);
            }
        }
Beispiel #4
0
 static void n_AddImageOriginListener_Lcom_facebook_drawee_backends_pipeline_info_ImageOriginListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_listener)
 {
     global::Com.Facebook.Drawee.Backends.Pipeline.Info.ForwardingImageOriginListener __this   = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.Info.ForwardingImageOriginListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener          listener = (global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener)global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener> (native_listener, JniHandleOwnership.DoNotTransfer);
     __this.AddImageOriginListener(listener);
 }
        public virtual unsafe global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerBuilder SetImageOriginListener(global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener imageOriginListener)
        {
            const string __id = "setImageOriginListener.(Lcom/facebook/drawee/backends/pipeline/info/ImageOriginListener;)Lcom/facebook/drawee/backends/pipeline/PipelineDraweeControllerBuilder;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((imageOriginListener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)imageOriginListener).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerBuilder> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
        static IntPtr n_SetImageOriginListener_Lcom_facebook_drawee_backends_pipeline_info_ImageOriginListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_imageOriginListener)
        {
            global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerBuilder __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.PipelineDraweeControllerBuilder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener       imageOriginListener = (global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener)global::Java.Lang.Object.GetObject <global::Com.Facebook.Drawee.Backends.Pipeline.Info.IImageOriginListener> (native_imageOriginListener, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetImageOriginListener(imageOriginListener));

            return(__ret);
        }