<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API v2 - Longpoll Objective C in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211435#M10624</link>
    <description>&lt;P&gt;Hi Raheel, you can find the &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESRoutes.html#/c:objc(cs)DBFILESRoutes(im)listFolderLongpoll:" target="_self"&gt;documentation for&amp;nbsp;listFolderLongpoll itself here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using it would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// cursor should be the Files.ListFolderResult.cursor as retrieved by the last call to listFolderContinue
DropboxClientsManager.authorizedClient?.files.listFolderLongpoll(cursor: cursor).response(completionHandler: { (result, error) in
    if ((result) != nil) {
        if (result?.changes)! {
            // There are changes, so call listFolderContinue to retrieve them
        } else {
            // listFolderLongpoll didn't report changes, so call listFolderLongpoll again
        }
    } else if ((error) != nil) {
        // Perform whatever error handling you want here
    }
})&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2017 18:51:01 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-13T18:51:01Z</dc:date>
    <item>
      <title>API v2 - Longpoll Objective C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211130#M10592</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a good example of a using ListFolderLongpoll, I am getting cursor errors and find little documentation as to how to receive changes notification.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using ObjC SDK V2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211130#M10592</guid>
      <dc:creator>Raheel S.</dc:creator>
      <dc:date>2019-05-29T09:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 - Longpoll Objective C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211435#M10624</link>
      <description>&lt;P&gt;Hi Raheel, you can find the &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESRoutes.html#/c:objc(cs)DBFILESRoutes(im)listFolderLongpoll:" target="_self"&gt;documentation for&amp;nbsp;listFolderLongpoll itself here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using it would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;// cursor should be the Files.ListFolderResult.cursor as retrieved by the last call to listFolderContinue
DropboxClientsManager.authorizedClient?.files.listFolderLongpoll(cursor: cursor).response(completionHandler: { (result, error) in
    if ((result) != nil) {
        if (result?.changes)! {
            // There are changes, so call listFolderContinue to retrieve them
        } else {
            // listFolderLongpoll didn't report changes, so call listFolderLongpoll again
        }
    } else if ((error) != nil) {
        // Perform whatever error handling you want here
    }
})&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 18:51:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211435#M10624</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-13T18:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: API v2 - Longpoll Objective C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211676#M10661</link>
      <description>&lt;P&gt;Thanks Greg, I just figured that out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new SDK is getting some used to.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 14:22:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Longpoll-Objective-C/m-p/211676#M10661</guid>
      <dc:creator>Raheel S.</dc:creator>
      <dc:date>2017-03-15T14:22:11Z</dc:date>
    </item>
  </channel>
</rss>

