public void RequestUsbDeviceAccessFromAndroid(AstraController controller) { Initialize(); // Make sure we aren't updating Astra in the background _backgroundUpdater.Wait(-1); #if ASTRA_UNITY_ANDROID_NATIVE EnsureJavaActivity(); Debug.Log("AstraUnityContext.RequestUsbDeviceAccessFromAndroid() calling openAllDevices"); javaActivity.Call("openAllDevices", new AstraDeviceManagerListener(controller)); Debug.Log("AstraUnityContext.RequestUsbDeviceAccessFromAndroid() called openAllDevices"); //TODO: only call this in the callback with the success/fail results RaisePermissionRequestCompleted(true); #else RaisePermissionRequestCompleted(true); #endif }
public AstraDeviceManagerListener(AstraController obj) : base("com.orbbec.astra.android.AstraDeviceManagerListener") { obj_ = obj; }