# BridgingManager

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

# BridgingManager

`
public


class
BridgingManager
`  
`

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.BridgingManager |

<br />

*** ** * ** ***

<br />

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

APIs to enable/disable notification bridging.

Example usages:

- Disable bridging at runtime:  

      BridgingManager.fromContext(context).setConfig(
           new BridgingConfig.Builder(context, false)
               .build());
       
- Disable bridging at runtime except for the tags "foo" and "bar":  

      BridgingManager.fromContext(context).setConfig(
           new BridgingConfig.Builder(context, false)
               .addExcludedTag("foo")
               .addExcludedTag("bar")
               .build());
       
- Disable bridging at runtime except for the tags "foo" and "bar" and "baz":  

      BridgingManager.fromContext(context).setConfig(
           new BridgingConfig.Builder(context, false)
               .addExcludedTags(Arrays.asList("foo", "bar", "baz"))
               .build());
       
- Adding a bridge tag to a notification posted on a phone:  

      NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)
       // ... set other fields ...
           .extend(
               new NotificationCompat.WearableExtender()
                   .setBridgeTag("foo"));
       Notification notification = notificationBuilder.build();
       
<br />

**See also:**

- [BridgingConfig.Builder.addExcludedTag(String)](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#addExcludedTag(java.lang.String))
- [BridgingConfig.Builder.addExcludedTags(Collection)](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.Builder.html#addExcludedTags(java.util.Collection<java.lang.String>))
- [NotificationCompat.WearableExtender.setBridgeTag(String)](https://developer.android.com/reference/androidx/core/app/NotificationCompat.WearableExtender.html#setBridgeTag(java.lang.String))

## Summary

|                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                        ||
|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[BridgingManager](https://developer.android.com/reference/android/support/wearable/notifications/BridgingManager.html) | ` `[fromContext](https://developer.android.com/reference/android/support/wearable/notifications/BridgingManager.html#fromContext(android.content.Context))`(`[Context](http://developer.android.com/reference/android/content/Context.html)` context) `                                                                                                        |
| ` void`                                                                                                                          | ` `[setConfig](https://developer.android.com/reference/android/support/wearable/notifications/BridgingManager.html#setConfig(android.support.wearable.notifications.BridgingConfig))`(`[BridgingConfig](https://developer.android.com/reference/android/support/wearable/notifications/BridgingConfig.html)` bridgingConfig) ` Sets the 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 methods

### fromContext

```
public static BridgingManager fromContext (Context context)
```

<br />

<br />

|         Parameters          ||
|-----------|------------------|
| `context` | `Context` <br /> |

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

### setConfig

```
public void setConfig (BridgingConfig bridgingConfig)
```

Sets the BridgingConfig object.

<br />

|                              Parameters                               ||
|------------------|-----------------------------------------------------|
| `bridgingConfig` | `BridgingConfig`: The BridgingConfig object. <br /> |