PasswordTransformationMethod.OnFocusChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| OnFocusChanged(View, ICharSequence, Boolean, FocusSearchDirection, Rect) |
This method is called when the TextView that uses this TransformationMethod gains or loses focus. |
| OnFocusChanged(View, String, Boolean, FocusSearchDirection, Rect) |
Forwards a focus-change notification to the password transformation using a string source. |
OnFocusChanged(View, ICharSequence, Boolean, FocusSearchDirection, Rect)
This method is called when the TextView that uses this TransformationMethod gains or loses focus.
[Android.Runtime.Register("onFocusChanged", "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)V", "GetOnFocusChanged_Landroid_view_View_Ljava_lang_CharSequence_ZILandroid_graphics_Rect_Handler")]
public virtual void OnFocusChanged(Android.Views.View? view, Java.Lang.ICharSequence? sourceText, bool focused, Android.Views.FocusSearchDirection direction, Android.Graphics.Rect? previouslyFocusedRect);
[<Android.Runtime.Register("onFocusChanged", "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)V", "GetOnFocusChanged_Landroid_view_View_Ljava_lang_CharSequence_ZILandroid_graphics_Rect_Handler")>]
abstract member OnFocusChanged : Android.Views.View * Java.Lang.ICharSequence * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
override this.OnFocusChanged : Android.Views.View * Java.Lang.ICharSequence * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
Parameters
- view
- View
The view whose focus changed.
- sourceText
- ICharSequence
The untransformed text in the view.
- focused
- Boolean
true if the view has focus; otherwise, false.
- direction
- FocusSearchDirection
The direction of focus movement, when applicable.
- previouslyFocusedRect
- Rect
The previous focused view's bounds in this view's coordinates, or null when unavailable.
Implements
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OnFocusChanged(View, String, Boolean, FocusSearchDirection, Rect)
Forwards a focus-change notification to the password transformation using a string source.
public void OnFocusChanged(Android.Views.View? view, string? sourceText, bool focused, Android.Views.FocusSearchDirection direction, Android.Graphics.Rect? previouslyFocusedRect);
member this.OnFocusChanged : Android.Views.View * string * bool * Android.Views.FocusSearchDirection * Android.Graphics.Rect -> unit
Parameters
- view
- View
The view whose focus changed.
- sourceText
- String
The untransformed text in the view.
- focused
- Boolean
true if the view has focus; otherwise, false.
- direction
- FocusSearchDirection
The direction of focus movement, when applicable.
- previouslyFocusedRect
- Rect
The previous focused view's bounds in this view's coordinates, or null when unavailable.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.