ShinobiControls Xamarin Bindings Documentation

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

ItemStateManager Class

Convenience class to update the positions, of hidden and selected items on the ShinobiControls.Android.Grids.Core.ShinobiGridView following a row or column reorder operation.

Syntax

[Android.Runtime.Register("com/shinobicontrols/grids/supplement/ItemStateManager", DoNotGenerateAcw=true)]
public class ItemStateManager : Java.Lang.Object, ColumnReorderDetector.IOnColumnReorderListener, RowReorderDetector.IOnRowReorderListener, IDisposable

Remarks

Convenience class to update the positions, of hidden and selected items on the ShinobiControls.Android.Grids.Core.ShinobiGridView following a row or column reorder operation.

The ShinobiControls.Android.Grids.Supplement.ItemStateManager implements both the ShinobiControls.Android.Grids.Supplement.RowReorderDetector.IOnRowReorderListener and ShinobiControls.Android.Grids.Supplement.ColumnReorderDetector.IOnColumnReorderListener interfaces. In the ShinobiControls.Android.Grids.Supplement.RowReorderDetector.IOnRowReorderListener and ShinobiControls.Android.Grids.Supplement.ColumnReorderDetector.IOnColumnReorderListener methods it stores the existing positions of selected and hidden items in both the header and data ShinobiControls.Android.Grids.Core.GridRecyclerView. In the ShinobiControls.Android.Grids.Supplement.RowReorderDetector.IOnRowReorderListener and ShinobiControls.Android.Grids.Supplement.ColumnReorderDetector.IOnColumnReorderListener methods it will calculate the updated positions based on the row or column reorder and apply these to the ShinobiControls.Android.Grids.Core.ShinobiGridView.

In most cases an instance of the ShinobiControls.Android.Grids.Supplement.ItemStateManager should be added to a ShinobiControls.Android.Grids.Supplement.VisualRowReorderer and/or a ShinobiControls.Android.Grids.Supplement.VisualColumnReorderer to ensure the reinstating of selected and hidden items is performed at the correct time. Alternatively, if you are not providing any form of visual feedback for a reorder gesture an ShinobiControls.Android.Grids.Supplement.ItemStateManager can be added directly to a ShinobiControls.Android.Grids.Supplement.RowReorderDetector or a ShinobiControls.Android.Grids.Supplement.ColumnReorderDetector.

This class is one of many that are used by the ShinobiControls.Android.Grids.Supplement.RowColumnReorderManager to enable intuitive row and column reordering on the ShinobiControls.Android.Grids.Core.ShinobiGridView. In general, the ShinobiControls.Android.Grids.Supplement.RowColumnReorderManager provides a more convenient way of achieving this. However, for more specialized situations this class can be leveraged in conjunction with other classes to provide the same item state preserving behavior.

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

Member Details

ItemStateManager Constructor

Documentation for this section has not yet been entered.

Syntax

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

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

ItemStateManager Constructor

Documentation for this section has not yet been entered.

Syntax

protected ItemStateManager (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

OnColumnIndexChanged Method

Syntax

[Android.Runtime.Register("onColumnIndexChanged", "(IIILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnColumnIndexChanged_IIILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnColumnIndexChanged (int p0, int p1, int p2, ShinobiControls.Android.Grids.Core.GridRecyclerView p3)

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.
p3
Documentation for this section has not yet been entered.

Remarks

Currently not used.

Requirements

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

OnColumnReorderCancelled Method

Syntax

[Android.Runtime.Register("onColumnReorderCancelled", "(ILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnColumnReorderCancelled_ILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnColumnReorderCancelled (int p0, ShinobiControls.Android.Grids.Core.GridRecyclerView p1)

Parameters

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

Remarks

Tidies up any stored state once the reorder event is cancelled.

Requirements

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

OnColumnReorderEnded Method

Syntax

[Android.Runtime.Register("onColumnReorderEnded", "(IILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnColumnReorderEnded_IILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnColumnReorderEnded (int p0, int p1, ShinobiControls.Android.Grids.Core.GridRecyclerView 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.

Remarks

Calculates the updated positions of selected and hidden items, including hidden header items, and applies them to the ShinobiControls.Android.Grids.Core.ShinobiGridView

thus preserving the selected and hidden items across the reorder event.

Requirements

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

OnColumnReorderStarted Method

Syntax

[Android.Runtime.Register("onColumnReorderStarted", "(ILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnColumnReorderStarted_ILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnColumnReorderStarted (int p0, ShinobiControls.Android.Grids.Core.GridRecyclerView p1)

Parameters

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

Remarks

Stores the positions of the selected and hidden items in the ShinobiControls.Android.Grids.Core.ShinobiGridView

. This includes any hidden items in the header row.

Requirements

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

OnRowIndexChanged Method

Syntax

[Android.Runtime.Register("onRowIndexChanged", "(IIILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnRowIndexChanged_IIILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnRowIndexChanged (int p0, int p1, int p2, ShinobiControls.Android.Grids.Core.GridRecyclerView p3)

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.
p3
Documentation for this section has not yet been entered.

Remarks

Currently not used.

Requirements

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

OnRowReorderCancelled Method

Syntax

[Android.Runtime.Register("onRowReorderCancelled", "(ILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnRowReorderCancelled_ILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnRowReorderCancelled (int p0, ShinobiControls.Android.Grids.Core.GridRecyclerView p1)

Parameters

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

Remarks

Tidies up any stored state once the reorder event is cancelled.

Requirements

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

OnRowReorderEnded Method

Syntax

[Android.Runtime.Register("onRowReorderEnded", "(IILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnRowReorderEnded_IILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnRowReorderEnded (int p0, int p1, ShinobiControls.Android.Grids.Core.GridRecyclerView 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.

Remarks

Calculates the updated positions of selected and hidden items, including hidden header items, and applies them to the ShinobiControls.Android.Grids.Core.ShinobiGridView

thus preserving the selected and hidden items across the reorder event.

Requirements

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

OnRowReorderStarted Method

Syntax

[Android.Runtime.Register("onRowReorderStarted", "(ILcom/shinobicontrols/grids/core/GridRecyclerView;)V", "GetOnRowReorderStarted_ILcom_shinobicontrols_grids_core_GridRecyclerView_Handler")]
public virtual void OnRowReorderStarted (int p0, ShinobiControls.Android.Grids.Core.GridRecyclerView p1)

Parameters

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

Remarks

Stores the positions of the selected and hidden items in the ShinobiControls.Android.Grids.Core.ShinobiGridView

. This includes any hidden items in the header row.

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