Deprecated
in API level 37
Class Overview
This class provides to manage
Specific Policy
Summary
Public Constructors |
|
NFC()
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
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
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);
|
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
Public Constructors