BridgingManager
public
class
BridgingManager
extends Object
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();
Summary
Inherited methods |
From
class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
setConfig
void setConfig (BridgingConfig bridgingConfig)
Sets the BridgingConfig object.
Parameters |
bridgingConfig |
BridgingConfig : The BridgingConfig object.
|