Språk

ConnectionMigrationOptions.Builder.SetDefaultNetworkMigration Method

Definition

Sets whether to enable the possibility of migrating connections on default network change.

[Android.Runtime.Register("setDefaultNetworkMigration", "(I)Landroid/net/http/ConnectionMigrationOptions$Builder;", "", ApiSince=34)]
public Android.Net.Http.ConnectionMigrationOptions.Builder SetDefaultNetworkMigration(Android.Net.Http.ConnectionMigrationOption state);
[<Android.Runtime.Register("setDefaultNetworkMigration", "(I)Landroid/net/http/ConnectionMigrationOptions$Builder;", "", ApiSince=34)>]
member this.SetDefaultNetworkMigration : 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 on default network change. If enabled, active QUIC connections will be migrated onto the new network when the platform indicates that the default network is changing.

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

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