AndroidSupportComponents
AndroidSupportComponents copied to clipboard
[WorkManager] StartMethod is missing from ListenableWorker
Hi everyone,
Xamarin.Android Version (eg: 6.0):
9.4.1.0
Operating System & Version (eg: Mac OSX 10.11):
macOS Mojave 10.14.6
Support Libraries Version (eg: 23.3.0):
28.0.0.1
Describe your Issue:
I am trying to implement WorkManager for one of my work's projects and I wanted to use ListenableWorker to do some async work. I can inherit from it, but the startMethod is missing from the available methods.
Steps to Reproduce (with link to sample solution if possible):
- create a new CustomWorker class inheriting from ListenableWorker
- type the keyword 'override' into this last one to find any methods that can be override
- observe that startMethod is missing from the available choices
Using Rider and decompiling ListenableWorker, it's clear that the private / public delegates for the related method are missing.
Include any relevant Exception Stack traces, build logs, adb logs:
N/A
I am creating this new issue after that @moljac asked me to do so into the issue #152 . You may find more informations into this last one.
I thank you in advance for your responses and your time! Best regards,
What is status of this task? I waiting too this feature..
Same here. After on year no news?
Hello? Could you please get this method added?
If you need to use ListenableWorker in Xamarin Android today, use the Xamarin.AndroidX.Work.Runtime NuGet package, not Xamarin.Android.Arch.Work.Runtime. I wrote more about it here.