Class: BasicScreen

Inherits:
PM::Screen
  • Object
show all
Defined in:
app/screens/basic_screen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#animation_tsObject (readonly)

Returns the value of attribute animation_ts.



4
5
6
# File 'app/screens/basic_screen.rb', line 4

def animation_ts
  @animation_ts
end

Instance Method Details

#on_appearObject



10
11
12
13
# File 'app/screens/basic_screen.rb', line 10

def on_appear
  @on_appear_ts = NSDate.date
  @animation_ts = @on_appear_ts - @will_appear_ts
end

#will_appearObject



6
7
8
# File 'app/screens/basic_screen.rb', line 6

def will_appear
  @will_appear_ts = NSDate.date
end