class UIViewController
Public Class Methods
rmq_style_sheet_class()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 59 def self.rmq_style_sheet_class @rmq_style_sheet_class end
stylesheet(style_sheet_class)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 55 def self.stylesheet(style_sheet_class) @rmq_style_sheet_class = style_sheet_class end
Public Instance Methods
append(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 3 def append(view_or_constant, style=nil, opts = {}) self.rmq.append(view_or_constant, style, opts) end
append!(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 6 def append!(view_or_constant, style=nil, opts = {}) self.rmq.append!(view_or_constant, style, opts) end
build(view_or_constant, style = nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 24 def build(view_or_constant, style = nil, opts = {}) self.rmq.build(view_or_constant, style, opts) end
build!(view_or_constant, style = nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 27 def build!(view_or_constant, style = nil, opts = {}) self.rmq.build!(view_or_constant, style, opts) end
color()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 35 def color self.rmq.color end
create(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 17 def create(view_or_constant, style=nil, opts = {}) self.rmq.create(view_or_constant, style, opts) end
create!(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 20 def create!(view_or_constant, style=nil, opts = {}) self.rmq.create!(view_or_constant, style, opts) end
didRotateFromInterfaceOrientation(orientation)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 143 def didRotateFromInterfaceOrientation(orientation) self.on_rotate orientation end
font()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 39 def font self.rmq.font end
image()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 43 def image self.rmq.image end
on_load()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 63 def on_load end
on_rotate(orientation)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 140 def on_rotate(orientation) end
prepend(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 10 def prepend(view_or_constant, style=nil, opts = {}) self.rmq.prepend(view_or_constant, style, opts) end
prepend!(view_or_constant, style=nil, opts = {})
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 13 def prepend!(view_or_constant, style=nil, opts = {}) self.rmq.prepend!(view_or_constant, style, opts) end
reapply_styles()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 31 def reapply_styles self.rmq.all.reapply_styles end
shouldAutorotate()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 129 def shouldAutorotate self.should_autorotate end
shouldAutorotateToInterfaceOrientation(orientation)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 121 def shouldAutorotateToInterfaceOrientation(orientation) self.should_rotate(orientation) end
should_autorotate()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 125 def should_autorotate true end
should_rotate(orientation)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 118 def should_rotate(orientation) end
stylesheet()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 47 def stylesheet self.rmq.stylesheet end
stylesheet=(value)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 51 def stylesheet=(value) self.rmq.stylesheet = value end
viewDidAppear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 94 def viewDidAppear(animated) unless pm_handles_delegates? self.view_did_appear(animated) end end
viewDidDisappear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 112 def viewDidDisappear(animated) unless pm_handles_delegates? self.view_did_disappear(animated) end end
viewDidLoad()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 70 def viewDidLoad set_stylesheet self.originalViewDidLoad unless pm_handles_delegates? unless self.class.included_modules.include?(ProMotion::ScreenModule) self.view_did_load end self.on_load end end
Also aliased as: originalViewDidLoad
viewWillAppear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 85 def viewWillAppear(animated) unless pm_handles_delegates? self.view_will_appear(animated) end end
viewWillDisappear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 103 def viewWillDisappear(animated) unless pm_handles_delegates? self.view_will_disappear(animated) end end
view_did_appear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 91 def view_did_appear(animated) end
view_did_disappear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 109 def view_did_disappear(animated) end
view_did_load()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 66 def view_did_load end
view_will_appear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 82 def view_will_appear(animated) end
view_will_disappear(animated)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 100 def view_will_disappear(animated) end
willAnimateRotationToInterfaceOrientation(orientation, duration: duration)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 150 def willAnimateRotationToInterfaceOrientation(orientation, duration: duration) self.will_animate_rotate(orientation, duration) end
willRotateToInterfaceOrientation(orientation, duration:duration)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 136 def willRotateToInterfaceOrientation(orientation, duration:duration) self.will_rotate(orientation, duration) end
will_animate_rotate(orientation, duration)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 147 def will_animate_rotate(orientation, duration) end
will_rotate(orientation, duration)
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 133 def will_rotate(orientation, duration) end
Protected Instance Methods
set_stylesheet()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 156 def set_stylesheet if self.class.rmq_style_sheet_class self.rmq.stylesheet = self.class.rmq_style_sheet_class self.view.rmq.apply_style(:root_view) if self.rmq.stylesheet.respond_to?(:root_view) end end
Private Instance Methods
pm_handles_delegates?()
click to toggle source
# File lib/project/ext/ui_view_controller.rb, line 165 def pm_handles_delegates? self.respond_to?(:class_handles_delegates?) && self.class_handles_delegates? end