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

# PublishOptions.Builder

extends Object

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

## Class Overview

Builder for instances of `PublishOptions`.

## Summary

Public Constructors
| PublishOptions.Builder()

Public Methods
PublishOptions | build()
PublishOptions.Builder | setCallback(PublishCallback callback) Sets a callback which will be notified when significant events occur that affect this publish.
PublishOptions.Builder | setStrategy(Strategy strategy) Sets the strategy for publishing.

[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 PublishOptions.Builder ()

## Public Methods

#### public PublishOptions build ()

#### public PublishOptions.Builder setCallback (PublishCallback callback)

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

#### public PublishOptions.Builder setStrategy (Strategy strategy)

Sets the strategy for publishing. The default if not explicitly set is `DEFAULT`.