Class AppInfo
Contains all values that can be localized in the iOS Application. These are values that can be displayed when the App is not running such as the application name displayed on the home screen.
Implements
Namespace: UnityEngine .Localization.Platform.iOS
Assembly: Unity.Localization.dll
Syntax
[DisplayName("iOS App Info", null)]
[Serializable]
public class AppInfo : IMetadata
Examples
This example shows how to configure the iOS AppInfo. Note: You must complete this configuration before the application is built, otherwise, the changes will not be applied.
using UnityEditor;
using UnityEngine.Localization;
using UnityEngine.Localization.Platform.iOS;
using UnityEngine.Localization.Settings;
public class IosAppInfoExample
{
[MenuItem("Localization/Configure iOS App Info")]
public static void ConfigureAppInfo()
{
var appInfo = LocalizationSettings.Metadata.GetMetadata<AppInfo>();
if (appInfo == null)
{
appInfo = new AppInfo();
LocalizationSettings.Metadata.AddMetadata(appInfo);
}
appInfo.DisplayName = new LocalizedString("My Table", "My Display Name");
EditorUtility.SetDirty(LocalizationSettings.Instance);
}
}
Properties
Name | Description |
---|---|
Camera |
A message that tells the user why the app is requesting access to the device’s camera. NSCameraUsageDescription field in xcode projects info.plist file |
Display |
The user-visible name for the bundle, used by Siri and visible on the iOS Home screen.
Use this key if you want a product name that's longer than Short |
Location |
A message that tells the user why the app is requesting access to the user’s location information while the app is running in the foreground. NSLocationWhenInUseUsageDescription field in xcode projects info.plist file. |
Microphone |
A message that tells the user why the app is requesting access to the device’s microphone. NSMicrophoneUsageDescription field in xcode projects info.plist file. |
Short |
The user-visible name for the bundle, used by Siri and visible on the iOS Home screen. This name can contain up to 15 characters. CFBundleName field in xcode projects info.plist file. |
User |
A message that informs the user why an app is requesting permission to use data for tracking the user or the device. NSUserTrackingUsageDescription field in xcode projects info.plist file. |