summaryrefslogtreecommitdiff
path: root/docs/Protocols/SDLChoiceSetDelegate.html
blob: dd5b87414e1c5365dbba6c7894a3e61c3bc12090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<h1>SDLChoiceSetDelegate Protocol Reference</h1>

<h3>Section Contents</h3>

<ul>
  <li><a href="#section--choiceSet:didSelectChoice:withSource:atRowIndex:">-choiceSet:didSelectChoice:withSource:atRowIndex:</a></li>
  <li><a href="#section--choiceSet:didReceiveError:">-choiceSet:didReceiveError:</a></li>
</ul>

<h3>Overview</h3>

<p>Delegate for the SDLChoiceSet. Contains methods that get called when an action is taken on a choice cell.</p>


<section class="section task-group-section">
  <h3 id="section--choiceSet:didSelectChoice:withSource:atRowIndex:">
      -choiceSet:didSelectChoice:withSource:atRowIndex:
  </h3>
  
  <p>Delegate method called after a choice set item is selected</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">choiceSet</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/SDLChoiceSet.html">SDLChoiceSet</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">choiceSet</span>
    <span class="nf">didSelectChoice</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/SDLChoiceCell.html">SDLChoiceCell</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">choice</span>
         <span class="nf">withSource</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Type%20Definitions.html#/c:SDLTriggerSource.h@T@SDLTriggerSource">SDLTriggerSource</a></span><span class="p">)</span><span class="nv">source</span>
         <span class="nf">atRowIndex</span><span class="p">:(</span><span class="n">NSUInteger</span><span class="p">)</span><span class="nv">rowIndex</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">choiceSet</span><span class="p">(</span><span class="n">_</span> <span class="nv">choiceSet</span><span class="p">:</span> <span class="kt"><a href="../Classes/SDLChoiceSet.html">SDLChoiceSet</a></span><span class="p">,</span> <span class="n">didSelectChoice</span> <span class="nv">choice</span><span class="p">:</span> <span class="kt"><a href="../Classes/SDLChoiceCell.html">SDLChoiceCell</a></span><span class="p">,</span> <span class="n">withSource</span> <span class="nv">source</span><span class="p">:</span> <span class="kt"><a href="../Type%20Definitions.html#/c:SDLTriggerSource.h@T@SDLTriggerSource">SDLTriggerSource</a></span><span class="p">,</span> <span class="n">atRowIndex</span> <span class="nv">rowIndex</span><span class="p">:</span> <span class="kt">UInt</span><span class="p">)</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>choiceSet</dt>
      <dd><p>The choice set displayed</p></dd>
      <dt>choice</dt>
      <dd><p>The item selected</p></dd>
      <dt>source</dt>
      <dd><p>The trigger source</p></dd>
      <dt>rowIndex</dt>
      <dd><p>The row of the selected choice</p></dd>
  </dl>
  
  <h3 id="section--choiceSet:didReceiveError:">
      -choiceSet:didReceiveError:
  </h3>
  
  <p>Delegate method called on an error</p>

  
  
  <h4>Objective-C</h4>
  <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="nf">choiceSet</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/SDLChoiceSet.html">SDLChoiceSet</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">choiceSet</span>
    <span class="nf">didReceiveError</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSError</span> <span class="o">*</span><span class="p">)</span><span class="nv">error</span><span class="p">;</span></code></pre>

  
  <h4>Swift</h4>
  <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">choiceSet</span><span class="p">(</span><span class="n">_</span> <span class="nv">choiceSet</span><span class="p">:</span> <span class="kt"><a href="../Classes/SDLChoiceSet.html">SDLChoiceSet</a></span><span class="p">,</span> <span class="n">didReceiveError</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span></code></pre>

  
  
  <h4>Parameters</h4>
  <dl>
      <dt>choiceSet</dt>
      <dd><p>The choice set</p></dd>
      <dt>error</dt>
      <dd><p>The error</p></dd>
  </dl>
  
</section>