private async void Init()
        {
            try
            {
                _helper = DependencyService.Get <IHelper>();
                _fileDownloadService = DependencyService.Get <IFileDownloadService>();
                await App.Configuration.InitialAsync(this);

                NavigationPage.SetHasNavigationBar(this, false);
                BindingContext = _model;
                if (await _model.LoadPageAsync())
                {
                    var fullPath = _helper.GetFilePath(_model.FileUri, FileType.Document);
                    if (await _fileDownloadService.DownloadFileAsync(fullPath, _model.FileUri))
                    {
                        stackLayoutContent.Children.Add(new CustomWebView()
                        {
                            HorizontalOptions = LayoutOptions.FillAndExpand,
                            VerticalOptions   = LayoutOptions.FillAndExpand,
                            Uri = _model.FileUri
                        });
                        await RemoveFile();
                    }
                }
            }
            catch (Exception)
            {
            }
        }
 public sealed override async void Init(object obj = null)
 {
     _helper = DependencyService.Get <IHelper>();
     _fileDownloadService = DependencyService.Get <IFileDownloadService>();
     App.Configuration.Initial(this);
     NavigationPage.SetHasNavigationBar(this, false);
     BindingContext = model;
     if (await model.LoadPageAsync())
     {
         var fullPath = _helper.GetFilePath(model.FileUri, FileType.Document);
         if (await _fileDownloadService.DownloadFileAsync(fullPath, model.FileUri))
         {
             stackLayoutContent.Children.Add(new CustomWebView()
             {
                 HorizontalOptions = LayoutOptions.FillAndExpand,
                 VerticalOptions   = LayoutOptions.FillAndExpand,
                 Uri = model.FileUri
             });
             await RemoveFile();
         }
     }
 }