Table of Contents

Class MifareClassic

Namespace
Android.Nfc.Tech
Assembly
MASES.Netdroid.dll
public class MifareClassic : TagTechnology, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ITagTechnology, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
MifareClassic
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

MifareClassic()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

public MifareClassic()

MifareClassic(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

public MifareClassic(params object[] args)

Parameters

args object[]

Properties

BLOCK_SIZE

public static int BLOCK_SIZE { get; }

Property Value

int

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

KEY_DEFAULT

public static byte[] KEY_DEFAULT { get; }

Property Value

byte[]

KEY_MIFARE_APPLICATION_DIRECTORY

public static byte[] KEY_MIFARE_APPLICATION_DIRECTORY { get; }

Property Value

byte[]

KEY_NFC_FORUM

public static byte[] KEY_NFC_FORUM { get; }

Property Value

byte[]

SIZE_1K

public static int SIZE_1K { get; }

Property Value

int

SIZE_2K

public static int SIZE_2K { get; }

Property Value

int

SIZE_4K

public static int SIZE_4K { get; }

Property Value

int

SIZE_MINI

public static int SIZE_MINI { get; }

Property Value

int

TYPE_CLASSIC

public static int TYPE_CLASSIC { get; }

Property Value

int

TYPE_PLUS

public static int TYPE_PLUS { get; }

Property Value

int

TYPE_PRO

public static int TYPE_PRO { get; }

Property Value

int

TYPE_UNKNOWN

public static int TYPE_UNKNOWN { get; }

Property Value

int

Methods

AuthenticateSectorWithKeyA(int, byte[])

public bool AuthenticateSectorWithKeyA(int arg0, byte[] arg1)

Parameters

arg0 int

int

arg1 byte[]

byte

Returns

bool

bool

Exceptions

IOException

AuthenticateSectorWithKeyB(int, byte[])

public bool AuthenticateSectorWithKeyB(int arg0, byte[] arg1)

Parameters

arg0 int

int

arg1 byte[]

byte

Returns

bool

bool

Exceptions

IOException

BlockToSector(int)

public int BlockToSector(int arg0)

Parameters

arg0 int

int

Returns

int

int

Close()

public void Close()

Exceptions

IOException

Connect()

public void Connect()

Exceptions

IOException

Decrement(int, int)

public void Decrement(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Exceptions

IOException

Get(Tag)

public static MifareClassic Get(Tag arg0)

Parameters

arg0 Tag

Tag

Returns

MifareClassic

MifareClassic

GetBlockCount()

public int GetBlockCount()

Returns

int

int

GetBlockCountInSector(int)

public int GetBlockCountInSector(int arg0)

Parameters

arg0 int

int

Returns

int

int

GetMaxTransceiveLength()

public int GetMaxTransceiveLength()

Returns

int

int

GetSectorCount()

public int GetSectorCount()

Returns

int

int

GetSize()

public int GetSize()

Returns

int

int

GetTag()

public Tag GetTag()

Returns

Tag

Tag

GetTimeout()

public int GetTimeout()

Returns

int

int

GetType()

public int GetType()

Returns

int

int

Increment(int, int)

public void Increment(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Exceptions

IOException

IsConnected()

public bool IsConnected()

Returns

bool

bool

ReadBlock(int)

public byte[] ReadBlock(int arg0)

Parameters

arg0 int

int

Returns

byte[]

byte

Exceptions

IOException

Restore(int)

public void Restore(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

SectorToBlock(int)

public int SectorToBlock(int arg0)

Parameters

arg0 int

int

Returns

int

int

SetTimeout(int)

public void SetTimeout(int arg0)

Parameters

arg0 int

int

Transceive(byte[])

public byte[] Transceive(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

byte[]

byte

Exceptions

IOException

Transfer(int)

public void Transfer(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteBlock(int, byte[])

public void WriteBlock(int arg0, byte[] arg1)

Parameters

arg0 int

int

arg1 byte[]

byte

Exceptions

IOException