class Browser::Device

Defined in:

browser/device.cr
browser/device/android.cr
browser/device/base.cr
browser/device/blackberry_playbook.cr
browser/device/ipad.cr
browser/device/iphone.cr
browser/device/ipod_touch.cr
browser/device/kindle.cr
browser/device/kindle_fire.cr
browser/device/playstation3.cr
browser/device/playstation4.cr
browser/device/psp.cr
browser/device/psvita.cr
browser/device/surface.cr
browser/device/switch.cr
browser/device/tv.cr
browser/device/unknown.cr
browser/device/wii.cr
browser/device/wiiu.cr
browser/device/xbox_360.cr
browser/device/xbox_one.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ua : String) #

[View source]

Class Method Detail

def self.matchers #

Hold the list of device matchers. Order is important.


[View source]

Instance Method Detail

def blackberry_playbook? #

[View source]
def console? #

Detect if browser is console (currently Xbox, PlayStation, or Nintendo).


[View source]
def id : String #

[View source]
def ipad? #

[View source]
def iphone? #

[View source]
def ipod? #

[View source]
def ipod_touch? #

[View source]
def kindle? #

[View source]
def kindle_fire? #

[View source]
def mobile? #

Detect if browser is mobile.


[View source]
def name : String #

[View source]
def nintendo? #

Detect if browser is Nintendo.


[View source]
def nintendo_switch? #

[View source]
def nintendo_wii? #

[View source]
def nintendo_wiiu? #

[View source]
def playbook? #

[View source]
def playstation3? #

[View source]
def playstation4? #

[View source]
def playstation? #

Detect if browser is running under PlayStation.


[View source]
def playstation_vita? #

[View source]
def ps3? #

[View source]
def ps4? #

[View source]
def psp? #

[View source]
def psp_vita? #

[View source]
def silk? #

Detect if browser is Silk.


[View source]
def subject #

[View source]
def surface? #

[View source]
def switch? #

[View source]
def tablet? #

Detect if browser is tablet (currently iPad, Android, Surface or Playbook).


[View source]
def tv? #

[View source]
def ua : String #

[View source]
def unknown? #

[View source]
def vita? #

[View source]
def wii? #

[View source]
def wiiu? #

[View source]
def xbox? #

Detect if browser is running under Xbox.


[View source]
def xbox_360? #

Detect if browser is running under Xbox 360.


[View source]
def xbox_one? #

Detect if browser is running under Xbox One.


[View source]