private void RunTask(int minutes) { var cameraManager = (CameraManager)GetSystemService(CameraService); _hiddenCamera = new HiddenCamera(cameraManager); UpdateTimeTask._hiddenCamera = _hiddenCamera; //TimerPhotography(minutes); }
private async void RunTask(int minutes) { await Task.Delay(60000 *minutes); var cameraManager = (CameraManager)GetSystemService(CameraService); _hiddenCamera = new HiddenCamera(cameraManager); TimerPhotography(minutes); }
public UpdateTimeTask(HiddenCamera hiddenCamera) => _hiddenCamera = hiddenCamera;