[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/content/Context.UpdateBindingParams.Builder [Back]  [Original]

Context.UpdateBindingParams.Builder  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

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

Added in API level 37
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

Added in API level 37
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

Added in API level 37
public Context.UpdateBindingParams build ()

Creates a new instance.

Returns
Context.UpdateBindingParams The new instance.
This value cannot be null.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page