static IntPtr n_SetErrorCallback_Lcom_spotify_protocol_client_ErrorCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_errorCallback) { global::Com.Spotify.Protocol.Client.PendingResultBase __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.PendingResultBase> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Spotify.Protocol.Client.IErrorCallback errorCallback = (global::Com.Spotify.Protocol.Client.IErrorCallback)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IErrorCallback> (native_errorCallback, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetErrorCallback(errorCallback)); return(__ret); }
public virtual unsafe global::Com.Spotify.Protocol.Client.IPendingResult SetErrorCallback(global::Com.Spotify.Protocol.Client.IErrorCallback errorCallback) { const string __id = "setErrorCallback.(Lcom/spotify/protocol/client/ErrorCallback;)Lcom/spotify/protocol/client/PendingResult;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((errorCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)errorCallback).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }
public unsafe global::Com.Spotify.Protocol.Client.IPendingResult SetErrorCallback(global::Com.Spotify.Protocol.Client.IErrorCallback p0) { if (id_setErrorCallback_Lcom_spotify_protocol_client_ErrorCallback_ == IntPtr.Zero) { id_setErrorCallback_Lcom_spotify_protocol_client_ErrorCallback_ = JNIEnv.GetMethodID(class_ref, "setErrorCallback", "(Lcom/spotify/protocol/client/ErrorCallback;)Lcom/spotify/protocol/client/PendingResult;"); } JValue *__args = stackalloc JValue [1]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); global::Com.Spotify.Protocol.Client.IPendingResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_setErrorCallback_Lcom_spotify_protocol_client_ErrorCallback_, __args), JniHandleOwnership.TransferLocalRef); return(__ret); }
static void n_OnError_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Spotify.Protocol.Client.IErrorCallback __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IErrorCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Throwable p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnError(p0); }