public void OnSensorEnter(ISensor nativeSensor, NativeSensorState state)
 {
     if (state == NativeSensorState.Ready)
     {
         var hr = nativeSensor.GetID(out var sensorId);
         if (hr == HResult.Ok)
         {
             SensorManager.OnSensorsChanged(sensorId, SensorAvailabilityChange.Addition);
         }
     }
 }
Esempio n. 2
0
 public void OnSensorEnter(ISensor nativeSensor, NativeSensorState state)
 {
     if (state == NativeSensorState.Ready)
     {
         Guid    sensorId;
         HRESULT hr = nativeSensor.GetID(out sensorId);
         if (hr == HRESULT.S_OK)
         {
             SensorManager.OnSensorsChanged(sensorId, SensorAvailabilityChange.Addition);
         }
     }
 }
Esempio n. 3
0
 void ISensorEvents.OnLeave(Guid sensorIdArgs)
 {
     SensorManager.OnSensorsChanged(sensorIdArgs, SensorAvailabilityChange.Removal);
 }