IMovementMethod Interface
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.
Provides cursor positioning, scrolling and text selection functionality in a TextView.
[Android.Runtime.Register("android/text/method/MovementMethod", "", "Android.Text.Method.IMovementMethodInvoker")]
public interface IMovementMethod : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/text/method/MovementMethod", "", "Android.Text.Method.IMovementMethodInvoker")>]
type IMovementMethod = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
Provides cursor positioning, scrolling and text selection functionality in a TextView.
The TextView delegates handling of key events, trackball motions and touches to the movement method for purposes of content navigation. The framework automatically selects an appropriate movement method based on the content of the TextView.
This interface is intended for use by the framework; it should not be implemented directly by applications.
Java documentation for android.text.method.MovementMethod.
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.
Properties
| Name | Description |
|---|---|
| Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
| JniIdentityHashCode |
Returns the value of |
| JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
| JniObjectReferenceControlBlock |
Gets an implementation-specific JNI reference control-block pointer. (Inherited from IJavaPeerable) |
| JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
| PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
Methods
| Name | Description |
|---|---|
| CanSelectArbitrarily() |
Returns true if this movement method allows arbitrary selection of any text; false if it has no selection (like a movement method that only scrolls) or a constrained selection (for example limited to links. |
| Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
| DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
| Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
| Initialize(TextView, ISpannable) |
Prepares the text buffer for navigation in the view. |
| OnGenericMotionEvent(TextView, ISpannable, MotionEvent) |
Handles a generic motion event for text navigation. |
| OnKeyDown(TextView, ISpannable, Keycode, KeyEvent) |
Handles a key press for text navigation. |
| OnKeyOther(TextView, ISpannable, KeyEvent) |
If the key listener wants to other kinds of key events, return true, otherwise return false and the caller (i. |
| OnKeyUp(TextView, ISpannable, Keycode, KeyEvent) |
Handles a key release for text navigation. |
| OnTakeFocus(TextView, ISpannable, FocusSearchDirection) |
Updates navigation state when the text view gains focus. |
| OnTouchEvent(TextView, ISpannable, MotionEvent) |
Handles a touch event for text navigation. |
| OnTrackballEvent(TextView, ISpannable, MotionEvent) |
Handles a trackball event for text navigation. |
| SetJniIdentityHashCode(Int32) |
Set the value returned by |
| SetJniManagedPeerState(JniManagedPeerStates) |
Sets the state flags returned by |
| SetPeerReference(JniObjectReference) |
Set the value returned by |
| UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |