class Browser::Platform
- Browser::Platform
- Reference
- Object
Included Modules
Defined in:
browser/platform.crbrowser/platform/adobe_air.cr
browser/platform/android.cr
browser/platform/base.cr
browser/platform/blackberry.cr
browser/platform/chrome_os.cr
browser/platform/firefox_os.cr
browser/platform/ios.cr
browser/platform/linux.cr
browser/platform/mac.cr
browser/platform/unknown.cr
browser/platform/windows.cr
browser/platform/windows_mobile.cr
browser/platform/windows_phone.cr
Constructors
Class Method Summary
-
.matchers
Hold the list of platform matchers.
Instance Method Summary
-
#==(other)
Returns
false
(other can only be aValue
here). - #adobe_air?(expected_version = nil)
- #android?(expected_version = nil)
-
#android_app?
Detect if in an Android app webview (Lollipop and newer) https://developer.chrome.com/multidevice/user-agent#webview_user_agent
- #android_webview?
- #blackberry?(expected_version = nil)
- #chrome_os?(expected_version = nil)
- #firefox_os?
- #id : String
- #ios?(expected_version = nil)
-
#ios_app?
Detect if running on iOS app webview.
-
#ios_webview?
Detect if is iOS webview.
- #linux?
- #mac?(expected_version = nil)
- #name : String
- #subject
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #ua : String
- #unknown?
- #version
- #windows10?
- #windows7?
- #windows8?
- #windows8_1?
- #windows?(expected_version = nil)
- #windows_mobile?(expected_version = nil)
- #windows_phone?(expected_version = nil)
- #windows_rt?
- #windows_touchscreen_desktop?
- #windows_vista?
- #windows_wow64?
-
#windows_x64?
Detect if current platform is Windows in 64-bit architecture.
- #windows_x64_inclusive?
-
#windows_xp?
http://msdn.microsoft.com/fr-FR/library/ms537503.aspx#PltToken
Constructor Detail
Class Method Detail
Instance Method Detail
Returns false
(other can only be a Value
here).
Detect if in an Android app webview (Lollipop and newer) https://developer.chrome.com/multidevice/user-agent#webview_user_agent
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.