Condividi tramite


AbstractCursor.OnMove(Int32, Int32) Method

Definition

This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have.

[Android.Runtime.Register("onMove", "(II)Z", "GetOnMove_IIHandler")]
public virtual bool OnMove (int oldPosition, int newPosition);
[<Android.Runtime.Register("onMove", "(II)Z", "GetOnMove_IIHandler")>]
abstract member OnMove : int * int -> bool
override this.OnMove : int * int -> bool

Parameters

oldPosition
Int32

the position that we're moving from

newPosition
Int32

the position that we're moving to

Returns

true if the move is successful, false otherwise

Implements

Attributes

Remarks

This function is called every time the cursor is successfully scrolled to a new position, giving the subclass a chance to update any state it may have. If it returns false the move function will also do so and the cursor will scroll to the beforeFirst position.

Java documentation for android.database.AbstractCursor.onMove(int, int).

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