ICursor.Move(Int32) Method

Definition

Move the cursor by a relative amount, forward or backward, from the current position.

[Android.Runtime.Register("move", "(I)Z", "GetMove_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Move (int offset);
[<Android.Runtime.Register("move", "(I)Z", "GetMove_IHandler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Move : int -> bool

Parameters

offset
Int32

the offset to be applied from the current position.

Returns

whether the requested move fully succeeded.

Attributes

Remarks

Move the cursor by a relative amount, forward or backward, from the current position. Positive offsets move forwards, negative offsets move backwards. If the final position is outside of the bounds of the result set then the resultant position will be pinned to -1 or count() depending on whether the value is off the front or end of the set, respectively.

This method will return true if the requested destination was reachable, otherwise, it returns false. For example, if the cursor is at currently on the second entry in the result set and move(-5) is called, the position will be pinned at -1, and false will be returned.

Java documentation for android.database.Cursor.move(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