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 | |
| 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 | (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 | |
| 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 | |
| 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 | |
| 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) | (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() | (Inherited from JavaObject) |
| Equals(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 visual |
| 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
|
| JavaFinalize() |
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) | (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() | (Inherited from JavaObject) |
| IJavaPeerable.Finalized() | (Inherited from JavaObject) |
| IJavaPeerable.JniObjectReferenceControlBlock | (Inherited from JavaObject) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from JavaObject) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from JavaObject) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (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) | |
| TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |