Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# SubscribeOptions.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.nearby.messages.SubscribeOptions.Builder

## Class Overview

Builder for instances of `SubscribeOptions`.

## Summary

Public Constructors
| SubscribeOptions.Builder()

Public Methods
SubscribeOptions | build()
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.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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`.