<?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: Touch Delegate - Cancelling Gesture Immediately After Starting in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239940#M2248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what kind of animation you are doing on interaction with map. May be there is another way to achieve that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2017 18:42:16 GMT</pubDate>
    <dc:creator>GagandeepSingh</dc:creator>
    <dc:date>2017-05-30T18:42:16Z</dc:date>
    <item>
      <title>Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239937#M2245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to override the touch methods (touchesBegan, touchesEnded) because AGSGeoViewTouchDelegate doesn't provide methods to pick up&amp;nbsp;when touches end in general. Only long press and taps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the previous version (10.2) I was able to override the touchesEnded without an issue, but after upgrading to version 100, as I'm dragging the map, immediately after I start dragging, the method touchesCancelled gets called before I lift my finger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an issue because I am creating a custom animation when the user starts changing the view of the map and another animation when the user stops moving the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance on how I could go around this issue would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 16:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239937#M2245</guid>
      <dc:creator>IsmaelZavala</dc:creator>
      <dc:date>2017-05-25T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239938#M2246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can the use case or animation be achieved using `viewpointChangedHandler` on `AGSMapView`?&amp;nbsp;So, say if you want to keep a UIView/NSView constant with respect to a location on map view. In each invocation of `viewpointChangedHandler` you will convert the map view location to screen point and move the UIView&amp;nbsp;to that point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 22:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239938#M2246</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2017-05-25T22:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239939#M2247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response, unfortunately this wouldn't be a solution for my issue. This could solve me performing the first animation when a user starts moving the map. But I would need another method when the user stops moving the map to perform the second animation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also noticed in the notes for this method it says,&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;This handler may get invoked up to 60 times per second, for example, when a pan or zoom animation is in progress. Do not perform any heavy-lifting in this handler as it may adversely impact the rendering performance."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;Thank you very much for the suggestion&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 14:59:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239939#M2247</guid>
      <dc:creator>IsmaelZavala</dc:creator>
      <dc:date>2017-05-30T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239940#M2248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain what kind of animation you are doing on interaction with map. May be there is another way to achieve that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 18:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239940#M2248</guid>
      <dc:creator>GagandeepSingh</dc:creator>
      <dc:date>2017-05-30T18:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239941#M2249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The animation isn't technically on the map. Its two views that are above the mapview layer that I want to imitate how other mapping apps have&amp;nbsp;where when you move the map, the pin animates up and separates itself from the center dot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When the user stops interacting with the map, I am animating the pin down to be over the center dot.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 20:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239941#M2249</guid>
      <dc:creator>IsmaelZavala</dc:creator>
      <dc:date>2017-05-30T20:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Touch Delegate - Cancelling Gesture Immediately After Starting</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239942#M2250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="" style="border: 0px;"&gt;If you need to know when the user is starts or stops&amp;nbsp;navigating on the map with interaction then&amp;nbsp;KVO on this property on AGSMapView (via AGSGeoView):&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;@property&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt; (&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;nonatomic&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;assign&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;readonly&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;getter&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;=isNavigating) &lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;BOOL&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt; navigating;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;private var myContext = 0 // outside class definition&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt; mapView.addObserver(self, forKeyPath: "navigating", options: .new, context: &amp;amp;myContext)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="" style="border: 0px;"&gt;&lt;SPAN class="" style="border: 0px; font-weight: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;override&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;func&lt;/SPAN&gt;&lt;SPAN&gt; observeValue(forKeyPath keyPath: &lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;?, of object: &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Any&lt;/SPAN&gt;&lt;SPAN&gt;?, change: [&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;NSKeyValueChangeKey&lt;/SPAN&gt;&lt;SPAN&gt; : &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Any&lt;/SPAN&gt;&lt;SPAN&gt;]?, context: &lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;UnsafeMutableRawPointer&lt;/SPAN&gt;&lt;SPAN&gt;?) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; context == &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;myContext&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; keyPath == &lt;/SPAN&gt;&lt;SPAN style="color: #b4261a;"&gt;"navigating"&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #b4261a; font-size: 12px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"navigation: &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;\&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;isNavigating&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ? &lt;/SPAN&gt;&lt;SPAN&gt;"Started"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; : &lt;/SPAN&gt;&lt;SPAN&gt;"Stopped")"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;else&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;super&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #3495af;"&gt;observeValue&lt;/SPAN&gt;&lt;SPAN&gt;(forKeyPath: keyPath, of: object, change: change, context: context)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-size: 12px;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/touch-delegate-cancelling-gesture-immediately/m-p/239942#M2250</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2017-06-07T15:10:03Z</dc:date>
    </item>
  </channel>
</rss>

