ShinobiControls Xamarin Bindings Documentation

ShinobiControls.Android.Grids : ShinobiControls.Android.Grids.Core Namespace

Selector Class

A helper class which facilitates operations associated with the selection and deselection of items within the ShinobiControls.Android.Grids.Core.ShinobiGridView.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/core/Selector", DoNotGenerateAcw=true)]
public class Selector : Java.Lang.Object

Remarks

A helper class which facilitates operations associated with the selection and deselection of items within the ShinobiControls.Android.Grids.Core.ShinobiGridView.

Requirements

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

Members

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

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

Member Details

Selector Constructor

Documentation for this section has not yet been entered.

Syntax

protected Selector (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.Core
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0

Deselect Method

Syntax

[Android.Runtime.Register("deselect", "(I)V", "GetDeselect_IHandler")]
public virtual void Deselect (int position)

Parameters

position
- the position in the adapter to deselect

Remarks

Deselects the item which corresponds to the given position.

Requirements

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

GetColumnIndexForPosition Method

Syntax

[Android.Runtime.Register("getColumnIndexForPosition", "(I)I", "GetGetColumnIndexForPosition_IHandler")]
public virtual int GetColumnIndexForPosition (int position)

Parameters

position
- the position to query

Returns

the index of the Column that corresponds to the given position, or -1 if position does not map to a Column

Remarks

Returns the index of the ShinobiControls.Android.Grids.Core.Column

that corresponds to the given position. This method helps translate between adapter positions, which are a

concept, and row and column indices which are specific to the ShinobiGridView.

If position

does not map to a Column, for example if position

is out of the range of all the valid positions in a grid, a value of -1

will be returned.

Requirements

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

GetPosition Method

Syntax

[Android.Runtime.Register("getPosition", "(II)I", "GetGetPosition_IIHandler")]
public virtual int GetPosition (int p0, int p1)

Parameters

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

Returns

the position for the item that is in the given column and row

Remarks

Returns the position that corresponds to the given column index and row index. This method helps translate between row and column indices, which are specific to the ShinobiGridView, and adapter positions which are a

concept.

If columnIndex

and rowIndex

do not map to a valid position within the grid, for example if the column index is greater than the number of columns present, a value of -1

will be returned.

Requirements

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

GetRowIndexForPosition Method

Syntax

[Android.Runtime.Register("getRowIndexForPosition", "(I)I", "GetGetRowIndexForPosition_IHandler")]
public virtual int GetRowIndexForPosition (int position)

Parameters

position
- the position to query

Returns

the index of the row that corresponds to the given position, or -1 if position does not map to a row

Remarks

Returns the index of the row that corresponds to the given position. This method helps translate between adapter positions, which are a

concept, and row and column indices which are specific to the ShinobiGridView.

If position

does not map to a row, for example if position

is out of the range of all the valid positions in a grid, a value of -1

will be returned.

Requirements

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

GetSelectedItemPositions Method

Syntax

[Android.Runtime.Register("getSelectedItemPositions", "()[I", "GetGetSelectedItemPositionsHandler")]
public virtual int[] GetSelectedItemPositions ()

Returns

the positions of the selected items

Remarks

Returns the positions of the items in the grid that have been selected.

Requirements

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

Select Method

Syntax

[Android.Runtime.Register("select", "(I)V", "GetSelect_IHandler")]
public virtual void Select (int position)

Parameters

position
- the position in the adapter to select

Remarks

Selects the item which corresponds to the given position.

Requirements

Namespace: ShinobiControls.Android.Grids.Core
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.Core
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.Core
Assembly: ShinobiControls.Android.Grids (in ShinobiControls.Android.Grids.dll)
Assembly Versions: 1.0.0.0