Skip to content

Instantly share code, notes, and snippets.

//ESSA É A CONTROLLER DA API QUE RECEBE OS DADOS (ASPNET CORE)
[Produces("application/json")]
[Route("api/cupons/[action]")]
public class CuponsController : Controller
{
private readonly CupomDAO _cupomDao;
private readonly ClienteDAO _clienteDao;
<?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:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms"
xmlns:forms="clr-namespace:ZXing.Net.Mobile.Forms;assembly=ZXing.Net.Mobile.Forms"
x:Class="QrCodeSample.Views.VerificaQrCode">
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<forms:ZXingScannerView IsScanning="{Binding IsScanning}" IsAnalyzing="{Binding IsAnalyzing}" Result="{Binding Result, Mode=TwoWay}" ScanResultCommand="{Binding QRScanResultCommand}"></forms:ZXingScannerView>
<forms:ZXingDefaultOverlay TopText="QCLUB - Leitor QrCode" BottomText="Passe o leitor sobre o QrCode" ShowFlashButton="False" Opacity="0.9"></forms:ZXingDefaultOverlay>
</Grid>
@brunoportess
brunoportess / MainActivity.cs
Created August 31, 2017 21:19
Exemplo de BroadcastReceiver
[Activity(Label = "Cronometro", MainLauncher = true)]
public class MainActivity : Activity
{
Receiver1 receiver;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);