static IntPtr n_SetEventCallback_Lcom_spotify_protocol_client_Subscription_EventCallback_(IntPtr jnienv, IntPtr native__this, IntPtr native_eventCallback)
        {
            global::Com.Spotify.Protocol.Client.Subscription __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.Subscription> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Spotify.Protocol.Client.Subscription.IEventCallback eventCallback = (global::Com.Spotify.Protocol.Client.Subscription.IEventCallback)global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.Subscription.IEventCallback> (native_eventCallback, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.SetEventCallback(eventCallback));

            return(__ret);
        }
 static void n_OnEvent_Ljava_lang_Object_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Spotify.Protocol.Client.Subscription.IEventCallback __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.Subscription.IEventCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnEvent(p0);
 }
        public virtual unsafe global::Com.Spotify.Protocol.Client.Subscription SetEventCallback(global::Com.Spotify.Protocol.Client.Subscription.IEventCallback eventCallback)
        {
            const string __id = "setEventCallback.(Lcom/spotify/protocol/client/Subscription$EventCallback;)Lcom/spotify/protocol/client/Subscription;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((eventCallback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)eventCallback).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.Subscription> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }