# BridgingConfig.Builder

Summary:[Ctors](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder#inhmethods)  

# BridgingConfig.Builder

`
public
static


class
BridgingConfig.Builder
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|---------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.notifications.BridgingConfig.Builder |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
Use`androidx.wear.phone.interactions.notifications.BridgingConfig`from the[Jetpack Wear Phone Interactions](https://developer.android.com/jetpack/androidx/releases/wear)library instead.

Builder for BridgingConfig.

## Summary

|                                                                                                                                                     ### Public constructors                                                                                                                                                      ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#Builder(android.content.Context,%20boolean))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` context, boolean bridgingEnabled) ` Creates new instance of a Builder. |

|                                                                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                                                                        ||
|-----------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[BridgingConfig.Builder](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html) | ` `[addExcludedTag](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#addExcludedTag(java.lang.String))`(`[String](http://developer.android.com/reference/java/lang/String.html)` tag) ` Adds a tag for which the bridging mode is the opposite as the default mode.                                                                                                                           |
| ` `[BridgingConfig.Builder](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html) | ` `[addExcludedTags](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#addExcludedTags(java.util.Collection<java.lang.String>))`(`[Collection](http://developer.android.com/reference/java/util/Collection.html)`<`[String](http://developer.android.com/reference/java/lang/String.html)`> tags) ` Sets a collection of tags for which the bridging mode is the opposite as the default mode. |
| ` `[BridgingConfig](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.html)                 | ` `[build](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#build())`() ` Builds a BridgingConfig object.                                                                                                                                                                                                                                                                                     |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Public constructors

### Builder

```
public Builder (Context context, 
                boolean bridgingEnabled)
```

Creates new instance of a Builder. By default the set of excluded tags is empty.

<br />

|                                   Parameters                                   ||
|-------------------|-------------------------------------------------------------|
| `context`         | `Context`: Context object. <br />                           |
| `bridgingEnabled` | `boolean`: Whether notification bridging is enabled. <br /> |

## Public methods

### addExcludedTag

```
public BridgingConfig.Builder addExcludedTag (String tag)
```

Adds a tag for which the bridging mode is the opposite as the default mode.

Examples:

<br />

    new BridgingConfig.Builder(context, false)  // bridging disabled by default
       .addExcludedTag("foo")
       .addExcludedTag("bar")
       .build());

     new BridgingConfig.Builder(context, true)  // bridging enabled by default
       .addExcludedTag("foo")
       .addExcludedTag("bar")
       .build());
     
<br />

<br />

|                                 Parameters                                 ||
|-------|---------------------------------------------------------------------|
| `tag` | `String`: The tag to exclude from the default bridging mode. <br /> |

|                                                                              Returns                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------|
| [BridgingConfig.Builder](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html) | The Builder instance. <br /> |

### addExcludedTags

```
public BridgingConfig.Builder addExcludedTags (Collection<String> tags)
```

Sets a collection of tags for which the bridging mode is the opposite as the default mode.

Examples:

<br />

    new BridgingConfig.Builder(context, false)  // bridging disabled by default
       .addExcludedTags(Arrays.asList("foo", "bar", "baz"))
       .build());

     new BridgingConfig.Builder(context, true)  // bridging enabled by default
       .addExcludedTags(Arrays.asList("foo", "bar", "baz"))
       .build());
     
<br />

<br />

|                                           Parameters                                           ||
|--------|----------------------------------------------------------------------------------------|
| `tags` | `Collection`: The collection of tags to exclude from the default bridging mode. <br /> |

|                                                                              Returns                                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------|------------------------------|
| [BridgingConfig.Builder](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html) | The Builder instance. <br /> |

### build

```
public BridgingConfig build ()
```

Builds a BridgingConfig object.

<br />

|                                                           Returns                                                            ||
|----------------------------------------------------------------------------------------------------------------------|--------|
| [BridgingConfig](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.html) | <br /> |