mobile-ios/CovidSafe/Herald/Sensor/Sensor.swift

22 lines
449 B
Swift
Raw Permalink Normal View History

2020-12-19 05:13:44 +00:00
//
// 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()
}