ViewConfiguration Class
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.
Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
[Android.Runtime.Register("android/view/ViewConfiguration", DoNotGenerateAcw=true)]
public class ViewConfiguration : Java.Lang.Object
[<Android.Runtime.Register("android/view/ViewConfiguration", DoNotGenerateAcw=true)>]
type ViewConfiguration = class
inherit Object
- Inheritance
- Attributes
Remarks
Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
Java documentation for android.view.ViewConfiguration.
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.
Constructors
| Name | Description |
|---|---|
| ViewConfiguration() |
Obsolete.
Initializes a new view configuration. |
| ViewConfiguration(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
| Name | Description |
|---|---|
| AmbiguousGestureMultiplier |
The multiplication factor for inhibiting default gestures. |
| Class |
Returns the runtime class of this |
| DefaultActionModeHideDuration |
the default duration in milliseconds for ActionMode.hide(long) . |
| DoubleTapTimeout |
The duration in milliseconds between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap. |
| DoubleTapTimeoutMillis |
Gets the maximum interval, in milliseconds, between the first tap's release and the second tap's press for a double tap. |
| EdgeSlop |
Obsolete.
Gets the edge inset used when locating touchable content. |
| FadingEdgeLength |
Obsolete.
Gets the length of fading edges in pixels. |
| GlobalActionKeyTimeout |
Obsolete.
The amount of time a user needs to press the relevant key to bring up the global actions dialog. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| HasPermanentMenuKey |
Report if the device has a permanent menu key available to the user. |
| JniIdentityHashCode |
Gets the identity hash code assigned to this Java peer by the interop runtime. (Inherited from Object) |
| JniManagedPeerState |
Gets the state flags last assigned by the runtime. (Inherited from JavaObject) |
| JniPeerMembers |
Gets the JNI peer metadata used by the .NET for Android binding runtime. |
| JumpTapTimeout |
The duration in milliseconds we will wait to see if a touch event is a jump tap. If the user does not move within this interval, it is considered to be a tap. |
| KeyRepeatDelay |
The time between successive key repeats in milliseconds. |
| KeyRepeatTimeout |
The time before the first key repeat in milliseconds. |
| LongPressTimeout |
Used for both key and motion events. |
| LongPressTimeoutMillis |
Gets the press duration, in milliseconds, used to recognize a long press. |
| MaximumDrawingCacheSize |
Obsolete.
The maximum drawing cache size expressed in bytes. |
| MaximumFlingVelocity |
Obsolete.
Gets the maximum fling velocity in pixels per second. |
| MinimumFlingVelocity |
Obsolete.
Gets the minimum fling velocity in pixels per second. |
| MultiPressTimeout |
the duration in milliseconds between the first tap's up event and the second tap's down event for an interaction to be considered part of the same multi-press. |
| MultiPressTimeoutMillis |
Gets the maximum interval, in milliseconds, between a release and the next press in a multi-press interaction. |
| PeerReference |
Gets the JNI object reference for this Java peer. (Inherited from Object) |
| PressedStateDuration |
The duration in milliseconds of the pressed state in child components. |
| ScaledAmbiguousGestureMultiplier |
The multiplication factor for inhibiting default gestures. |
| ScaledDoubleTapSlop |
Distance in pixels between the first touch and second touch to still be considered a double tap |
| ScaledEdgeSlop |
Inset in pixels to look for touchable content when the user touches the edge of the screen |
| ScaledFadingEdgeLength |
The length of the fading edges in pixels |
| ScaledHandwritingGestureLineMargin |
margin in pixels around text line bounds where stylus handwriting gestures should be supported. |
| ScaledHandwritingSlop |
Distance in pixels a stylus touch can wander before we think the user is handwriting. |
| ScaledHorizontalScrollFactor |
Amount to scroll in response to a horizontal MotionEvent.ACTION_SCROLL event. Multiply this by the event's axis value to obtain the number of pixels to be scrolled. |
| ScaledHoverSlop |
Distance in pixels a hover can wander while it is still considered "stationary". |
| ScaledMaximumDrawingCacheSize |
The maximum drawing cache size expressed in bytes. |
| ScaledMaximumFlingVelocity |
Maximum velocity to initiate a fling, as measured in pixels per second. |
| ScaledMinimumFlingVelocity |
Minimum velocity to initiate a fling, as measured in pixels per second. |
| ScaledMinimumScalingSpan |
Retrieves the distance in pixels between touches that must be reached for a gesture to be interpreted as scaling. |
| ScaledOverflingDistance |
The maximum distance a View should overfling by when showing edge effects (in pixels). |
| ScaledOverscrollDistance |
The maximum distance a View should overscroll by when showing edge effects (in pixels). |
| ScaledPagingTouchSlop |
Distance in pixels a touch can wander before we think the user is scrolling a full page |
| ScaledScrollBarSize |
The width of the horizontal scrollbar and the height of the vertical scrollbar in pixels |
| ScaledTouchSlop |
Distance in pixels a touch can wander before we think the user is scrolling |
| ScaledVerticalScrollFactor |
Amount to scroll in response to a vertical MotionEvent.ACTION_SCROLL event. Multiply this by the event's axis value to obtain the number of pixels to be scrolled. |
| ScaledWindowTouchSlop |
Distance in pixels a touch must be outside the bounds of a window for it to be counted as outside the window for purposes of dismissing that window. |
| ScrollBarFadeDuration |
Duration of the fade when scrollbars fade away in milliseconds |
| ScrollBarSize |
Obsolete.
Gets the width of a horizontal scrollbar or height of a vertical scrollbar. |
| ScrollDefaultDelay |
Default delay before the scrollbars fade in milliseconds |
| ScrollFriction |
The amount of friction applied to scrolls and flings. |
| ScrollFrictionAmount |
The amount of friction applied to scrolls and flings. |
| TapTimeout |
The duration in milliseconds we will wait to see if a touch event is a tap or a scroll. If the user does not move within this interval, it is considered to be a tap. |
| TapTimeoutMillis |
Gets the interval, in milliseconds, used to distinguish an unmoved tap from scrolling. |
| TextCursorBlinkIntervalMillis |
Returns the duration in milliseconds of the text cursor blink interval, which is the elapsed time between inversions of the color of the text cursor's pixels. |
| ThresholdClass |
Gets the JNI class handle used by the .NET for Android binding runtime. |
| ThresholdType |
Gets the managed type used by the .NET for Android binding runtime. |
| TouchSlop |
Obsolete.
Gets the distance a touch can move before scrolling begins. |
| WindowTouchSlop |
Obsolete.
Gets the distance outside a window that counts as an outside touch. |
| ZoomControlsTimeout |
The amount of time that the zoom controls should be displayed on the screen expressed in milliseconds. |
Methods
| Name | Description |
|---|---|
| Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
| Construct(JniObjectReference, JniObjectReferenceOptions) |
Delegates construction of this peer to the runtime's value manager. (Inherited from JavaObject) |
| Dispose() |
Releases the resources held by this Java peer. (Inherited from Object) |
| Dispose(Boolean) |
Releases the resources held by this Java peer. (Inherited from Object) |
| DisposeUnlessReferenced() |
Asks the value manager to dispose this peer unless its mapping retains this same managed instance. (Inherited from JavaObject) |
| Equals(Object) |
Tests whether another managed peer refers to the same Java object. (Inherited from JavaObject) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| Get(Context) |
Returns a configuration for the specified |
| GetFocusTraversalThreshold(Int32, Int32, Int32) |
Provides the focus traversal threshold (in pixels) for a motion generated by a specific input device configuration and motion axis. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| GetScaledMaximumFlingVelocity(Int32, Axis, Int32) |
Maximum absolute value of velocity to initiate a fling for a motion generated by an
|
| GetScaledMinimumFlingVelocity(Int32, Axis, Int32) |
Minimum absolute value of velocity to initiate a fling for a motion generated by an
|
| IsFocusNavigationEnabled(Int32, Int32, Int32) |
Checks whether focus navigation is enabled for a motion generated by a specific input device configuration and motion axis. |
| JavaFinalize() |
Obsolete.
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| SetPeerReference(JniObjectReference, JniObjectReferenceOptions) |
Stores a reference value in the control block without creating a JNI reference copy. (Inherited from JavaObject) |
| ShouldShowMenuShortcutsWhenKeyboardPresent() |
Check if shortcuts should be displayed in menus. |
| ToArray<T>() |
Creates a managed array from this Java array wrapper. (Inherited from Object) |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() |
Unregisters this Java peer from the interop runtime. (Inherited from Object) |
| Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
| Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
| Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJavaPeerable.Disposed() |
Marks this peer as disposed and calls |
| IJavaPeerable.Finalized() |
Marks this peer as disposed and calls |
| IJavaPeerable.JniObjectReferenceControlBlock |
Gets the native control-block pointer used by this peer. (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) |
Stores the identity hash code supplied by the runtime. (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) |
Replaces the stored managed peer state flags. (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) |
Updates the peer reference and releases a disposed peer's control block when the reference is invalid. (Inherited from JavaObject) |
Extension Methods
| Name | Description |
|---|---|
| GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
| JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) |
Reuses a compatible managed peer or obtains a wrapper of the requested type. |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |