NoaInformation
Through this class, you can get the information of the Information function.
APIs
Static Methods
| API | Description |
|---|---|
| SetDownloadCallbacks(commonCallbacks, informationCallbacks) | Configure download-related events by creating a custom class and passing it as an argument. For detailed information about the arguments, refer to NoaDownloadCallbacks and NoaInformationDownloadCallbacks. |
Static Properties
| API | Description |
|---|---|
| ApplicationInformation | Returns the application information the tool retains. System properties whose values can be changed on the UI can also be updated via the API. For detailed information, please refer to Information. |
| DeviceInformation | Returns the device information the tool retains. |
| OnCopied | An event that executes when system items are copied to the clipboard. It fires when the[ |
| OnSend | An event that executes when system items are sent. It fires when the[ |
Sample Code
using UnityEngine;
#if NOA_DEBUGGER
using NoaDebugger;
#endif
public class Example
{
void ExampleMethod()
{
#if NOA_DEBUGGER
// Get the application information.
ApplicationInformation applicationInformation = NoaInformation.ApplicationInformation;
BuildInformationGroup build = applicationInformation.Build;
RuntimeInformationGroup runtime = applicationInformation.Runtime;
ScreenInformationGroup screen = applicationInformation.Screen;
GraphicsSettingsInformationGroup graphicsSettings = applicationInformation.GraphicsSettings;
LoggingInformationGroup logging = applicationInformation.Logging;
ApplicationOtherInformationGroup other = applicationInformation.ApplicationOther;
// Update the value of mutable system properties.
runtime.TimeScale = 2.0f;
screen.TargetFrameRate = 60;
graphicsSettings.QualityLevel = 5;
logging.Enabled = true;
// Get the device information.
DeviceInformation deviceInformation = NoaInformation.DeviceInformation;
DeviceGeneralInformationGroup deviceGeneral = deviceInformation.DeviceGeneral;
OSInformationGroup os = deviceInformation.OS;
ProcessorInformationGroup processor = deviceInformation.Processor;
GraphicsDeviceInformationGroup graphicsDevice = deviceInformation.GraphicsDevice;
SystemMemoryInformationGroup systemMemory = deviceInformation.SystemMemory;
DisplayInformationGroup display = deviceInformation.Display;
GraphicsSupportInformationGroup graphicsSupport = deviceInformation.GraphicsSupport;
TextureFormatSupportInformationGroup textureFormatSupport = deviceInformation.TextureFormatSupport;
FeatureSupportInformationGroup featureSupport = deviceInformation.FeatureSupport;
NetworkInformationGroup network = deviceInformation.Network;
SystemInformationGroup system = deviceInformation.System;
InputInformationGroup input = deviceInformation.Input;
// Set the events to be executed during download using a custom-defined class.
var downloader = new ExampleDownloader();
var informationDownloader = new ExampleInformationDownloader();
NoaInformation.SetDownloadCallbacks(downloader, informationDownloader);
// Set an event to be executed when system items are copied to the clipboard
NoaInformation.OnCopied += (Dictionary<string,List<InformationGroup>> informationGroups, string clipboardText) => Debug.Log($"Information copied. Clipboard: {clipboardText}");
// Set an event to be executed when system items are sent
NoaInformation.OnSend += (Dictionary<string,List<InformationGroup>> informationGroups) => Debug.Log("Information sent.");
#endif
}
}
