Build 1.0_r1(from source)

android.os
Class Broadcaster

java.lang.Object
  extended by android.os.Broadcaster

public class Broadcaster
extends Object


Constructor Summary
Broadcaster()
           
 
Method Summary
 void broadcast(Message msg)
          Send out msg.
 void cancelRequest(int senderWhat, Handler target, int targetWhat)
          Unregister for notifications for this senderWhat/target/targetWhat tuple.
 void dumpRegistrations()
          For debugging purposes, print the registrations to System.out
 void request(int senderWhat, Handler target, int targetWhat)
          Sign up for notifications about something.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Broadcaster

public Broadcaster()
Method Detail

request

public void request(int senderWhat,
                    Handler target,
                    int targetWhat)
Sign up for notifications about something. When this broadcaster pushes a message with senderWhat in the what field, target will be sent a copy of that message with targetWhat in the what field.


cancelRequest

public void cancelRequest(int senderWhat,
                          Handler target,
                          int targetWhat)
Unregister for notifications for this senderWhat/target/targetWhat tuple.


dumpRegistrations

public void dumpRegistrations()
For debugging purposes, print the registrations to System.out


broadcast

public void broadcast(Message msg)
Send out msg. Anyone who has registered via the request() method will be sent the message.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature