Add an option to set a custom view class for notifications.