Sha256: d54949daadffedbc5b8a0464a4b687bd81c8da478d46c6114b2faacb5c5dbbd4

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

require 'ruboto/broadcast_receiver'

# will get called whenever the BroadcastReceiver receives an intent (whenever onReceive is called)
RubotoBroadcastReceiver.new_with_callbacks do
  def on_receive(context, intent)
    Log.v "MYAPP", intent.getExtras.to_s
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruboto-0.5.4 assets/samples/sample_broadcast_receiver.rb
ruboto-0.5.3 assets/samples/sample_broadcast_receiver.rb