static IntPtr n_SetResultCallback_Lcom_spotify_protocol_client_CallResult_ResultCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native__callback) { global::Com.Spotify.Protocol.Client.CallResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Spotify.Protocol.Client.CallResult.IResultCallback @callback = (global::Com.Spotify.Protocol.Client.CallResult.IResultCallback)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult.IResultCallback> (native__callback, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetResultCallback(@callback)); return(__ret); }
static void n_OnResult_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Spotify.Protocol.Client.CallResult.IResultCallback __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult.IResultCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer); __this.OnResult(p0); }
public virtual unsafe global::Com.Spotify.Protocol.Client.CallResult SetResultCallback(global::Com.Spotify.Protocol.Client.CallResult.IResultCallback @callback) { const string __id = "setResultCallback.(Lcom/spotify/protocol/client/CallResult$ResultCallback;)Lcom/spotify/protocol/client/CallResult;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { } }