public CameraDeviceFactory() { cameraManager = Application.Context.GetSystemService(Context.CameraService) as CameraManager; if (cameraManager is null) { // Надо бы организовать что-то вроде окна лога AndroidEnvironment.RaiseThrowable(new Throwable("CameraManager is null")); } }
public Java.Lang.Object?Apply(Transaction transaction) { try { var wrapper = new TransactionWrapper(transaction); return(new ObjectHolder <T>(_handler(wrapper))); } catch (FirebaseFirestoreException e) { AndroidEnvironment.RaiseThrowable(e); } catch (System.Exception e) { AndroidEnvironment.RaiseThrowable(new JavaException(e)); } return(null); }