ProximitySensorDisplayOnOffController
ProximitySensorDisplayOnOffController
ProximitySensorDisplayOnOffController
ProximitySensorDisplayOnOffController
Class
Definition
Provides a controller responsible for turning on or off the phone display based on the readings from the ProximitySensor.
public : sealed class ProximitySensorDisplayOnOffController : IClosablepublic sealed class ProximitySensorDisplayOnOffController : IDisposablePublic NotInheritable Class ProximitySensorDisplayOnOffController Implements IDisposable// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
This class will have no effect if your app is running on a platform that doesn't support a controller for the display state. For example, this class has no effect on applications running on a desktop because the desktop platform does not support a controller cycling the display.
Methods
Close() Close() Close() Close()
Disconnects this ProximitySensorDisplayOnOffController instance from the service and frees all the allocated resources.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
Remarks
This method follows the same behavior as IClosable. This means that if you are using Microsoft Visual C++ or C# you should not call this method directly. Instead you should use delete or the Dispose method respectively. See IClosable for more details.