mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 13:05:21 +00:00
COVIDSafe code from version 2.0 (#37)
This commit is contained in:
parent
cf93ea43c0
commit
8b75c1fc6f
55 changed files with 4624 additions and 1117 deletions
21
CovidSafe/Herald/Sensor/Sensor.swift
Normal file
21
CovidSafe/Herald/Sensor/Sensor.swift
Normal file
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// Sensor.swift
|
||||
//
|
||||
// Copyright 2020 VMware, Inc.
|
||||
// SPDX-License-Identifier: MIT
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
/// Sensor for detecting and tracking various kinds of disease transmission vectors, e.g. contact with people, time at location.
|
||||
public protocol Sensor {
|
||||
/// Add delegate for responding to sensor events.
|
||||
func add(delegate: SensorDelegate)
|
||||
|
||||
/// Start sensing.
|
||||
func start()
|
||||
|
||||
/// Stop sensing.
|
||||
func stop()
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue