Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
serhii-libin committed Oct 8, 2024
1 parent 5fadb26 commit 7dc4ebd
Show file tree
Hide file tree
Showing 92 changed files with 8,802 additions and 1,296 deletions.
56 changes: 46 additions & 10 deletions docs/Classes/AppCallbackHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@
<li class="nav-group-task">
<a href="../Classes/PaymentMethodTypeMapper.html">PaymentMethodTypeMapper</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SavedApplePay.html">SavedApplePay</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SavedBoncard.html">SavedBoncard</a>
</li>
Expand Down Expand Up @@ -158,16 +161,16 @@
<li class="nav-group-task">
<a href="../Classes/BackendError.html">BackendError</a>
</li>
<li class="nav-group-task">
<a href="../Classes/SavedApplePay.html">SavedApplePay</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other%20Extensions.html">Other Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Other%20Extensions.html#/SlidingArray">SlidingArray</a>
<a href="../Other%20Extensions.html#/AppKit">AppKit</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/View.html">View</a>
</li>
</ul>
</li>
Expand All @@ -185,6 +188,15 @@
<section>
<section class="section">
<h1>AppCallbackHandler</h1>
<div class="declaration">
<div class="language">

<pre class="highlight swift"><code><span class="kd">@objc</span><span class="p">(</span><span class="kt">DTAppCallbackHandler</span><span class="p">)</span>
<span class="kd">@objcMembers</span>
<span class="kd">public</span> <span class="kd">final</span> <span class="kd">class</span> <span class="kt">AppCallbackHandler</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre>

</div>
</div>
<p>Use this class if your app crashes when switching to/from external payment apps,
such as TWINT, Swish, Vipps, and MobilePay. Our automatic app callback logic
may interfere with other logic in your app and needs to be disabled.</p>
Expand All @@ -209,9 +221,9 @@ <h3 class="section-name"><span>Public</span>
<li class="item">
<div>
<code>
<a name="/"></a>
<a name="/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(cpy)shared"></a>
<a name="//apple_ref/swift/Variable/shared" class="dashAnchor"></a>
<a class="token" href="#/">shared</a>
<a class="token" href="#/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(cpy)shared">shared</a>
</code>
</div>
<div class="height-container">
Expand All @@ -222,15 +234,23 @@ <h3 class="section-name"><span>Public</span>
<p>Returns the shared instance of this class.</p>

</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">shared</span><span class="p">:</span> <span class="kt">AppCallbackHandler</span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/"></a>
<a name="/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(py)automaticCallbacks"></a>
<a name="//apple_ref/swift/Property/automaticCallbacks" class="dashAnchor"></a>
<a class="token" href="#/">automaticCallbacks</a>
<a class="token" href="#/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(py)automaticCallbacks">automaticCallbacks</a>
</code>
</div>
<div class="height-container">
Expand All @@ -242,15 +262,23 @@ <h3 class="section-name"><span>Public</span>
Set this to <code>false</code> to disable automatic callbacks and implement them yourself using <code>handleURL(url)</code>.</p>

</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">automaticCallbacks</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>

</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/"></a>
<a name="/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(im)handleURL:"></a>
<a name="//apple_ref/swift/Method/handleURL(_:)" class="dashAnchor"></a>
<a class="token" href="#/">handleURL(_:<wbr>)</a>
<a class="token" href="#/c:@M@Datatrans@objc(cs)DTAppCallbackHandler(im)handleURL:">handleURL(_:<wbr>)</a>
</code>
</div>
<div class="height-container">
Expand All @@ -262,6 +290,14 @@ <h3 class="section-name"><span>Public</span>
The method returns <code>true</code> if the URL was handled by the SDK or <code>false</code> otherwise.</p>

</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">handleURL</span><span class="p">(</span><span class="n">_</span> <span class="nv">url</span><span class="p">:</span> <span class="kt">URL</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

</div>
</div>
</section>
</div>
</li>
Expand Down
Loading

0 comments on commit 7dc4ebd

Please sign in to comment.