BridgingConfig.Builder

public static class BridgingConfig.Builder
extends Object

java.lang.Object
   ↳ android.support.wearable.notifications.BridgingConfig.Builder


This class is deprecated.
Use androidx.wear.phone.interactions.notifications.BridgingConfig from the Jetpack Wear Phone Interactions library instead.

Builder for BridgingConfig.

Summary

Public constructors

Builder(Context context, boolean bridgingEnabled)

Creates new instance of a Builder.

Public methods

BridgingConfig.Builder addExcludedTag(String tag)

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

BridgingConfig.Builder addExcludedTags(Collection<String> tags)

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

BridgingConfig build()

Builds a BridgingConfig object.

Inherited methods

Public constructors

Builder

public Builder (Context context, 
                boolean bridgingEnabled)

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

Parameters
context Context: Context object.

bridgingEnabled boolean: Whether notification bridging is enabled.

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:

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());
 

Parameters
tag String: The tag to exclude from the default bridging mode.

Returns
BridgingConfig.Builder The Builder instance.

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:

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());
 

Parameters
tags Collection: The collection of tags to exclude from the default bridging mode.

Returns
BridgingConfig.Builder The Builder instance.

build

public BridgingConfig build ()

Builds a BridgingConfig object.

Returns
BridgingConfig