Builder
class Builder
| kotlin.Any | |
| ↳ | android.content.Context.UpdateBindingParams.Builder |
Builder class for a UpdateBindingParams
Summary
| Public constructors | |
|---|---|
Builder(connection: ServiceConnection)Create a new builder for an unbind request of the connection. |
|
Builder(connection: ServiceConnection, flags: Context.BindServiceFlags)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. |
Public constructors
Builder
Builder(connection: ServiceConnection)
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
Builder(
connection: ServiceConnection,
flags: Context.BindServiceFlags)
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 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
fun build(): Context.UpdateBindingParams
Creates a new instance.
| Return | |
|---|---|
Context.UpdateBindingParams |
The new instance. This value cannot be null. |