Sha256: 460d7a0700ef3cce54bb02beba2ac2be3943b1d3eb6bcde38ae675d50ee3f443
Contents?: true
Size: 597 Bytes
Versions: 5
Compression:
Stored size: 597 Bytes
Contents
class AnimatorListenerWrapper def initialize @native = Java::com.droiuby.wrappers::AnimatorListenerRubyWrapper.new(_execution_bundle, self) @blocks = {} end def set_block(sym, &block) @blocks[sym.to_sym] = block end def onAnimationStart @block[:start].call if @block.has_key? :start end def onAnimationEnd @block[:end].call if @block.has_key? :end end def onAnimationCancel @block[:cancel].call if @block.has_key? :cancel end def onAnimationRepeat @block[:repeat].call if @block.has_key? :repeat end def to_native @native end end
Version data entries
5 entries across 5 versions & 1 rubygems