Show Lottie Animation during a process

Jassim Al Rahma 1,521 Reputation points
2021-09-07T20:36:42.57+00:00

Hi,

I am trying below code and need to show Lottie Animation white muy code is running but the problem is it just hangs and the Lottie animation will only be show once the whole code is completed.

Here is my code;

async void ButtonPayNow_Clicked(System.Object sender, System.EventArgs e)
{
    ButtonPayNow.IsVisible = false;
    ScrollViewPay.IsVisible = false;

    LottiePay.PlayAnimation();
    LottiePay.IsVisible = true;

    HttpClient comes here....
}

Kindly help...

Thanks,
Jassim

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,245 questions
{count} votes