Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#inhmethods)

# DataNotificationConfig.Builder

*** ** * ** ***

` public static final class DataNotificationConfig.Builder `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.ranging.DataNotificationConfig.Builder |

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/android/ranging/DataNotificationConfig`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#Builder()() ` |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/ranging/DataNotificationConfig` | ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#build()() ` Builds a new instance of `https://developer.android.com/reference/android/ranging/DataNotificationConfig`. |
| ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#setNotificationConfigType(int)(int config) ` Sets the notification configuration type. |
| ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#setProximityFarCm(int)(int proximityCm) ` Sets the far proximity threshold in centimeters. |
| ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | ` https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder#setProximityNearCm(int)(int proximityCm) ` Sets the near proximity threshold in centimeters. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### Builder

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Builder ()
```

<br />

<br />

## Public methods

### build

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DataNotificationConfig build ()
```

Builds a new instance of `https://developer.android.com/reference/android/ranging/DataNotificationConfig`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/ranging/DataNotificationConfig` | a new `https://developer.android.com/reference/android/ranging/DataNotificationConfig` instance created using the current state of the builder. This value cannot be `null`. <br /> |

### setNotificationConfigType

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DataNotificationConfig.Builder setNotificationConfigType (int config)
```

Sets the notification configuration type.

defaults to `https://developer.android.com/`

<br />

| Parameters ||
|---|---|
| `config` | `int`: The notification configuration type to set. Value is one of the following: - `https://developer.android.com/reference/android/ranging/DataNotificationConfig#NOTIFICATION_CONFIG_DISABLE` - `https://developer.android.com/reference/android/ranging/DataNotificationConfig#NOTIFICATION_CONFIG_ENABLE` - `https://developer.android.com/reference/android/ranging/DataNotificationConfig#NOTIFICATION_CONFIG_PROXIMITY_LEVEL` - `https://developer.android.com/reference/android/ranging/DataNotificationConfig#NOTIFICATION_CONFIG_PROXIMITY_EDGE` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | this Builder instance. This value cannot be `null`. <br /> |

### setProximityFarCm

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DataNotificationConfig.Builder setProximityFarCm (int proximityCm)
```

Sets the far proximity threshold in centimeters.

defaults to 20000 cm.

<br />

| Parameters ||
|---|---|
| `proximityCm` | `int`: The far proximity to set, in centimeters. Value is between 0 and 20000 inclusive <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | this Builder instance. This value cannot be `null`. <br /> |

### setProximityNearCm

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public DataNotificationConfig.Builder setProximityNearCm (int proximityCm)
```

Sets the near proximity threshold in centimeters.

defaults to 0 cm.

<br />

| Parameters ||
|---|---|
| `proximityCm` | `int`: The near proximity to set, in centimeters. Value is between 0 and 20000 inclusive <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/ranging/DataNotificationConfig.Builder` | this Builder instance. This value cannot be `null`. <br /> |