public final class BindServiceFlags
extends java.lang.Object
Context.bindService(android.content.Intent, android.content.ServiceConnection, int).
Only flags suitable for use with gRPC/binderchannel are available to manipulate here. The javadoc for each setter discusses each supported flag's semantics at the gRPC layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
BindServiceFlags.Builder
Builds an instance of
BindServiceFlags. |
| Modifier and Type | Field and Description |
|---|---|
static BindServiceFlags |
DEFAULTS
A set of default flags suitable for most applications.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
BindServiceFlags.Builder |
toBuilder()
Returns a new instance of
BindServiceFlags.Builder with the same set of flags as this. |
int |
toInteger()
Returns the sum of all set flags as an int suitable for passing to (
Context.bindService(android.content.Intent, android.content.ServiceConnection, int). |
java.lang.String |
toString() |
public static final BindServiceFlags DEFAULTS
The BindServiceFlags.Builder.setAutoCreate(boolean) flag is guaranteed to be set.
public int toInteger()
Context.bindService(android.content.Intent, android.content.ServiceConnection, int).public BindServiceFlags.Builder toBuilder()
BindServiceFlags.Builder with the same set of flags as this.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object