Created
December 6, 2017 16:32
-
-
Save jamesmontemagno/38522a3ce1fd9bfd0bb9a787995c7a40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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