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); }
static IntPtr n_NewConnector_Landroid_content_Context_Lcom_spotify_android_appremote_api_ConnectionParams_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_context, IntPtr native__params, IntPtr native_spotifyBestPackageName) { global::Com.Spotify.Android.Appremote.Internal.SdkRemoteClientConnectorFactory __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Internal.SdkRemoteClientConnectorFactory> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Android.Content.Context context = global::Java.Lang.Object.GetObject <global::Android.Content.Context> (native_context, JniHandleOwnership.DoNotTransfer); global::Com.Spotify.Android.Appremote.Api.ConnectionParams @params = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (native__params, JniHandleOwnership.DoNotTransfer); string spotifyBestPackageName = JNIEnv.GetString(native_spotifyBestPackageName, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.NewConnector(context, @params, spotifyBestPackageName)); return(__ret); }
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 { } }
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); }
public virtual unsafe global::Com.Spotify.Android.Appremote.Internal.SdkRemoteClientConnector NewConnector(global::Android.Content.Context context, global::Com.Spotify.Android.Appremote.Api.ConnectionParams @params, string spotifyBestPackageName) { const string __id = "newConnector.(Landroid/content/Context;Lcom/spotify/android/appremote/api/ConnectionParams;Ljava/lang/String;)Lcom/spotify/android/appremote/internal/SdkRemoteClientConnector;"; IntPtr native_spotifyBestPackageName = JNIEnv.NewString(spotifyBestPackageName); 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(native_spotifyBestPackageName); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Internal.SdkRemoteClientConnector> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { JNIEnv.DeleteLocalRef(native_spotifyBestPackageName); } }
static IntPtr n_GetAuthMethod(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Android.Appremote.Api.ConnectionParams __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.GetAuthMethod())); }
static int n_GetThumbnailImageSize(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Android.Appremote.Api.ConnectionParams __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.ThumbnailImageSize); }
static bool n_GetShowAuthView(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Android.Appremote.Api.ConnectionParams __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(__this.ShowAuthView); }
static IntPtr n_GetRequiredFeatures(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Android.Appremote.Api.ConnectionParams __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(global::Android.Runtime.JavaList <string> .ToLocalJniHandle(__this.RequiredFeatures)); }
static IntPtr n_GetRedirectUri(IntPtr jnienv, IntPtr native__this) { global::Com.Spotify.Android.Appremote.Api.ConnectionParams __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Android.Appremote.Api.ConnectionParams> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.NewString(__this.RedirectUri)); }