|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.gadgets.client.PubSubFeature
public class PubSubFeature
Provides access to the Ads APIs provided by the container.
| Nested Class Summary | |
|---|---|
static interface |
PubSubFeature.PubSubCallback
|
| Nested classes/interfaces inherited from interface com.google.gwt.gadgets.client.GadgetFeature |
|---|
GadgetFeature.FeatureName, GadgetFeature.MayRequire |
| Method Summary | |
|---|---|
void |
publish(java.lang.String channelName,
java.lang.String message)
Publishes a string-type message to a channel. |
void |
subscribe(java.lang.String channelName,
PubSubFeature.PubSubCallback callback)
Subscribes a gadget to a message channel. |
void |
unsubscribe(java.lang.String channelName)
Unsubscribes the gadget from a message channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void publish(java.lang.String channelName,
java.lang.String message)
channelName - the name of the channelmessage - the message to publish
public void subscribe(java.lang.String channelName,
PubSubFeature.PubSubCallback callback)
channelName - the name of the channelcallback - A function that will be called with the channel messagespublic void unsubscribe(java.lang.String channelName)
channelName - the name of the channel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||