15 How to get device manufacturer name¶
If developers want to load the corresponding SDK on different devices when starting up apps, we recommend to retrieve manufacturer name as below to proceed with judgement.
- Android:
String manufacturer = android.os.Build.MANUFACTURER;
- Unity:
AndroidJavaClass ajc = new AndroidJavaClass("android.os.Build");
string deviceManufacturer = ajc.GetStatic<string>("MANUFACTURER");
- Unreal:
Refer to the document about PicoVR Jar Usage in Unreal to call Android interface to get the manufacturer.