-
public final class BindServiceFlags.BuilderBuilds an instance of BindServiceFlags.
-
-
Method Summary
Modifier and Type Method Description BindServiceFlags.BuildersetAboveClient(boolean newValue)Sets or clears the BIND_ABOVE_CLIENT flag. BindServiceFlags.BuildersetAdjustWithActivity(boolean newValue)Sets or clears the BIND_ADJUST_WITH_ACTIVITY flag. BindServiceFlags.BuildersetAllowActivityStarts(boolean newValue)Sets or clears the {@code android.content.Context#BIND_ALLOW_ACTIVITY_STARTS}flag.BindServiceFlags.BuildersetAllowOomManagement(boolean newValue)Sets or clears the BIND_ALLOW_OOM_MANAGEMENT flag. BindServiceFlags.BuildersetAutoCreate(boolean newValue)Controls whether sending a call over the associated io.grpc.Channel will cause thetarget android.app.Service to be created and whether in-flight calls will keep it inexistence absent any other binding in the system. BindServiceFlags.BuildersetImportant(boolean newValue)Sets or clears the BIND_IMPORTANT flag. BindServiceFlags.BuildersetIncludeCapabilities(boolean newValue)Sets or clears the BIND_INCLUDE_CAPABILITIES flag. BindServiceFlags.BuildersetNotForeground(boolean newValue)Sets or clears the BIND_NOT_FOREGROUND flag. BindServiceFlags.BuildersetNotPerceptible(boolean newValue)Sets or clears the BIND_NOT_PERCEPTIBLE flag. BindServiceFlags.BuildersetWaivePriority(boolean newValue)Sets or clears the BIND_WAIVE_PRIORITY flag. BindServiceFlagsbuild()Returns a new instance of BindServiceFlags that reflects the state of this builder. -
-
Method Detail
-
setAboveClient
BindServiceFlags.Builder setAboveClient(boolean newValue)
Sets or clears the BIND_ABOVE_CLIENT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setAdjustWithActivity
BindServiceFlags.Builder setAdjustWithActivity(boolean newValue)
Sets or clears the BIND_ADJUST_WITH_ACTIVITY flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setAllowActivityStarts
@RequiresApi(value = Build.VERSION_CODES.UPSIDE_DOWN_CAKE) BindServiceFlags.Builder setAllowActivityStarts(boolean newValue)
Sets or clears the
{@code android.content.Context#BIND_ALLOW_ACTIVITY_STARTS}flag.This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setAllowOomManagement
BindServiceFlags.Builder setAllowOomManagement(boolean newValue)
Sets or clears the BIND_ALLOW_OOM_MANAGEMENT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setAutoCreate
BindServiceFlags.Builder setAutoCreate(boolean newValue)
Controls whether sending a call over the associated io.grpc.Channel will cause thetarget android.app.Service to be created and whether in-flight calls will keep it inexistence absent any other binding in the system.
If false, RPCs will not succeed until the remote Service comes into existence for someother reason (if ever). See also withWaitForReady.
See BIND_AUTO_CREATE for more.
-
setImportant
BindServiceFlags.Builder setImportant(boolean newValue)
Sets or clears the BIND_IMPORTANT flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setIncludeCapabilities
@RequiresApi(api = 29) BindServiceFlags.Builder setIncludeCapabilities(boolean newValue)
Sets or clears the BIND_INCLUDE_CAPABILITIES flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setNotForeground
BindServiceFlags.Builder setNotForeground(boolean newValue)
Sets or clears the BIND_NOT_FOREGROUND flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setNotPerceptible
@RequiresApi(api = 29) BindServiceFlags.Builder setNotPerceptible(boolean newValue)
Sets or clears the BIND_NOT_PERCEPTIBLE flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
setWaivePriority
BindServiceFlags.Builder setWaivePriority(boolean newValue)
Sets or clears the BIND_WAIVE_PRIORITY flag.
This flag has no additional meaning at the gRPC layer. See the Android docs for more.
-
build
BindServiceFlags build()
Returns a new instance of BindServiceFlags that reflects the state of this builder.
-
-
-
-