Table of Contents

Class BaseExpandableListAdapter

Namespace
Android.Widget
Assembly
MASES.Netdroid.dll
public class BaseExpandableListAdapter : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IExpandableListAdapter, IHeterogeneousExpandableList
Inheritance
BaseExpandableListAdapter
Implements
Derived
Extension Methods

Constructors

BaseExpandableListAdapter()

public BaseExpandableListAdapter()

BaseExpandableListAdapter(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentifiable behaviors.")]
public BaseExpandableListAdapter(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

BaseExpandableListAdapter(params object[])

Generic constructor used by JCOBridge when a derived class needs to forward arguments to the base JVMBridgeBase class.

public BaseExpandableListAdapter(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

OnAreAllItemsEnabled

public Func<bool> OnAreAllItemsEnabled { get; set; }

Property Value

Func<bool>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnAreAllItemsEnabledDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<bool> OnAreAllItemsEnabledDispose { get; set; }

Property Value

Action<bool>

Remarks

Set OnAreAllItemsEnabledDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChild

public Func<int, int, object> OnGetChild { get; set; }

Property Value

Func<int, int, object>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<object> OnGetChildDispose { get; set; }

Property Value

Action<object>

Remarks

Set OnGetChildDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChildId

public Func<int, int, long> OnGetChildId { get; set; }

Property Value

Func<int, int, long>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildIdDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<long> OnGetChildIdDispose { get; set; }

Property Value

Action<long>

Remarks

Set OnGetChildIdDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChildType

public Func<int, int, int> OnGetChildType { get; set; }

Property Value

Func<int, int, int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildTypeCount

public Func<int> OnGetChildTypeCount { get; set; }

Property Value

Func<int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildTypeCountDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetChildTypeCountDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetChildTypeCountDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChildTypeDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetChildTypeDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetChildTypeDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChildView

public Func<int, int, bool, View, ViewGroup, View> OnGetChildView { get; set; }

Property Value

Func<int, int, bool, View, ViewGroup, View>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildViewDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<View> OnGetChildViewDispose { get; set; }

Property Value

Action<View>

Remarks

Set OnGetChildViewDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetChildrenCount

public Func<int, int> OnGetChildrenCount { get; set; }

Property Value

Func<int, int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetChildrenCountDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetChildrenCountDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetChildrenCountDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetCombinedChildId

public Func<long, long, long> OnGetCombinedChildId { get; set; }

Property Value

Func<long, long, long>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetCombinedChildIdDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<long> OnGetCombinedChildIdDispose { get; set; }

Property Value

Action<long>

Remarks

Set OnGetCombinedChildIdDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetCombinedGroupId

public Func<long, long> OnGetCombinedGroupId { get; set; }

Property Value

Func<long, long>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetCombinedGroupIdDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<long> OnGetCombinedGroupIdDispose { get; set; }

Property Value

Action<long>

Remarks

Set OnGetCombinedGroupIdDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroup

public Func<int, object> OnGetGroup { get; set; }

Property Value

Func<int, object>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupCount

public Func<int> OnGetGroupCount { get; set; }

Property Value

Func<int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupCountDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetGroupCountDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetGroupCountDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroupDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<object> OnGetGroupDispose { get; set; }

Property Value

Action<object>

Remarks

Set OnGetGroupDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroupId

public Func<int, long> OnGetGroupId { get; set; }

Property Value

Func<int, long>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupIdDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<long> OnGetGroupIdDispose { get; set; }

Property Value

Action<long>

Remarks

Set OnGetGroupIdDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroupType

public Func<int, int> OnGetGroupType { get; set; }

Property Value

Func<int, int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupTypeCount

public Func<int> OnGetGroupTypeCount { get; set; }

Property Value

Func<int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupTypeCountDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetGroupTypeCountDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetGroupTypeCountDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroupTypeDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<int> OnGetGroupTypeDispose { get; set; }

Property Value

Action<int>

Remarks

Set OnGetGroupTypeDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnGetGroupView

public Func<int, bool, View, ViewGroup, View> OnGetGroupView { get; set; }

Property Value

Func<int, bool, View, ViewGroup, View>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnGetGroupViewDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<View> OnGetGroupViewDispose { get; set; }

Property Value

Action<View>

Remarks

Set OnGetGroupViewDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnHasStableIds

public Func<bool> OnHasStableIds { get; set; }

Property Value

Func<bool>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnHasStableIdsDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<bool> OnHasStableIdsDispose { get; set; }

Property Value

Action<bool>

Remarks

Set OnHasStableIdsDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnIsChildSelectable

public Func<int, int, bool> OnIsChildSelectable { get; set; }

Property Value

Func<int, int, bool>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnIsChildSelectableDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<bool> OnIsChildSelectableDispose { get; set; }

Property Value

Action<bool>

Remarks

Set OnIsChildSelectableDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnIsEmpty

public Func<bool> OnIsEmpty { get; set; }

Property Value

Func<bool>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnIsEmptyDispose

Optional handler invoked after the event handler returns, to dispose the JVM object returned by this event.

public Action<bool> OnIsEmptyDispose { get; set; }

Property Value

Action<bool>

Remarks

Set OnIsEmptyDispose when the event handler returns a JVM-backed object that is no longer needed after the call. The handler receives the return value and is responsible for calling Dispose() on it, releasing the underlying JVM global reference immediately instead of waiting for the .NET garbage collector to finalize it. If not set, the return value is not disposed automatically.

OnNotifyDataSetChanged

public Action OnNotifyDataSetChanged { get; set; }

Property Value

Action

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnNotifyDataSetInvalidated

public Action OnNotifyDataSetInvalidated { get; set; }

Property Value

Action

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnOnGroupCollapsed

public Action<int> OnOnGroupCollapsed { get; set; }

Property Value

Action<int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnOnGroupExpanded

public Action<int> OnOnGroupExpanded { get; set; }

Property Value

Action<int>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnRegisterDataSetObserver

public Action<DataSetObserver> OnRegisterDataSetObserver { get; set; }

Property Value

Action<DataSetObserver>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

OnUnregisterDataSetObserver

public Action<DataSetObserver> OnUnregisterDataSetObserver { get; set; }

Property Value

Action<DataSetObserver>

Remarks

Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.

Methods

AreAllItemsEnabled()

public virtual bool AreAllItemsEnabled()

Returns

bool

bool

GetChild(int, int)

public virtual object GetChild(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

object

object

GetChildId(int, int)

public virtual long GetChildId(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

long

long

GetChildType(int, int)

public virtual int GetChildType(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

GetChildTypeCount()

public virtual int GetChildTypeCount()

Returns

int

int

GetChildView(int, int, bool, View, ViewGroup)

public virtual View GetChildView(int arg0, int arg1, bool arg2, View arg3, ViewGroup arg4)

Parameters

arg0 int

int

arg1 int

int

arg2 bool

bool

arg3 View

View

arg4 ViewGroup

ViewGroup

Returns

View

View

GetChildrenCount(int)

public virtual int GetChildrenCount(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetCombinedChildId(long, long)

public virtual long GetCombinedChildId(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

GetCombinedGroupId(long)

public virtual long GetCombinedGroupId(long arg0)

Parameters

arg0 long

long

Returns

long

long

GetGroup(int)

public virtual object GetGroup(int arg0)

Parameters

arg0 int

int

Returns

object

object

GetGroupCount()

public virtual int GetGroupCount()

Returns

int

int

GetGroupId(int)

public virtual long GetGroupId(int arg0)

Parameters

arg0 int

int

Returns

long

long

GetGroupType(int)

public virtual int GetGroupType(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetGroupTypeCount()

public virtual int GetGroupTypeCount()

Returns

int

int

GetGroupView(int, bool, View, ViewGroup)

public virtual View GetGroupView(int arg0, bool arg1, View arg2, ViewGroup arg3)

Parameters

arg0 int

int

arg1 bool

bool

arg2 View

View

arg3 ViewGroup

ViewGroup

Returns

View

View

HasStableIds()

public virtual bool HasStableIds()

Returns

bool

bool

InitializeHandlers(Type)

Handlers initializer for BaseExpandableListAdapter

protected virtual void InitializeHandlers(Type listenerRuntimeType)

Parameters

listenerRuntimeType Type

IsChildSelectable(int, int)

public virtual bool IsChildSelectable(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

bool

bool

IsEmpty()

public virtual bool IsEmpty()

Returns

bool

bool

ListenerShallManageEvent(int)

Invoked from the JVMBridgeListener on each received event to notify the user which can decide to abort the execution for the specific event returning false

protected override bool ListenerShallManageEvent(int eventIndex)

Parameters

eventIndex int

The index of the event triggered as returned from AddEventHandler(string, EventHandler) or AddEventHandler<TDataClass>(string, EventHandler<CLRListenerEventArgs<TDataClass>>)

Returns

bool

Returns true to continue event evaluation, false to return the control to the JVM

Remarks

By default every event continues the execution and reads the data from JVM; this implies an extra cost which can be limited using ListenerShallManageEvent(int) or the ListenerShallManageEventIndex/ListenerShallManageEventName handlers. Returning false the control is immediately returned to the JVM, anyway the user has received the notification. It can be useful in scenarios where the user is interested in few events and the other are simply discarded to optimize the execution speed. By default, this function invokes ListenerShallManageEventIndex, then try ListenerShallManageEventName if they are set or return true

ListenerShallManageEventHandlers(int)

protected virtual bool ListenerShallManageEventHandlers(int eventIndex)

Parameters

eventIndex int

Returns

bool

NotifyDataSetChanged()

public virtual void NotifyDataSetChanged()

NotifyDataSetInvalidated()

public virtual void NotifyDataSetInvalidated()

OnGroupCollapsed(int)

public virtual void OnGroupCollapsed(int arg0)

Parameters

arg0 int

int

OnGroupExpanded(int)

public virtual void OnGroupExpanded(int arg0)

Parameters

arg0 int

int

RegisterDataSetObserver(DataSetObserver)

public virtual void RegisterDataSetObserver(DataSetObserver arg0)

Parameters

arg0 DataSetObserver

DataSetObserver

UnregisterDataSetObserver(DataSetObserver)

public virtual void UnregisterDataSetObserver(DataSetObserver arg0)

Parameters

arg0 DataSetObserver

DataSetObserver