UpdateBindingParams
class UpdateBindingParams
| kotlin.Any | |
| ↳ | android.content.Context.UpdateBindingParams |
Interface for a single unbind or rebind request within a batch update operation.
Summary
| Nested classes | |
|---|---|
|
Builder class for a |
|
| Public methods | |
|---|---|
| ServiceConnection | |
| Context.BindServiceFlags |
getFlags() |
| Boolean |
isRebind() |
| Boolean |
isUnbind() |
| Unit |
setRebind(flags: Context.BindServiceFlags)Modify the request to rebind the connection with the specified flags which will completely replace the existing set of flags. |
| Unit |
Modify the request to unbind the connection. |
Public methods
getConnection
fun getConnection(): ServiceConnection
| Return | |
|---|---|
ServiceConnection |
Returns connection being updated. This value cannot be null. |
getFlags
fun getFlags(): Context.BindServiceFlags
| Return | |
|---|---|
Context.BindServiceFlags |
Returns updated bind service flags for a rebind request. This value cannot be null. |
setRebind
fun setRebind(flags: Context.BindServiceFlags): Unit
Modify the request to rebind 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 | |
|---|---|
flags |
Context.BindServiceFlags: The BindServiceFlags for the rebind request. This value cannot be null. |