Module: MotionPrime::DelegateBaseMixin

Included in:
BaseAppDelegate
Defined in:
motion-prime/delegate/_base_mixin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#windowObject

Returns the value of attribute window.



3
4
5
# File 'motion-prime/delegate/_base_mixin.rb', line 3

def window
  @window
end

Instance Method Details

#application(application, didFailToRegisterForRemoteNotificationsWithError: error) ⇒ Object



5
6
7
8
9
10
11
# File 'motion-prime/delegate/_base_mixin.rb', line 5

def application(application, willFinishLaunchingWithOptions:opts)
  MotionPrime::Config.configure!
  MotionPrime::Styles.define!
  Prime.logger.info "Loading Prime application with env: #{Prime.env}"
  application.setStatusBarStyle UIStatusBarStyleLightContent
  application.setStatusBarHidden false
end

#content_controllerObject

Return content controller (without sidebar)



35
36
37
# File 'motion-prime/delegate/_base_mixin.rb', line 35

def content_controller
  main_controller.content_controller
end

#main_controllerObject

Return the main controller.



30
31
32
# File 'motion-prime/delegate/_base_mixin.rb', line 30

def main_controller
  window.rootViewController
end

#on_load(application, launch_options) ⇒ Object



26
27
# File 'motion-prime/delegate/_base_mixin.rb', line 26

def on_load(application, launch_options)
end