共用方式為


ICrossProcessCursor.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:Android.Database.ICrossProcessCursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnMove (int oldPosition, int newPosition);
[<Android.Runtime.Register("onMove", "(II)Z", "GetOnMove_IIHandler:Android.Database.ICrossProcessCursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member 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.

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 #moveToPosition(int), so it will typically not be called from outside of the cursor class itself.

Java documentation for android.database.CrossProcessCursor.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