On Tue, Aug 19, 2014 at 11:07 AM, Jonas Sicking <jo...@sicking.cc> wrote: > On Tue, Aug 19, 2014 at 5:35 AM, Mounir Lamouri <mou...@lamouri.fr> wrote: >> How would you handle feature detection with this design? > > This is a good question. I don't have a better solution than adding > separate DisplayWakeLock() and SystemWakeLock() classes.
Which, as others have noted, are what we want to do anyway, beyond the feature-testing angle. Different WakeLocks can grow different methods down the line. ~TJ