java.lang.Object | |
↳ | com.samsung.android.knox.ex.KnoxContract.Config.Font |
Deprecated in API level 37
This class provides to set device font size
KEY_SYSTEM_FONT_SIZES
get the supported font sizes on the device KEY_SYSTEM_ACTIVE_FONT_SIZE
set the font size on the device Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | CONTENT_URI_STRING | ||||||||||
String | ID | ||||||||||
String | KEY_SYSTEM_ACTIVE_FONT_SIZE |
Deprecated
in API level 37 NOTE: This API is not available since Android 16. |
|||||||||
String | KEY_SYSTEM_FONT_SIZES |
Deprecated
in API level 37 NOTE: This API is not available since Android 16. |
|||||||||
String | PARAM_SYSTEM_ACTIVE_FONT_SIZE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Deprecated
in API level 37
NOTE: This API is not available since Android 16.
Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/font"); ContentValues contentValues = new ContentValues(); contentValues.put("system-active-font-size", "1.0"); String selection = "key=?"; String[] selectionArgs = new String[] {"system-active-font-size"}; mContext.getContentResolver().update(uri, contentValues, selection, selectionArgs); Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/font"); String selection = "key=?"; String[] selectionArgs = new String[] {"system-active-font-size"}; Cursor cursor = mContext.getContentResolver().query(uri, null, selection, selectionArgs, null); float systemActiveFontSize = -1.f; if (cursor != null) { cursor.moveToFirst(); systemActiveFontSize = cursor.getFloat(0); } |
API level 34 |
Knox 3.7.1 |
The use of this feature requires the caller to have the "com.samsung.android.knox.permission.KNOX_NDA_DEVICE_SETTINGS_RT" permission. |
Deprecated
in API level 37
NOTE: This API is not available since Android 16.
Uri uri = Uri.parse("content://com.samsung.android.knox.sdk/config/font"); String selection = "key=?"; String[] selectionArgs = new String[] {"system-font-sizes"}; Cursor cursor = mContext.getContentResolver().query(uri, null, selection, selectionArgs, null); ArrayList<Float> fontSizes = new ArrayList<>(); if (cursor != null) { cursor.moveToFirst(); do { fontSizes.add(cursor.getFloat(0)); } while (cursor.moveToNext()); } |
API level 34 |
Knox 3.7.1 |
The use of this feature requires the caller to have the "com.samsung.android.knox.permission.KNOX_NDA_DEVICE_SETTINGS_RT" permission. |