Android.Views.InputMethods.IInputConnection.GetCursorCapsMode Method
Retrieve the current capitalization mode in effect at the current cursor position in the text.

Syntax

[Android.Runtime.Register("getCursorCapsMode", "(I)I", "GetGetCursorCapsMode_IHandler:Android.Views.InputMethods.IInputConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[return:Android.Runtime.GeneratedEnum]
public Android.Text.CapitalizationMode GetCursorCapsMode ([Android.Runtime.GeneratedEnum] Android.Text.CapitalizationMode reqModes)

Parameters

reqModes
The desired modes to retrieve, as defined by Android.Text.TextUtils.GetCapsMode(Java.Lang.ICharSequence, System.Int32, System.Int32). These constants are defined so that you can simply pass the current EditorInfo.InputType value directly in to here.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve the current capitalization mode in effect at the current cursor position in the text. See Android.Text.TextUtils.GetCapsMode(Java.Lang.ICharSequence, System.Int32, System.Int32) for more information.

This method may fail either if the input connection has become invalid (such as its process crashing) or the client is taking too long to respond with the text (it is given a couple seconds to return). In either case, 0 is returned.

This method does not affect the text in the editor in any way, nor does it affect the selection or composing spans.

Editor authors: please be careful of race conditions in implementing this call. An IME can change the cursor position and use this method right away; you need to make sure the returned value is consistent with the results of the latest edits and changes to the cursor position.

[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