Exemple #1
0
 static void n_WriteToParcel_Landroid_os_Parcel_I(IntPtr jnienv, IntPtr native__this, IntPtr native_dest, int native_flags)
 {
     global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.Parcel dest = global::Java.Lang.Object.GetObject <global::Android.OS.Parcel> (native_dest, JniHandleOwnership.DoNotTransfer);
     global::Android.OS.ParcelableWriteFlags flags = (global::Android.OS.ParcelableWriteFlags)native_flags;
     __this.WriteToParcel(dest, flags);
 }
        public unsafe SpotifyNativeAuthUtil(global::Android.App.Activity p0, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (((object)this).GetType() != typeof(SpotifyNativeAuthUtil))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(((object)this).GetType(), "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V", __args);
                    return;
                }

                if (id_ctor_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ == IntPtr.Zero)
                {
                    id_ctor_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args);
            } finally {
            }
        }
Exemple #3
0
        static IntPtr n_GetCustomParam_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_key)
        {
            global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            string key   = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.NewString(__this.GetCustomParam(key));

            return(__ret);
        }
        static bool n_Start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
        {
            global::Com.Spotify.Sdk.Android.Authentication.CustomTabAuthHandler __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.CustomTabAuthHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.App.Activity p0 = global::Java.Lang.Object.GetObject <global::Android.App.Activity> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1 = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.Start(p0, p1);

            return(__ret);
        }
Exemple #5
0
        public unsafe bool Start(global::Android.App.Activity p0, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1)
        {
            if (id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ == IntPtr.Zero)
            {
                id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ = JNIEnv.GetMethodID(class_ref, "start", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Z");
            }
            JValue *__args = stackalloc JValue [2];

            __args [0] = new JValue(p0);
            __args [1] = new JValue(p1);
            bool __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args);

            return(__ret);
        }
        public virtual unsafe bool Start(global::Android.App.Activity p0, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1)
        {
            if (id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ == IntPtr.Zero)
            {
                id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ = JNIEnv.GetMethodID(class_ref, "start", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                bool __ret;
                if (((object)this).GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_start_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "start", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
        public static unsafe global::Android.Content.Intent GetAuthIntent(global::Android.App.Activity contextActivity, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest request)
        {
            const string __id = "getAuthIntent.(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Landroid/content/Intent;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((contextActivity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)contextActivity).Handle);
                __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.Content.Intent> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }
Exemple #8
0
 static IntPtr n_ToUri(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.ToLocalJniHandle(__this.ToUri()));
 }
Exemple #9
0
 static int n_DescribeContents(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(__this.DescribeContents());
 }
Exemple #10
0
 static IntPtr n_GetState(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest __this = global::Java.Lang.Object.GetObject <global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     return(JNIEnv.NewString(__this.State));
 }
Exemple #11
0
 public static unsafe global::Android.Content.Intent GetAuthIntent(global::Android.App.Activity p0, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1)
 {
     if (id_getAuthIntent_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ == IntPtr.Zero)
     {
         id_getAuthIntent_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ = JNIEnv.GetStaticMethodID(class_ref, "getAuthIntent", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Landroid/content/Intent;");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         global::Android.Content.Intent __ret = global::Java.Lang.Object.GetObject <global::Android.Content.Intent> (JNIEnv.CallStaticObjectMethod(class_ref, id_getAuthIntent_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public virtual unsafe bool Start(global::Android.App.Activity contextActivity, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest request)
        {
            const string __id = "start.(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)Z";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((contextActivity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)contextActivity).Handle);
                __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualBooleanMethod(__id, this, __args);
                return(__rm);
            } finally {
            }
        }
Exemple #13
0
        public static unsafe void OpenLoginInBrowser(global::Android.App.Activity contextActivity, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest request)
        {
            const string __id = "openLoginInBrowser.(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((contextActivity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)contextActivity).Handle);
                __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
        public unsafe SpotifyNativeAuthUtil(global::Android.App.Activity contextActivity, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest request)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            const string __id = "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V";

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

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((contextActivity == null) ? IntPtr.Zero : ((global::Java.Lang.Object)contextActivity).Handle);
                __args [1] = new JniArgumentValue((request == null) ? IntPtr.Zero : ((global::Java.Lang.Object)request).Handle);
                var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args);
                SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef);
                _members.InstanceMethods.FinishCreateInstance(__id, this, __args);
            } finally {
            }
        }
 public static unsafe void OpenLoginInBrowser(global::Android.App.Activity p0, global::Com.Spotify.Sdk.Android.Authentication.AuthenticationRequest p1)
 {
     if (id_openLoginInBrowser_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ == IntPtr.Zero)
     {
         id_openLoginInBrowser_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_ = JNIEnv.GetStaticMethodID(class_ref, "openLoginInBrowser", "(Landroid/app/Activity;Lcom/spotify/sdk/android/authentication/AuthenticationRequest;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_openLoginInBrowser_Landroid_app_Activity_Lcom_spotify_sdk_android_authentication_AuthenticationRequest_, __args);
     } finally {
     }
 }