2
0

LBXPermissionSetting.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // LBXPermissionSetting.h
  3. // Demo
  4. //
  5. // Created by lbx on 2017/12/8.
  6. // Copyright © 2017年 lbx. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. API_AVAILABLE(ios(8.0))
  11. @interface LBXPermissionSetting : NSObject
  12. #pragma mark- guide user to show App privacy setting
  13. /**
  14. show App privacy settings
  15. */
  16. + (void)displayAppPrivacySettings;
  17. /**
  18. show dialog to guide user to show App privacy setting
  19. @param title title
  20. @param message privacy message
  21. @param cancel cancel button text
  22. @param setting setting button text,if user tap this button ,will show App privacy setting
  23. */
  24. + (void)showAlertToDislayPrivacySettingWithTitle:(NSString*)title
  25. msg:(NSString*)message
  26. cancel:(NSString*)cancel
  27. setting:(NSString*)setting;
  28. /**
  29. show dialog to guide user to show App privacy setting
  30. @param title title
  31. @param message privacy message
  32. @param cancel cancel button text
  33. @param setting setting button text,if user tap this button ,will show App privacy setting
  34. @param completion user has been choosed
  35. */
  36. + (void)showAlertToDislayPrivacySettingWithTitle:(NSString*)title
  37. msg:(NSString*)message
  38. cancel:(NSString*)cancel
  39. setting:(NSString*)setting
  40. completion:(void(^)(void))completion;
  41. @end