The FRUBIL object

After a new FRUBIL object is created, it contains a number of properties and functions. All of these properties are guaranteed to be present.

Properties:

FRUBIL.status - an object that contains information about the detection status

status properties description values
FRUBIL.status.value an integer containing the status number 1 = OK, O = Error

FRUBIL.client - an object that contains information about the client

client properties description value example
FRUBIL.client.class a string containing the type of the client (for people) Mobile browser
FRUBIL.client.class_code a string containing the type of the client (for machine processing) mobile_browser
FRUBIL.client.name a string containing the name of the client (for people) Mobile Samsung Browser
FRUBIL.client.name_code a string containing the name of the client (for machine processing) mobile_samsung_browser
FRUBIL.client.version a string containing version the of the client 3.5
FRUBIL.client.version_major an integer containing the major version the of the client 3
FRUBIL.client.os a string containing the OS of the client (for people) Android 5.1 lollipop
FRUBIL.client.os_code a string containing the OS of the client (for machine processing) android_5_1
FRUBIL.client.os_family a string containing the OS Family of the client (for people) Android
FRUBIL.client.os_family_code a string containing the OS Family of the client (for machine processing) android

FRUBIL.device - an object that contains information about the device

device properties description value example
FRUBIL.device.class a string containing the type of the device (for people) Smartphone
FRUBIL.device.class_code a string containing the type of the device (for machine processing) smartphone
FRUBIL.device.brand a string containing the manufacturer of the device (for people) Samsung
FRUBIL.device.brand_code a string containing the manufacturer of the device (for machine processing) samsung
FRUBIL.device.marketname as string containing the marketname of the device Galaxy A5 (2016)

Functions:

FRUBIL.client.isClass()
FRUBIL.client.isClass(class [,class [,class [,class]]])
If a single argument is used, the function returns true if the argument matches the FRUBIL.client.class or FRUBIL.client.class_code propery of FRUBIL.client obejct. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false.

FRUBIL.client.isOs()
FRUBIL.client.isOs(os [,os [,os [,os]]])
If a single argument is used, the function returns true if the argument matches the FRUBIL.client.os or FRUBIL.client.os_code propery of FRUBIL.client obejct. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false.

FRUBIL.client.isOsFamily()
FRUBIL.client.isOsFamily(os_family [,os_family [,os_family [,os_family]]])
If a single argument is used, the function returns true if the argument matches the FRUBIL.client.os_family or FRUBIL.client.os_family_code propery of FRUBIL.client obejct. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false.

FRUBIL.device.isClass()
FRUBIL.device.isClass(class [,class [,class [,class]]])
If a single argument is used, the function returns true if the argument matches the FRUBIL.device.class or FRUBIL.device.class_code propery of FRUBIL.device obejct. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false.

FRUBIL.device.isBrand()
FRUBIL.device.isBrand(brand [,brand [,brand [,brand]]])
If a single argument is used, the function returns true if the argument matches the FRUBIL.device.brand or FRUBIL.device.brand_code propery of FRUBIL.device obejct. It can use multiple arguments in which case the function returns true if one of the arguments matches. If none of the arguments matches, it returns false.

Lists of class values

FRUBIL.client.class / FRUBIL.client.class_code

class class_code
Browser browser
Offline browser offline_browser
Mobile browser mobile_browser
E-mail client email_client
Library library
Wap browser wap_browser
Validator validator
Feed reader feed_reader
Multimedia player multimedia_player
Unrecognized unrecognized
Useragent anonymizer useragent_anonymizer
Crawler Crawler

FRUBIL.device.class / FRUBIL.device.class_code

class class_code
Desktop desktop
Tablet tablet
Smartphone smartphone
Game console game_console
Smart TV smart_tv
Wearable computer wearable_computer
PDA pda
Unrecognized unrecognized
x We have placed cookies on your device to make your experience better. Find more info here.