AI-generated Key Takeaways
-
PublishOptions provides options for calls to Messages.publish.
-
Instances of PublishOptions should be created using the PublishOptions.Builder.
-
PublishOptions has a default instance available.
-
You can retrieve the publishing callback and strategy using the getCallback and getStrategy methods.
Options for calls to
Messages.publish(GoogleApiClient, Message)
.
Use the PublishOptions.Builder
to create an instance of this class, e.g.:
PublishOptions options = new PublishOptions.Builder()
.setStrategy(someStrategy)
.setCallback(myCallback)
.build();
Nested Class Summary
class | PublishOptions.Builder | Builder for instances of PublishOptions . |
Field Summary
public static final PublishOptions | DEFAULT |
Public Method Summary
PublishCallback |
getCallback()
Gets the publishing callback.
|
Strategy |
getStrategy()
Gets the publishing strategy.
|
Inherited Method Summary
Fields
public static final PublishOptions DEFAULT
Public Methods
public PublishCallback getCallback ()
Gets the publishing callback.
public Strategy getStrategy ()
Gets the publishing strategy.