Polyaniline
(PANI), a conductive polymer, is a promising active
material for optical switching. In most studies, active switching
has so far been realized only between two states, whereas PANI has
a total of six states. The optical properties of nanoscale PANI in
all six states have remained unclear. Herein we report on all-state
switching of the Mie resonance on PANI nanospheres (NSs) and active
plasmon switching on PANI-coated Au nanodisks (NDs). All-state switching
of differently sized PANI NSs is achieved by proton doping/dedoping
and electrochemical methods. Theoretical studies show that the scattering
peaks of the individual PANI NSs originate from Mie resonances. All-state
switching is further demonstrated on PANI-coated circular Au NDs,
where an unprecedentedly large plasmon peak shift of ∼200 nm
is realized. Our study not only provides a fundamental understanding
of the optical properties of PANI but also opens the probability for
developing high-performance dynamic media for active plasmonics.