Since: API level 34
public static class

KnoxContract.Config.NFC

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.ex.KnoxContract.Config.NFC

Deprecated in API level 37

Class Overview

This class provides to manage


Specific Policy

Summary

Constants
String CONTENT_URI_STRING
String ID
String KEY_NFC Deprecated in API level 37
String PARAM_NFC
Public Constructors
NFC()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_URI_STRING

Since: API level 34

Constant Value: "content://com.samsung.android.knox.sdk/config/nfc"

public static final String ID

Since: API level 34

Constant Value: "nfc"

public static final String KEY_NFC

Since: API level 34

Deprecated in API level 37

API to turn NFC on or off.


    Param
    PARAM_NFC the value used to turn on NFC. e.g., 'true' for turn on,otherwise 'false'

Usage
 Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/nfc");
 ContentValues contentValues = new ContentValues();
 contentValues.put("nfc", "true");
 String selection = "key=?";
 String[] selectionArgs = new String[] {"nfc"};
 mContext.getContentResolver().update(uri, contentValues, selection, selectionArgs);
 
Since
API level 34
Knox 3.7.1
Permission
The use of this feature requires the caller to have the "com.samsung.android.knox.permission.KNOX_NDA_DEVICE_SETTINGS_RT" permission.
Constant Value: "nfc"

public static final String PARAM_NFC

Since: API level 34

Constant Value: "nfc"

Public Constructors

public NFC ()

Since: API level 34