public DetailAudioView(HomeView view)
        {
            _view = view;
            var playAudio = new Button
            {
                Text = "Play Audio",
                VerticalOptions = LayoutOptions.CenterAndExpand,
                HorizontalOptions = LayoutOptions.CenterAndExpand,
            };

            playAudio.Clicked += (sender, e) =>
            {
                DependencyService.Get<IPlayAudio>().PlayAudio();
            };
            Content = playAudio;
        }
Ejemplo n.º 2
0
		public App()
		{
			// The root page of your application
            MainPage = new HomeView();
		}