Context.UpdateBindingParams


public static final class Context.UpdateBindingParams
extends Object

java.lang.Object
   ↳ android.content.Context.UpdateBindingParams


Interface for a single unbind or rebind request within a batch update operation.

Summary

Nested classes

class Context.UpdateBindingParams.Builder

Builder class for a UpdateBindingParams 

Public methods

ServiceConnection getConnection()
Context.BindServiceFlags getFlags()
boolean isRebind()
boolean isUnbind()
void setRebind(Context.BindServiceFlags flags)

Modify the request to rebind the connection with the specified flags which will completely replace the existing set of flags.

void setUnbind()

Modify the request to unbind the connection.

Inherited methods

Public methods

getConnection

public ServiceConnection getConnection ()

Returns
ServiceConnection Returns connection being updated.
This value cannot be null.

getFlags

public Context.BindServiceFlags getFlags ()

Returns
Context.BindServiceFlags Returns updated bind service flags for a rebind request.
This value cannot be null.

isRebind

public boolean isRebind ()

Returns
boolean Returns if the request is an rebind request.

isUnbind

public boolean isUnbind ()

Returns
boolean Returns if the request is an unbind request.

setRebind

public void setRebind (Context.BindServiceFlags flags)

Modify the request to rebind 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
flags Context.BindServiceFlags: The BindServiceFlags for the rebind request.
This value cannot be null.

setUnbind

public void setUnbind ()

Modify the request to unbind the connection.