Code example for MifareClassic

Methods: getBlockCount

0
    /** 
     * Return the block count of the Mifare Classic tag. 
     * @return The block count of the current tag. 
     */ 
    public int getBlockCount() { 
        return mMFC.getBlockCount();
    } 
 
    /** 
     * Return the block count in a specific sector. 
     * @param sectorIndex Index of a sector. 
     * @return Block count in given sector. 
     */ 
    public int getBlockCountInSector(int sectorIndex) {
        return mMFC.getBlockCountInSector(sectorIndex);
    } 
 
    /** 
     * Check if the reader is connected to the tag. 
     * @return True if the reader is connected. False otherwise. 
     */