Language

VpnManager.ProvisionVpnProfile(PlatformVpnProfile) メソッド

定義

呼び出し元アプリのパッケージ名にキーを設定した VpnProfile 構成をインストールします。

[Android.Runtime.Register("provisionVpnProfile", "(Landroid/net/PlatformVpnProfile;)Landroid/content/Intent;", "GetProvisionVpnProfile_Landroid_net_PlatformVpnProfile_Handler", ApiSince=30)]
public virtual Android.Content.Intent? ProvisionVpnProfile(Android.Net.PlatformVpnProfile profile);
[<Android.Runtime.Register("provisionVpnProfile", "(Landroid/net/PlatformVpnProfile;)Landroid/content/Intent;", "GetProvisionVpnProfile_Landroid_net_PlatformVpnProfile_Handler", ApiSince=30)>]
abstract member ProvisionVpnProfile : Android.Net.PlatformVpnProfile -> Android.Content.Intent
override this.ProvisionVpnProfile : Android.Net.PlatformVpnProfile -> Android.Content.Intent

パラメーター

profile
PlatformVpnProfile

このパッケージによって提供される VpnProfile。 このパッケージに格納されている以前の VpnProfile をオーバーライドします。

返品

VPN を開始するためのユーザーの同意を要求する意図。特権または以前のユーザーの同意に基づいて同意が必要でない場合は null。

属性

注釈

呼び出し元アプリのパッケージ名にキーを設定した VpnProfile 構成をインストールします。

このメソッドは、ユーザーの同意が既に付与されている場合、またはシステム アクティビティにnullした場合にIntentを返します。 意図が返された場合、アプリケーションは Activity#startActivityForResult を使用してアクティビティを起動し、ユーザーの同意を要求する必要があります。 アクティビティは、ユーザーの操作を必要とするダイアログをポップアップ表示する場合があり、結果は Activity#onActivityResultを介して返されます。 結果が Activity#RESULT_OK場合、ユーザーは同意し、VPN プロファイルを開始できます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象