Share via


ContextParams.Builder Constructors

Definition

Overloads

ContextParams.Builder()

Create a new builder.

ContextParams.Builder(ContextParams)

Create a new builder that inherits all sub-parameters by default.

ContextParams.Builder()

Create a new builder.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=31)]
public Builder ();
Attributes

Remarks

Create a new builder.

This is valuable when you are interested in having explicit control over every sub-parameter, and don't want to inherit any values from an existing Context.

Developers should strongly consider using #Builder(ContextParams) instead of this constructor, since that will will automatically inherit any new sub-parameters added in future platform releases.

Java documentation for android.content.ContextParams.Builder.ContextParams$Builder().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ContextParams.Builder(ContextParams)

Create a new builder that inherits all sub-parameters by default.

[Android.Runtime.Register(".ctor", "(Landroid/content/ContextParams;)V", "", ApiSince=31)]
public Builder (Android.Content.ContextParams params);
[<Android.Runtime.Register(".ctor", "(Landroid/content/ContextParams;)V", "", ApiSince=31)>]
new Android.Content.ContextParams.Builder : Android.Content.ContextParams -> Android.Content.ContextParams.Builder

Parameters

params
ContextParams
Attributes

Remarks

Create a new builder that inherits all sub-parameters by default.

This is valuable when you are only interested in overriding specific sub-parameters, and want to preserve all other parameters. Setting a specific sub-parameter on the returned builder will override any inherited value.

Java documentation for android.content.ContextParams.Builder.ContextParams$Builder(android.content.ContextParams).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to