Dil

CrossProcessCursorWrapper.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.

This function should be called by methods such as Cursor.moveToPosition(int), so it will typically not be called from outside of the cursor class itself.

Android reference for android.database.CrossProcessCursorWrapper.onMove.

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