Hello,
Recently I created one using Google Firebase, ultilizo from User Authentication to record real-time database.
var eventoColetadorOk = true;
listView.ItemAppearing += async (s, e) =>
{
if (eventoColetadorOk)
{
FirebaseClient clienteDB = new FirebaseClient("https://YOURACCOUNTFIREBASE.firebaseio.com/");
coletadorDataEspecial2 = await clienteDB
.Child("lancamentos")
.Child(Login.Login.auth.User.LocalId)
.OnceAsync<Lancamentos>();
foreach (var item2 in coletadorDataEspecial2)
{
DateTime conveterData = Convert.ToDateTime($"{item2.Object.Data}");
collection.Add(new CalendarInlineEvent { StartTime = conveterData, EndTime = conveterData, Subject = item2.Object.Descricao });
LRetorno.Add(new LancamentosRetorno
{
Descricao = item2.Object.Descricao,
Valor = item2.Object.Valor,
Data = item2.Object.Data,
Categoria = item2.Object.Categoria,
Tipo = item2.Object.Tipo,
Forma = item2.Object.Forma,
EstaPago = item2.Object.EstaPago
});
}
eventoColetadorOk = false;
}
}
public class Lancamentos
{
public string Descricao { get; set; }
public string Valor { get; set; }
public string Data { get; set; }
public string Categoria { get; set; }
public string Tipo { get; set; }
public string Forma { get; set; }
public bool EstaPago { get; set; }
}
if you need the code can post here for a sample,
as you can see I collect the information you only need the first time Listview displays.
put the whole event in listview not find another better place, so my application was fast and practice.
I not left completely in real time it can consume a lot User band, since Brazil in my country, that the developer has to take into consideration!
I have helped!
good luck!