implement yande.re source
This commit is contained in:
@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user