語言

AbstractInputMethodService.AbstractInputMethodImpl.AttachToken 方法

定義

輸入法建立後第一時間呼叫,提供與系統服務會話中唯一的標記。

[Android.Runtime.Register("attachToken", "(Landroid/os/IBinder;)V", "GetAttachToken_Landroid_os_IBinder_Handler")]
public abstract void AttachToken(Android.OS.IBinder token);
[<Android.Runtime.Register("attachToken", "(Landroid/os/IBinder;)V", "GetAttachToken_Landroid_os_IBinder_Handler")>]
abstract member AttachToken : Android.OS.IBinder -> unit

參數

token
IBinder

實作

屬性

備註

輸入法建立後第一時間呼叫,提供與系統服務會話中唯一的標記。 需要與服務識別,以驗證其操作。 此強令牌<>不得</強>權傳遞給申請,因為它賦予申請不應有的特殊特權。

系統保證此方法最多在 和 InputMethodService#onDestroy() 之間InputMethodService#onCreate()被回調一次。

Java 文件 android.view.inputmethod.InputMethod.attachToken(android.os.IBinder)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於