static IntPtr n_SetErrorCallback_Lcom_spotify_protocol_client_ErrorCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0) { global::Com.Spotify.Protocol.Client.IPendingResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Spotify.Protocol.Client.IErrorCallback p0 = (global::Com.Spotify.Protocol.Client.IErrorCallback)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IErrorCallback> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetErrorCallback(p0)); return(__ret); }
static IntPtr n_Await_JLjava_util_concurrent_TimeUnit_(IntPtr jnienv, IntPtr native__this, long p0, IntPtr native_p1) { global::Com.Spotify.Protocol.Client.IPendingResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Util.Concurrent.TimeUnit p1 = global::Java.Lang.Object.GetObject <global::Java.Util.Concurrent.TimeUnit> (native_p1, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Await(p0, p1)); return(__ret); }
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 bool n_IsCanceled(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Protocol.Client.IPendingResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.IsCanceled); }
static void n_Cancel(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Protocol.Client.IPendingResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); __this.Cancel(); }
static IntPtr n_Await(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Protocol.Client.IPendingResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.IPendingResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.Await())); }