Språk

ConnectionMigrationOptions.Builder.SetPathDegradationMigration Method

Definition

Sets whether to enable the possibility of migrating connections if the current path is performing poorly.

[Android.Runtime.Register("setPathDegradationMigration", "(I)Landroid/net/http/ConnectionMigrationOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.ConnectionMigrationOptions.Builder SetPathDegradationMigration(Android.Net.Http.ConnectionMigrationOption state);
[<Android.Runtime.Register("setPathDegradationMigration", "(I)Landroid/net/http/ConnectionMigrationOptions$Builder;", "", ApiSince=34)>]
member this.SetPathDegradationMigration : Android.Net.Http.ConnectionMigrationOption -> Android.Net.Http.ConnectionMigrationOptions.Builder

Parameters

state
ConnectionMigrationOption

one of the MIGRATION_OPTION_* values. Value is one of the following: ConnectionMigrationOptions.MIGRATION_OPTION_UNSPECIFIED; ConnectionMigrationOptions.MIGRATION_OPTION_ENABLED; ConnectionMigrationOptions.MIGRATION_OPTION_DISABLED

Returns

this builder for chaining. This value cannot be null.

Attributes

Remarks

Sets whether to enable the possibility of migrating connections if the current path is performing poorly.

Depending on other configuration, this can result to migrating the connections within the same default network, or to a non-default network.

Android reference for android.net.http.ConnectionMigrationOptions.Builder.setPathDegradationMigration.

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