Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created December 6, 2017 16:32
Show Gist options
  • Save jamesmontemagno/38522a3ce1fd9bfd0bb9a787995c7a40 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/38522a3ce1fd9bfd0bb9a787995c7a40 to your computer and use it in GitHub Desktop.
[Register("hellosharedui.droid.UIHelpers")]
public class UIHelpers : Java.Lang.Object
{
public UIHelpers() : base()
{
}
public UIHelpers(IntPtr handle, JniHandleOwnership transfer)
: base(handle, transfer)
{
}
[Export("getMyPageFragment")]
public Android.Support.V4.App.Fragment GetMyPageFragment(Context context)
{
if (!Forms.IsInitialized)
Forms.Init(context, null);
return new MyPage().CreateSupportFragment(context);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment