Hello @DustOfRust ,
Welcome to our Microsoft Q&A platform!
I just don't know how to embed such a method in the code so that it works in the background and can send new results to UI, e.g. to Label
Try using a service to perform the background process and keep it working, start the service on Android using DependencyService. Since Android 8.0, the service is limited in background. Please use a foreground service instead.
After the process is finished, you could use MessagingCenter to send a message to let the contentPage to update the view.
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.