Module: ProMotion::DelegateModule
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
Attributes included from Tabs
#tab_bar, #tab_bar_item
Class Method Summary
collapse
Instance Method Summary
collapse
#check_for_push_notification, #received_push_notification, #register_for_push_notifications, #registered_push_notifications, #unregister_for_push_notifications
#create_split_screen, #open_split_screen, #splitViewController, #split_screen_controller
Methods included from Tabs
#create_tab_bar_icon, #create_tab_bar_icon_custom, #create_tab_bar_item, #map_tab_symbol, #open_tab, #open_tab_bar, #refresh_tab_bar_item, #replace_current_item, #set_tab_bar_badge, #set_tab_bar_item
#camel_case, #convert_symbol, #objective_c_method_name
Instance Attribute Details
#aps_notification ⇒ Object
Returns the value of attribute aps_notification.
7
8
9
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 7
def aps_notification
@aps_notification
end
|
#home_screen ⇒ Object
Returns the value of attribute home_screen.
7
8
9
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 7
def home_screen
@home_screen
end
|
#window ⇒ Object
Returns the value of attribute window.
7
8
9
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 7
def window
@window
end
|
Class Method Details
.included(base) ⇒ Object
114
115
116
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 114
def self.included(base)
base.extend(ClassMethods)
end
|
Instance Method Details
#app_delegate ⇒ Object
44
45
46
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 44
def app_delegate
self
end
|
#app_window ⇒ Object
48
49
50
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 48
def app_window
self.window
end
|
#application(application, openURL: url, sourceApplication: source_app, annotation: annotation) ⇒ Object
9
10
11
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 9
def application(application, willFinishLaunchingWithOptions:launch_options)
will_load(application, launch_options) if respond_to?(:will_load)
end
|
#applicationDidBecomeActive(application) ⇒ Object
20
21
22
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 20
def applicationDidBecomeActive(application)
on_activate if respond_to?(:on_activate)
end
|
#applicationDidEnterBackground(application) ⇒ Object
28
29
30
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 28
def applicationDidEnterBackground(application)
on_enter_background if respond_to?(:on_enter_background)
end
|
#applicationWillEnterForeground(application) ⇒ Object
32
33
34
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 32
def applicationWillEnterForeground(application)
will_enter_foreground if respond_to?(:will_enter_foreground)
end
|
#applicationWillResignActive(application) ⇒ Object
24
25
26
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 24
def applicationWillResignActive(application)
will_deactivate if respond_to?(:will_deactivate)
end
|
#applicationWillTerminate(application) ⇒ Object
36
37
38
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 36
def applicationWillTerminate(application)
on_unload if respond_to?(:on_unload)
end
|
#apply_status_bar ⇒ Object
73
74
75
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 73
def apply_status_bar
self.class.send(:apply_status_bar)
end
|
#open_screen(screen, args = {}) ⇒ Object
Also known as:
open, open_root_screen, home
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 56
def open_screen(screen, args={})
screen = screen.new if screen.respond_to?(:new)
self.home_screen = screen
self.window ||= self.ui_window.alloc.initWithFrame(UIScreen.mainScreen.bounds)
self.window.rootViewController = (screen.navigationController || screen)
self.window.tintColor = self.class.send(:get_tint_color) if self.window.respond_to?("tintColor=")
self.window.makeKeyAndVisible
screen
end
|
#status_bar? ⇒ Boolean
77
78
79
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 77
def status_bar?
UIApplication.sharedApplication.statusBarHidden
end
|
#ui_window ⇒ Object
52
53
54
|
# File 'lib/ProMotion/delegate/delegate_module.rb', line 52
def ui_window
(defined?(Motion) && defined?(Motion::Xray) && defined?(Motion::Xray::XrayWindow)) ? Motion::Xray::XrayWindow : UIWindow
end
|