Class: Browser::Event::DeviceMotion
- Inherits:
-
Browser::Event
- Object
- Browser::Event
- Browser::Event::DeviceMotion
- Defined in:
- opal/browser/event/device_motion.rb
Defined Under Namespace
Classes: Acceleration, Definition
Instance Attribute Summary
Attributes inherited from Browser::Event
Class Method Summary collapse
Methods inherited from Browser::Event
aliases, #arguments, #arguments=, class_for, create, handlers, handles, #initialize, #name, name_for, new, #off, #prevent, #prevented?, #stop, #stop!, #stopped?, #target
Constructor Details
This class inherits a constructor from Browser::Event
Class Method Details
permalink .construct(name, desc) ⇒ Object
[View source]
22 23 24 |
# File 'opal/browser/event/device_motion.rb', line 22 def self.construct(name, desc) `new DeviceMotionEvent(#{name}, #{desc})` end |
permalink .supported? ⇒ Boolean
8 9 10 |
# File 'opal/browser/event/device_motion.rb', line 8 def self.supported? Browser.supports? 'Event.DeviceMotion' end |