Since this is part of your public API and will be used by the battery controller code, I'd give it a more explicit name. You have showNotification, so this should be hidePersistentNotification, I think.  Or just hideNotification(), if you make clearMessage into a private function.