Example #1
0
 static void n_OnResourceReady_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_Lcom_bumptech_glide_request_animation_GlideAnimation_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
 {
     global::Com.Bumptech.Glide.Request.Target.GlideDrawableImageViewTarget __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Request.Target.GlideDrawableImageViewTarget> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable        p0     = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Bumptech.Glide.Request.Animation.IGlideAnimation           p1     = (global::Com.Bumptech.Glide.Request.Animation.IGlideAnimation)global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Request.Animation.IGlideAnimation> (native_p1, JniHandleOwnership.DoNotTransfer);
     __this.OnResourceReady(p0, p1);
 }
Example #2
0
        protected virtual unsafe void SetResource(global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable p0)
        {
            if (id_setResource_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_ == IntPtr.Zero)
            {
                id_setResource_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_ = JNIEnv.GetMethodID(class_ref, "setResource", "(Lcom/bumptech/glide/load/resource/drawable/GlideDrawable;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(Handle, id_setResource_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setResource", "(Lcom/bumptech/glide/load/resource/drawable/GlideDrawable;)V"), __args);
                }
            } finally {
            }
        }
Example #3
0
        public virtual unsafe void OnResourceReady(global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable p0, global::Com.Bumptech.Glide.Request.Animation.IGlideAnimation p1)
        {
            if (id_onResourceReady_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_Lcom_bumptech_glide_request_animation_GlideAnimation_ == IntPtr.Zero)
            {
                id_onResourceReady_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_Lcom_bumptech_glide_request_animation_GlideAnimation_ = JNIEnv.GetMethodID(class_ref, "onResourceReady", "(Lcom/bumptech/glide/load/resource/drawable/GlideDrawable;Lcom/bumptech/glide/request/animation/GlideAnimation;)V");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(Handle, id_onResourceReady_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_Lcom_bumptech_glide_request_animation_GlideAnimation_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onResourceReady", "(Lcom/bumptech/glide/load/resource/drawable/GlideDrawable;Lcom/bumptech/glide/request/animation/GlideAnimation;)V"), __args);
                }
            } finally {
            }
        }
 static bool n_IsAnimated(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsAnimated);
 }
 static void n_Stop(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Stop();
 }
Example #6
0
 static void n_SetResource_Lcom_bumptech_glide_load_resource_drawable_GlideDrawable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Bumptech.Glide.Request.Target.GlideDrawableImageViewTarget __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Request.Target.GlideDrawableImageViewTarget> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable        p0     = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Load.Resource.Drawable.GlideDrawable> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetResource(p0);
 }