Class MifareClassic
public class MifareClassic : TagTechnology, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, ITagTechnology, ICloseable, IAutoCloseable
- Inheritance
-
MifareClassic
- Implements
- Extension Methods
Constructors
MifareClassic(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 MifareClassic(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BLOCK_SIZE
public static int BLOCK_SIZE { get; set; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
KEY_DEFAULT
public static byte[] KEY_DEFAULT { get; set; }
Property Value
- byte[]
KEY_MIFARE_APPLICATION_DIRECTORY
public static byte[] KEY_MIFARE_APPLICATION_DIRECTORY { get; set; }
Property Value
- byte[]
KEY_NFC_FORUM
public static byte[] KEY_NFC_FORUM { get; set; }
Property Value
- byte[]
SIZE_1K
public static int SIZE_1K { get; set; }
Property Value
SIZE_2K
public static int SIZE_2K { get; set; }
Property Value
SIZE_4K
public static int SIZE_4K { get; set; }
Property Value
SIZE_MINI
public static int SIZE_MINI { get; set; }
Property Value
TYPE_CLASSIC
public static int TYPE_CLASSIC { get; set; }
Property Value
TYPE_PLUS
public static int TYPE_PLUS { get; set; }
Property Value
TYPE_PRO
public static int TYPE_PRO { get; set; }
Property Value
TYPE_UNKNOWN
public static int TYPE_UNKNOWN { get; set; }
Property Value
Methods
AuthenticateSectorWithKeyA(int, byte[])
public bool AuthenticateSectorWithKeyA(int arg0, byte[] arg1)
Parameters
Returns
Exceptions
AuthenticateSectorWithKeyB(int, byte[])
public bool AuthenticateSectorWithKeyB(int arg0, byte[] arg1)
Parameters
Returns
Exceptions
BlockToSector(int)
public int BlockToSector(int arg0)
Parameters
Returns
Close()
public void Close()
Exceptions
Connect()
public void Connect()
Exceptions
Decrement(int, int)
public void Decrement(int arg0, int arg1)
Parameters
Exceptions
Get(Tag)
public static MifareClassic Get(Tag arg0)
Parameters
Returns
GetBlockCount()
public int GetBlockCount()
Returns
GetBlockCountInSector(int)
public int GetBlockCountInSector(int arg0)
Parameters
Returns
GetMaxTransceiveLength()
https://developer.android.com/reference/android/nfc/tech/MifareClassic.html#getMaxTransceiveLength()
public int GetMaxTransceiveLength()
Returns
GetSectorCount()
public int GetSectorCount()
Returns
GetSize()
public int GetSize()
Returns
GetTag()
public Tag GetTag()
Returns
GetTimeout()
public int GetTimeout()
Returns
GetType()
public int GetType()
Returns
Increment(int, int)
public void Increment(int arg0, int arg1)
Parameters
Exceptions
IsConnected()
public bool IsConnected()
Returns
ReadBlock(int)
public byte[] ReadBlock(int arg0)
Parameters
Returns
Exceptions
Restore(int)
public void Restore(int arg0)
Parameters
Exceptions
SectorToBlock(int)
public int SectorToBlock(int arg0)
Parameters
Returns
SetTimeout(int)
public void SetTimeout(int arg0)
Parameters
Transceive(byte[])
public byte[] Transceive(byte[] arg0)
Parameters
Returns
Exceptions
Transfer(int)
public void Transfer(int arg0)
Parameters
Exceptions
WriteBlock(int, byte[])
public void WriteBlock(int arg0, byte[] arg1)