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);
        }
Exemplo n.º 2
0
        public unsafe global::Com.Spotify.Protocol.Client.CallResult PlayContentItem(global::Com.Spotify.Protocol.Types.ListItem p0)
        {
            if (id_playContentItem_Lcom_spotify_protocol_types_ListItem_ == IntPtr.Zero)
            {
                id_playContentItem_Lcom_spotify_protocol_types_ListItem_ = JNIEnv.GetMethodID(class_ref, "playContentItem", "(Lcom/spotify/protocol/types/ListItem;)Lcom/spotify/protocol/client/CallResult;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_playContentItem_Lcom_spotify_protocol_types_ListItem_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
Exemplo n.º 3
0
        public unsafe global::Com.Spotify.Protocol.Client.CallResult GetRecommendedContentItems(global::Com.Spotify.Android.Appremote.Api.ContentApiContentType p0)
        {
            if (id_getRecommendedContentItems_Lcom_spotify_android_appremote_api_ContentApi_ContentType_ == IntPtr.Zero)
            {
                id_getRecommendedContentItems_Lcom_spotify_android_appremote_api_ContentApi_ContentType_ = JNIEnv.GetMethodID(class_ref, "getRecommendedContentItems", "(Lcom/spotify/android/appremote/api/ContentApi$ContentType;)Lcom/spotify/protocol/client/CallResult;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_getRecommendedContentItems_Lcom_spotify_android_appremote_api_ContentApi_ContentType_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public unsafe global::Com.Spotify.Protocol.Client.CallResult Hello(global::Java.Lang.Class p0)
        {
            if (id_hello_Ljava_lang_Class_ == IntPtr.Zero)
            {
                id_hello_Ljava_lang_Class_ = JNIEnv.GetMethodID(class_ref, "hello", "(Ljava/lang/Class;)Lcom/spotify/protocol/client/CallResult;");
            }
            JValue *__args = stackalloc JValue [1];

            __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_hello_Ljava_lang_Class_, __args), JniHandleOwnership.TransferLocalRef);
            return(__ret);
        }
        public unsafe global::Com.Spotify.Protocol.Client.CallResult RemoveFromLibrary(string p0)
        {
            if (id_removeFromLibrary_Ljava_lang_String_ == IntPtr.Zero)
            {
                id_removeFromLibrary_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "removeFromLibrary", "(Ljava/lang/String;)Lcom/spotify/protocol/client/CallResult;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [1];

            __args [0] = new JValue(native_p0);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_removeFromLibrary_Ljava_lang_String_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        public unsafe global::Com.Spotify.Protocol.Client.CallResult Call(string p0, global::Java.Lang.Class p1)
        {
            if (id_call_Ljava_lang_String_Ljava_lang_Class_ == IntPtr.Zero)
            {
                id_call_Ljava_lang_String_Ljava_lang_Class_ = JNIEnv.GetMethodID(class_ref, "call", "(Ljava/lang/String;Ljava/lang/Class;)Lcom/spotify/protocol/client/CallResult;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_call_Ljava_lang_String_Ljava_lang_Class_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
        public unsafe global::Com.Spotify.Protocol.Client.CallResult Play(string p0, global::Com.Spotify.Android.Appremote.Api.PlayerApiStreamType p1)
        {
            if (id_play_Ljava_lang_String_Lcom_spotify_android_appremote_api_PlayerApi_StreamType_ == IntPtr.Zero)
            {
                id_play_Ljava_lang_String_Lcom_spotify_android_appremote_api_PlayerApi_StreamType_ = JNIEnv.GetMethodID(class_ref, "play", "(Ljava/lang/String;Lcom/spotify/android/appremote/api/PlayerApi$StreamType;)Lcom/spotify/protocol/client/CallResult;");
            }
            IntPtr  native_p0 = JNIEnv.NewString(p0);
            JValue *__args    = stackalloc JValue [2];

            __args [0] = new JValue(native_p0);
            __args [1] = new JValue((p1 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p1).Handle);
            global::Com.Spotify.Protocol.Client.CallResult __ret = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_play_Ljava_lang_String_Lcom_spotify_android_appremote_api_PlayerApi_StreamType_, __args), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
 static void n_OnResultDelivered(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.CallResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.OnResultDelivered();
 }
 static IntPtr n_GetRequestId(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Protocol.Client.CallResult __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Protocol.Client.CallResult> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.RequestId));
 }