次の方法で共有


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 ドキュメントandroid.net.VpnManager.provisionVpnProfile(android.net.PlatformVpnProfile)

このページの一部は、Android オープンソース プロジェクトによって作成および共有され、クリエイティブ コモンズ 2.5 属性ライセンスに記載されている条件に従って使用される作業に基づく変更です。

適用対象