Google is committed to advancing racial equity for Black communities. See how.

SubscribeOptions.Builder

public static class SubscribeOptions.Builder extends Object

Builder for instances of SubscribeOptions.

Public Constructor Summary

Public Method Summary

SubscribeOptions
SubscribeOptions.Builder
setCallback(SubscribeCallback callback)
Sets a callback which will be notified when significant events occur that affect this subscription.
SubscribeOptions.Builder
setFilter(MessageFilter filter)
Sets a filter to specify which messages to receive.
SubscribeOptions.Builder
setStrategy(Strategy strategy)
Sets a strategy for subscribing.

Inherited Method Summary

Public Constructors

public SubscribeOptions.Builder ()

Public Methods

public SubscribeOptions build ()

public SubscribeOptions.Builder setCallback (SubscribeCallback callback)

Sets a callback which will be notified when significant events occur that affect this subscription.

public SubscribeOptions.Builder setFilter (MessageFilter filter)

Sets a filter to specify which messages to receive. If not specified, the default is INCLUDE_ALL_MY_TYPES.

public SubscribeOptions.Builder setStrategy (Strategy strategy)

Sets a strategy for subscribing. If not specified, the default is DEFAULT.