Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AndroidConfiguration

class in UnityEngine.Android

/

Implemented in:UnityEngine.AndroidJNIModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Use this class to retrieve device specific configuration information.

Properties

colorModeHdrMirrors the Android property colorMode based on the COLOR_MODE_HDR_MASK value.
colorModeWideColorGamutMirrors the Android property colorMode based on the COLOR_MODE_WIDE_COLOR_GAMUT_MASK value.
densityDpiMirrors the Android property densityDpi.
fontScaleMirrors the Android property fontScale.
fontWeightAdjustmentMirrors the Android property fontWeightAdjustment.
hardKeyboardHiddenMirrors the Android property hardKeyboardHidden.
keyboardMirrors the Android property keyboard.
keyboardHiddenMirrors the Android property keyboardHidden.
localesIndicates the language and region preferences set on the device in an array.
mobileCountryCodeMirrors the Android property mcc.
mobileNetworkCodeMirrors the Android property mnc.
navigationMirrors the Android property navigation.
navigationHiddenMirrors the Android property navigationHidden.
orientationMirrors the Android property orientation.
screenHeightDpMirrors the Android property screenHeightDp.
screenLayoutDirectionMirrors the Android property screenLayout based on the SCREENLAYOUT_LAYOUTDIR_MASK value.
screenLayoutLongMirrors the Android property screenLayout based on the SCREENLAYOUT_LONG_MASK value.
screenLayoutRoundMirrors the Android property screenLayout based on the SCREENLAYOUT_ROUND_MASK value.
screenLayoutSizeMirrors the Android property screenLayout based on the SCREENLAYOUT_SIZE_MASK value.
screenWidthDpMirrors the Android property screenWidthDp.
smallestScreenWidthDpMirrors the Android property smallestScreenWidthDp.
touchScreenMirrors the Android property touchscreen.
uiModeNightMirrors the Android property uiMode based on the UI_MODE_NIGHT_MASK value.
uiModeTypeMirrors the Android property uiMode based on the UI_MODE_TYPE_MASK value.

Constructors

AndroidConfigurationMirrors the Android method Configuration().

Public Methods

ToStringMirrors the Android method toString().