CDVPlugin has a viewController property that is currently typed as UIViewController*. However, it is only ever set from within CDVViewController and is always set to a CDVViewController* instance.
Feature Description
We should just update the CDVPlugin API so that viewController is typed as CDVViewController* rather than UIViewController*.
Since CDVViewController is a subclass of UIViewController this shouldn't break any plugins, but it is an API change and should be handled in the next major.
Alternatives or Workarounds
Currently the standard practice is to just cast (CDVViewController*)self.viewController everywhere, which works fine but is kinda annoying.
Feature Request
Motivation Behind Feature
CDVPlugin
has aviewController
property that is currently typed asUIViewController*
. However, it is only ever set from withinCDVViewController
and is always set to aCDVViewController*
instance.Feature Description
We should just update the
CDVPlugin
API so thatviewController
is typed asCDVViewController*
rather thanUIViewController*
.Since
CDVViewController
is a subclass ofUIViewController
this shouldn't break any plugins, but it is an API change and should be handled in the next major.Alternatives or Workarounds
Currently the standard practice is to just cast
(CDVViewController*)self.viewController
everywhere, which works fine but is kinda annoying.