whenever multiple clicks on share button will give multiple window/popup for it any idea?

public ICommand ShareGallery => new Command((object GalleryData) =>
{
var Source = new List();
foreach (var gallery in (ObservableCollection)GalleryData)
{
Source.Add(new UriImageSource()
{
Uri = new System.Uri(gallery.ImageUri)
});
}

        Device.BeginInvokeOnMainThread(async () =>
        {
            DependencyService.Get<IShare>().Share("", "", Source);
        });
    });

Answers

  • Ahsanzz1Ahsanzz1 Member ✭✭

    Disable the button on tap event and re-enable when the functionality is done. It will restrict the double tap until the function is completed

Sign In or Register to comment.