class Browser::Device
- Browser::Device
- Reference
- Object
Defined in:
browser/device.crbrowser/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
-
.matchers
Hold the list of device matchers.
Instance Method Summary
- #blackberry_playbook?
-
#console?
Detect if browser is console (currently Xbox, PlayStation, or Nintendo).
- #id : String
- #ipad?
- #iphone?
- #ipod?
- #ipod_touch?
- #kindle?
- #kindle_fire?
-
#mobile?
Detect if browser is mobile.
- #name : String
-
#nintendo?
Detect if browser is Nintendo.
- #nintendo_switch?
- #nintendo_wii?
- #nintendo_wiiu?
- #playbook?
- #playstation3?
- #playstation4?
-
#playstation?
Detect if browser is running under PlayStation.
- #playstation_vita?
- #ps3?
- #ps4?
- #psp?
- #psp_vita?
-
#silk?
Detect if browser is Silk.
- #subject
- #surface?
- #switch?
-
#tablet?
Detect if browser is tablet (currently iPad, Android, Surface or Playbook).
- #tv?
- #ua : String
- #unknown?
- #vita?
- #wii?
- #wiiu?
-
#xbox?
Detect if browser is running under Xbox.
-
#xbox_360?
Detect if browser is running under Xbox 360.
-
#xbox_one?
Detect if browser is running under Xbox One.