static void n_Connect_Landroid_content_Context_Lcom_spotify_android_appremote_api_ConnectionParams_Lcom_spotify_android_appremote_api_Connector_ConnectionListener_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
 {
     global::Com.Spotify.Android.Appremote.Api.IConnector __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.IConnector> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Content.Context p0 = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_p0, JniHandleOwnership.DoNotTransfer);
     global::Com.Spotify.Android.Appremote.Api.ConnectionParams             p1 = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (native_p1, JniHandleOwnership.DoNotTransfer);
     global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener p2 = (global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener)global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener> (native_p2, JniHandleOwnership.DoNotTransfer);
     __this.Connect(p0, p1, p2);
 }
Exemplo n.º 2
0
        public static unsafe void Connect(global::Android.Content.Context context, global::Com.Spotify.Android.Appremote.Api.ConnectionParams @params, global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener connectionListener)
        {
            const string __id = "connect.(Landroid/content/Context;Lcom/spotify/android/appremote/api/ConnectionParams;Lcom/spotify/android/appremote/api/Connector$ConnectionListener;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((context == null) ? IntPtr.Zero : ((global::Java.Lang.Object)context).Handle);
                __args [1] = new JniArgumentValue((@params == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@params).Handle);
                __args [2] = new JniArgumentValue((connectionListener == null) ? IntPtr.Zero : ((global::Java.Lang.Object)connectionListener).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
 static void n_OnConnected_Lcom_spotify_android_appremote_api_SpotifyAppRemote_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote             p0     = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnConnected(p0);
 }
        public unsafe void Connect(global::Android.Content.Context p0, global::Com.Spotify.Android.Appremote.Api.ConnectionParams p1, global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener p2)
        {
            if (id_connect_Landroid_content_Context_Lcom_spotify_android_appremote_api_ConnectionParams_Lcom_spotify_android_appremote_api_Connector_ConnectionListener_ == IntPtr.Zero)
            {
                id_connect_Landroid_content_Context_Lcom_spotify_android_appremote_api_ConnectionParams_Lcom_spotify_android_appremote_api_Connector_ConnectionListener_ = JNIEnv.GetMethodID(class_ref, "connect", "(Landroid/content/Context;Lcom/spotify/android/appremote/api/ConnectionParams;Lcom/spotify/android/appremote/api/Connector$ConnectionListener;)V");
            }
            JValue *__args = stackalloc JValue [3];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            __args [2] = new JValue((p2 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p2).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_connect_Landroid_content_Context_Lcom_spotify_android_appremote_api_ConnectionParams_Lcom_spotify_android_appremote_api_Connector_ConnectionListener_, __args);
        }
 static void n_OnFailure_Ljava_lang_Throwable_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.IConnectorConnectionListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Java.Lang.Throwable p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Throwable> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.OnFailure(p0);
 }