#pragma warning restore 0649

        public void OnConnected(global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote p0)
        {
            var __h = OnConnectedHandler;

            if (__h != null)
            {
                __h(sender, new ConnectedEventArgs(p0));
            }
        }
Esempio n. 2
0
        static IntPtr n_Subscribe_Ljava_lang_String_Ljava_lang_Class_(IntPtr jnienv, IntPtr native__this, IntPtr native_uri, IntPtr native_eventType)
        {
            global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string uri = JNIEnv.GetString(native_uri, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.Class eventType = global::Java.Lang.Object.GetObject <global::Java.Lang.Class> (native_eventType, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Subscribe(uri, eventType));

            return(__ret);
        }
Esempio n. 3
0
        public static unsafe void Disconnect(global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote spotifyAppRemote)
        {
            const string __id = "disconnect.(Lcom/spotify/android/appremote/api/SpotifyAppRemote;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((spotifyAppRemote == null) ? IntPtr.Zero : ((global::Java.Lang.Object)spotifyAppRemote).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
Esempio n. 4
0
        static IntPtr n_Call_Ljava_lang_String_Lcom_spotify_protocol_types_Item_Ljava_lang_Class_(IntPtr jnienv, IntPtr native__this, IntPtr native_uri, IntPtr native_argument, IntPtr native_resultType)
        {
            global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string uri = JNIEnv.GetString(native_uri, JniHandleOwnership.DoNotTransfer);

            global::Java.Lang.Object argument   = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_argument, JniHandleOwnership.DoNotTransfer);
            global::Java.Lang.Class  resultType = global::Java.Lang.Object.GetObject <global::Java.Lang.Class> (native_resultType, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Call(uri, argument, resultType));

            return(__ret);
        }
        public unsafe void OnConnected(global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote p0)
        {
            if (id_onConnected_Lcom_spotify_android_appremote_api_SpotifyAppRemote_ == IntPtr.Zero)
            {
                id_onConnected_Lcom_spotify_android_appremote_api_SpotifyAppRemote_ = JNIEnv.GetMethodID(class_ref, "onConnected", "(Lcom/spotify/android/appremote/api/SpotifyAppRemote;)V");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onConnected_Lcom_spotify_android_appremote_api_SpotifyAppRemote_, __args);
        }
Esempio n. 6
0
        public unsafe SpotifyAppRemoteIsConnectedRule(global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote spotifyAppRemote)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Lcom/spotify/android/appremote/api/SpotifyAppRemote;)V";

            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((spotifyAppRemote == null) ? IntPtr.Zero : ((global::Java.Lang.Object)spotifyAppRemote).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
Esempio n. 7
0
 static IntPtr n_GetContentApi(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.ContentApi));
 }
Esempio n. 8
0
 static bool n_IsConnected(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.IsConnected);
 }
 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 ConnectedEventArgs(global::Com.Spotify.Android.Appremote.Api.SpotifyAppRemote p0)
 {
     this.p0 = p0;
 }