Automattic\Jetpack\Device_Detection

User_Agent_Info::is_tablet()publicWPSCache 1.0

Detects if the user is using a tablet. props Corey Gilmore, BGR.com

Method of the class: User_Agent_Info{}

No Hooks.

Return

true|false.

Usage

$User_Agent_Info = new User_Agent_Info();
$User_Agent_Info->is_tablet();

User_Agent_Info::is_tablet() code WPSCache 1.12.0

public function is_tablet() {
	return ( 0 // Never true, but makes it easier to manage our list of tablet conditions.
			|| self::is_ipad()
			|| self::is_android_tablet()
			|| self::is_blackberry_tablet()
			|| self::is_kindle_fire()
			|| self::is_MaemoTablet()
			|| self::is_TouchPad()
	);
}