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

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.

Parameters
callback SubscribeCallback
Returns
SubscribeOptions.Builder

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.

Parameters
filter MessageFilter
Returns
SubscribeOptions.Builder

public SubscribeOptions.Builder setStrategy (Strategy strategy)

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

Parameters
strategy Strategy
Returns
SubscribeOptions.Builder