FBSDKAppGroupAddDialog.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  2. //
  3. // You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
  4. // copy, modify, and distribute this software in source code or binary form for use
  5. // in connection with the web services and APIs provided by Facebook.
  6. //
  7. // As with any software that integrates with the Facebook platform, your use of
  8. // this software is subject to the Facebook Developer Principles and Policies
  9. // [http://developers.facebook.com/policy/]. This copyright notice shall be
  10. // included in all copies or substantial portions of the software.
  11. //
  12. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  14. // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  15. // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  16. // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18. #import <Foundation/Foundation.h>
  19. #import <FBSDKShareKit/FBSDKAppGroupContent.h>
  20. @protocol FBSDKAppGroupAddDialogDelegate;
  21. /**
  22. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  23. */
  24. DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
  25. @interface FBSDKAppGroupAddDialog : NSObject
  26. /**
  27. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  28. */
  29. + (instancetype)showWithContent:(FBSDKAppGroupContent *)content
  30. delegate:(id<FBSDKAppGroupAddDialogDelegate>)delegate
  31. DEPRECATED_ATTRIBUTE;
  32. /**
  33. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  34. */
  35. @property (nonatomic, weak) id<FBSDKAppGroupAddDialogDelegate> delegate
  36. DEPRECATED_ATTRIBUTE;
  37. /**
  38. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  39. */
  40. @property (nonatomic, copy) FBSDKAppGroupContent *content
  41. DEPRECATED_ATTRIBUTE;
  42. /**
  43. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  44. */
  45. - (BOOL)canShow DEPRECATED_ATTRIBUTE;
  46. /**
  47. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  48. */
  49. - (BOOL)show DEPRECATED_ATTRIBUTE;
  50. /**
  51. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  52. */
  53. - (BOOL)validateWithError:(NSError *__autoreleasing *)errorRef
  54. DEPRECATED_ATTRIBUTE;
  55. @end
  56. /**
  57. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  58. */
  59. DEPRECATED_MSG_ATTRIBUTE("App and game groups are being deprecated")
  60. @protocol FBSDKAppGroupAddDialogDelegate <NSObject>
  61. /**
  62. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  63. */
  64. - (void)appGroupAddDialog:(FBSDKAppGroupAddDialog *)appGroupAddDialog didCompleteWithResults:(NSDictionary *)results DEPRECATED_ATTRIBUTE;
  65. /**
  66. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  67. */
  68. - (void)appGroupAddDialog:(FBSDKAppGroupAddDialog *)appGroupAddDialog didFailWithError:(NSError *)error DEPRECATED_ATTRIBUTE;
  69. /**
  70. @warning App and game groups are being deprecated. See https://developers.facebook.com/docs/games/services/game-groups for more information.
  71. */
  72. - (void)appGroupAddDialogDidCancel:(FBSDKAppGroupAddDialog *)appGroupAddDialog DEPRECATED_ATTRIBUTE;
  73. @end