Justin
04/01/2019, 8:51 PMval jobScheduler = context.getSystemService(Context.JOB_SCHEDULER_SERVICE) as android.app.job.JobScheduler
jobScheduler.allPendingJobs
where jobScheduler.allPendingJobs
is property syntax for the abstract method JobScheduler#getAllPendingJobs
Initially I figured I’m just accessing a member variable of the JobScheduler
(apparently abstract) class but when I dive into JobScheduler
, I noticed that allPendingJobs
is actually an abstract method, which, for all I know, is doing some intensive work and has not already done that work
I guess what I’m asking is, why does Kotlin and/or the IDE use property syntax on abstract methods? or am I misunderstanding what “property syntax” means? or…?
Thanks for your time!Justin
04/01/2019, 9:01 PMlouiscad
04/01/2019, 9:34 PMJustin
04/01/2019, 11:15 PMgildor
04/01/2019, 11:57 PM