EMCDDeviceManager+ProximitySensor.h 855 B

12345678910111213141516171819202122232425
  1. /************************************************************
  2. * * Hyphenate CONFIDENTIAL
  3. * __________________
  4. * Copyright (C) 2016 Hyphenate Inc. All rights reserved.
  5. *
  6. * NOTICE: All information contained herein is, and remains
  7. * the property of Hyphenate Inc.
  8. * Dissemination of this information or reproduction of this material
  9. * is strictly forbidden unless prior written permission is obtained
  10. * from Hyphenate Inc.
  11. */
  12. #import "EMCDDeviceManagerBase.h"
  13. @interface EMCDDeviceManager (ProximitySensor)
  14. #pragma mark - proximity sensor
  15. @property (nonatomic, readonly) BOOL isSupportProximitySensor;
  16. @property (nonatomic, readonly) BOOL isCloseToUser;
  17. @property (nonatomic, readonly) BOOL isProximitySensorEnabled;
  18. - (BOOL)enableProximitySensor;
  19. - (BOOL)disableProximitySensor;
  20. - (void)sensorStateChanged:(NSNotification *)notification;
  21. @end