See: ui0detect