AndroidSupportComponents icon indicating copy to clipboard operation
AndroidSupportComponents copied to clipboard

[WorkManager] StartMethod is missing from ListenableWorker

Open toussam opened this issue 5 years ago • 4 comments

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,

toussam avatar Aug 23 '19 13:08 toussam

What is status of this task? I waiting too this feature..

igormancos avatar Apr 07 '20 08:04 igormancos

Same here. After on year no news?

ghost avatar Apr 09 '20 13:04 ghost

Hello? Could you please get this method added?

KthProg avatar Jun 23 '20 19:06 KthProg

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.

DamienDennehy avatar Jul 18 '20 11:07 DamienDennehy