BeginAction(() => { // code to execute });
BeginAction(() => { // code to execute }, () => { // completion callback });
/* using Xamarin.Forms package */ using Xamarin.Forms; Button button1 = new Button { Text = "Click Me", Command = new Command(() => { BeginAction(() => { // code to execute }); }) };This example shows how to use BeginAction with Xamarin.Forms package. A button is created, and a new action sequence is started when the button is clicked. The package library used in these examples might be Xamarin.Forms or any other library used for mobile app development.