Table of Contents

Class AppComponentFactory

Namespace
Android.App
Assembly
MASES.Netdroid.dll
public class AppComponentFactory : JVMBridgeBase<AppComponentFactory>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
AppComponentFactory
Implements
Extension Methods

Constructors

AppComponentFactory()

public AppComponentFactory()

AppComponentFactory(IJVMBridgeBaseInitializer)

Initializer used internally by JCOBridge. Do not use directly.

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

Parameters

initializer IJVMBridgeBaseInitializer

Properties

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

CreatePoolableInstance()

HPA initializer for AppComponentFactory()

public static AppComponentFactory CreatePoolableInstance()

Returns

AppComponentFactory

InstantiateActivity(ClassLoader, String, Intent)

public Activity InstantiateActivity(ClassLoader arg0, String arg1, Intent arg2)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

arg2 Intent

Intent

Returns

Activity

Activity

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException

InstantiateActivityDirect(ClassLoader, String, Intent)

public Activity InstantiateActivityDirect(ClassLoader arg0, String arg1, Intent arg2)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

arg2 Intent

Intent

Returns

Activity

Activity

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException

InstantiateApplication(ClassLoader, String)

public Application InstantiateApplication(ClassLoader arg0, String arg1)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

Returns

Application

Application

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException

InstantiateClassLoader(ClassLoader, ApplicationInfo)

public ClassLoader InstantiateClassLoader(ClassLoader arg0, ApplicationInfo arg1)

Parameters

arg0 ClassLoader

ClassLoader

arg1 ApplicationInfo

ApplicationInfo

Returns

ClassLoader

ClassLoader

InstantiateProvider(ClassLoader, String)

public ContentProvider InstantiateProvider(ClassLoader arg0, String arg1)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

Returns

ContentProvider

ContentProvider

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException

InstantiateReceiver(ClassLoader, String, Intent)

public BroadcastReceiver InstantiateReceiver(ClassLoader arg0, String arg1, Intent arg2)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

arg2 Intent

Intent

Returns

BroadcastReceiver

BroadcastReceiver

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException

InstantiateService(ClassLoader, String, Intent)

public Service InstantiateService(ClassLoader arg0, String arg1, Intent arg2)

Parameters

arg0 ClassLoader

ClassLoader

arg1 String

String

arg2 Intent

Intent

Returns

Service

Service

Exceptions

ClassNotFoundException
IllegalAccessException
InstantiationException