BridgingConfig.Builder


class BridgingConfig.Builder


Builder for BridgingConfig. The set of excluded tags is empty, unless added with addExcludedTag or addExcludedTags.

Summary

Public constructors

Builder(context: Context, isBridgingEnabled: Boolean)

Public functions

BridgingConfig.Builder

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

BridgingConfig.Builder

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

BridgingConfig

Builds a BridgingConfig object.

Public constructors

Builder

Added in 1.0.0
Builder(context: Context, isBridgingEnabled: Boolean)
Parameters
context: Context

The Context of the application requesting a BridgingConfig change.

isBridgingEnabled: Boolean

Whether notification bridging is enabled in the configuration.

Public functions

addExcludedTag

Added in 1.0.0
fun addExcludedTag(tag: String): BridgingConfig.Builder

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

Added in 1.0.0
fun addExcludedTags(tags: Collection<String>): BridgingConfig.Builder

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<String>

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

Returns
BridgingConfig.Builder

The Builder instance.

build

Added in 1.0.0
fun build(): BridgingConfig

Builds a BridgingConfig object.