Language

ViewRectangleOnScreenRequestSource Enum

Definition

Identifies why a view requests that a rectangle be brought onto the screen.

public enum ViewRectangleOnScreenRequestSource
type ViewRectangleOnScreenRequestSource = 
Inheritance
ViewRectangleOnScreenRequestSource

Fields

Name Value Description
Undefined 0

Represents that the user interaction that is requesting a rectangle on screen is doing so via the original requestRectangleOnScreen(Rect) or requestRectangleOnScreen(Rect,boolean) APIs that do not define the source. RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED should be reserved for backward compatibility and should only be provided from calls to the original API.

Android reference for android.view.View.RECTANGLE_ON_SCREEN_REQUEST_SOURCE_UNDEFINED.

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.

ScrollOnly 1

Represents that the user interaction that is requesting a rectangle on screen is doing so only to scroll the View on screen, and the rectangle is not associated with a text cursor or keyboard focus.

Android reference for android.view.View.RECTANGLE_ON_SCREEN_REQUEST_SOURCE_SCROLL_ONLY.

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.

TextCursor 2

Represents that the user interaction that is requesting a rectangle on screen is doing so because the View contains a text cursor (caret).

Android reference for android.view.View.RECTANGLE_ON_SCREEN_REQUEST_SOURCE_TEXT_CURSOR.

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.

InputFocus 3

Represents that the user interaction that is requesting a rectangle on screen is doing so because the View has input/keyboard focus.

Android reference for android.view.View.RECTANGLE_ON_SCREEN_REQUEST_SOURCE_INPUT_FOCUS.

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.

Remarks

Use one source code, not a combination of flags. The codes distinguish scrolling, text-cursor visibility, and input-focus visibility. Undefined represents the older request overloads that do not supply a source.

Applies to