Class: Motion::Xray::XrayWindow

Inherits:
UIWindow
  • Object
show all
Defined in:
lib/motion-xray/views/xray_window.rb

Instance Method Summary collapse

Methods inherited from UIWindow

xray

Instance Method Details

#motionEnded(motion, withEvent: event) ⇒ Object


5
6
7
8
9
10
11
# File 'lib/motion-xray/views/xray_window.rb', line 5

def motionEnded(motion, withEvent:event)
  if RUBYMOTION_ENV == 'development' && event.type == UIEventSubtypeMotionShake
    Xray.toggle
  else
    super
  end
end