public void OnSuspend() { if (logging) { Debug.Log("[SensoManager] OnSuspend. Subscribe to OnSuspended event for alerts."); } OnSuspended?.Invoke(); }
public void Suspend() { timer.Reset(); timer.Start(); while (timer.ElapsedMilliseconds < waitDuration) { OnSuspended?.Invoke(); } timer.Stop(); }
protected override void OnSleep() { App.DebugLog("1"); OnSuspended?.Invoke(); App.DebugLog("2"); }