DeviceDetector
in package
implements
DetectorInterface
Table of Contents
Interfaces
Methods
- detect() : bool
- Determine the user's device.
- checkIpad() : bool
- Determine if the device is iPad.
- checkIphone() : bool
- Determine if the device is iPhone.
- checkSamsungPhone() : bool
- Determine if the device is Windows Phone.
- checkWindowsPhone() : bool
- Determine if the device is Windows Phone.
Methods
detect()
Determine the user's device.
public
static detect(Device $device, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckIpad()
Determine if the device is iPad.
private
static checkIpad(Device $device, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckIphone()
Determine if the device is iPhone.
private
static checkIphone(Device $device, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckSamsungPhone()
Determine if the device is Windows Phone.
private
static checkSamsungPhone(Device $device, UserAgent $userAgent) : bool
Parameters
Return values
boolcheckWindowsPhone()
Determine if the device is Windows Phone.
private
static checkWindowsPhone(Device $device, UserAgent $userAgent) : bool