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 UpdateBindingParams

Public methods
ServiceConnection

Context.BindServiceFlags

Boolean

Boolean

Unit

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.

isRebind

fun isRebind(): Boolean
Return
Boolean Returns if the request is an rebind request.

isUnbind

fun isUnbind(): Boolean
Return
Boolean Returns if the request is an unbind request.

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.

setUnbind

fun setUnbind(): Unit

Modify the request to unbind the connection.