Class Player
Namespace: UnityEditor.Localization.Platform.Android
Syntax
public static class Player : object
Methods
AddLocalizationToAndroidGradleProject(String)
Updates the Gradle project 'strings.xml' file with localized values using the AppInfo from Metadata.
Declaration
public static void AddLocalizationToAndroidGradleProject(string projectDirectory)
Parameters
Type | Name | Description |
---|---|---|
String | projectDirectory | The root project directory to be updated. This is where the Android player was built to. |
AddLocalizationToAndroidGradleProject(String, AppInfo, RoundIconsInfo, LegacyIconsInfo, AdaptiveIconsInfo)
Updates the Android Gradle project file with localized values using AppInfo.
Declaration
public static void AddLocalizationToAndroidGradleProject(string projectDirectory, AppInfo appInfo, RoundIconsInfo roundIconsInfo = null, LegacyIconsInfo legacyIconsInfo = null, AdaptiveIconsInfo adaptiveIconsInfo = null)
Parameters
Type | Name | Description |
---|---|---|
String | projectDirectory | The root project directory to be updated. This is where the Android player was built to. |
AppInfo | appInfo | Contains the localized values for the App. |
RoundIconsInfo | roundIconsInfo | Contains the localized values for Android Round Icon. Refer Android documentation for more details : https://developer.android.com/about/versions/nougat/android-7.1.html#circular-icons |
LegacyIconsInfo | legacyIconsInfo | Contains the localized values for Android Legacy Icon. |
AdaptiveIconsInfo | adaptiveIconsInfo | Contains the localized values for Android Adaptive Icon. . Refer Android documentation for more details : https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive |