MotionEvent.SetLocation(Single, Single) Method
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.
Set this event's location.
[Android.Runtime.Register("setLocation", "(FF)V", "")]
public void SetLocation (float x, float y);
[<Android.Runtime.Register("setLocation", "(FF)V", "")>]
member this.SetLocation : single * single -> unit
Parameters
- x
- Single
New absolute X location.
- y
- Single
New absolute Y location.
- Attributes
Remarks
Set this event's location. Applies #offsetLocation
with a delta from the current location to the given new location.
Java documentation for android.view.MotionEvent.setLocation(float, float)
.
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.