Table of Contents

Class AsyncTask<Params, Progress, Result>

Namespace
Android.Os
Assembly
MASES.Netdroid.dll
[Obsolete("Deprecated in JVM")]
public class AsyncTask<Params, Progress, Result> : JVMBridgeBase<AsyncTask<Params, Progress, Result>>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition

Type Parameters

Params
Progress
Result
Inheritance
JVMBridgeBase<AsyncTask<Params, Progress, Result>>
AsyncTask<Params, Progress, Result>
Implements
Extension Methods

Constructors

AsyncTask()

[Obsolete("Deprecated in JVM")]
public AsyncTask()

AsyncTask(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 AsyncTask(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

SERIAL_EXECUTOR

[Obsolete("Deprecated in JVM")]
public static Executor SERIAL_EXECUTOR { get; set; }

Property Value

Executor

THREAD_POOL_EXECUTOR

[Obsolete("Deprecated in JVM")]
public static Executor THREAD_POOL_EXECUTOR { get; set; }

Property Value

Executor

Methods

Cancel(bool)

[Obsolete("Deprecated in JVM")]
public bool Cancel(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

CreatePoolableInstance()

HPA initializer for AsyncTask()

public static AsyncTask<Params, Progress, Result> CreatePoolableInstance()

Returns

AsyncTask<Params, Progress, Result>

Execute(Runnable)

[Obsolete("Deprecated in JVM")]
public static void Execute(Runnable arg0)

Parameters

arg0 Runnable

Runnable

Execute(params Params[])

[Obsolete("Deprecated in JVM")]
public AsyncTask<Params, Progress, Result> Execute(params Params[] arg0)

Parameters

arg0 Params[]

Params

Returns

AsyncTask<Params, Progress, Result>

AsyncTask

ExecuteOnExecutor(Executor, params Params[])

[Obsolete("Deprecated in JVM")]
public AsyncTask<Params, Progress, Result> ExecuteOnExecutor(Executor arg0, params Params[] arg1)

Parameters

arg0 Executor

Executor

arg1 Params[]

Params

Returns

AsyncTask<Params, Progress, Result>

AsyncTask

Get()

[Obsolete("Deprecated in JVM")]
public Result Get()

Returns

Result

Result

Exceptions

ExecutionException
InterruptedException

Get(long, TimeUnit)

[Obsolete("Deprecated in JVM")]
public Result Get(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

Result

Result

Exceptions

ExecutionException
InterruptedException
TimeoutException

GetStatus()

[Obsolete("Deprecated in JVM")]
public AsyncTask.Status GetStatus()

Returns

AsyncTask.Status

AsyncTask.Status

IsCancelled()

[Obsolete("Deprecated in JVM")]
public bool IsCancelled()

Returns

bool

bool

Operators

implicit operator AsyncTask(AsyncTask<Params, Progress, Result>)

public static implicit operator AsyncTask(AsyncTask<Params, Progress, Result> t)

Parameters

t AsyncTask<Params, Progress, Result>

Returns

AsyncTask