Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AndroidConfiguration

Use this class to retrieve device specific configuration information.
Read time 1 minuteLast updated 6 days ago

Definition

public sealed class AndroidConfiguration

Remarks

Constructors

Constructor

Description

AndroidConfiguration()Mirrors the Android method
Configuration()
.
AndroidConfiguration(UnityEngine.Android.AndroidConfiguration)Mirrors the Android method
Configuration()
.

Properties

Property

Description

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.

Methods

Method

Description

CopyFromCopies the specified configuration into the current instance.
ToStringMirrors the Android method
toString()
.