Android.Views.InputMethods.IInputMethod.AttachToken Method
Called first thing after an input method is created, this supplies a unique token for the session it has with the system service.

Syntax

[Android.Runtime.Register("attachToken", "(Landroid/os/IBinder;)V", "GetAttachToken_Landroid_os_IBinder_Handler:Android.Views.InputMethods.IInputMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void AttachToken (Android.OS.IBinder token)

Parameters

token
Documentation for this section has not yet been entered.

Remarks

Called first thing after an input method is created, this supplies a unique token for the session it has with the system service. It is needed to identify itself with the service to validate its operations. This token must not be passed to applications, since it grants special priviledges that should not be given to applications.

Note: to protect yourself from malicious clients, you should only accept the first token given to you. Any after that may come from the client.

[Android Documentation]

Requirements

Namespace: Android.Views.InputMethods
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3