mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-01-19 01:06:35 +00:00
22 lines
449 B
Swift
22 lines
449 B
Swift
|
//
|
||
|
// 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()
|
||
|
}
|
||
|
|