@property<EOL><INDENT>def state(self):<DEDENT>
<EOL>if not self.available:<EOL><INDENT>return STATE_UNKNOWN<EOL><DEDENT>if not self.screen_on:<EOL><INDENT>return STATE_OFF<EOL><DEDENT>if not self.awake:<EOL><INDENT>return STATE_IDLE<EOL><DEDENT>if self.launcher or self.settings:<EOL><INDENT>return STATE_STANDBY<EOL><DEDENT>if self.wake_lock:<EOL><INDENT>return STATE_PLAYING<EOL><DEDENT>return STATE_PAUSED<EOL>
Compute and return the device state.

        :returns: Device state.