updated. detectView API removed.