Exemple #1
0
 private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem is StickerSetInfo stickerSet)
     {
         await StickerSetView.GetForCurrentView().ShowAsync(stickerSet.Id);
     }
 }
Exemple #2
0
        private async void StickersExecute()
        {
            if (_selectedItem != null && _selectedItem.HasStickers)
            {
                var file = _selectedItem.GetFile();
                if (file == null)
                {
                    return;
                }

                var response = await ProtoService.SendAsync(new GetAttachedStickerSets(file.Id));

                if (response is StickerSets sets)
                {
                    if (sets.Sets.Count > 1)
                    {
                        await AttachedStickersView.GetForCurrentView().ShowAsync(sets.Sets);
                    }
                    else if (sets.Sets.Count > 0)
                    {
                        await StickerSetView.GetForCurrentView().ShowAsync(sets.Sets[0].Id);
                    }
                }
            }
        }
Exemple #3
0
 public static async void NavigateToStickerSet(string text)
 {
     await StickerSetView.GetForCurrentView().ShowAsync(text);
 }