Language

View.RequestRectangleOnScreen Method

Definition

Overloads

Name Description
RequestRectangleOnScreen(Rect)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

RequestRectangleOnScreen(Rect, Boolean)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

RequestRectangleOnScreen(Rect, Boolean, Int32)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

RequestRectangleOnScreen(Rect)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

[Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_Handler")]
public virtual bool RequestRectangleOnScreen(Android.Graphics.Rect? rectangle);
[<Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_Handler")>]
abstract member RequestRectangleOnScreen : Android.Graphics.Rect -> bool
override this.RequestRectangleOnScreen : Android.Graphics.Rect -> bool

Parameters

rectangle
Rect

The rectangle in the View's content coordinate space

Returns

Whether any parent scrolled.

Attributes

Remarks

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

A View should call this if it maintains some notion of which part of its content is interesting. For example, a text editing view should call this when its cursor moves.

The Rectangle passed into this method should be in the View's content coordinate space. It should not be affected by which part of the View is currently visible or its scroll position.

Java documentation for android.view.View.requestRectangleOnScreen(android.graphics.Rect).

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

RequestRectangleOnScreen(Rect, Boolean)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

[Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;Z)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZHandler")]
public virtual bool RequestRectangleOnScreen(Android.Graphics.Rect? rectangle, bool immediate);
[<Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;Z)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZHandler")>]
abstract member RequestRectangleOnScreen : Android.Graphics.Rect * bool -> bool
override this.RequestRectangleOnScreen : Android.Graphics.Rect * bool -> bool

Parameters

rectangle
Rect

The rectangle in the View's content coordinate space

immediate
Boolean

True to forbid animated scrolling, false otherwise

Returns

Whether any parent scrolled.

Attributes

Remarks

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

A View should call this if it maintains some notion of which part of its content is interesting. For example, a text editing view should call this when its cursor moves.

The Rectangle passed into this method should be in the View's content coordinate space. It should not be affected by which part of the View is currently visible or its scroll position.

When immediate is set to true, scrolling will not be animated.

Java documentation for android.view.View.requestRectangleOnScreen(android.graphics.Rect, boolean).

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

RequestRectangleOnScreen(Rect, Boolean, Int32)

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

[Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;ZI)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZIHandler", ApiSince=36)]
public virtual bool RequestRectangleOnScreen(Android.Graphics.Rect rectangle, bool immediate, int source);
[<Android.Runtime.Register("requestRectangleOnScreen", "(Landroid/graphics/Rect;ZI)Z", "GetRequestRectangleOnScreen_Landroid_graphics_Rect_ZIHandler", ApiSince=36)>]
abstract member RequestRectangleOnScreen : Android.Graphics.Rect * bool * int -> bool
override this.RequestRectangleOnScreen : Android.Graphics.Rect * bool * int -> bool

Parameters

rectangle
Rect

The rectangle in the View's content coordinate space. This value cannot be null.

immediate
Boolean

True to forbid animated scrolling, false otherwise

source
Int32

The type of user interaction that requested this rectangle. Value is one of the following: RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED; RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY; RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR; RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS

Returns

Whether any parent scrolled.

Attributes

Remarks

Request that a rectangle of this view be visible on the screen, scrolling if necessary just enough.

A View should call this if it maintains some notion of which part of its content is interesting. For example, a text editing view should call this when its cursor moves.

The Rectangle passed into this method should be in the View's content coordinate space. It should not be affected by which part of the View is currently visible or its scroll position.

When immediate is set to true, scrolling will not be animated.

The source parameter is used to differentiate behaviors of certain system features, like focus-following with display magnification, based on user preferences and the source of requests to show content on-screen. Callers are encouraged to provide one of the following request sources, when applicable, instead of using requestRectangleOnScreen(Rect) or requestRectangleOnScreen(Rect,boolean): RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY; RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR; RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS

Android reference for android.view.View.requestRectangleOnScreen.

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