Is this a reliable means of device detection, ie iPad, iPhone, Android, etc.. ?

Or is there a sensible alternative ?

Is there a definitive list of device names ?

Many thanks..