VpnService.OnBind(Intent) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將通訊介面還給服務。
[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler")]
public override Android.OS.IBinder? OnBind(Android.Content.Intent? intent);
[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler")>]
override this.OnBind : Android.Content.Intent -> Android.OS.IBinder
參數
- intent
- Intent
用於綁定此服務的意圖,依據 M:Android.Content.Context.BindService(Android.Content.Intent,Android.Content.IServiceConnection,Android.Content.IServiceConnection)。 請注意,當時隨意圖附帶的任何額外內容在這裡 都不會 看到。
傳回
- 屬性
備註
將通訊介面還給服務。 此方法在 nulls 上回報 Intent s,且非#SERVICE_INTERFACE作用。 覆寫此方法的應用程式必須識別意圖並回傳相應介面。
Java 文件 android.net.VpnService.onBind(android.content.Intent)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。