private void StartInternal() { MLPluginLog.Debug($"Initializing {typeof(T).Name} API..."); if (DidNativeCallSucceed(StartAPI(), $"{typeof(T).Name} Start")) { IsStarted = true; MLDevice.RegisterUpdate(instance.Update); MLDevice.RegisterApplicationPause(instance.OnApplicationPause); MLDevice.RegisterDestroy(instance.StopInternal); instance.perceptionHandle = PerceptionHandle.Acquire(); MLPluginLog.Debug($"{typeof(T).Name} API initialized."); } }