public virtual unsafe void OnSharedPreferenceChanged(global::Android.Content.ISharedPreferences p0, string p1)
            {
                if (id_onSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_ == IntPtr.Zero)
                {
                    id_onSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "onSharedPreferenceChanged", "(Landroid/content/SharedPreferences;Ljava/lang/String;)V");
                }
                IntPtr native_p1 = JNIEnv.NewString(p1);

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(native_p1);

                    if (GetType() == ThresholdType)
                    {
                        JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_, __args);
                    }
                    else
                    {
                        JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "onSharedPreferenceChanged", "(Landroid/content/SharedPreferences;Ljava/lang/String;)V"), __args);
                    }
                } finally {
                    JNIEnv.DeleteLocalRef(native_p1);
                }
            }
        static void n_OnSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_sharedPreferences, IntPtr native_key)
        {
            global::Com.Mapbox.Android.Telemetry.Location.LocationCollectionClient __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Telemetry.Location.LocationCollectionClient> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.ISharedPreferences sharedPreferences = (global::Android.Content.ISharedPreferences)global::Java.Lang.Object.GetObject <global::Android.Content.ISharedPreferences> (native_sharedPreferences, JniHandleOwnership.DoNotTransfer);
            string key = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);

            __this.OnSharedPreferenceChanged(sharedPreferences, key);
        }
Beispiel #3
0
        static void n_OnSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_sharedPreferences, IntPtr native_key)
        {
            global::Com.Mapbox.Android.Core.Crashreporter.MapboxUncaughtExceptionHanlder __this = global::Java.Lang.Object.GetObject <global::Com.Mapbox.Android.Core.Crashreporter.MapboxUncaughtExceptionHanlder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Content.ISharedPreferences sharedPreferences = (global::Android.Content.ISharedPreferences)global::Java.Lang.Object.GetObject <global::Android.Content.ISharedPreferences> (native_sharedPreferences, JniHandleOwnership.DoNotTransfer);
            string key = JNIEnv.GetString(native_key, JniHandleOwnership.DoNotTransfer);

            __this.OnSharedPreferenceChanged(sharedPreferences, key);
        }
            static void n_OnSharedPreferenceChanged_Landroid_content_SharedPreferences_Ljava_lang_String_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1)
            {
                global::Com.Facebook.Stetho.Inspector.Domstorage.DOMStoragePeerManager.DevToolsSharedPreferencesListener __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Inspector.Domstorage.DOMStoragePeerManager.DevToolsSharedPreferencesListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
                global::Android.Content.ISharedPreferences p0 = (global::Android.Content.ISharedPreferences)global::Java.Lang.Object.GetObject <global::Android.Content.ISharedPreferences> (native_p0, JniHandleOwnership.DoNotTransfer);
                string p1 = JNIEnv.GetString(native_p1, JniHandleOwnership.DoNotTransfer);

                __this.OnSharedPreferenceChanged(p0, p1);
            }
Beispiel #5
0
        public static unsafe void ReloadSharedPreferencesIfNeeded(global::Android.Content.ISharedPreferences pref)
        {
            const string __id = "reloadSharedPreferencesIfNeeded.(Landroid/content/SharedPreferences;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((pref == null) ? IntPtr.Zero : ((global::Java.Lang.Object)pref).Handle);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
            }
        }
Beispiel #6
0
 public static unsafe global::Android.Content.ISharedPreferences GetSharedPreferences(global::Android.Content.Context p0)
 {
     if (id_getSharedPreferences_Landroid_content_Context_ == IntPtr.Zero)
     {
         id_getSharedPreferences_Landroid_content_Context_ = JNIEnv.GetStaticMethodID(class_ref, "getSharedPreferences", "(Landroid/content/Context;)Landroid/content/SharedPreferences;");
     }
     try {
         JValue *__args = stackalloc JValue [1];
         __args [0] = new JValue(p0);
         global::Android.Content.ISharedPreferences __ret = global::Java.Lang.Object.GetObject <global::Android.Content.ISharedPreferences> (JNIEnv.CallStaticObjectMethod(class_ref, id_getSharedPreferences_Landroid_content_Context_, __args), JniHandleOwnership.TransferLocalRef);
         return(__ret);
     } finally {
     }
 }
        public virtual unsafe void OnSharedPreferenceChanged(global::Android.Content.ISharedPreferences sharedPreferences, string key)
        {
            const string __id       = "onSharedPreferenceChanged.(Landroid/content/SharedPreferences;Ljava/lang/String;)V";
            IntPtr       native_key = JNIEnv.NewString(key);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((sharedPreferences == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sharedPreferences).Handle);
                __args [1] = new JniArgumentValue(native_key);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_key);
            }
        }
            public unsafe DevToolsSharedPreferencesListener(global::Com.Facebook.Stetho.Inspector.Domstorage.DOMStoragePeerManager __self, global::Android.Content.ISharedPreferences p1, string p2)
                : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
            {
                if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
                {
                    return;
                }

                IntPtr native_p2 = JNIEnv.NewString(p2);

                try {
                    JValue *__args = stackalloc JValue [3];
                    __args [0] = new JValue(__self);
                    __args [1] = new JValue(p1);
                    __args [2] = new JValue(native_p2);
                    if (GetType() != typeof(DevToolsSharedPreferencesListener))
                    {
                        SetHandle(
                            global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/content/SharedPreferences;Ljava/lang/String;)V", __args),
                            JniHandleOwnership.TransferLocalRef);
                        global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(L" + global::Android.Runtime.JNIEnv.GetJniName(GetType().DeclaringType) + ";Landroid/content/SharedPreferences;Ljava/lang/String;)V", __args);
                        return;
                    }

                    if (id_ctor_Lcom_facebook_stetho_inspector_domstorage_DOMStoragePeerManager_Landroid_content_SharedPreferences_Ljava_lang_String_ == IntPtr.Zero)
                    {
                        id_ctor_Lcom_facebook_stetho_inspector_domstorage_DOMStoragePeerManager_Landroid_content_SharedPreferences_Ljava_lang_String_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lcom/facebook/stetho/inspector/domstorage/DOMStoragePeerManager;Landroid/content/SharedPreferences;Ljava/lang/String;)V");
                    }
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lcom_facebook_stetho_inspector_domstorage_DOMStoragePeerManager_Landroid_content_SharedPreferences_Ljava_lang_String_, __args),
                        JniHandleOwnership.TransferLocalRef);
                    JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lcom_facebook_stetho_inspector_domstorage_DOMStoragePeerManager_Landroid_content_SharedPreferences_Ljava_lang_String_, __args);
                } finally {
                    JNIEnv.DeleteLocalRef(native_p2);
                }
            }