PageRenderTime 44ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/FacebookSDK/DocSets/FacebookSDK-4_14-for-iOS.docset/Contents/Resources/Documents/Protocols/FBSDKSharing.html

https://gitlab.com/amrk0320/sherbet
HTML | 471 lines | 272 code | 199 blank | 0 comment | 0 complexity | 3cad0e7fb3022f8a6a7a95b82c2f06e5 MD5 | raw file
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
  5. <title>FBSDKSharing Protocol Reference</title>
  6. <meta id="xcode-display" name="xcode-display" content="render"/>
  7. <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
  8. <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
  9. <meta name="generator" content="appledoc 2.2 (build 963)" />
  10. </head>
  11. <body>
  12. <header id="top_header">
  13. <div id="library" class="hideInXcode">
  14. <h1><a id="libraryTitle" href="../index.html">Facebook SDK 4.14 for iOS </a></h1>
  15. <a id="developerHome" href="../index.html">Facebook</a>
  16. </div>
  17. <div id="title" role="banner">
  18. <h1 class="hideInXcode">FBSDKSharing Protocol Reference</h1>
  19. </div>
  20. <ul id="headerButtons" role="toolbar">
  21. <li id="toc_button">
  22. <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
  23. </li>
  24. <li id="jumpto_button" role="navigation">
  25. <select id="jumpTo">
  26. <option value="top">Jump To&#133;</option>
  27. <option value="overview">Overview</option>
  28. <option value="tasks">Tasks</option>
  29. <option value="properties">Properties</option>
  30. <option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
  31. <option value="//api/name/shareContent">&nbsp;&nbsp;&nbsp;&nbsp;shareContent</option>
  32. <option value="//api/name/shouldFailOnDataError">&nbsp;&nbsp;&nbsp;&nbsp;shouldFailOnDataError</option>
  33. <option value="instance_methods">Instance Methods</option>
  34. <option value="//api/name/validateWithError:">&nbsp;&nbsp;&nbsp;&nbsp;- validateWithError:</option>
  35. </select>
  36. </li>
  37. </ul>
  38. </header>
  39. <nav id="tocContainer" class="isShowingTOC">
  40. <ul id="toc" role="tree">
  41. <li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
  42. <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
  43. </ul></li>
  44. <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
  45. <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
  46. <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareContent">shareContent</a></span></li>
  47. <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shouldFailOnDataError">shouldFailOnDataError</a></span></li>
  48. </ul></li>
  49. <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
  50. <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/validateWithError:">validateWithError:</a></span></li>
  51. </ul></li>
  52. </ul>
  53. </nav>
  54. <article>
  55. <div id="contents" class="isShowingTOC" role="main">
  56. <a title="FBSDKSharing Protocol Reference" name="top"></a>
  57. <div class="main-navigation navigation-top">
  58. <ul>
  59. <li><a href="../index.html">Index</a></li>
  60. <li><a href="../hierarchy.html">Hierarchy</a></li>
  61. </ul>
  62. </div>
  63. <div id="header">
  64. <div class="section-header">
  65. <h1 class="title title-header">FBSDKSharing Protocol Reference</h1>
  66. </div>
  67. </div>
  68. <div id="container">
  69. <div class="section section-specification"><table cellspacing="0"><tbody>
  70. <tr>
  71. <td class="specification-title">Conforms to</td>
  72. <td class="specification-value">NSObject</td>
  73. </tr><tr>
  74. <td class="specification-title">Declared in</td>
  75. <td class="specification-value">FBSDKSharing.h</td>
  76. </tr>
  77. </tbody></table></div>
  78. <div class="section section-tasks">
  79. <a title="Tasks" name="tasks"></a>
  80. <h2 class="subtitle subtitle-tasks">Tasks</h2>
  81. <ul class="task-list">
  82. <li>
  83. <span class="tooltip">
  84. <code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
  85. </span>
  86. <span class="task-item-suffix">property</span>
  87. <span class="task-item-suffix">required method</span>
  88. </li><li>
  89. <span class="tooltip">
  90. <code><a href="#//api/name/shareContent">&nbsp;&nbsp;shareContent</a></code>
  91. </span>
  92. <span class="task-item-suffix">property</span>
  93. <span class="task-item-suffix">required method</span>
  94. </li><li>
  95. <span class="tooltip">
  96. <code><a href="#//api/name/shouldFailOnDataError">&nbsp;&nbsp;shouldFailOnDataError</a></code>
  97. </span>
  98. <span class="task-item-suffix">property</span>
  99. <span class="task-item-suffix">required method</span>
  100. </li><li>
  101. <span class="tooltip">
  102. <code><a href="#//api/name/validateWithError:">&ndash;&nbsp;validateWithError:</a></code>
  103. </span>
  104. <span class="task-item-suffix">required method</span>
  105. </li>
  106. </ul>
  107. </div>
  108. <div class="section section-methods">
  109. <a title="Properties" name="properties"></a>
  110. <h2 class="subtitle subtitle-methods">Properties</h2>
  111. <div class="section-method">
  112. <a name="//api/name/delegate" title="delegate"></a>
  113. <h3 class="subsubtitle method-title">delegate</h3>
  114. <div class="method-subsection brief-description">
  115. <p>The receiver&rsquo;s delegate or nil if it doesn&rsquo;t have a delegate.</p>
  116. </div>
  117. <div class="method-subsection method-declaration"><code>@property (nonatomic, weak) id&lt;FBSDKSharingDelegate&gt; delegate</code></div>
  118. <div class="method-subsection declared-in-section">
  119. <h4 class="method-subtitle">Declared In</h4>
  120. <code class="declared-in-ref">FBSDKSharing.h</code><br />
  121. </div>
  122. </div>
  123. <div class="section-method">
  124. <a name="//api/name/shareContent" title="shareContent"></a>
  125. <h3 class="subsubtitle method-title">shareContent</h3>
  126. <div class="method-subsection brief-description">
  127. <p>The content to be shared.</p>
  128. </div>
  129. <div class="method-subsection method-declaration"><code>@property (nonatomic, copy) id&lt;FBSDKSharingContent&gt; shareContent</code></div>
  130. <div class="method-subsection declared-in-section">
  131. <h4 class="method-subtitle">Declared In</h4>
  132. <code class="declared-in-ref">FBSDKSharing.h</code><br />
  133. </div>
  134. </div>
  135. <div class="section-method">
  136. <a name="//api/name/shouldFailOnDataError" title="shouldFailOnDataError"></a>
  137. <h3 class="subsubtitle method-title">shouldFailOnDataError</h3>
  138. <div class="method-subsection brief-description">
  139. <p>A Boolean value that indicates whether the receiver should fail if it finds an error with the share content.</p>
  140. </div>
  141. <div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shouldFailOnDataError</code></div>
  142. <div class="method-subsection discussion-section">
  143. <h4 class="method-subtitle">Discussion</h4>
  144. <p>If NO, the sharer will still be displayed without the data that was mis-configured. For example, an
  145. invalid placeID specified on the shareContent would produce a data error.</p>
  146. </div>
  147. <div class="method-subsection declared-in-section">
  148. <h4 class="method-subtitle">Declared In</h4>
  149. <code class="declared-in-ref">FBSDKSharing.h</code><br />
  150. </div>
  151. </div>
  152. </div>
  153. <div class="section section-methods">
  154. <a title="Instance Methods" name="instance_methods"></a>
  155. <h2 class="subtitle subtitle-methods">Instance Methods</h2>
  156. <div class="section-method">
  157. <a name="//api/name/validateWithError:" title="validateWithError:"></a>
  158. <h3 class="subsubtitle method-title">validateWithError:</h3>
  159. <div class="method-subsection brief-description">
  160. <p>Validates the content on the receiver.</p>
  161. </div>
  162. <div class="method-subsection method-declaration"><code>- (BOOL)validateWithError:(NSError **)<em>errorRef</em></code></div>
  163. <div class="method-subsection arguments-section parameters">
  164. <h4 class="method-subtitle parameter-title">Parameters</h4>
  165. <dl class="argument-def parameter-def">
  166. <dt><em>errorRef</em></dt>
  167. <dd><p>If an error occurs, upon return contains an NSError object that describes the problem.</p></dd>
  168. </dl>
  169. </div>
  170. <div class="method-subsection return">
  171. <h4 class="method-subtitle parameter-title">Return Value</h4>
  172. <p>YES if the content is valid, otherwise NO.</p>
  173. </div>
  174. <div class="method-subsection declared-in-section">
  175. <h4 class="method-subtitle">Declared In</h4>
  176. <code class="declared-in-ref">FBSDKSharing.h</code><br />
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="main-navigation navigation-bottom">
  182. <ul>
  183. <li><a href="../index.html">Index</a></li>
  184. <li><a href="../hierarchy.html">Hierarchy</a></li>
  185. </ul>
  186. </div>
  187. <div id="footer">
  188. <hr />
  189. <div class="footer-copyright">
  190. <p><span class="copyright">&copy; 2016 Facebook. All rights reserved. (Last updated: 2016-07-12)</span><br />
  191. <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
  192. </div>
  193. </div>
  194. </div>
  195. </article>
  196. <script type="text/javascript">
  197. function jumpToChange()
  198. {
  199. window.location.hash = this.options[this.selectedIndex].value;
  200. }
  201. function toggleTOC()
  202. {
  203. var contents = document.getElementById('contents');
  204. var tocContainer = document.getElementById('tocContainer');
  205. if (this.getAttribute('class') == 'open')
  206. {
  207. this.setAttribute('class', '');
  208. contents.setAttribute('class', '');
  209. tocContainer.setAttribute('class', '');
  210. window.name = "hideTOC";
  211. }
  212. else
  213. {
  214. this.setAttribute('class', 'open');
  215. contents.setAttribute('class', 'isShowingTOC');
  216. tocContainer.setAttribute('class', 'isShowingTOC');
  217. window.name = "";
  218. }
  219. return false;
  220. }
  221. function toggleTOCEntryChildren(e)
  222. {
  223. e.stopPropagation();
  224. var currentClass = this.getAttribute('class');
  225. if (currentClass == 'children') {
  226. this.setAttribute('class', 'children open');
  227. }
  228. else if (currentClass == 'children open') {
  229. this.setAttribute('class', 'children');
  230. }
  231. return false;
  232. }
  233. function tocEntryClick(e)
  234. {
  235. e.stopPropagation();
  236. return true;
  237. }
  238. function init()
  239. {
  240. var selectElement = document.getElementById('jumpTo');
  241. selectElement.addEventListener('change', jumpToChange, false);
  242. var tocButton = document.getElementById('table_of_contents');
  243. tocButton.addEventListener('click', toggleTOC, false);
  244. var taskTreeItem = document.getElementById('task_treeitem');
  245. if (taskTreeItem.getElementsByTagName('li').length > 0)
  246. {
  247. taskTreeItem.setAttribute('class', 'children');
  248. taskTreeItem.firstChild.setAttribute('class', 'disclosure');
  249. }
  250. var tocList = document.getElementById('toc');
  251. var tocEntries = tocList.getElementsByTagName('li');
  252. for (var i = 0; i < tocEntries.length; i++) {
  253. tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
  254. }
  255. var tocLinks = tocList.getElementsByTagName('a');
  256. for (var i = 0; i < tocLinks.length; i++) {
  257. tocLinks[i].addEventListener('click', tocEntryClick, false);
  258. }
  259. if (window.name == "hideTOC") {
  260. toggleTOC.call(tocButton);
  261. }
  262. }
  263. window.onload = init;
  264. // If showing in Xcode, hide the TOC and Header
  265. if (navigator.userAgent.match(/xcode/i)) {
  266. document.getElementById("contents").className = "hideInXcode"
  267. document.getElementById("tocContainer").className = "hideInXcode"
  268. document.getElementById("top_header").className = "hideInXcode"
  269. }
  270. </script>
  271. </body>
  272. </html>