Braintree.Api.PaymentButton.OnResponse C# (CSharp) Method

OnResponse() private method

private OnResponse ( Java.Lang.Object p0 ) : void
p0 Java.Lang.Object
return void
        public void OnResponse(Object p0)
        {
            if (id_onResponse_Landroid_view_View_ == IntPtr.Zero)
            {
                id_onResponse_Landroid_view_View_ = JNIEnv.GetMethodID(class_ref, "onResponse", "(Landroid/view/View;)V");
            }
                
            try
            {
                unsafe
                {
                    JValue* args = stackalloc JValue[1];
                    args[0] = new JValue(p0);

                    if (GetType() == ThresholdType)
                    {
                        JNIEnv.CallVoidMethod(Handle, id_onResponse_Landroid_view_View_, args);
                    }

                    else
                    {
                        JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onClick", "(Landroid/view/View;)V"), args);
                    }
                }
            }
            finally
            {
            }

        }
    }