Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19926

Windows: Support proximity sensor for Windows 10

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 6.0.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      8
    • Sprint:
      2016 Sprint 13 SDK

      Description

      Support proximity sensor. Ti.App.proximityState, Ti.App.proximityDetection and Ti.App proximity event. Maybe Windows::Networking::Proximity package does the sensor work.

      Test Case

      var win = Ti.UI.createWindow({ backgroundColor: 'red' });
       
      Ti.App.addEventListener('proximity', function (e) {
          win.setBackgroundColor(e.state ? 'green' : 'red');
      });
      Ti.App.setProximityDetection(true);
       
      win.open();
      

      tiapp.xml

      <windows>
        <manifest>
          <Capabilities>
            ...
            <DeviceCapability Name="proximity" />
            ...
          </Capabilities>
        </manifest>
      </windows>
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              kiguchi Kota Iguchi
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code