Sha256: d49d79d48a9f4564b6f28e85450dfd2619e92b06e1501d437e11a347affd464f

Contents?: true

Size: 963 Bytes

Versions: 5

Compression:

Stored size: 963 Bytes

Contents

module MotionPrime
  module DelegateBaseMixin
    attr_accessor :window

    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

    def application(application, didFinishLaunchingWithOptions:launch_options)
      on_load(application, launch_options)
      true
    end

    def application(application, didRegisterForRemoteNotificationsWithDeviceToken: token)
      on_apn_register_success(application, token)
    end
    def application(application, didFailToRegisterForRemoteNotificationsWithError: error)
      on_apn_register_fail(application, error)
    end

    def on_load(application, launch_options)
    end

    def app_window
      self.app_delegate.window
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
motion-prime-0.9.4 motion-prime/delegate/_base_mixin.rb
motion-prime-0.9.3 motion-prime/delegate/_base_mixin.rb
motion-prime-0.9.2 motion-prime/delegate/_base_mixin.rb
motion-prime-0.9.1 motion-prime/delegate/_base_mixin.rb
motion-prime-0.9.0 motion-prime/delegate/_base_mixin.rb