static IntPtr n_Get_Landroid_app_Fragment_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            global::Com.Bumptech.Glide.Manager.RequestManagerRetriever __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.Manager.RequestManagerRetriever> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.App.Fragment p0 = global::Java.Lang.Object.GetObject <global::Android.App.Fragment> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.Get(p0));

            return(__ret);
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);
			this.RequestedOrientation = global::Android.Content.PM.ScreenOrientation.Portrait;
			SetContentView (Resource.Layout.ProfileA);

			fragment = new ProfileFragment();
			FragmentManager.BeginTransaction()
				.Replace(Resource.Id.content_frame, fragment)
				.Commit();
		}
Beispiel #3
0
 public static unsafe void NotifyFragmentStopped(global::Android.App.Fragment p0, global::Android.App.Activity p1)
 {
     if (id_notifyFragmentStopped_Landroid_app_Fragment_Landroid_app_Activity_ == IntPtr.Zero)
     {
         id_notifyFragmentStopped_Landroid_app_Fragment_Landroid_app_Activity_ = JNIEnv.GetStaticMethodID(class_ref, "notifyFragmentStopped", "(Landroid/app/Fragment;Landroid/app/Activity;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_notifyFragmentStopped_Landroid_app_Fragment_Landroid_app_Activity_, __args);
     } finally {
     }
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Compile time: check by assignment if correct types were generated
            CommonSampleLibrary.LogFragment log = log_fragment;

#if NOT_CONFLICTING_FRAGMENT
            CommonSampleLibrary.LogFragment log2 = secondary_log_fragment;
#else
            global::Android.App.Fragment log2 = secondary_log_fragment;
#endif
            Button button = myButton;
            button.Click += delegate { button.Text = $"{count++} clicks!"; };
        }
Beispiel #5
0
        public virtual unsafe void SetFragment(global::Android.App.Fragment p0)
        {
            if (id_setFragment_Landroid_app_Fragment_ == IntPtr.Zero)
            {
                id_setFragment_Landroid_app_Fragment_ = JNIEnv.GetMethodID(class_ref, "setFragment", "(Landroid/app/Fragment;)V");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setFragment_Landroid_app_Fragment_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setFragment", "(Landroid/app/Fragment;)V"), __args);
                }
            } finally {
            }
        }
        public virtual unsafe global::Com.Bumptech.Glide.RequestManager Get(global::Android.App.Fragment p0)
        {
            if (id_get_Landroid_app_Fragment_ == IntPtr.Zero)
            {
                id_get_Landroid_app_Fragment_ = JNIEnv.GetMethodID(class_ref, "get", "(Landroid/app/Fragment;)Lcom/bumptech/glide/RequestManager;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);

                global::Com.Bumptech.Glide.RequestManager __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.RequestManager> (JNIEnv.CallObjectMethod(Handle, id_get_Landroid_app_Fragment_, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.RequestManager> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "get", "(Landroid/app/Fragment;)Lcom/bumptech/glide/RequestManager;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Beispiel #7
0
 static void n_SetFragment_Landroid_app_Fragment_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
 {
     global::Org.Jboss.Aerogear.Android.Pipe.Callback.AbstractFragmentCallback __this = global::Java.Lang.Object.GetObject <global::Org.Jboss.Aerogear.Android.Pipe.Callback.AbstractFragmentCallback> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.App.Fragment p0 = global::Java.Lang.Object.GetObject <global::Android.App.Fragment> (native_p0, JniHandleOwnership.DoNotTransfer);
     __this.SetFragment(p0);
 }
 protected T FindFragment <T> (int resourceId, global::Android.App.Fragment __ignoreMe, ref T cachedField) where T : global::Android.App.Fragment
 {
     return(__FindFragment <T> (resourceId, (activity) => activity.FragmentManager.FindFragmentById <T> (resourceId), ref cachedField));
 }