Last active
March 30, 2017 07:29
-
-
Save guntidheerajkumar/6f8bef159a080221731f4c371b3796b2 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
| [assembly: Xamarin.Forms.Dependency(typeof(LoadingService))] | |
| namespace YourNameSpace | |
| { | |
| public class LoadingService : ILoadingService | |
| { | |
| public LoadingService() | |
| { | |
| } | |
| #region ILoadingService implementation | |
| public void Show(string message = "") | |
| { | |
| Device.BeginInvokeOnMainThread(() => { | |
| AndHUD.Shared.Show(Forms.Context, maskType: MaskType.Black); | |
| }); | |
| } | |
| public void Hide() | |
| { | |
| Device.BeginInvokeOnMainThread(() => { | |
| AndHUD.Shared.Dismiss(Forms.Context); | |
| }); | |
| } | |
| #endregion | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment