MifareClassic.Decrement(Int32, Int32) Method

Definition

Decrement a value block, storing the result in the temporary block on the tag.

[Android.Runtime.Register("decrement", "(II)V", "")]
public void Decrement (int blockIndex, int value);
[<Android.Runtime.Register("decrement", "(II)V", "")>]
member this.Decrement : int * int -> unit

Parameters

blockIndex
Int32

index of block to decrement, starting from 0

value
Int32

non-negative to decrement by

Attributes

Exceptions

if the tag leaves the field

if there is an I/O failure, or the operation is canceled

Remarks

Decrement a value block, storing the result in the temporary block on the tag.

This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with IOException if #close is called from another thread.

<p class="note">Requires the android.Manifest.permission#NFC permission.

Java documentation for android.nfc.tech.MifareClassic.decrement(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to