This file contains 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
... | |
<key>NSLocationUsageDescription</key> | |
<string>Esse aplicativo precisa acessar a sua localização.</string> | |
<key>NSLocationAlwaysUsageDescription</key> | |
<string>Esse aplicativo precisa acessar a sua localização.</string> | |
<key>NSLocationWhenInUseUsageDescription</key> | |
<string>Esse aplicativo precisa acessar a sua localização.</string> | |
</dict> | |
</plist> |
This file contains 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
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:DemoCamera" | |
x:Class="DemoCamera.MainPage"> | |
<StackLayout> | |
<Button Text="Tirar Foto" Clicked="TirarFoto" FontSize="20" /> | |
<Button Text="Escolher Foto" Clicked="EscolherFoto" FontSize="20" /> |
This file contains 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
using Plugin.Media; | |
using Android.App; | |
using Android.Content.PM; | |
using Android.OS; | |
namespace DemoCamera.Droid | |
{ | |
[Activity(Label = "DemoCamera", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] | |
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity | |
{ |
This file contains 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
... | |
</array> | |
<key>UILaunchStoryboardName</key> | |
<string>LaunchScreen</string> | |
<key>CFBundleName</key> | |
<string>DemoCamera</string> | |
<key>NSCameraUsageDescription</key> | |
<string>This app needs access to the camera to take photos.</string> | |
<key>NSPhotoLibraryUsageDescription</key> |
This file contains 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
using Plugin.Media; | |
using Plugin.Media.Abstractions; | |
using System; | |
using Xamarin.Forms; | |
namespace DemoCamera | |
{ | |
public partial class MainPage : ContentPage | |
{ | |
public MainPage() |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:forms="clr-namespace:Microcharts.Forms;assembly=Microcharts.Forms" | |
x:Class="DemoGraficos.Views.MainPage"> | |
<forms:ChartView x:Name="Grafico" HeightRequest="150" /> | |
</ContentPage> |
This file contains 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
using System.Collections.Generic; | |
using SkiaSharp; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Xaml; | |
... | |
List<Microcharts.Entry> entries = new List<Microcharts.Entry> | |
{ | |
new Microcharts.Entry(200) | |
{ |
This file contains 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
... | |
public GraficoBarras() | |
{ | |
InitializeComponent(); | |
Grafico.Chart = new Microcharts.BarChart() { Entries = entries }; | |
} | |
... |
This file contains 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
... | |
public GraficoCircular() | |
{ | |
InitializeComponent(); | |
Grafico.Chart = new Microcharts.DonutChart() { Entries = entries }; | |
} | |
... |
This file contains 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
... | |
public GraficoLinha() | |
{ | |
InitializeComponent(); | |
Grafico.Chart = new Microcharts.LineChart() { Entries = entries }; | |
} | |
... |