Sha256: 284e1fbee20caf6f0cf0a0564c36ee4d352a93b1da7886a8b2b2f2186bc6c1b4

Contents?: true

Size: 733 Bytes

Versions: 11

Compression:

Stored size: 733 Bytes

Contents

class TestDelegate < ProMotion::Delegate
  status_bar false

  attr_accessor :called_on_load, :called_will_load, :called_on_activate, :called_will_deactivate, :called_on_enter_background, :called_will_enter_foreground, :called_on_unload

  def on_load(app, options)
    self.called_on_load = true
  end

  def will_load(application, launch_options)
    self.called_will_load = true
  end

  def on_activate
    self.called_on_activate = true
  end

  def will_deactivate
    self.called_will_deactivate = true
  end

  def on_enter_background
    self.called_on_enter_background = true
  end

  def will_enter_foreground
    self.called_will_enter_foreground = true
  end

  def on_unload
    self.called_on_unload = true
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/test_delegate.rb
ProMotion-1.2.0 spec/helpers/test_delegate.rb
ProMotion-1.1.2 spec/helpers/test_delegate.rb
ProMotion-1.1.1 spec/helpers/test_delegate.rb
ProMotion-1.1.0 spec/helpers/test_delegate.rb
ProMotion-1.1.0.rc1 spec/helpers/test_delegate.rb
ProMotion-1.0.4 spec/helpers/test_delegate.rb
ProMotion-1.0.3 spec/helpers/test_delegate.rb
ProMotion-1.0.2 spec/helpers/test_delegate.rb
ProMotion-1.0.1 spec/helpers/test_delegate.rb
ProMotion-1.0.0 spec/helpers/test_delegate.rb