Table of Contents

Class BaseExpandableListAdapterDirect

Namespace
Android.Widget
Assembly
MASES.Netdroid.dll

Concrete CLR representation of BaseExpandableListAdapter returned by the JVM.

public class BaseExpandableListAdapterDirect : BaseExpandableListAdapter, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IExpandableListAdapter, IHeterogeneousExpandableList
Inheritance
BaseExpandableListAdapterDirect
Implements
Inherited Members
Extension Methods

Remarks

When the JVM returns an instance of this listener type, JCOBridge needs a concrete CLR class to wrap it. A full listener implementation cannot be used in this scenario because it would require user-provided handler code that is not available at the point of construction. This class provides a minimal, handler-free wrapper: InitializeHandlers(Type) is a no-op, ListenerShallManageEvent(int) unconditionally returns false discarding all events immediately, and AutoInit is false to prevent automatic JVM-side registration.

Do not use this class directly to register event handlers — use BaseExpandableListAdapter instead.

Constructors

BaseExpandableListAdapterDirect(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 BaseExpandableListAdapterDirect(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

BaseExpandableListAdapterDirect(params object[])

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

public BaseExpandableListAdapterDirect(params object[] args)

Parameters

args object[]

Properties

AutoInit

Set to false to externally initialize this JVMBridgeListener instance using InitializeListener(IJVMBridgeBase)

public override bool AutoInit { get; }

Property Value

bool

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

AreAllItemsEnabled()

public override bool AreAllItemsEnabled()

Returns

bool

bool

GetChild(int, int)

public override object GetChild(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

object

object

GetChildId(int, int)

public override long GetChildId(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

long

long

GetChildType(int, int)

public override int GetChildType(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

GetChildTypeCount()

public override int GetChildTypeCount()

Returns

int

int

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

public override 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 override int GetChildrenCount(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetCombinedChildId(long, long)

public override long GetCombinedChildId(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

Returns

long

long

GetCombinedGroupId(long)

public override long GetCombinedGroupId(long arg0)

Parameters

arg0 long

long

Returns

long

long

GetGroup(int)

public override object GetGroup(int arg0)

Parameters

arg0 int

int

Returns

object

object

GetGroupCount()

public override int GetGroupCount()

Returns

int

int

GetGroupId(int)

public override long GetGroupId(int arg0)

Parameters

arg0 int

int

Returns

long

long

GetGroupType(int)

public override int GetGroupType(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetGroupTypeCount()

public override int GetGroupTypeCount()

Returns

int

int

GetGroupView(int, bool, View, ViewGroup)

public override 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 override bool HasStableIds()

Returns

bool

bool

InitializeHandlers(Type)

Handlers initializer for BaseExpandableListAdapter

protected override void InitializeHandlers(Type _)

Parameters

_ Type

Remarks

No handlers are registered in this direct override — initialization is intentionally skipped.

IsChildSelectable(int, int)

public override bool IsChildSelectable(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

bool

bool

IsEmpty()

public override 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 _)

Parameters

_ int

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

NotifyDataSetChanged()

public override void NotifyDataSetChanged()

NotifyDataSetInvalidated()

public override void NotifyDataSetInvalidated()

OnGroupCollapsed(int)

public override void OnGroupCollapsed(int arg0)

Parameters

arg0 int

int

OnGroupExpanded(int)

public override void OnGroupExpanded(int arg0)

Parameters

arg0 int

int

RegisterDataSetObserver(DataSetObserver)

public override void RegisterDataSetObserver(DataSetObserver arg0)

Parameters

arg0 DataSetObserver

DataSetObserver

UnregisterDataSetObserver(DataSetObserver)

public override void UnregisterDataSetObserver(DataSetObserver arg0)

Parameters

arg0 DataSetObserver

DataSetObserver