class UnderOs::Page::UIViewControllerWrap
A simple wrap over UIViewController to intercept the iOS events
Attributes
wrapper[R]
Public Instance Methods
didRotateFromInterfaceOrientation(orientation)
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 153 def didRotateFromInterfaceOrientation(orientation) super @options[:on_view_rotate].call end
init(wrapper, options)
click to toggle source
# File lib/under_os/page.rb, line 117 def init(wrapper, options) @wrapper = wrapper @options = options initWithNibName(nil, bundle: nil) end
loadView()
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 123 def loadView super @options[:on_load_view].call end
prefersStatusBarHidden()
click to toggle source
# File lib/under_os/page.rb, line 158 def prefersStatusBarHidden !UnderOs::App.config.status_bar end
touchesBegan(touches, withEvent:event)
click to toggle source
# File lib/under_os/page.rb, line 162 def touchesBegan(touches, withEvent:event) UnderOs::UI::Events::TouchListeners.notify :touchstart, event end
touchesCancelled(touches, withEvent: event)
click to toggle source
# File lib/under_os/page.rb, line 174 def touchesCancelled(touches, withEvent: event) UnderOs::UI::Events::TouchListeners.notify :touchcancel, event end
touchesEnded(touches, withEvent: event)
click to toggle source
# File lib/under_os/page.rb, line 170 def touchesEnded(touches, withEvent: event) UnderOs::UI::Events::TouchListeners.notify :touchend, event end
touchesMoved(touches, withEvent:event)
click to toggle source
# File lib/under_os/page.rb, line 166 def touchesMoved(touches, withEvent:event) UnderOs::UI::Events::TouchListeners.notify :touchmove, event end
viewDidAppear(animated)
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 138 def viewDidAppear(animated) super @options[:on_view_appear].call end
viewDidDisappear(animated)
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 143 def viewDidDisappear(animated) super @options[:on_view_disappear].call end
viewDidLoad()
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 128 def viewDidLoad super @options[:on_view_loaded].call end
viewWillAppear(animated)
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 133 def viewWillAppear(animated) super(animated) @options[:on_view_preappear].call end
viewWillLayoutSubviews()
click to toggle source
Calls superclass method
# File lib/under_os/page.rb, line 148 def viewWillLayoutSubviews super @options[:on_view_rerender].call end