Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

BridgingConfig.Builder

public static class BridgingConfig.Builder
extends Object

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


Builder for BridgingConfig.

Summary

Public constructors

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

From class java.lang.Object

Public constructors

BridgingConfig.Builder

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

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

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

BridgingConfig build ()

Builds a BridgingConfig object.

Returns
BridgingConfig