Context.UpdateBindingParams.Builder
public
static
final
class
Context.UpdateBindingParams.Builder
extends Object
| java.lang.Object | |
| ↳ | android.content.Context.UpdateBindingParams.Builder |
Builder class for a UpdateBindingParams
Summary
Public constructors | |
|---|---|
Builder(ServiceConnection connection)
Create a new builder for an unbind request of the connection. |
|
Builder(ServiceConnection connection, Context.BindServiceFlags flags)
Create a new builder for a rebind request of the connection with the specified flags which will completely replace the existing set of flags. |
|
Public methods | |
|---|---|
Context.UpdateBindingParams
|
build()
Creates a new instance. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (ServiceConnection connection)
Create a new builder for an unbind request of the connection.
| Parameters | |
|---|---|
connection |
ServiceConnection: The ServiceConnection this update applies to.
This value cannot be null. |
Builder
public Builder (ServiceConnection connection, Context.BindServiceFlags flags)
Create a new builder for a rebind request of the connection
with the specified flags which will completely replace the
existing set of flags.
Only flags returned from Context.getUpdateableFlags() may be added
or removed.
Any invalid additions or removals will trigger an
IllegalArgumentException when the update call is made.
| Parameters | |
|---|---|
connection |
ServiceConnection: The ServiceConnection this update applies to.
This value cannot be null. |
flags |
Context.BindServiceFlags: The BindServiceFlags for the rebind request.
This value cannot be null. |
Public methods
build
public Context.UpdateBindingParams build ()
Creates a new instance.
| Returns | |
|---|---|
Context.UpdateBindingParams |
The new instance.
This value cannot be null. |