public static final class BindServiceFlags.Builder
extends java.lang.Object
BindServiceFlags.| Modifier and Type | Method and Description |
|---|---|
BindServiceFlags |
build()
Returns a new instance of
BindServiceFlags that reflects the state of this builder. |
BindServiceFlags.Builder |
setAboveClient(boolean newValue)
Sets or clears the
Context.BIND_ABOVE_CLIENT flag. |
BindServiceFlags.Builder |
setAdjustWithActivity(boolean newValue)
Sets or clears the
Context.BIND_ADJUST_WITH_ACTIVITY flag. |
BindServiceFlags.Builder |
setAllowOomManagement(boolean newValue)
Sets or clears the
Context.BIND_ALLOW_OOM_MANAGEMENT flag. |
BindServiceFlags.Builder |
setAutoCreate(boolean newValue)
Controls whether sending a call over the associated
Channel will cause the
target Service to be created and whether in-flight calls will keep it in
existence absent any other binding in the system. |
BindServiceFlags.Builder |
setImportant(boolean newValue)
Sets or clears the
Context.BIND_IMPORTANT flag. |
BindServiceFlags.Builder |
setIncludeCapabilities(boolean newValue)
Sets or clears the
Context.BIND_INCLUDE_CAPABILITIES flag. |
BindServiceFlags.Builder |
setNotForeground(boolean newValue)
Sets or clears the
Context.BIND_NOT_FOREGROUND flag. |
BindServiceFlags.Builder |
setNotPerceptible(boolean newValue)
Sets or clears the
Context.BIND_NOT_PERCEPTIBLE flag. |
BindServiceFlags.Builder |
setWaivePriority(boolean newValue)
Sets or clears the
Context.BIND_WAIVE_PRIORITY flag. |
public BindServiceFlags.Builder setAboveClient(boolean newValue)
Context.BIND_ABOVE_CLIENT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags.Builder setAdjustWithActivity(boolean newValue)
Context.BIND_ADJUST_WITH_ACTIVITY flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags.Builder setAllowOomManagement(boolean newValue)
Context.BIND_ALLOW_OOM_MANAGEMENT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags.Builder setAutoCreate(boolean newValue)
Channel will cause the
target Service to be created and whether in-flight calls will keep it in
existence absent any other binding in the system.
If false, RPCs will not succeed until the remote Service comes into existence for some
other reason (if ever). See also CallOptions.withWaitForReady().
See Context.BIND_AUTO_CREATE for more.
public BindServiceFlags.Builder setImportant(boolean newValue)
Context.BIND_IMPORTANT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
@RequiresApi(api=29) public BindServiceFlags.Builder setIncludeCapabilities(boolean newValue)
Context.BIND_INCLUDE_CAPABILITIES flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags.Builder setNotForeground(boolean newValue)
Context.BIND_NOT_FOREGROUND flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
@RequiresApi(api=29) public BindServiceFlags.Builder setNotPerceptible(boolean newValue)
Context.BIND_NOT_PERCEPTIBLE flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags.Builder setWaivePriority(boolean newValue)
Context.BIND_WAIVE_PRIORITY flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
public BindServiceFlags build()
BindServiceFlags that reflects the state of this builder.