ShinobiControls Xamarin Bindings Documentation

ShinobiControls.Android.Grids : ShinobiControls.Android.Grids.Supplement Namespace

NearestInTouchBoundsChildViewFinder Class

This ShinobiControls.Android.Grids.Supplement.IChildViewFinder searches for the nearest child View to some given X and Y co-ordinates that is within some specified bounds.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/supplement/NearestInTouchBoundsChildViewFinder", DoNotGenerateAcw=true)]
public class NearestInTouchBoundsChildViewFinder : Java.Lang.Object, IChildViewFinder, IDisposable

Remarks

This ShinobiControls.Android.Grids.Supplement.IChildViewFinder searches for the nearest child View to some given X and Y co-ordinates that is within some specified bounds. Thus, it includes the space taken up by gridlines and other s in its search.

The check for the X and Y co-ordinates being within bounds is performed in the NearestInTouchBoundsChildViewFinder.isWithinTouchBounds(com.shinobicontrols.grids.core.GridRecyclerView, %20float, %20float) method. By default, the bounds are that of the parent ShinobiControls.Android.Grids.Core.ShinobiGridView. Override this method to define different touch bounds.

If no child View is found, null is returned.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from Java.Lang.Object.

Public Constructors

Documentation for this section has not yet been entered.

Protected Constructors

Documentation for this section has not yet been entered.

Protected Properties

[read-only]
override
ThresholdClass IntPtr . This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdType Type . This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Protected Methods

Member Details

NearestInTouchBoundsChildViewFinder Constructor

Documentation for this section has not yet been entered.

Syntax

[Android.Runtime.Register(".ctor", "()V", "")]
public NearestInTouchBoundsChildViewFinder ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

NearestInTouchBoundsChildViewFinder Constructor

Documentation for this section has not yet been entered.

Syntax

protected NearestInTouchBoundsChildViewFinder (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer)

Parameters

javaReference
Documentation for this section has not yet been entered.
transfer
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

FindChildViewUnder Method

Syntax

[Android.Runtime.Register("findChildViewUnder", "(Lcom/shinobicontrols/grids/core/GridRecyclerView;FF)Landroid/view/View;", "GetFindChildViewUnder_Lcom_shinobicontrols_grids_core_GridRecyclerView_FFHandler")]
public virtual Android.Views.View FindChildViewUnder (ShinobiControls.Android.Grids.Core.GridRecyclerView p0, float p1, float p2)

Parameters

p0
Documentation for this section has not yet been entered.
p1
Documentation for this section has not yet been entered.
p2
Documentation for this section has not yet been entered.

Returns

the child View of recyclerView that corresponds to the X and Y co-ordinates, or null if no child is found.

Remarks

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

IsWithinTouchBounds Method

Syntax

[Android.Runtime.Register("isWithinTouchBounds", "(Lcom/shinobicontrols/grids/core/GridRecyclerView;FF)Z", "GetIsWithinTouchBounds_Lcom_shinobicontrols_grids_core_GridRecyclerView_FFHandler")]
protected virtual bool IsWithinTouchBounds (ShinobiControls.Android.Grids.Core.GridRecyclerView p0, float p1, float p2)

Parameters

p0
Documentation for this section has not yet been entered.
p1
Documentation for this section has not yet been entered.
p2
Documentation for this section has not yet been entered.

Returns

whether the given MotionEvent's X and Y co-ordinates are considered to be within the valid bounds for touch events

Remarks

Returns whether or not the given X and Y co-ordinates are considered to be within some valid bounds for touch events.

By default, this method uses the parent ShinobiControls.Android.Grids.Core.ShinobiGridView

's bounds as the area considered valid. This allows, for example, a row to be dragged to and released on the header row, and will be considered as a valid row reorder putting the dragged row at the top of the data items.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

ThresholdClass Property

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Syntax

protected override IntPtr ThresholdClass { get; }

Value

A IntPtr which contains the java.lang.Class JNI value corresponding to this type.

Remarks

This property is used to control which jclass is provided to methods like Android.Runtime.JNIEnv.CallNonVirtualVoidMethod.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

ThresholdType Property

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Syntax

protected override Type ThresholdType { get; }

Value

A Type which provides the declaring type.

Remarks

This property is used to control virtual vs. non virtual method dispatch against the underlying JNI object. When this property is equal to the declaring type, then virtual method invocation against the JNI object is performed; otherwise, we assume that the method was overridden by a derived type, and perform non-virtual methdo invocation.

Requirements

Namespace: ShinobiControls.Android.Grids.Supplement
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0