Show / Hide Table of Contents

    Class iOSBluetoothDeviceProximityProbe

    Scans for the presence of other devices nearby that are running the current Protocol. When encountered, this Probe will read the device ID of other devices. This Probe also advertises the presence of the current device and serves requests for the current device's ID. This Probe reports data in the form of BluetoothDeviceProximityDatum objects. There are no caveats to the conditions under which an iOS device running this Probe will detect another device. Detection is possible if the other device is Android or iOS and if Sensus is foregrounded or backgrounded on the other device.

    NOTE: The value of Id running on the other device must equal the value of Id running on the current device. When a Protocol is created from within the Sensus app, it is assigned a unique identifier. This value is maintained or changed depending on what you do:

    • When the newly created Protocol is copied on the current device, a new unique identifier is assigned to it. This breaks the connection between the Protocols.

    • When the newly created Protocol is shared via the app with another device, its identifier remains unchanged. This maintains the connection between the Protocols.

    Thus, in order for this iOSBluetoothDeviceProximityProbe to operate properly, you must configure your Protocols in one of the two following ways:

    • Create your Protocol on one platform (either Android or iOS) and then share it with a device from the other platform for customization. The Id values of these Protocols will remain equal and this iOSBluetoothDeviceProximityProbe will detect encounters across platforms.

    • Create your Protocols separately on each platform and then set the Id field on one platform (using the "Set Study Identifier" button) to match the Id value of the other platform (obtained via "Copy Study Identifier").

    See the Android subclass of BluetoothDeviceProximityProbe for additional information.

    Inheritance
    System.Object
    Probe
    PollingProbe
    BluetoothDeviceProximityProbe
    iOSBluetoothDeviceProximityProbe
    Implements
    System.ComponentModel.INotifyPropertyChanged
    IPollingProbe
    IProbe
    Inherited Members
    BluetoothDeviceProximityProbe.DEVICE_ID_CHARACTERISTIC_UUID
    BluetoothDeviceProximityProbe.CompleteReadAsync(TaskCompletionSource<String>, CancellationToken)
    BluetoothDeviceProximityProbe.ProtectedStartAsync()
    BluetoothDeviceProximityProbe.PollAsync(CancellationToken)
    BluetoothDeviceProximityProbe.TestHealthAsync(List<AnalyticsTrackedEvent>)
    BluetoothDeviceProximityProbe.ProtectedStopAsync()
    BluetoothDeviceProximityProbe.GetChartSeries()
    BluetoothDeviceProximityProbe.GetChartDataPointFromDatum(Datum)
    BluetoothDeviceProximityProbe.GetChartPrimaryAxis()
    BluetoothDeviceProximityProbe.GetChartSecondaryAxis()
    BluetoothDeviceProximityProbe.ScanDurationMS
    BluetoothDeviceProximityProbe.ReadDurationMS
    BluetoothDeviceProximityProbe.ReadAttemptCount
    BluetoothDeviceProximityProbe.ReadSuccessCount
    BluetoothDeviceProximityProbe.DisplayName
    BluetoothDeviceProximityProbe.DatumType
    PollingProbe.ResetAsync()
    PollingProbe.PollingSleepDurationMS
    PollingProbe.PollingTimeoutMinutes
    PollingProbe.RawParticipation
    PollingProbe.DataRateSampleSize
    PollingProbe.MaxDataStoresPerSecond
    PollingProbe.PollTimes
    PollingProbe.AcPowerConnectPoll
    PollingProbe.AcPowerConnectPollOverridesScheduledPolls
    PollingProbe.SignificantChangePoll
    PollingProbe.SignificantChangePollOverridesScheduledPolls
    PollingProbe.AlertUserWhenBackgrounded
    PollingProbe.DelayToleranceBeforeMS
    PollingProbe.DelayToleranceAfterMS
    PollingProbe.CollectionDescription
    Probe.GetAll()
    Probe.add_MostRecentDatumChanged(Probe.MostRecentDatumChangedDelegateAsync)
    Probe.remove_MostRecentDatumChanged(Probe.MostRecentDatumChangedDelegateAsync)
    Probe.StartAsync()
    Probe.StoreDatumAsync(Datum, Nullable<CancellationToken>)
    Probe.ProcessDataAsync(CancellationToken)
    Probe.GetParticipation()
    Probe.StopAsync()
    Probe.RestartAsync()
    Probe.GetChart()
    Probe.Enabled
    Probe.OriginallyEnabled
    Probe.State
    Probe.MostRecentStoreTimestamp
    Probe.Protocol
    Probe.StoreData
    Probe.AllowDisableOnStartUp
    Probe.StartStopTimes
    Probe.SuccessfulHealthTestTimes
    Probe.MaxChartDataCount
    Probe.Caption
    Probe.SubCaption
    Probe.MostRecentDatumChanged
    Probe.PropertyChanged
    Namespace: Sensus.iOS.Probes.Context
    Assembly: SensusiOS.dll
    Syntax
    public class iOSBluetoothDeviceProximityProbe : BluetoothDeviceProximityProbe, INotifyPropertyChanged, IPollingProbe, IProbe

    Constructors

    iOSBluetoothDeviceProximityProbe()

    Declaration
    public iOSBluetoothDeviceProximityProbe()

    Properties

    DefaultPollingSleepDurationMS

    Declaration
    public override int DefaultPollingSleepDurationMS { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    PollingProbe.DefaultPollingSleepDurationMS

    Methods

    InitializeAsync()

    Declaration
    protected override Task InitializeAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    BluetoothDeviceProximityProbe.InitializeAsync()

    ReadPeripheralCharacteristicValuesAsync(CancellationToken)

    Declaration
    protected override Task<List<Tuple<string, DateTimeOffset>>> ReadPeripheralCharacteristicValuesAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Collections.Generic.List<System.Tuple<System.String, System.DateTimeOffset>>>
    Overrides
    BluetoothDeviceProximityProbe.ReadPeripheralCharacteristicValuesAsync(CancellationToken)

    ScanAsync(CancellationToken)

    Declaration
    protected override Task ScanAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task
    Overrides
    BluetoothDeviceProximityProbe.ScanAsync(CancellationToken)

    StartAdvertising()

    Declaration
    protected override void StartAdvertising()
    Overrides
    BluetoothDeviceProximityProbe.StartAdvertising()

    StopAdvertising()

    Declaration
    protected override void StopAdvertising()
    Overrides
    BluetoothDeviceProximityProbe.StopAdvertising()

    Implements

    System.ComponentModel.INotifyPropertyChanged
    IPollingProbe
    IProbe
    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX