implement yande.re source

This commit is contained in:
2021-08-06 17:18:18 +08:00
parent 600d81a3f1
commit 9d316cba77
18 changed files with 486 additions and 2 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.ComponentModel;
using Gallery.Util;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
@ -11,5 +12,20 @@ namespace Gallery.Views
{
InitializeComponent();
}
protected override async void OnAppearing()
{
base.OnAppearing();
var result = await App.GallerySources[0].GetRecentItemsAsync(1);
if (result != null)
{
for (var i = 0; i < result.Length; i++)
{
var item = result[i];
Log.Print($"id: {item.Id}, url: {item.RawUrl}");
}
}
}
}
}