Partager via


UserManager.DisallowNearFieldCommunicationRadio Field

Definition

This user restriction specifies if Near-field communication is disallowed on the device.

[Android.Runtime.Register("DISALLOW_NEAR_FIELD_COMMUNICATION_RADIO", ApiSince=35)]
public const string DisallowNearFieldCommunicationRadio;
[<Android.Runtime.Register("DISALLOW_NEAR_FIELD_COMMUNICATION_RADIO", ApiSince=35)>]
val mutable DisallowNearFieldCommunicationRadio : string

Field Value

Attributes

Remarks

This user restriction specifies if Near-field communication is disallowed on the device. If Near-field communication is disallowed it cannot be turned on via Settings.

This restriction can only be set by a device owner or a profile owner of an organization-owned managed profile on the parent profile. In both cases, the restriction applies globally on the device and will turn off the Near-field communication radio if it's currently on and prevent the radio from being turned on in the future.

Near-field communication (NFC) is a radio technology that allows two devices (like your phone and a payments terminal) to communicate with each other when they're close together.

Default is false.

Key for user restrictions.

Type: Boolean

Java documentation for android.os.UserManager.DISALLOW_NEAR_FIELD_COMMUNICATION_RADIO.

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