\Agent

[WeEngine System] Copyright (c) 2014 WE7.CC WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.

Summary

Methods
Properties
Constants
getDeviceInfo()
browserType()
osType()
deviceType()
isRetina()
isIos6()
isMicroMessage()
isAppInstalled()
isMobile()
getAgent()
No public properties found
DEVICE_MOBILE
DEVICE_DESKTOP
DEVICE_UNKNOWN
BROWSER_TYPE_IPHONE
BROWSER_TYPE_IPAD
BROWSER_TYPE_IPOD
BROWSER_TYPE_ANDROID
BROWSER_TYPE_UNKNOWN
OS_TYPE_IOS
OS_TYPE_ANDROID
OS_TYPE_UNKNOWN
RETINA_TYPE_YES
RETINA_TYPE_NOT
IOS6_YES
IOS6_NOT
MICRO_MESSAGE_YES
MICRO_MESSAGE_NOT
APP_INSTALLED_YES
APP_INSTALLED_NOT
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DEVICE_MOBILE

DEVICE_MOBILE = 1

DEVICE_DESKTOP

DEVICE_DESKTOP = 2

DEVICE_UNKNOWN

DEVICE_UNKNOWN = -1

BROWSER_TYPE_IPHONE

BROWSER_TYPE_IPHONE = 1

BROWSER_TYPE_IPAD

BROWSER_TYPE_IPAD = 2

BROWSER_TYPE_IPOD

BROWSER_TYPE_IPOD = 3

BROWSER_TYPE_ANDROID

BROWSER_TYPE_ANDROID = 4

BROWSER_TYPE_UNKNOWN

BROWSER_TYPE_UNKNOWN = -1

OS_TYPE_IOS

OS_TYPE_IOS = 1

OS_TYPE_ANDROID

OS_TYPE_ANDROID = 2

OS_TYPE_UNKNOWN

OS_TYPE_UNKNOWN = -1

RETINA_TYPE_YES

RETINA_TYPE_YES = 1

RETINA_TYPE_NOT

RETINA_TYPE_NOT = 0

IOS6_YES

IOS6_YES = 1

IOS6_NOT

IOS6_NOT = 0

MICRO_MESSAGE_YES

MICRO_MESSAGE_YES = 1

MICRO_MESSAGE_NOT

MICRO_MESSAGE_NOT = 0

APP_INSTALLED_YES

APP_INSTALLED_YES = 1

APP_INSTALLED_NOT

APP_INSTALLED_NOT = 0

Methods

getDeviceInfo()

getDeviceInfo() 

browserType()

browserType(  $agent = '') 

Parameters

$agent

osType()

osType(  $agent = '') 

Parameters

$agent

deviceType()

deviceType() 

isRetina()

isRetina(  $agent = '') 

Parameters

$agent

isIos6()

isIos6(  $agent = '') 

Parameters

$agent

isMicroMessage()

isMicroMessage(  $agent = '') 

Parameters

$agent

isAppInstalled()

isAppInstalled() 

isMobile()

isMobile() 

getAgent()

getAgent(  $agent = '') 

Parameters

$agent