Change api for NotificationElement (#15087)

- Rename closeNotification to close()
- Remove getText() override

Change-Id: I3ad5dfe7c070f22432b8baaa10309bbf58431b58