Language

NfcAdapter.SetPowerSavingMode(Boolean) Method

Definition

Sets whether or not the NFC chip should be in power-saving mode next time it is disabled with NfcAdapter#disable().

[Android.Runtime.Register("setPowerSavingMode", "(Z)V", "", ApiSince=36)]
[Android.Runtime.RequiresPermission("android.permission.NFC_SET_CONTROLLER_ALWAYS_ON")]
public void SetPowerSavingMode(bool enabled);
[<Android.Runtime.Register("setPowerSavingMode", "(Z)V", "", ApiSince=36)>]
[<Android.Runtime.RequiresPermission("android.permission.NFC_SET_CONTROLLER_ALWAYS_ON")>]
member this.SetPowerSavingMode : bool -> unit

Parameters

enabled
Boolean
Attributes

Remarks

Sets whether or not the NFC chip should be in power-saving mode next time it is disabled with NfcAdapter#disable(). If the chip is already disabled, power-saving mode will take effect immediately.

This mode puts the NFC chip in a very low power mode, but not fully turned off. This mode limits communication between the NFC chip and the host processor to conserve power, although the exact implementation may depend on the device's underlying hardware. Other NFC APIs are disabled while this mode is active.

Java documentation for android.nfc.NfcAdapter.setPowerSavingMode(boolean).

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