updated docs
This commit is contained in:
parent
c811c09730
commit
23cccd01a9
118
Classes.html
118
Classes.html
|
@ -7,17 +7,18 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Classes Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Classes Reference
|
||||
</p>
|
||||
|
@ -26,7 +27,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -140,7 +142,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">DDPClient</span><span class="p">:</span> <span class="kt">NSObject</span></code></pre>
|
||||
|
||||
|
@ -223,6 +225,30 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP19MeteorOAuthServices"></a>
|
||||
<a name="//apple_ref/swift/Class/MeteorOAuthServices" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP19MeteorOAuthServices">MeteorOAuthServices</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/MeteorOAuthServices.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
@ -247,6 +273,60 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<div class="task-name-container">
|
||||
<a name="/TODO:%20Login%20first%20with%20stored%20token"></a>
|
||||
<a name="//apple_ref/swift/Section/TODO: Login first with stored token" class="dashAnchor"></a>
|
||||
<a href="#/TODO:%20Login%20first%20with%20stored%20token">
|
||||
<h3 class="section-name">TODO: Login first with stored token</h3>
|
||||
</a>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP31MeteorOAuthDialogViewController"></a>
|
||||
<a name="//apple_ref/swift/Class/MeteorOAuthDialogViewController" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP31MeteorOAuthDialogViewController">MeteorOAuthDialogViewController</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP11MeteorOAuth"></a>
|
||||
<a name="//apple_ref/swift/Class/MeteorOAuth" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
|
@ -268,7 +348,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Meteor</span></code></pre>
|
||||
|
||||
|
@ -282,8 +362,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AbstractCollection" class="dashAnchor"></a>
|
||||
<a title="AbstractCollection Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AbstractCollection Class Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -163,9 +165,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollectioncFMS0_FT4nameSS_S0_"></a>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollectioncFT4nameSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(name:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollectioncFMS0_FT4nameSS_S0_">init(name:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollectioncFT4nameSS_S0_">init(name:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -182,9 +184,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -197,7 +199,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
|
@ -255,9 +257,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -270,7 +272,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
|
@ -341,9 +343,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFS0_FTSS2idSS_T_"></a>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFS0_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -356,7 +358,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
|
@ -403,8 +405,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/EJSON" class="dashAnchor"></a>
|
||||
<a title="EJSON Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
EJSON Class Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -125,9 +127,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON7isEJSONFMS0_FSSSb"></a>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON7isEJSONFSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/isEJSON(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON7isEJSONFMS0_FSSSb">isEJSON(_:)</a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON7isEJSONFSSSb">isEJSON(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -140,7 +142,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">isEJSON</span><span class="p">(</span><span class="nv">key</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
|
@ -152,9 +154,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON15convertToNSDateFMS0_FCSo12NSDictionaryCSo6NSDate"></a>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON15convertToNSDateFCSo12NSDictionaryCSo6NSDate"></a>
|
||||
<a name="//apple_ref/swift/Method/convertToNSDate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON15convertToNSDateFMS0_FCSo12NSDictionaryCSo6NSDate">convertToNSDate(_:)</a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON15convertToNSDateFCSo12NSDictionaryCSo6NSDate">convertToNSDate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -167,7 +169,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">convertToNSDate</span><span class="p">(</span><span class="nv">ejson</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">)</span> <span class="o">-></span> <span class="kt">NSDate</span></code></pre>
|
||||
|
||||
|
@ -179,9 +181,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFMS0_FCSo6NSDateGVSs10DictionarySSSd_"></a>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFCSo6NSDateGVs10DictionarySSSd_"></a>
|
||||
<a name="//apple_ref/swift/Method/convertToEJSONDate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFMS0_FCSo6NSDateGVSs10DictionarySSSd_">convertToEJSONDate(_:)</a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFCSo6NSDateGVs10DictionarySSSd_">convertToEJSONDate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -200,8 +202,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../../js/jquery.min.js" defer></script>
|
||||
<script src="../../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/Client" class="dashAnchor"></a>
|
||||
<a title="Client Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../../index.html"> Reference</a>
|
||||
<a href="../../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../../img/carat.png" />
|
||||
Client Class Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Classes.html">Classes</a>
|
||||
<a href="../../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Global Variables.html">Global Variables</a>
|
||||
<a href="../../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Enums.html">Enums</a>
|
||||
<a href="../../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Protocols.html">Protocols</a>
|
||||
<a href="../../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Structs.html">Structs</a>
|
||||
<a href="../../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>Client</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Client</span><span class="p">:</span> <span class="kt">DDPClient</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -131,9 +133,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6ClientcFMS1_FT3urlSS5emailSS8passwordSS_S1_"></a>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6ClientcFT3urlSS5emailSS8passwordSS_S1_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(url:email:password:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6ClientcFMS1_FT3urlSS5emailSS8passwordSS_S1_">init(url:email:password:)</a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6ClientcFT3urlSS5emailSS8passwordSS_S1_">init(url:email:password:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -146,7 +148,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Client</span><span class="p">:</span> <span class="kt">DDPClient</span></code></pre>
|
||||
|
||||
|
@ -158,9 +160,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -174,7 +176,7 @@ collection</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span></code></pre>
|
||||
|
||||
|
@ -232,9 +234,9 @@ collection</p>
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -248,7 +250,7 @@ collection</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span></code></pre>
|
||||
|
||||
|
@ -319,9 +321,9 @@ collection</p>
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFS1_FTSS2idSS_T_"></a>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFS1_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -335,7 +337,7 @@ collection</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -382,8 +384,8 @@ collection</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/MeteorCollection" class="dashAnchor"></a>
|
||||
<a title="MeteorCollection Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorCollection Class Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -125,9 +127,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC8SwiftDDP16MeteorCollection6sortedGSaq__"></a>
|
||||
<a name="/s:vC8SwiftDDP16MeteorCollection6sortedGSax_"></a>
|
||||
<a name="//apple_ref/swift/Property/sorted" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP16MeteorCollection6sortedGSaq__">sorted</a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP16MeteorCollection6sortedGSax_">sorted</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -159,7 +161,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">count</span><span class="p">:</span><span class="kt">Int</span></code></pre>
|
||||
|
||||
|
@ -171,9 +173,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollectioncuRdq_CS_14MeteorDocument_FMGS0_q__FT4nameSS_GS0_q__"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollectioncFT4nameSS_GS0_x_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(name:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollectioncuRdq_CS_14MeteorDocument_FMGS0_q__FT4nameSS_GS0_q__">init(name:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollectioncFT4nameSS_GS0_x_">init(name:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -186,7 +188,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -218,9 +220,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection7findOneuRdq_CS_14MeteorDocument_FGS0_q__FSSGSqq__"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection7findOneFSSGSqx_"></a>
|
||||
<a name="//apple_ref/swift/Method/findOne(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection7findOneuRdq_CS_14MeteorDocument_FGS0_q__FSSGSqq__">findOne(_:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection7findOneFSSGSqx_">findOne(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -233,7 +235,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">findOne</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">T</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -265,9 +267,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection16documentWasAddeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection16documentWasAddeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -280,7 +282,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span></code></pre>
|
||||
|
||||
|
@ -338,9 +340,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasChangeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasChangeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -353,7 +355,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span></code></pre>
|
||||
|
||||
|
@ -424,9 +426,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasRemoveduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS_T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasRemovedFTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasRemoveduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasRemovedFTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -439,7 +441,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -484,9 +486,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6insertuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6insertFxT_"></a>
|
||||
<a name="//apple_ref/swift/Method/insert(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6insertuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">insert(_:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6insertFxT_">insert(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -499,7 +501,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">insert</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -531,9 +533,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__FTq_18withMongoOperationGVSs10DictionarySSPSs9AnyObject___T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateFTx18withMongoOperationGVs10DictionarySSPs9AnyObject___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:withMongoOperation:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__FTq_18withMongoOperationGVSs10DictionarySSPSs9AnyObject___T_">update(_:withMongoOperation:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateFTx18withMongoOperationGVs10DictionarySSPs9AnyObject___T_">update(_:withMongoOperation:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -546,7 +548,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">,</span> <span class="n">withMongoOperation</span> <span class="nv">operation</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">])</span></code></pre>
|
||||
|
||||
|
@ -591,9 +593,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateFxT_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">update(_:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateFxT_">update(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -606,7 +608,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -638,9 +640,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6removeuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6removeFxT_"></a>
|
||||
<a name="//apple_ref/swift/Method/remove(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6removeuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">remove(_:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6removeFxT_">remove(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -653,7 +655,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remove</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -687,8 +689,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/MeteorDocument" class="dashAnchor"></a>
|
||||
<a title="MeteorDocument Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorDocument Class Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -125,9 +127,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocumentcFMS0_FT2idSS6fieldsGSqCSo12NSDictionary__S0_"></a>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocumentcFT2idSS6fieldsGSqCSo12NSDictionary__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocumentcFMS0_FT2idSS6fieldsGSqCSo12NSDictionary__S0_">init(id:fields:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocumentcFT2idSS6fieldsGSqCSo12NSDictionary__S0_">init(id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -144,9 +146,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocument6updateFS0_FTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocument6updateFTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocument6updateFS0_FTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">update(_:cleared:)</a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocument6updateFTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">update(_:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -165,8 +167,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
36
Enums.html
36
Enums.html
|
@ -7,17 +7,18 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Enums Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Enums Reference
|
||||
</p>
|
||||
|
@ -26,7 +27,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -146,8 +148,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Enum/DDPMessageType" class="dashAnchor"></a>
|
||||
<a title="DDPMessageType Enum Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPMessageType Enum Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -468,8 +470,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
163
Extensions.html
163
Extensions.html
|
@ -1,163 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Extensions Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Extensions Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Extensions Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Extensions</h1>
|
||||
<p>The following extensions are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP9DDPClient"></a>
|
||||
<a name="//apple_ref/swift/Extension/DDPClient" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP9DDPClient">DDPClient</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
|
||||
<a href="Extensions/DDPClient.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">DDPClient</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -7,17 +7,18 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Global Variables Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Global Variables Reference
|
||||
</p>
|
||||
|
@ -26,7 +27,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -187,8 +189,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,17 +7,18 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Protocols Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Protocols Reference
|
||||
</p>
|
||||
|
@ -26,7 +27,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -140,7 +142,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
|
@ -178,8 +180,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Protocol/MeteorCollectionType" class="dashAnchor"></a>
|
||||
<a title="MeteorCollectionType Protocol Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorCollectionType Protocol Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -125,9 +127,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddedFTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -144,9 +146,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangedFTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -163,9 +165,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemoveduRq_S0__Fq_FTSS2idSS_T_"></a>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemovedFTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemoveduRq_S0__Fq_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemovedFTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -184,8 +186,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Protocol/SwiftDDPDelegate" class="dashAnchor"></a>
|
||||
<a title="SwiftDDPDelegate Protocol Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
SwiftDDPDelegate Protocol Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>SwiftDDPDelegate</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -131,9 +133,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginuRq_S0__Fq_FSST_"></a>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginFSST_"></a>
|
||||
<a name="//apple_ref/swift/Method/ddpUserDidLogin(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginuRq_S0__Fq_FSST_">ddpUserDidLogin(_:)</a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginFSST_">ddpUserDidLogin(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -146,7 +148,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
|
@ -158,9 +160,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutuRq_S0__Fq_FSST_"></a>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutFSST_"></a>
|
||||
<a name="//apple_ref/swift/Method/ddpUserDidLogout(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutuRq_S0__Fq_FSST_">ddpUserDidLogout(_:)</a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutFSST_">ddpUserDidLogout(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -173,7 +175,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
|
@ -187,8 +189,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
46
Structs.html
46
Structs.html
|
@ -7,17 +7,18 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title="Structs Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Structs Reference
|
||||
</p>
|
||||
|
@ -26,7 +27,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -141,7 +143,7 @@ not available, execution defaults to the main queue.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Completion</span></code></pre>
|
||||
|
||||
|
@ -173,7 +175,7 @@ not available, execution defaults to the main queue.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Result</span></code></pre>
|
||||
|
||||
|
@ -205,7 +207,7 @@ not available, execution defaults to the main queue.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
|
@ -233,7 +235,7 @@ not available, execution defaults to the main queue.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPError</span><span class="p">:</span> <span class="kt">ErrorType</span></code></pre>
|
||||
|
||||
|
@ -267,7 +269,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
|
@ -281,8 +283,8 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPError" class="dashAnchor"></a>
|
||||
<a title="DDPError Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPError Struct Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>DDPError</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPError</span><span class="p">:</span> <span class="kt">ErrorType</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -146,7 +148,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"error"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span> <span class="c1">// Error code</span></code></pre>
|
||||
|
||||
|
@ -173,7 +175,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">reason</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"reason"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
|
@ -200,7 +202,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">details</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"details"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
|
@ -227,7 +229,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">offendingMessage</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"offendingMessage"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
|
@ -241,8 +243,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPEvents" class="dashAnchor"></a>
|
||||
<a title="DDPEvents Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPEvents Struct Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>DDPEvents</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -148,7 +150,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
|
@ -175,7 +177,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onDisconnected</span><span class="p">:</span> <span class="p">()</span> <span class="o">-></span> <span class="p">()</span> <span class="o">=</span> <span class="p">{</span><span class="n">log</span><span class="o">.</span><span class="nf">debug</span><span class="p">(</span><span class="s">"disconnected"</span><span class="p">)}</span></code></pre>
|
||||
|
||||
|
@ -202,7 +204,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onFailed</span><span class="p">:</span> <span class="p">()</span> <span class="o">-></span> <span class="p">()</span> <span class="o">=</span> <span class="p">{</span><span class="n">log</span><span class="o">.</span><span class="nf">error</span><span class="p">(</span><span class="s">"failed"</span><span class="p">)}</span></code></pre>
|
||||
|
||||
|
@ -229,7 +231,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onAdded</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
|
@ -302,7 +304,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onChanged</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:</span><span class="kt">NSArray</span><span class="p">?)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
|
@ -388,7 +390,7 @@ closures to modify the clients behavior in response to the trigger event.</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onRemoved</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
|
@ -449,7 +451,7 @@ been communicated to the client</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onUpdated</span><span class="p">:</span> <span class="p">((</span><span class="nv">methods</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">])</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
|
@ -496,7 +498,7 @@ been communicated to the client</p>
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onError</span><span class="p">:</span> <span class="p">((</span><span class="nv">message</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
|
@ -530,8 +532,8 @@ been communicated to the client</p>
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPMessage" class="dashAnchor"></a>
|
||||
<a title="DDPMessage Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPMessage Struct Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>DDPMessage</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -146,7 +148,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">json</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="o">!</span></code></pre>
|
||||
|
||||
|
@ -158,9 +160,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -173,7 +175,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
|
@ -185,9 +187,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageGVSs10DictionarySSSS__S0_"></a>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFT7messageGVs10DictionarySSSS__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageGVSs10DictionarySSSS__S0_">init(message:)</a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFT7messageGVs10DictionarySSSS__S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -200,7 +202,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:[</span><span class="kt">String</span><span class="p">:</span><span class="kt">String</span><span class="p">])</span></code></pre>
|
||||
|
||||
|
@ -212,9 +214,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFV8SwiftDDP10DDPMessage8toStringFMS0_FPSs9AnyObject_GSqSS_"></a>
|
||||
<a name="/s:ZFV8SwiftDDP10DDPMessage8toStringFPs9AnyObject_GSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Method/toString(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFV8SwiftDDP10DDPMessage8toStringFMS0_FPSs9AnyObject_GSqSS_">toString(_:)</a>
|
||||
<a class="token" href="#/s:ZFV8SwiftDDP10DDPMessage8toStringFPs9AnyObject_GSqSS_">toString(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -227,7 +229,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">toString</span><span class="p">(</span><span class="nv">json</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">)</span> <span class="o">-></span> <span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -254,7 +256,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">type</span><span class="p">:</span><span class="kt">DDPMessageType</span></code></pre>
|
||||
|
||||
|
@ -281,7 +283,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isError</span><span class="p">:</span><span class="kt">Bool</span></code></pre>
|
||||
|
||||
|
@ -293,9 +295,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessage11hasPropertyFS0_FSSSb"></a>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessage11hasPropertyFSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/hasProperty(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessage11hasPropertyFS0_FSSSb">hasProperty(_:)</a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessage11hasPropertyFSSSb">hasProperty(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -308,7 +310,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
|
@ -335,7 +337,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">message</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -362,7 +364,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">session</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -389,7 +391,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">version</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -416,7 +418,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">support</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -443,7 +445,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -470,7 +472,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">name</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -497,7 +499,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">params</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -524,7 +526,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -551,7 +553,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -578,7 +580,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -605,7 +607,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
|
@ -632,7 +634,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">method</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -659,7 +661,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">randomSeed</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -671,9 +673,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6resultGSqPSs9AnyObject__"></a>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6resultGSqPs9AnyObject__"></a>
|
||||
<a name="//apple_ref/swift/Property/result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6resultGSqPSs9AnyObject__">result</a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6resultGSqPs9AnyObject__">result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -686,7 +688,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">result</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -713,7 +715,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">methods</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
|
@ -740,7 +742,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">subs</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
|
@ -767,7 +769,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">reason</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -794,7 +796,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">offendingMessage</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -808,8 +810,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -7,18 +7,19 @@
|
|||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/Result" class="dashAnchor"></a>
|
||||
<a title="Result Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="../index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<a href="../index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
Result Struct Reference
|
||||
</p>
|
||||
|
@ -27,7 +28,7 @@
|
|||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -47,10 +48,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -64,7 +74,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -72,15 +82,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -91,7 +93,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -117,7 +119,7 @@
|
|||
<section class="section">
|
||||
<h1>Result</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Result</span></code></pre>
|
||||
|
||||
</div>
|
||||
|
@ -131,9 +133,9 @@
|
|||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP6Result6resultGSqPSs9AnyObject__"></a>
|
||||
<a name="/s:vV8SwiftDDP6Result6resultGSqPs9AnyObject__"></a>
|
||||
<a name="//apple_ref/swift/Property/result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP6Result6resultGSqPSs9AnyObject__">result</a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP6Result6resultGSqPs9AnyObject__">result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
|
@ -146,7 +148,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">result</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -173,7 +175,7 @@
|
|||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<div class="language">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">?</span></code></pre>
|
||||
|
||||
|
@ -187,8 +189,8 @@
|
|||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
|
@ -126,8 +126,7 @@
|
|||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kt {
|
||||
color: #445588;
|
||||
font-weight: bold; }
|
||||
color: #445588; }
|
||||
.highlight .m {
|
||||
color: #009999; }
|
||||
.highlight .s {
|
||||
|
@ -147,8 +146,7 @@
|
|||
color: #990000;
|
||||
font-weight: bold; }
|
||||
.highlight .nf {
|
||||
color: #990000;
|
||||
font-weight: bold; }
|
||||
color: #990000; }
|
||||
.highlight .nn {
|
||||
color: #555555; }
|
||||
.highlight .nt {
|
||||
|
|
|
@ -13,7 +13,7 @@ body {
|
|||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
word-wrap: break-word; }
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
h1, h2, h3 {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.3em;
|
||||
font-weight: 100;
|
||||
|
@ -26,11 +26,10 @@ h2 {
|
|||
font-size: 2em;
|
||||
border-bottom: 1px solid #e2e2e2; }
|
||||
|
||||
h3 {
|
||||
font-size: 1.5em; }
|
||||
|
||||
h4 {
|
||||
font-size: 1.25em; }
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
margin-top: 21px; }
|
||||
|
||||
h5 {
|
||||
font-size: 1.1em; }
|
||||
|
@ -39,6 +38,14 @@ h6 {
|
|||
font-size: 1.1em;
|
||||
color: #777; }
|
||||
|
||||
.section-name {
|
||||
color: gray;
|
||||
display: block;
|
||||
font-family: Helvetica;
|
||||
font-size: 22px;
|
||||
font-weight: 100;
|
||||
margin-bottom: 15px; }
|
||||
|
||||
pre, code {
|
||||
font: 0.95em Menlo, monospace;
|
||||
color: #777;
|
||||
|
@ -167,12 +174,6 @@ header {
|
|||
border-radius: 4px;
|
||||
overflow-x: auto; }
|
||||
|
||||
.aside-title {
|
||||
font-size: 9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 0; }
|
||||
|
||||
.declaration .highlight {
|
||||
overflow-x: initial;
|
||||
padding: 0 40px 40px 0;
|
||||
|
@ -191,6 +192,12 @@ header {
|
|||
.task-group {
|
||||
padding-top: 0px; }
|
||||
|
||||
.task-name-container a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
|
||||
.item {
|
||||
padding-top: 8px;
|
||||
width: 100%;
|
||||
|
@ -205,7 +212,12 @@ header {
|
|||
padding: 0; }
|
||||
.item .token {
|
||||
padding-left: 3px;
|
||||
margin-left: 15px; }
|
||||
margin-left: 15px;
|
||||
font-size: 11.9px; }
|
||||
.item .declaration-note {
|
||||
font-size: .85em;
|
||||
color: gray;
|
||||
font-style: italic; }
|
||||
|
||||
.pointer-container {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
|
@ -244,14 +256,31 @@ header {
|
|||
padding-top: 10px;
|
||||
padding-bottom: 5px; }
|
||||
|
||||
div.Swift {
|
||||
padding: 4px 0 2px 10px;
|
||||
margin-bottom: 1em;
|
||||
border-left: 5px solid #cde9f4;
|
||||
.aside, .language {
|
||||
padding: 6px 12px;
|
||||
margin: 12px 0;
|
||||
border-left: 5px solid #dddddd;
|
||||
overflow-y: hidden; }
|
||||
div.Swift .aside-title {
|
||||
color: #4b8afb;
|
||||
.aside .aside-title, .language .aside-title {
|
||||
font-size: 9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 0;
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
-webkit-user-select: none; }
|
||||
.aside p:last-child, .language p:last-child {
|
||||
margin-bottom: 0; }
|
||||
|
||||
.language {
|
||||
border-left: 5px solid #cde9f4; }
|
||||
.language .aside-title {
|
||||
color: #4b8afb; }
|
||||
|
||||
.aside-warning {
|
||||
border-left: 5px solid #ff6666; }
|
||||
.aside-warning .aside-title {
|
||||
color: #ff0000; }
|
||||
|
||||
.graybox {
|
||||
border-collapse: collapse;
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.jazzy.</string>
|
||||
<key>CFBundleName</key>
|
||||
<string></string>
|
||||
<key>DocSetPlatformFamily</key>
|
||||
<string>jazzy</string>
|
||||
<key>isDashDocset</key>
|
||||
<true/>
|
||||
<key>dashIndexFilePath</key>
|
||||
<string>index.html</string>
|
||||
<key>isJavaScriptEnabled</key>
|
||||
<true/>
|
||||
<key>DashDocSetFamily</key>
|
||||
<string>dashtoc</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,292 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Classes Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Classes Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Classes Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Classes</h1>
|
||||
<p>The following classes are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP9DDPClient"></a>
|
||||
<a name="//apple_ref/swift/Class/DDPClient" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP9DDPClient">DDPClient</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>DDPClient is the base class for communicating with a server using the DDP protocol</p>
|
||||
|
||||
<a href="Classes/DDPClient.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">DDPClient</span><span class="p">:</span> <span class="kt">NSObject</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP5EJSON"></a>
|
||||
<a name="//apple_ref/swift/Class/EJSON" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP5EJSON">EJSON</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/EJSON.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP16MeteorCollection"></a>
|
||||
<a name="//apple_ref/swift/Class/MeteorCollection" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP16MeteorCollection">MeteorCollection</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/MeteorCollection.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP18AbstractCollection"></a>
|
||||
<a name="//apple_ref/swift/Class/AbstractCollection" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP18AbstractCollection">AbstractCollection</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/AbstractCollection.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP14MeteorDocument"></a>
|
||||
<a name="//apple_ref/swift/Class/MeteorDocument" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP14MeteorDocument">MeteorDocument</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Classes/MeteorDocument.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP6Meteor"></a>
|
||||
<a name="//apple_ref/swift/Class/Meteor" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP6Meteor">Meteor</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Meteor is a class to simplify communicating with and consuming MeteorJS server services</p>
|
||||
|
||||
<a href="Classes/Meteor.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Meteor</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,413 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>AbstractCollection Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/AbstractCollection" class="dashAnchor"></a>
|
||||
<a title="AbstractCollection Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
AbstractCollection Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>AbstractCollection</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC8SwiftDDP18AbstractCollection4nameSS"></a>
|
||||
<a name="//apple_ref/swift/Property/name" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP18AbstractCollection4nameSS">name</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC8SwiftDDP18AbstractCollection6clientCCS_6Meteor6Client"></a>
|
||||
<a name="//apple_ref/swift/Property/client" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP18AbstractCollection6clientCCS_6Meteor6Client">client</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollectioncFMS0_FT4nameSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(name:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollectioncFMS0_FT4nameSS_S0_">init(name:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection16documentWasAddedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been sent from the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasChangedFS0_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been changed on the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>cleared</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Optional array of strings (field names to delete)</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFS0_FTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP18AbstractCollection18documentWasRemovedFS0_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been removed on the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="p">{}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,210 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>EJSON Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/EJSON" class="dashAnchor"></a>
|
||||
<a title="EJSON Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
EJSON Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>EJSON</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON7isEJSONFMS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/isEJSON(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON7isEJSONFMS0_FSSSb">isEJSON(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Determines whether a given key is an eJSON key</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">isEJSON</span><span class="p">(</span><span class="nv">key</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON15convertToNSDateFMS0_FCSo12NSDictionaryCSo6NSDate"></a>
|
||||
<a name="//apple_ref/swift/Method/convertToNSDate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON15convertToNSDateFMS0_FCSo12NSDictionaryCSo6NSDate">convertToNSDate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Converts an eJSON date to NSDate</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">convertToNSDate</span><span class="p">(</span><span class="nv">ejson</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">)</span> <span class="o">-></span> <span class="kt">NSDate</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFMS0_FCSo6NSDateGVSs10DictionarySSSd_"></a>
|
||||
<a name="//apple_ref/swift/Method/convertToEJSONDate(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFC8SwiftDDP5EJSON18convertToEJSONDateFMS0_FCSo6NSDateGVSs10DictionarySSSd_">convertToEJSONDate(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,392 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Client Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../../js/jquery.min.js" defer></script>
|
||||
<script src="../../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/Client" class="dashAnchor"></a>
|
||||
<a title="Client Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../../index.html"> Reference</a>
|
||||
<img id="carat" src="../../img/carat.png" />
|
||||
Client Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Client</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Client</span><span class="p">:</span> <span class="kt">DDPClient</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Meteor.Client is a subclass of DDPClient that facilitates interaction with the MeteorCollection class</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6ClientcFMS1_FT3urlSS5emailSS8passwordSS_S1_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(url:email:password:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6ClientcFMS1_FT3urlSS5emailSS8passwordSS_S1_">init(url:email:password:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Client</span><span class="p">:</span> <span class="kt">DDPClient</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client16documentWasAddedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Calls the documentWasAdded method in the MeteorCollection subclass instance associated with the document
|
||||
collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasChangedFS1_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Calls the documentWasChanged method in the MeteorCollection subclass instance associated with the document
|
||||
collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>cleared</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional array of string property names to delete</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFS1_FTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FCC8SwiftDDP6Meteor6Client18documentWasRemovedFS1_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Calls the documentWasRemoved method in the MeteorCollection subclass instance associated with the document
|
||||
collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,697 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MeteorCollection Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/MeteorCollection" class="dashAnchor"></a>
|
||||
<a title="MeteorCollection Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorCollection Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>MeteorCollection</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC8SwiftDDP16MeteorCollection6sortedGSaq__"></a>
|
||||
<a name="//apple_ref/swift/Property/sorted" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP16MeteorCollection6sortedGSaq__">sorted</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vC8SwiftDDP16MeteorCollection5countSi"></a>
|
||||
<a name="//apple_ref/swift/Property/count" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vC8SwiftDDP16MeteorCollection5countSi">count</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns the number of documents in the collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">count</span><span class="p">:</span><span class="kt">Int</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollectioncuRdq_CS_14MeteorDocument_FMGS0_q__FT4nameSS_GS0_q__"></a>
|
||||
<a name="//apple_ref/swift/Method/init(name:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollectioncuRdq_CS_14MeteorDocument_FMGS0_q__FT4nameSS_GS0_q__">init(name:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initializes a MeteorCollection object</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="nf">init</span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>name</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>The string name of the collection (must match the name of the collection on the server)</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection7findOneuRdq_CS_14MeteorDocument_FGS0_q__FSSGSqq__"></a>
|
||||
<a name="//apple_ref/swift/Method/findOne(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection7findOneuRdq_CS_14MeteorDocument_FGS0_q__FSSGSqq__">findOne(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Find a single document by id</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">findOne</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="kt">T</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the id of the document</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection16documentWasAddeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection16documentWasAddeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been sent from the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasChangeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasChangeduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been changed on the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>cleared</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>Optional array of strings (field names to delete)</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection18documentWasRemoveduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection18documentWasRemoveduRdq_CS_14MeteorDocument_FGS0_q__FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Invoked when a document has been removed on the server.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">override</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6insertuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/insert(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6insertuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">insert(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Client-side method to insert a document</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">insert</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>document</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>a document that inherits from MeteorDocument</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__FTq_18withMongoOperationGVSs10DictionarySSPSs9AnyObject___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:withMongoOperation:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__FTq_18withMongoOperationGVSs10DictionarySSPSs9AnyObject___T_">update(_:withMongoOperation:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Client-side method to update a document</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">,</span> <span class="n">withMongoOperation</span> <span class="nv">operation</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>document</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>a document that inherits from MeteorDocument</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>operation</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>a dictionary containing a Mongo selector and a json object</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6updateuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">update(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Client-side method to update a document</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>document</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>a document that inherits from MeteorDocument</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP16MeteorCollection6removeuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/remove(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP16MeteorCollection6removeuRdq_CS_14MeteorDocument_FGS0_q__Fq_T_">remove(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Client-side method to remove a document</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">remove</span><span class="p">(</span><span class="nv">document</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>document</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>a document that inherits from MeteorDocument</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,175 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MeteorDocument Class Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Class/MeteorDocument" class="dashAnchor"></a>
|
||||
<a title="MeteorDocument Class Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorDocument Class Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>MeteorDocument</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocumentcFMS0_FT2idSS6fieldsGSqCSo12NSDictionary__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocumentcFMS0_FT2idSS6fieldsGSqCSo12NSDictionary__S0_">init(id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FC8SwiftDDP14MeteorDocument6updateFS0_FTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/update(_:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FC8SwiftDDP14MeteorDocument6updateFS0_FTGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">update(_:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,156 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Enums Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Enums Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Enums Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Enums</h1>
|
||||
<p>The following enums are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:O8SwiftDDP14DDPMessageType"></a>
|
||||
<a name="//apple_ref/swift/Enum/DDPMessageType" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:O8SwiftDDP14DDPMessageType">DDPMessageType</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Enums/DDPMessageType.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,478 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>DDPMessageType Enum Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Enum/DDPMessageType" class="dashAnchor"></a>
|
||||
<a title="DDPMessageType Enum Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPMessageType Enum Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>DDPMessageType</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType9ConnectedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Connected" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType9ConnectedFMS0_S0_">Connected</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType6FailedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Failed" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType6FailedFMS0_S0_">Failed</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType4PingFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Ping" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType4PingFMS0_S0_">Ping</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType4PongFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Pong" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType4PongFMS0_S0_">Pong</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType5NosubFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Nosub" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType5NosubFMS0_S0_">Nosub</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType5AddedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Added" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType5AddedFMS0_S0_">Added</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType7ChangedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Changed" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType7ChangedFMS0_S0_">Changed</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType7RemovedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Removed" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType7RemovedFMS0_S0_">Removed</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType5ReadyFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Ready" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType5ReadyFMS0_S0_">Ready</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType11AddedBeforeFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/AddedBefore" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType11AddedBeforeFMS0_S0_">AddedBefore</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType11MovedBeforeFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/MovedBefore" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType11MovedBeforeFMS0_S0_">MovedBefore</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType6ResultFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType6ResultFMS0_S0_">Result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType7UpdatedFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Updated" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType7UpdatedFMS0_S0_">Updated</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType5ErrorFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Error" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType5ErrorFMS0_S0_">Error</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FO8SwiftDDP14DDPMessageType9UnhandledFMS0_S0_"></a>
|
||||
<a name="//apple_ref/swift/Element/Unhandled" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FO8SwiftDDP14DDPMessageType9UnhandledFMS0_S0_">Unhandled</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,163 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Extensions Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Extensions Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Extensions Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Extensions</h1>
|
||||
<p>The following extensions are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:C8SwiftDDP9DDPClient"></a>
|
||||
<a name="//apple_ref/swift/Extension/DDPClient" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:C8SwiftDDP9DDPClient">DDPClient</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
|
||||
<a href="Extensions/DDPClient.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">DDPClient</span> <span class="p">:</span> <span class="kt">NSObject</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
|
@ -1,197 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Global Variables Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Global Variables Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Global Variables Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Global Variables</h1>
|
||||
<p>The following global variables are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS"></a>
|
||||
<a name="//apple_ref/swift/Global/METEOR_COLLECTION_SET_DID_CHANGE" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:v8SwiftDDP18DDP_USER_DID_LOGINSS"></a>
|
||||
<a name="//apple_ref/swift/Global/DDP_USER_DID_LOGIN" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS"></a>
|
||||
<a name="//apple_ref/swift/Global/DDP_USER_DID_LOGOUT" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,188 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Protocols Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Protocols Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Protocols Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Protocols</h1>
|
||||
<p>The following protocols are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:P8SwiftDDP16SwiftDDPDelegate"></a>
|
||||
<a name="//apple_ref/swift/Protocol/SwiftDDPDelegate" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:P8SwiftDDP16SwiftDDPDelegate">SwiftDDPDelegate</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>DDPDelegate provides an interface to react to user events</p>
|
||||
|
||||
<a href="Protocols/SwiftDDPDelegate.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:P8SwiftDDP20MeteorCollectionType"></a>
|
||||
<a name="//apple_ref/swift/Protocol/MeteorCollectionType" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:P8SwiftDDP20MeteorCollectionType">MeteorCollectionType</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
<a href="Protocols/MeteorCollectionType.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,194 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>MeteorCollectionType Protocol Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Protocol/MeteorCollectionType" class="dashAnchor"></a>
|
||||
<a title="MeteorCollectionType Protocol Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
MeteorCollectionType Protocol Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>MeteorCollectionType</h1>
|
||||
<p>Undocumented</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasAdded(_:id:fields:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType16documentWasAddeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary__T_">documentWasAdded(_:id:fields:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasChanged(_:id:fields:cleared:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasChangeduRq_S0__Fq_FTSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqGSaSS___T_">documentWasChanged(_:id:fields:cleared:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemoveduRq_S0__Fq_FTSS2idSS_T_"></a>
|
||||
<a name="//apple_ref/swift/Method/documentWasRemoved(_:id:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP20MeteorCollectionType18documentWasRemoveduRq_S0__Fq_FTSS2idSS_T_">documentWasRemoved(_:id:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,197 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>SwiftDDPDelegate Protocol Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Protocol/SwiftDDPDelegate" class="dashAnchor"></a>
|
||||
<a title="SwiftDDPDelegate Protocol Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
SwiftDDPDelegate Protocol Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>SwiftDDPDelegate</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>DDPDelegate provides an interface to react to user events</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginuRq_S0__Fq_FSST_"></a>
|
||||
<a name="//apple_ref/swift/Method/ddpUserDidLogin(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate15ddpUserDidLoginuRq_S0__Fq_FSST_">ddpUserDidLogin(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutuRq_S0__Fq_FSST_"></a>
|
||||
<a name="//apple_ref/swift/Method/ddpUserDidLogout(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FP8SwiftDDP16SwiftDDPDelegate16ddpUserDidLogoutuRq_S0__Fq_FSST_">ddpUserDidLogout(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">SwiftDDPDelegate</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,291 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Structs Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title="Structs Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Structs Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Structs</h1>
|
||||
<p>The following structs are available globally.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:V8SwiftDDP10Completion"></a>
|
||||
<a name="//apple_ref/swift/Struct/Completion" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Completion is a wrapper for DDP callbacks that ensures that callbacks are executed
|
||||
on the same queue on which the original method was called. If the current queue is
|
||||
not available, execution defaults to the main queue.</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Completion</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:V8SwiftDDP6Result"></a>
|
||||
<a name="//apple_ref/swift/Struct/Result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:V8SwiftDDP6Result">Result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Struct to encapsulate the result of a Meteor method call</p>
|
||||
|
||||
<a href="Structs/Result.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Result</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:V8SwiftDDP10DDPMessage"></a>
|
||||
<a name="//apple_ref/swift/Struct/DDPMessage" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:V8SwiftDDP10DDPMessage">DDPMessage</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>A struct to parse, encapsulate and facilitate handling of DDP message strings</p>
|
||||
|
||||
<a href="Structs/DDPMessage.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:V8SwiftDDP8DDPError"></a>
|
||||
<a name="//apple_ref/swift/Struct/DDPError" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:V8SwiftDDP8DDPError">DDPError</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>A struct encapsulating a DDP error message</p>
|
||||
|
||||
<a href="Structs/DDPError.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPError</span><span class="p">:</span> <span class="kt">ErrorType</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:V8SwiftDDP9DDPEvents"></a>
|
||||
<a name="//apple_ref/swift/Struct/DDPEvents" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:V8SwiftDDP9DDPEvents">DDPEvents</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>DDPEvents is a struct holder for callback closures that execute in response to
|
||||
websocket and Meteor lifecyle events. New closures can be assigned to public
|
||||
closures to modify the clients behavior in response to the trigger event.</p>
|
||||
|
||||
<a href="Structs/DDPEvents.html" class="slightly-smaller">See more</a>
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,251 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>DDPError Struct Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPError" class="dashAnchor"></a>
|
||||
<a title="DDPError Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPError Struct Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>DDPError</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPError</span><span class="p">:</span> <span class="kt">ErrorType</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>A struct encapsulating a DDP error message</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP8DDPError5errorGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/error" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP8DDPError5errorGSqSS_">error</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The string error code</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"error"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span> <span class="c1">// Error code</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP8DDPError6reasonGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/reason" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP8DDPError6reasonGSqSS_">reason</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The detailed message given for an error returned from the server</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">reason</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"reason"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP8DDPError7detailsGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/details" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP8DDPError7detailsGSqSS_">details</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The string providing error details</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">details</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"details"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP8DDPError16offendingMessageGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/offendingMessage" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP8DDPError16offendingMessageGSqSS_">offendingMessage</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>If the original message parsed properly, it is included here</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">offendingMessage</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">return</span> <span class="n">json</span><span class="p">?[</span><span class="s">"offendingMessage"</span><span class="p">]</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,540 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>DDPEvents Struct Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPEvents" class="dashAnchor"></a>
|
||||
<a title="DDPEvents Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPEvents Struct Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>DDPEvents</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>DDPEvents is a struct holder for callback closures that execute in response to
|
||||
websocket and Meteor lifecyle events. New closures can be assigned to public
|
||||
closures to modify the clients behavior in response to the trigger event.</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents11onConnectedVS_10Completion"></a>
|
||||
<a name="//apple_ref/swift/Property/onConnected" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents11onConnectedVS_10Completion">onConnected</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPEvents</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents14onDisconnectedFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Property/onDisconnected" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents14onDisconnectedFT_T_">onDisconnected</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onDisconnected executes when the client is disconnected</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onDisconnected</span><span class="p">:</span> <span class="p">()</span> <span class="o">-></span> <span class="p">()</span> <span class="o">=</span> <span class="p">{</span><span class="n">log</span><span class="o">.</span><span class="nf">debug</span><span class="p">(</span><span class="s">"disconnected"</span><span class="p">)}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents8onFailedFT_T_"></a>
|
||||
<a name="//apple_ref/swift/Property/onFailed" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents8onFailedFT_T_">onFailed</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onFailed executes when an attempt to make a DDP connection fails</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onFailed</span><span class="p">:</span> <span class="p">()</span> <span class="o">-></span> <span class="p">()</span> <span class="o">=</span> <span class="p">{</span><span class="n">log</span><span class="o">.</span><span class="nf">error</span><span class="p">(</span><span class="s">"failed"</span><span class="p">)}</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents7onAddedGSqFT10collectionSS2idSS6fieldsGSqCSo12NSDictionary__T__"></a>
|
||||
<a name="//apple_ref/swift/Property/onAdded" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents7onAddedGSqFT10collectionSS2idSS6fieldsGSqCSo12NSDictionary__T__">onAdded</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onAdded executes when a document has been added to a local collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onAdded</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents9onChangedGSqFT10collectionSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqCSo7NSArray__T__"></a>
|
||||
<a name="//apple_ref/swift/Property/onChanged" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents9onChangedGSqFT10collectionSS2idSS6fieldsGSqCSo12NSDictionary_7clearedGSqCSo7NSArray__T__">onChanged</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onChanged executes when the server sends an instruction to modify a local document</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onChanged</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:</span><span class="kt">NSArray</span><span class="p">?)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>fields</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional NSDictionary with the documents properties</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>cleared</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>an optional array of string property names to delete</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents9onRemovedGSqFT10collectionSS2idSS_T__"></a>
|
||||
<a name="//apple_ref/swift/Property/onRemoved" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents9onRemovedGSqFT10collectionSS2idSS_T__">onRemoved</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onRemoved executes when the server sends an instruction to remove a document from the local collection</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onRemoved</span><span class="p">:</span> <span class="p">((</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>collection</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string name of the collection to which the document belongs</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>id</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>the string unique id that identifies the document on the server</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents9onUpdatedGSqFT7methodsGSaSS__T__"></a>
|
||||
<a name="//apple_ref/swift/Property/onUpdated" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents9onUpdatedGSqFT7methodsGSaSS__T__">onUpdated</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onUpdated executes when the server sends a notification that all the consequences of a method call have
|
||||
been communicated to the client</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onUpdated</span><span class="p">:</span> <span class="p">((</span><span class="nv">methods</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">])</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>methods</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>An array of method id strings</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP9DDPEvents7onErrorGSqFT7messageVS_8DDPError_T__"></a>
|
||||
<a name="//apple_ref/swift/Property/onError" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP9DDPEvents7onErrorGSqFT7messageVS_8DDPError_T__">onError</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>onError executes when the client receives a DDP error message</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">onError</span><span class="p">:</span> <span class="p">((</span><span class="nv">message</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">)</span> <span class="o">-></span> <span class="p">())?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4>Parameters</h4>
|
||||
<table class="graybox">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>
|
||||
<em>message</em>
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div>
|
||||
<p>A DDPError message describing the error</p>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,818 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>DDPMessage Struct Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/DDPMessage" class="dashAnchor"></a>
|
||||
<a title="DDPMessage Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
DDPMessage Struct Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>DDPMessage</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>A struct to parse, encapsulate and facilitate handling of DDP message strings</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage4jsonGSQCSo12NSDictionary_"></a>
|
||||
<a name="//apple_ref/swift/Property/json" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage4jsonGSQCSo12NSDictionary_">json</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The message’s properties, stored as an NSDictionary</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">json</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="o">!</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageSS_S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageSS_S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initialize a message struct, with a Json string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageGVSs10DictionarySSSS__S0_"></a>
|
||||
<a name="//apple_ref/swift/Method/init(message:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessagecFMS0_FT7messageGVSs10DictionarySSSS__S0_">init(message:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Initialize a message struct, with a dictionary of strings</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">message</span><span class="p">:[</span><span class="kt">String</span><span class="p">:</span><span class="kt">String</span><span class="p">])</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:ZFV8SwiftDDP10DDPMessage8toStringFMS0_FPSs9AnyObject_GSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Method/toString(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:ZFV8SwiftDDP10DDPMessage8toStringFMS0_FPSs9AnyObject_GSqSS_">toString(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Converts an NSDictionary to a JSON string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">static</span> <span class="kd">func</span> <span class="nf">toString</span><span class="p">(</span><span class="nv">json</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">)</span> <span class="o">-></span> <span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage4typeOS_14DDPMessageType"></a>
|
||||
<a name="//apple_ref/swift/Property/type" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage4typeOS_14DDPMessageType">type</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns the DDP message type, of type DDPMessageType enum</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">type</span><span class="p">:</span><span class="kt">DDPMessageType</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7isErrorSb"></a>
|
||||
<a name="//apple_ref/swift/Property/isError" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7isErrorSb">isError</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Returns a boolean value indicating if the message is an error message or not</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isError</span><span class="p">:</span><span class="kt">Bool</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:FV8SwiftDDP10DDPMessage11hasPropertyFS0_FSSSb"></a>
|
||||
<a name="//apple_ref/swift/Method/hasProperty(_:)" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:FV8SwiftDDP10DDPMessage11hasPropertyFS0_FSSSb">hasProperty(_:)</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>Undocumented</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">DDPMessage</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7messageGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/message" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7messageGSqSS_">message</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP message</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">message</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7sessionGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/session" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7sessionGSqSS_">session</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP session string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">session</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7versionGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/version" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7versionGSqSS_">version</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP version string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">version</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7supportGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/support" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7supportGSqSS_">support</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP support string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">support</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage2idGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/id" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage2idGSqSS_">id</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP message id string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage4nameGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/name" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage4nameGSqSS_">name</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP name string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">name</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6paramsGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/params" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6paramsGSqSS_">params</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP param string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">params</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage5errorGSqVS_8DDPError_"></a>
|
||||
<a name="//apple_ref/swift/Property/error" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage5errorGSqVS_8DDPError_">error</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP error object</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage10collectionGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/collection" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage10collectionGSqSS_">collection</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP collection name string</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6fieldsGSqCSo12NSDictionary_"></a>
|
||||
<a name="//apple_ref/swift/Property/fields" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6fieldsGSqCSo12NSDictionary_">fields</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP fields dictionary</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7clearedGSqGSaSS__"></a>
|
||||
<a name="//apple_ref/swift/Property/cleared" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7clearedGSqGSaSS__">cleared</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional DDP cleared array. Contains an array of fields that should be removed</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6methodGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/method" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6methodGSqSS_">method</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional method name</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">method</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage10randomSeedGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/randomSeed" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage10randomSeedGSqSS_">randomSeed</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional random seed JSON value (an arbitrary client-determined seed for pseudo-random generators)</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">randomSeed</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6resultGSqPSs9AnyObject__"></a>
|
||||
<a name="//apple_ref/swift/Property/result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6resultGSqPSs9AnyObject__">result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional result object, containing the result of a method call</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">result</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage7methodsGSqGSaSS__"></a>
|
||||
<a name="//apple_ref/swift/Property/methods" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage7methodsGSqGSaSS__">methods</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional array of ids passed to ‘method’, all of whose writes have been reflected in data messages)</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">methods</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage4subsGSqGSaSS__"></a>
|
||||
<a name="//apple_ref/swift/Property/subs" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage4subsGSqGSaSS__">subs</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional array of id strings passed to ‘sub’ which have sent their initial batch of data</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">subs</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage6reasonGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/reason" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage6reasonGSqSS_">reason</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional reason given for an error returned from the server</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">reason</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP10DDPMessage16offendingMessageGSqSS_"></a>
|
||||
<a name="//apple_ref/swift/Property/offendingMessage" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP10DDPMessage16offendingMessageGSqSS_">offendingMessage</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The optional original error message</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">offendingMessage</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,197 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Result Struct Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="../js/jquery.min.js" defer></script>
|
||||
<script src="../js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a name="//apple_ref/swift/Struct/Result" class="dashAnchor"></a>
|
||||
<a title="Result Struct Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="../index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="../index.html"> Reference</a>
|
||||
<img id="carat" src="../img/carat.png" />
|
||||
Result Struct Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="../Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="../Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="../Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
<h1>Result</h1>
|
||||
<div class="declaration">
|
||||
<div class="Swift">
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="kd">struct</span> <span class="kt">Result</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<p>Struct to encapsulate the result of a Meteor method call</p>
|
||||
|
||||
</section>
|
||||
<section class="section task-group-section">
|
||||
<div class="task-group">
|
||||
<ul>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP6Result6resultGSqPSs9AnyObject__"></a>
|
||||
<a name="//apple_ref/swift/Property/result" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP6Result6resultGSqPSs9AnyObject__">result</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>The result of the method call</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">result</span><span class="p">:</span><span class="kt">AnyObject</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
<li class="item">
|
||||
<div>
|
||||
<code>
|
||||
<a name="/s:vV8SwiftDDP6Result5errorGSqVS_8DDPError_"></a>
|
||||
<a name="//apple_ref/swift/Property/error" class="dashAnchor"></a>
|
||||
<a class="token" href="#/s:vV8SwiftDDP6Result5errorGSqVS_8DDPError_">error</a>
|
||||
</code>
|
||||
</div>
|
||||
<div class="height-container">
|
||||
<div class="pointer-container"></div>
|
||||
<section class="section">
|
||||
<div class="pointer"></div>
|
||||
<div class="abstract">
|
||||
<p>An error object describing the server-side error, or nil if the method completed successfully</p>
|
||||
|
||||
</div>
|
||||
<div class="declaration">
|
||||
<h4>Declaration</h4>
|
||||
<div class="Swift">
|
||||
<p class="aside-title">Swift</p>
|
||||
<pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">error</span><span class="p">:</span><span class="kt">DDPError</span><span class="p">?</span></code></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,202 +0,0 @@
|
|||
/* Credit to https://gist.github.com/wataru420/2048287 */
|
||||
.highlight {
|
||||
/* Comment */
|
||||
/* Error */
|
||||
/* Keyword */
|
||||
/* Operator */
|
||||
/* Comment.Multiline */
|
||||
/* Comment.Preproc */
|
||||
/* Comment.Single */
|
||||
/* Comment.Special */
|
||||
/* Generic.Deleted */
|
||||
/* Generic.Deleted.Specific */
|
||||
/* Generic.Emph */
|
||||
/* Generic.Error */
|
||||
/* Generic.Heading */
|
||||
/* Generic.Inserted */
|
||||
/* Generic.Inserted.Specific */
|
||||
/* Generic.Output */
|
||||
/* Generic.Prompt */
|
||||
/* Generic.Strong */
|
||||
/* Generic.Subheading */
|
||||
/* Generic.Traceback */
|
||||
/* Keyword.Constant */
|
||||
/* Keyword.Declaration */
|
||||
/* Keyword.Pseudo */
|
||||
/* Keyword.Reserved */
|
||||
/* Keyword.Type */
|
||||
/* Literal.Number */
|
||||
/* Literal.String */
|
||||
/* Name.Attribute */
|
||||
/* Name.Builtin */
|
||||
/* Name.Class */
|
||||
/* Name.Constant */
|
||||
/* Name.Entity */
|
||||
/* Name.Exception */
|
||||
/* Name.Function */
|
||||
/* Name.Namespace */
|
||||
/* Name.Tag */
|
||||
/* Name.Variable */
|
||||
/* Operator.Word */
|
||||
/* Text.Whitespace */
|
||||
/* Literal.Number.Float */
|
||||
/* Literal.Number.Hex */
|
||||
/* Literal.Number.Integer */
|
||||
/* Literal.Number.Oct */
|
||||
/* Literal.String.Backtick */
|
||||
/* Literal.String.Char */
|
||||
/* Literal.String.Doc */
|
||||
/* Literal.String.Double */
|
||||
/* Literal.String.Escape */
|
||||
/* Literal.String.Heredoc */
|
||||
/* Literal.String.Interpol */
|
||||
/* Literal.String.Other */
|
||||
/* Literal.String.Regex */
|
||||
/* Literal.String.Single */
|
||||
/* Literal.String.Symbol */
|
||||
/* Name.Builtin.Pseudo */
|
||||
/* Name.Variable.Class */
|
||||
/* Name.Variable.Global */
|
||||
/* Name.Variable.Instance */
|
||||
/* Literal.Number.Integer.Long */ }
|
||||
.highlight .c {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .err {
|
||||
color: #a61717;
|
||||
background-color: #e3d2d2; }
|
||||
.highlight .k {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .o {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .cm {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cp {
|
||||
color: #999999;
|
||||
font-weight: bold; }
|
||||
.highlight .c1 {
|
||||
color: #999988;
|
||||
font-style: italic; }
|
||||
.highlight .cs {
|
||||
color: #999999;
|
||||
font-weight: bold;
|
||||
font-style: italic; }
|
||||
.highlight .gd {
|
||||
color: #000000;
|
||||
background-color: #ffdddd; }
|
||||
.highlight .gd .x {
|
||||
color: #000000;
|
||||
background-color: #ffaaaa; }
|
||||
.highlight .ge {
|
||||
color: #000000;
|
||||
font-style: italic; }
|
||||
.highlight .gr {
|
||||
color: #aa0000; }
|
||||
.highlight .gh {
|
||||
color: #999999; }
|
||||
.highlight .gi {
|
||||
color: #000000;
|
||||
background-color: #ddffdd; }
|
||||
.highlight .gi .x {
|
||||
color: #000000;
|
||||
background-color: #aaffaa; }
|
||||
.highlight .go {
|
||||
color: #888888; }
|
||||
.highlight .gp {
|
||||
color: #555555; }
|
||||
.highlight .gs {
|
||||
font-weight: bold; }
|
||||
.highlight .gu {
|
||||
color: #aaaaaa; }
|
||||
.highlight .gt {
|
||||
color: #aa0000; }
|
||||
.highlight .kc {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kd {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kp {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kr {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .kt {
|
||||
color: #445588;
|
||||
font-weight: bold; }
|
||||
.highlight .m {
|
||||
color: #009999; }
|
||||
.highlight .s {
|
||||
color: #d14; }
|
||||
.highlight .na {
|
||||
color: #008080; }
|
||||
.highlight .nb {
|
||||
color: #0086B3; }
|
||||
.highlight .nc {
|
||||
color: #445588;
|
||||
font-weight: bold; }
|
||||
.highlight .no {
|
||||
color: #008080; }
|
||||
.highlight .ni {
|
||||
color: #800080; }
|
||||
.highlight .ne {
|
||||
color: #990000;
|
||||
font-weight: bold; }
|
||||
.highlight .nf {
|
||||
color: #990000;
|
||||
font-weight: bold; }
|
||||
.highlight .nn {
|
||||
color: #555555; }
|
||||
.highlight .nt {
|
||||
color: #000080; }
|
||||
.highlight .nv {
|
||||
color: #008080; }
|
||||
.highlight .ow {
|
||||
color: #000000;
|
||||
font-weight: bold; }
|
||||
.highlight .w {
|
||||
color: #bbbbbb; }
|
||||
.highlight .mf {
|
||||
color: #009999; }
|
||||
.highlight .mh {
|
||||
color: #009999; }
|
||||
.highlight .mi {
|
||||
color: #009999; }
|
||||
.highlight .mo {
|
||||
color: #009999; }
|
||||
.highlight .sb {
|
||||
color: #d14; }
|
||||
.highlight .sc {
|
||||
color: #d14; }
|
||||
.highlight .sd {
|
||||
color: #d14; }
|
||||
.highlight .s2 {
|
||||
color: #d14; }
|
||||
.highlight .se {
|
||||
color: #d14; }
|
||||
.highlight .sh {
|
||||
color: #d14; }
|
||||
.highlight .si {
|
||||
color: #d14; }
|
||||
.highlight .sx {
|
||||
color: #d14; }
|
||||
.highlight .sr {
|
||||
color: #009926; }
|
||||
.highlight .s1 {
|
||||
color: #d14; }
|
||||
.highlight .ss {
|
||||
color: #990073; }
|
||||
.highlight .bp {
|
||||
color: #999999; }
|
||||
.highlight .vc {
|
||||
color: #008080; }
|
||||
.highlight .vg {
|
||||
color: #008080; }
|
||||
.highlight .vi {
|
||||
color: #008080; }
|
||||
.highlight .il {
|
||||
color: #009999; }
|
|
@ -1,302 +0,0 @@
|
|||
html, body, div, span, h1, h3, h4, p, a, code, em, img, ul, li, table, tbody, tr, td {
|
||||
background: transparent;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
vertical-align: baseline; }
|
||||
|
||||
body {
|
||||
background-color: #f2f2f2;
|
||||
font-family: Helvetica, freesans, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
-webkit-font-smoothing: subpixel-antialiased;
|
||||
word-wrap: break-word; }
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0.8em;
|
||||
margin-bottom: 0.3em;
|
||||
font-weight: 100;
|
||||
color: black; }
|
||||
|
||||
h1 {
|
||||
font-size: 2.5em; }
|
||||
|
||||
h2 {
|
||||
font-size: 2em;
|
||||
border-bottom: 1px solid #e2e2e2; }
|
||||
|
||||
h3 {
|
||||
font-size: 1.5em; }
|
||||
|
||||
h4 {
|
||||
font-size: 1.25em; }
|
||||
|
||||
h5 {
|
||||
font-size: 1.1em; }
|
||||
|
||||
h6 {
|
||||
font-size: 1.1em;
|
||||
color: #777; }
|
||||
|
||||
pre, code {
|
||||
font: 0.95em Menlo, monospace;
|
||||
color: #777;
|
||||
word-wrap: normal; }
|
||||
|
||||
p code, li code {
|
||||
background-color: #eee;
|
||||
padding: 2px 4px;
|
||||
border-radius: 4px; }
|
||||
|
||||
a {
|
||||
color: #0088cc;
|
||||
text-decoration: none; }
|
||||
|
||||
ul {
|
||||
padding-left: 15px; }
|
||||
|
||||
li {
|
||||
line-height: 1.8em; }
|
||||
|
||||
img {
|
||||
max-width: 100%; }
|
||||
|
||||
blockquote {
|
||||
margin-left: 0;
|
||||
padding: 0 10px;
|
||||
border-left: 4px solid #ccc; }
|
||||
|
||||
.content-wrapper {
|
||||
margin: 0 auto;
|
||||
width: 980px; }
|
||||
|
||||
header {
|
||||
font-size: 0.85em;
|
||||
line-height: 26px;
|
||||
background-color: #414141;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1; }
|
||||
header img {
|
||||
padding-right: 6px;
|
||||
vertical-align: -4px;
|
||||
height: 16px; }
|
||||
header a {
|
||||
color: #fff; }
|
||||
header p {
|
||||
float: left;
|
||||
color: #999; }
|
||||
header .header-right {
|
||||
float: right;
|
||||
margin-left: 16px; }
|
||||
|
||||
#breadcrumbs {
|
||||
background-color: #f2f2f2;
|
||||
height: 27px;
|
||||
padding-top: 17px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
margin-top: 26px; }
|
||||
#breadcrumbs #carat {
|
||||
height: 10px;
|
||||
margin: 0 5px; }
|
||||
|
||||
.sidebar {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #e2e2e2;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
position: fixed;
|
||||
top: 70px;
|
||||
bottom: 0;
|
||||
width: 230px;
|
||||
word-wrap: normal; }
|
||||
|
||||
.nav-groups {
|
||||
list-style-type: none;
|
||||
background: #fff;
|
||||
padding-left: 0; }
|
||||
|
||||
.nav-group-name {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
font-size: 1.1em;
|
||||
font-weight: 100;
|
||||
padding: 15px 0 15px 20px; }
|
||||
.nav-group-name > a {
|
||||
color: #333; }
|
||||
|
||||
.nav-group-tasks {
|
||||
margin-top: 5px; }
|
||||
|
||||
.nav-group-task {
|
||||
font-size: 0.9em;
|
||||
list-style-type: none; }
|
||||
.nav-group-task a {
|
||||
color: #888; }
|
||||
|
||||
.main-content {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e2e2;
|
||||
margin-left: 246px;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
padding-bottom: 60px;
|
||||
top: 70px;
|
||||
width: 734px; }
|
||||
.main-content p, .main-content a, .main-content code, .main-content em, .main-content ul, .main-content table, .main-content blockquote {
|
||||
margin-bottom: 1em; }
|
||||
.main-content p {
|
||||
line-height: 1.8em; }
|
||||
.main-content section .section:first-child {
|
||||
margin-top: 0;
|
||||
padding-top: 0; }
|
||||
.main-content section .task-group-section .task-group:first-of-type {
|
||||
padding-top: 10px; }
|
||||
.main-content section .task-group-section .task-group:first-of-type .section-name {
|
||||
padding-top: 15px; }
|
||||
|
||||
.section {
|
||||
padding: 0 25px; }
|
||||
|
||||
.highlight {
|
||||
background-color: #eee;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid #e2e2e2;
|
||||
border-radius: 4px;
|
||||
overflow-x: auto; }
|
||||
|
||||
.aside-title {
|
||||
font-size: 9px;
|
||||
letter-spacing: 2px;
|
||||
text-transform: uppercase;
|
||||
padding-bottom: 0; }
|
||||
|
||||
.declaration .highlight {
|
||||
overflow-x: initial;
|
||||
padding: 0 40px 40px 0;
|
||||
margin-bottom: -25px;
|
||||
background-color: transparent;
|
||||
border: none; }
|
||||
|
||||
.section-name {
|
||||
margin: 0;
|
||||
margin-left: 18px; }
|
||||
|
||||
.task-group-section {
|
||||
padding-left: 6px;
|
||||
border-top: 1px solid #e2e2e2; }
|
||||
|
||||
.task-group {
|
||||
padding-top: 0px; }
|
||||
|
||||
.item {
|
||||
padding-top: 8px;
|
||||
width: 100%;
|
||||
list-style-type: none; }
|
||||
.item a[name]:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 70px;
|
||||
margin: -70px 0 0; }
|
||||
.item code {
|
||||
background-color: transparent;
|
||||
padding: 0; }
|
||||
.item .token {
|
||||
padding-left: 3px;
|
||||
margin-left: 15px; }
|
||||
|
||||
.pointer-container {
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -23px;
|
||||
padding-bottom: 13px;
|
||||
position: relative;
|
||||
width: 110%; }
|
||||
|
||||
.pointer {
|
||||
background: #f9f9f9;
|
||||
border-left: 1px solid #e2e2e2;
|
||||
border-top: 1px solid #e2e2e2;
|
||||
height: 12px;
|
||||
left: 21px;
|
||||
top: -7px;
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
width: 12px; }
|
||||
|
||||
.height-container {
|
||||
display: none;
|
||||
left: -25px;
|
||||
padding: 0 25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
overflow: hidden; }
|
||||
.height-container .section {
|
||||
background: #f9f9f9;
|
||||
border-bottom: 1px solid #e2e2e2;
|
||||
left: -25px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 5px; }
|
||||
|
||||
div.Swift {
|
||||
padding: 4px 0 2px 10px;
|
||||
margin-bottom: 1em;
|
||||
border-left: 5px solid #cde9f4;
|
||||
overflow-y: hidden; }
|
||||
div.Swift .aside-title {
|
||||
color: #4b8afb;
|
||||
-webkit-user-select: none; }
|
||||
|
||||
.graybox {
|
||||
border-collapse: collapse;
|
||||
width: 100%; }
|
||||
.graybox p {
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
min-width: 50px; }
|
||||
.graybox td {
|
||||
border: 1px solid #e2e2e2;
|
||||
padding: 5px 25px 5px 10px;
|
||||
vertical-align: middle; }
|
||||
.graybox tr td:first-of-type {
|
||||
text-align: right;
|
||||
padding: 7px;
|
||||
vertical-align: top;
|
||||
word-break: normal;
|
||||
width: 40px; }
|
||||
|
||||
.slightly-smaller {
|
||||
font-size: 0.9em; }
|
||||
|
||||
#footer {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
margin-left: 25px; }
|
||||
#footer p {
|
||||
margin: 0;
|
||||
color: #aaa;
|
||||
font-size: 0.8em; }
|
||||
|
||||
html.dash header, html.dash #breadcrumbs, html.dash .sidebar {
|
||||
display: none; }
|
||||
html.dash .main-content {
|
||||
width: 980px;
|
||||
margin-left: 0;
|
||||
border: none;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
padding-bottom: 0; }
|
||||
html.dash .height-container {
|
||||
display: block; }
|
||||
html.dash .item .token {
|
||||
margin-left: 0; }
|
||||
html.dash .content-wrapper {
|
||||
width: auto; }
|
||||
html.dash #footer {
|
||||
position: static; }
|
Binary file not shown.
Before Width: | Height: | Size: 274 B |
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,305 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title> Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<a title=" Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/EJSON.html">EJSON</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/Meteor.html">Meteor</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorCollection.html">MeteorCollection</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP19DDP_USER_DID_LOGOUTSS">DDP_USER_DID_LOGOUT</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP32METEOR_COLLECTION_SET_DID_CHANGESS">METEOR_COLLECTION_SET_DID_CHANGE</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/SwiftDDPDelegate.html">SwiftDDPDelegate</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPError.html">DDPError</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPEvents.html">DDPEvents</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/DDPMessage.html">DDPMessage</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs/Result.html">Result</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<article class="main-content">
|
||||
<section>
|
||||
<section class="section">
|
||||
|
||||
<a href='#swiftddp_a_ddp_client_for_meteor_written_in_swift' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='swiftddp_a_ddp_client_for_meteor_written_in_swift'>SwiftDDP: A DDP Client for Meteor written in Swift</h1>
|
||||
<a href='#license' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='license'>License</h4>
|
||||
|
||||
<p>MIT </p>
|
||||
|
||||
<p><a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/v/SwiftDDP.svg?style=flat" alt="Version"></a>
|
||||
<a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/l/SwiftDDP.svg?style=flat" alt="License"></a>
|
||||
<a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/p/SwiftDDP.svg?style=flat" alt="Platform"></a></p>
|
||||
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>
|
||||
|
||||
<p>Install using <a href="https://github.com/Carthage/Carthage">Carthage</a> by adding the following line to your Cartfile:</p>
|
||||
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"siegesmund/SwiftDDP"</span> <span class="o">~></span> <span class="mi">0</span><span class="o">.</span><span class="mi">1</span><span class="o">.</span><span class="mi">9</span>
|
||||
</code></pre>
|
||||
|
||||
<p>Or, use <a href="http://cocoapods.org">CocoaPods</a>. Add the following line to your Podfile:</p>
|
||||
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s2">"SwiftDDP"</span><span class="p">,</span> <span class="s2">"~> 0.1.9"</span>
|
||||
</code></pre>
|
||||
<a href='#documentation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='documentation'>Documentation</h2>
|
||||
<a href='#a_href_https_siegesmund_github_io_swiftddp_api_reference_a' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='a_href_https_siegesmund_github_io_swiftddp_api_reference_a'><a href="https://siegesmund.github.io/SwiftDDP">API Reference</a></h3>
|
||||
<a href='#quick_start' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='quick_start'>Quick Start</h3>
|
||||
<a href='#connecting_to_a_meteor_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='connecting_to_a_meteor_server'>Connecting to a Meteor server</h4>
|
||||
<pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SwiftDDP</span>
|
||||
|
||||
<span class="c1">// Meteor.connect will automatically connect and will sign in using</span>
|
||||
<span class="c1">// a stored login token if the client was previously signed in.</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">connect</span><span class="p">(</span><span class="s">"wss://todos.meteor.com/websocket"</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// do something after the client connects</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#login_amp_logout' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='login_amp_logout'>Login & Logout</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">loginWithPassword</span><span class="p">(</span><span class="s">"user@swiftddp.com"</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="s">"********"</span><span class="p">)</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<span class="c1">// do something after login</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">logout</span><span class="p">()</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<span class="c1">// do something after logout</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<p>The client also posts a notification when the user signs in and signs out.</p>
|
||||
<pre class="highlight swift"><code><span class="c1">// Notification name (a string global variable)</span>
|
||||
<span class="kt">DDP_USER_DID_LOGIN</span>
|
||||
<span class="kt">DDP_USER_DID_LOGOUT</span>
|
||||
|
||||
<span class="c1">// Example</span>
|
||||
<span class="kt">NSNotificationCenter</span><span class="o">.</span><span class="nf">defaultCenter</span><span class="p">()</span><span class="o">.</span><span class="nf">addObserver</span><span class="p">(</span><span class="k">self</span><span class="p">,</span> <span class="nv">selector</span><span class="p">:</span> <span class="s">"userDidLogin"</span><span class="p">,</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">DDP_USER_DID_LOGIN</span><span class="p">,</span> <span class="nv">object</span><span class="p">:</span> <span class="kc">nil</span><span class="p">)</span>
|
||||
<span class="kt">NSNotificationCenter</span><span class="o">.</span><span class="nf">defaultCenter</span><span class="p">()</span><span class="o">.</span><span class="nf">addObserver</span><span class="p">(</span><span class="k">self</span><span class="p">,</span> <span class="nv">selector</span><span class="p">:</span> <span class="s">"userDidLogout"</span><span class="p">,</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">DDP_USER_DID_LOGOUT</span><span class="p">,</span> <span class="nv">object</span><span class="p">:</span> <span class="kc">nil</span><span class="p">)</span>
|
||||
|
||||
<span class="kd">func</span> <span class="nf">userDidLogin</span><span class="p">()</span> <span class="p">{</span>
|
||||
<span class="nf">print</span><span class="p">(</span><span class="s">"The user just signed in!"</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kd">func</span> <span class="nf">userDidLogout</span><span class="p">()</span> <span class="p">{</span>
|
||||
<span class="nf">print</span><span class="p">(</span><span class="s">"The user just signed out!"</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#subscribe_to_a_subset_of_a_collection_on_the_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='subscribe_to_a_subset_of_a_collection_on_the_server'>Subscribe to a subset of a collection on the server</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">)</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// Do something when the todos subscription is ready</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">4</span><span class="p">])</span> <span class="p">{</span>
|
||||
<span class="c1">// Do something when the todos subscription is ready</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#call_a_method_on_the_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='call_a_method_on_the_server'>Call a method on the server</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">call</span><span class="p">(</span><span class="s">"foo"</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">])</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<span class="c1">// Do something with the method result</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<p>When passing parameters to a server method, the parameters object must be serializable with NSJSONSerialization</p>
|
||||
<a href='#simple_in_memory_persistence' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='simple_in_memory_persistence'>Simple in-memory persistence</h4>
|
||||
|
||||
<p>SwiftDDP includes a class called MeteorCollection that provides simple, ephemeral dictionary backed persistence. MeteorCollection stores objects subclassed from MeteorDocument. Creating a collection is as simple as: </p>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">List</span><span class="p">:</span> <span class="kt">MeteorDocument</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">var</span> <span class="nv">collection</span><span class="p">:</span><span class="kt">String</span> <span class="o">=</span> <span class="s">"lists"</span>
|
||||
<span class="k">var</span> <span class="nv">name</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
<span class="k">var</span> <span class="nv">userId</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">let</span> <span class="nv">lists</span> <span class="o">=</span> <span class="kt">MeteorCollection</span><span class="o"><</span><span class="kt">List</span><span class="o">></span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="s">"lists"</span><span class="p">)</span> <span class="c1">// As with Meteorjs, the name is the name of the server-side collection </span>
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"lists"</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
|
||||
<p>For client side insertions, updates and removals:</p>
|
||||
<pre class="highlight swift"><code> <span class="k">let</span> <span class="nv">list</span> <span class="o">=</span> <span class="kt">List</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Meteor</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="nf">getId</span><span class="p">(),</span> <span class="nv">fields</span><span class="p">:</span> <span class="p">[</span><span class="s">"name"</span><span class="p">:</span> <span class="s">"foo"</span><span class="p">])</span>
|
||||
|
||||
<span class="c1">// Insert the object on both the client and server.</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">insert</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
|
||||
<span class="c1">// Update the object on both the client and server</span>
|
||||
<span class="n">list</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s">"bar"</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
|
||||
<span class="c1">// Remove the object on both the client and server</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">remove</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
|
||||
<p>For each operation the action is executed on the client, and rolled back if the server returns an error.</p>
|
||||
<a href='#example_projects' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_projects'>Example Projects:</h2>
|
||||
<a href='#todos' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='todos'>Todos</h4>
|
||||
|
||||
<p>These are iOS implementations of <a href="https://www.meteor.com/todos">Meteor’s Todos example</a>. The best way to run the examples is to connect to a local instance of Meteor’s Todos app: <code>meteor create --example todos && cd todos && meteor</code>. You can specify the server that the Todos app connects to by changing the url variable in AppDelegate.swift. There are currently two flavors: a simple example with Dictionary based persistence and an example showing how to use SwiftDDP with Core Data and NSFetchedResultsController.
|
||||
- <a href="https://github.com/siegesmund/SwiftDDP/tree/master/Examples/Dictionary">Meteor Todos with dictionary based in-memory storage</a>
|
||||
- <a href="https://github.com/siegesmund/SwiftDDP/tree/master/Examples/CoreData">Meteor Todos Core Data integration</a></p>
|
||||
<a href='#example_creating_an_array_based_custom_collection' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_creating_an_array_based_custom_collection'>Example: Creating an Array based custom collection</h2>
|
||||
<a href='#the_following_pattern_can_be_used_to_create_custom_collections_backed_by_any_datastore' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='the_following_pattern_can_be_used_to_create_custom_collections_backed_by_any_datastore'>The following pattern can be used to create custom collections backed by any datastore</h4>
|
||||
|
||||
<p>In this example, we’ll create a simple collection to hold a list of contacts. The first thing we’ll do is create an object to represent a contact. This object has four properties and a method named <em>update</em> that maps the <em>fields</em> NSDictionary to the struct’s properties. <em>Update</em> is called when an object is created and when an update is performed. Meteor will always transmit an <strong>id</strong> to identify the object that should be added, updated or removed, so objects that represent Meteor documents must <strong>always</strong> have an id field. Here we’re sticking to the MongoDB convention of naming our id <em>_id</em>.</p>
|
||||
<pre class="highlight swift"><code>
|
||||
<span class="k">var</span> <span class="nv">contacts</span> <span class="o">=</span> <span class="p">[</span><span class="kt">Contact</span><span class="p">]()</span>
|
||||
|
||||
<span class="kd">struct</span> <span class="kt">Contact</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">var</span> <span class="nv">_id</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
<span class="k">var</span> <span class="nv">name</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
<span class="k">var</span> <span class="nv">phone</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
<span class="k">var</span> <span class="nv">email</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
|
||||
<span class="nf">init</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">_id</span> <span class="o">=</span> <span class="n">id</span>
|
||||
<span class="nf">update</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">mutating</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">name</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"name"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">phone</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"phone"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">phone</span> <span class="o">=</span> <span class="n">phone</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">email</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"email"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">email</span> <span class="o">=</span> <span class="n">email</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p>Next, we’ll create the collection class that will hold our contacts and provide the logic to respond to server-side changes to the documents and the subscription set. SwiftDDP contains an abstract class called AbstractCollection that can be used to build custom collections. Subclassing AbstractCollection allows you to override three methods that are called in response to events on the server: <em>documentWasAdded</em>, <em>documentWasChanged</em> and <em>documentWasRemoved</em>.</p>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">UserCollection</span><span class="p">:</span> <span class="kt">AbstractCollection</span> <span class="p">{</span>
|
||||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is added to the collection on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{</span>
|
||||
<span class="k">let</span> <span class="nv">user</span> <span class="o">=</span> <span class="kt">User</span><span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="n">fields</span><span class="p">)</span>
|
||||
<span class="n">users</span><span class="o">.</span><span class="nf">append</span><span class="p">(</span><span class="n">user</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is changed on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">index</span> <span class="o">=</span> <span class="n">contacts</span><span class="o">.</span><span class="nf">indexOf</span><span class="p">({</span> <span class="n">contact</span> <span class="k">in</span> <span class="k">return</span> <span class="n">contact</span><span class="o">.</span><span class="n">_id</span> <span class="o">==</span> <span class="n">id</span> <span class="p">})</span> <span class="p">{</span>
|
||||
<span class="n">contact</span> <span class="o">=</span> <span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span>
|
||||
<span class="n">contact</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="n">contact</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is removed on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">index</span> <span class="o">=</span> <span class="n">contacts</span><span class="o">.</span><span class="nf">indexOf</span><span class="p">({</span> <span class="n">contact</span> <span class="k">in</span> <span class="k">return</span> <span class="n">contact</span><span class="o">.</span><span class="n">_id</span> <span class="o">==</span> <span class="n">id</span> <span class="p">})</span> <span class="p">{</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</div>
|
||||
</html>
|
|
@ -1,31 +0,0 @@
|
|||
window.jazzy = {'docset': false}
|
||||
if (typeof window.dash != 'undefined') {
|
||||
document.documentElement.className += ' dash'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
if (navigator.userAgent.match(/xcode/i)) {
|
||||
document.documentElement.className += ' xcode'
|
||||
window.jazzy.docset = true
|
||||
}
|
||||
|
||||
// On doc load, toggle the URL hash discussion if present
|
||||
$(document).ready(function() {
|
||||
if (!window.jazzy.docset) {
|
||||
var linkToHash = $('a[href="' + window.location.hash +'"]');
|
||||
linkToHash.trigger("click");
|
||||
}
|
||||
});
|
||||
|
||||
// On token click, toggle its discussion and animate token.marginLeft
|
||||
$(".token").click(function() {
|
||||
if (window.jazzy.docset) {
|
||||
return;
|
||||
}
|
||||
var link = $(this);
|
||||
var animationDuration = 300;
|
||||
var tokenOffset = "15px";
|
||||
var original = link.css('marginLeft') == tokenOffset;
|
||||
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
|
||||
$content = link.parent().parent().next();
|
||||
$content.slideToggle(animationDuration);
|
||||
});
|
File diff suppressed because one or more lines are too long
|
@ -1,51 +0,0 @@
|
|||
DDPClient.swift
|
||||
func ddpUserDidLogin(user:String)
|
||||
func ddpUserDidLogout(user:String)
|
||||
public var delegate:SwiftDDPDelegate?
|
||||
public var logLevel = XCGLogger.LogLevel.Debug
|
||||
EJSON.swift
|
||||
public class EJSON: NSObject
|
||||
public static func convertToEJSONDate(date:NSDate) -> [String:Double]
|
||||
MeteorCollection.swift
|
||||
public let METEOR_COLLECTION_SET_DID_CHANGE = "METEOR_COLLECTION_SET_DID_CHANGE"
|
||||
public class MeteorCollection<T:MeteorDocument>: AbstractCollection
|
||||
public var sorted:[T]
|
||||
AbstractCollection.swift
|
||||
public class AbstractCollection: NSObject, MeteorCollectionType
|
||||
public var name:String
|
||||
public let client = Meteor.client
|
||||
public init(name:String)
|
||||
DDPMessage.swift
|
||||
public enum DDPMessageType:String
|
||||
case Connected = "connected"
|
||||
case Failed = "failed"
|
||||
case Ping = "ping"
|
||||
case Pong = "pong"
|
||||
case Nosub = "nosub"
|
||||
case Added = "added"
|
||||
case Changed = "changed"
|
||||
case Removed = "removed"
|
||||
case Ready = "ready"
|
||||
case AddedBefore = "addedBefore"
|
||||
case MovedBefore = "movedBefore"
|
||||
case Result = "result"
|
||||
case Updated = "updated"
|
||||
case Error = "error"
|
||||
case Unhandled = "unhandled"
|
||||
public func hasProperty(name:String) -> Bool
|
||||
MeteorDocument.swift
|
||||
public class MeteorDocument: NSObject
|
||||
required public init(id: String, fields: NSDictionary?)
|
||||
public func update(fields: NSDictionary?, cleared: [String]?)
|
||||
DDPExtensions.swift
|
||||
public let DDP_USER_DID_LOGIN = "DDP_USER_DID_LOGIN"
|
||||
public let DDP_USER_DID_LOGOUT = "DDP_USER_DID_LOGOUT"
|
||||
public func signup(params:NSDictionary, callback:((result: AnyObject?, error: DDPError?) -> ())?)
|
||||
Meteor.swift
|
||||
public protocol MeteorCollectionType
|
||||
func documentWasAdded(collection:String, id:String, fields:NSDictionary?)
|
||||
func documentWasChanged(collection:String, id:String, fields:NSDictionary?, cleared:[String]?)
|
||||
func documentWasRemoved(collection:String, id:String)
|
||||
public convenience init(url:String, email:String, password:String)
|
||||
DDPEvents.swift
|
||||
public var onConnected: Completion = Completion(callback: {session in log.info("connected with session: \(session)")})
|
Binary file not shown.
BIN
docsets/.tgz
BIN
docsets/.tgz
Binary file not shown.
259
index.html
259
index.html
|
@ -1,32 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title> Reference</title>
|
||||
<title>SwiftDDP Reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/jazzy.css" />
|
||||
<link rel="stylesheet" type="text/css" href="css/highlight.css" />
|
||||
<meta charset='utf-8'>
|
||||
<script src="js/jquery.min.js" defer></script>
|
||||
<script src="js/jazzy.js" defer></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<a title=" Reference"></a>
|
||||
<a title="SwiftDDP Reference"></a>
|
||||
<header>
|
||||
<div class="content-wrapper">
|
||||
<p><a href="index.html"> Docs</a> (74% documented)</p>
|
||||
<p><a href="index.html">SwiftDDP Docs</a> (69% documented)</p>
|
||||
</div>
|
||||
</header>
|
||||
<div class="content-wrapper">
|
||||
<p id="breadcrumbs">
|
||||
<a href="index.html"> Reference</a>
|
||||
<a href="index.html">SwiftDDP Reference</a>
|
||||
<img id="carat" src="img/carat.png" />
|
||||
Reference
|
||||
SwiftDDP Reference
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-wrapper">
|
||||
<nav class="sidebar">
|
||||
<ul class="nav-groups">
|
||||
<li class="nav-group-name">
|
||||
<a href="Classes.html">Classes</a>
|
||||
<a href="Classes.html">Classes</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/AbstractCollection.html">AbstractCollection</a>
|
||||
|
@ -46,10 +47,19 @@
|
|||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorDocument.html">MeteorDocument</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes.html#/s:C8SwiftDDP11MeteorOAuth">MeteorOAuth</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthDialogViewController.html">MeteorOAuthDialogViewController</a>
|
||||
</li>
|
||||
<li class="nav-group-task">
|
||||
<a href="Classes/MeteorOAuthServices.html">MeteorOAuthServices</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<a href="Global Variables.html">Global Variables</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Global Variables.html#/s:v8SwiftDDP18DDP_USER_DID_LOGINSS">DDP_USER_DID_LOGIN</a>
|
||||
|
@ -63,7 +73,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Enums.html">Enums</a>
|
||||
<a href="Enums.html">Enums</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Enums/DDPMessageType.html">DDPMessageType</a>
|
||||
|
@ -71,15 +81,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Extensions.html">Extensions</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Extensions/DDPClient.html">DDPClient</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<a href="Protocols.html">Protocols</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Protocols/MeteorCollectionType.html">MeteorCollectionType</a>
|
||||
|
@ -90,7 +92,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li class="nav-group-name">
|
||||
<a href="Structs.html">Structs</a>
|
||||
<a href="Structs.html">Structs</a>
|
||||
<ul class="nav-group-tasks">
|
||||
<li class="nav-group-task">
|
||||
<a href="Structs.html#/s:V8SwiftDDP10Completion">Completion</a>
|
||||
|
@ -115,7 +117,8 @@
|
|||
<section>
|
||||
<section class="section">
|
||||
|
||||
<a href='#swiftddp_a_ddp_client_for_meteor_written_in_swift' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='swiftddp_a_ddp_client_for_meteor_written_in_swift'>SwiftDDP: A DDP Client for Meteor written in Swift</h1>
|
||||
<a href='#swiftddp' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h1 id='swiftddp'>SwiftDDP</h1>
|
||||
<a href='#a_client_for_meteor_servers_written_in_swift' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='a_client_for_meteor_servers_written_in_swift'>A client for Meteor servers, written in Swift</h2>
|
||||
<a href='#license' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='license'>License</h4>
|
||||
|
||||
<p>MIT </p>
|
||||
|
@ -123,21 +126,55 @@
|
|||
<p><a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/v/SwiftDDP.svg?style=flat" alt="Version"></a>
|
||||
<a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/l/SwiftDDP.svg?style=flat" alt="License"></a>
|
||||
<a href="http://cocoapods.org/pods/SwiftDDP"><img src="https://img.shields.io/cocoapods/p/SwiftDDP.svg?style=flat" alt="Platform"></a></p>
|
||||
<a href='#changelog' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='changelog'>Changelog</h2>
|
||||
<a href='#0_3_0' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='0_3_0'>0.3.0:</h3>
|
||||
|
||||
<ul>
|
||||
<li>Changed default subscription behavior</li>
|
||||
<li>Added a method to sign a user in via username</li>
|
||||
</ul>
|
||||
<a href='#version_0_3_0_contains_breaking_changes' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h5 id='version_0_3_0_contains_breaking_changes'>Version 0.3.0 contains breaking changes</h5>
|
||||
|
||||
<ul>
|
||||
<li>You can now update a subscription by changing its parameters without first unsubscribing. This will subscribe the client to any documents associated with the new subscription and parameters. When you pass a new set of parameters to a subscription that you have previously subscribed to, you remain subscribed to any documents associated with that prior subscription.<br></li>
|
||||
<li>The subscription method returns an id. To unsubscribe to documents associated with a specific set of parameters, you must unsubscribe with this id.</li>
|
||||
<li>Unsubscribing by name now works differently. When unsubscribing by name, you unsubscribe to any and all subscriptions with that name.</li>
|
||||
<li>You can no longer pass a callback to <code>unsubscribe(name:String)</code>. It now returns an array with the ids of the subscriptions you’ve unsubscribed to.</li>
|
||||
</ul>
|
||||
<a href='#0_2_2_1' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='0_2_2_1'>0.2.2.1:</h3>
|
||||
|
||||
<ul>
|
||||
<li>Improved subscription handling across app states</li>
|
||||
<li>Dependencies updated for Swift 2.2</li>
|
||||
</ul>
|
||||
<a href='#0_2_1' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='0_2_1'>0.2.1:</h3>
|
||||
|
||||
<ul>
|
||||
<li>Reconnection behavior improvements: reconnect attempts now follow an exponential backoff pattern</li>
|
||||
<li>Client now connects to servers using self signed SSL certificates when allowSelfSignedSSL is set to true</li>
|
||||
<li>The loglevel can now be set directly using the logLevel property on the client. The default setting is .None</li>
|
||||
</ul>
|
||||
<a href='#0_2_0' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='0_2_0'>0.2.0:</h3>
|
||||
|
||||
<ul>
|
||||
<li>Integration with Meteor’s Facebook, Twitter & other login services</li>
|
||||
</ul>
|
||||
<a href='#installation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='installation'>Installation</h2>
|
||||
|
||||
<p>Install using <a href="https://github.com/Carthage/Carthage">Carthage</a> by adding the following line to your Cartfile:</p>
|
||||
<pre class="highlight ruby"><code><span class="n">github</span> <span class="s2">"siegesmund/SwiftDDP"</span> <span class="o">~></span> <span class="mi">0</span><span class="o">.</span><span class="mi">1</span><span class="o">.</span><span class="mi">9</span>
|
||||
</code></pre>
|
||||
|
||||
<p>Or, use <a href="http://cocoapods.org">CocoaPods</a>. Add the following line to your Podfile:</p>
|
||||
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s2">"SwiftDDP"</span><span class="p">,</span> <span class="s2">"~> 0.1.9"</span>
|
||||
<p>With <a href="http://cocoapods.org">CocoaPods</a>. Add the following line to your Podfile:</p>
|
||||
<pre class="highlight ruby"><code><span class="n">pod</span> <span class="s2">"SwiftDDP"</span><span class="p">,</span> <span class="s2">"~> 0.3.0"</span>
|
||||
</code></pre>
|
||||
<a href='#documentation' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='documentation'>Documentation</h2>
|
||||
<a href='#a_href_https_siegesmund_github_io_swiftddp_api_reference_a' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='a_href_https_siegesmund_github_io_swiftddp_api_reference_a'><a href="https://siegesmund.github.io/SwiftDDP">API Reference</a></h3>
|
||||
<a href='#quick_start' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h3 id='quick_start'>Quick Start</h3>
|
||||
<a href='#connecting_to_a_meteor_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='connecting_to_a_meteor_server'>Connecting to a Meteor server</h4>
|
||||
<pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SwiftDDP</span>
|
||||
<a href='#setting_basic_configuration_options' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='setting_basic_configuration_options'>Setting basic configuration options</h4>
|
||||
<pre class="highlight swift"><code><span class="kd">import</span> <span class="kt">SwiftDDP</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="n">allowSelfSignedSSL</span> <span class="o">=</span> <span class="kc">true</span> <span class="c1">// Connect to a server that uses a self signed ssl certificate</span>
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="n">logLevel</span> <span class="o">=</span> <span class="o">.</span><span class="kt">Info</span> <span class="c1">// Options are: .Verbose, .Debug, .Info, .Warning, .Error, .Severe, .None</span>
|
||||
</code></pre>
|
||||
<a href='#connecting_to_a_meteor_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='connecting_to_a_meteor_server'>Connecting to a Meteor server</h4>
|
||||
<pre class="highlight swift"><code>
|
||||
<span class="c1">// Meteor.connect will automatically connect and will sign in using</span>
|
||||
<span class="c1">// a stored login token if the client was previously signed in.</span>
|
||||
|
||||
|
@ -145,14 +182,64 @@
|
|||
<span class="c1">// do something after the client connects</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#login_amp_logout' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='login_amp_logout'>Login & Logout</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">loginWithPassword</span><span class="p">(</span><span class="s">"user@swiftddp.com"</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="s">"********"</span><span class="p">)</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<a href='#login_amp_logout_with_facebook_twitter_etc_beta' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='login_amp_logout_with_facebook_twitter_etc_beta'>Login & Logout with Facebook, Twitter, etc. (beta)</h4>
|
||||
|
||||
<p>These services use the standard Meteor accounts packages. Just add the appropriate package on the server (e.g. <code>meteor add accounts-facebook</code>) and follow the web-based provider setup. Choose redirect, rather than popup and save your appId/clientId as you’ll need it again in your iOS application.</p>
|
||||
|
||||
<p>In your iOS app, create a UIButton and associate its’ action with the appropriate Meteor login method. That’s it!
|
||||
“`swift
|
||||
class ViewController: UIViewController {</p>
|
||||
<pre class="highlight plaintext"><code>// client id is the id that Facebook, Google etc. assigns your app.
|
||||
let GITHUB_CLIENT_ID = "1234567890"
|
||||
let FACEBOOK_CLIENT_ID = "qwertyuiop"
|
||||
let GOOGLE_CLIENT_ID = "asdfghjkl"
|
||||
|
||||
// Note that Twitter does not require a client id
|
||||
@IBAction func loginWithTwitterWasClicked(sender: UIButton) {
|
||||
Meteor.loginWithTwitter(self)
|
||||
}
|
||||
|
||||
@IBAction func loginWithFacebookWasClicked(sender: UIButton) {
|
||||
Meteor.loginWithFacebook(FACEBOOK_CLIENT_ID, viewController: self)
|
||||
}
|
||||
|
||||
@IBAction func loginWithGoogleWasClicked(sender: UIButton) {
|
||||
Meteor.loginWithGoogle(GOOGLE_CLIENT_ID, viewController: self)
|
||||
}
|
||||
|
||||
@IBAction func loginWithGithubWasClicked(sender: UIButton) {
|
||||
Meteor.loginWithGithub(GITHUB_CLIENT_ID, viewController: self)
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>}</p>
|
||||
<pre class="highlight plaintext"><code>#### Gotchas and implementation notes for OAuth login flows
|
||||
When configuring OAuth services
|
||||
* If you connect over wss (as you should), then you must provide a https:// app url and redirect url to the service provider. If you connect over ws, you must use http:// for your app url and redirect url. In other words, you can't mix the two.
|
||||
* You'll need to choose redirect rather than popup in the Meteor OAuth configuration dialog
|
||||
* Once configured, Meteor provides the appId/clientId via the "meteor.loginServiceConfiguration" publication, which SwiftDDP automatically subscribes to. However, SwiftDDP currently requires that you explicitly provide the appId as this allows the user to begin logging in immediately, rather than waiting for the initial batch of subscriptions to finish.
|
||||
|
||||
#### Login & Logout with password
|
||||
|
||||
Login using email and password.
|
||||
|
||||
```swift
|
||||
Meteor.loginWithPassword("user@swiftddp.com", password: "********") { result, error in
|
||||
// do something after login
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
<p>Login using username and password.</p>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">loginWithUsername</span><span class="p">(</span><span class="s">"swiftddp"</span><span class="p">,</span> <span class="nv">password</span><span class="p">:</span> <span class="s">"********"</span><span class="p">)</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<span class="c1">// do something after login</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">logout</span><span class="p">()</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<p>Log out.</p>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">logout</span><span class="p">()</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
<span class="c1">// do something after logout</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
</code></pre>
|
||||
|
||||
<p>The client also posts a notification when the user signs in and signs out.</p>
|
||||
|
@ -173,7 +260,7 @@
|
|||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#subscribe_to_a_subset_of_a_collection_on_the_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='subscribe_to_a_subset_of_a_collection_on_the_server'>Subscribe to a subset of a collection on the server</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">)</span>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">)</span>
|
||||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="c1">// Do something when the todos subscription is ready</span>
|
||||
|
@ -181,7 +268,7 @@
|
|||
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"todos"</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">4</span><span class="p">])</span> <span class="p">{</span>
|
||||
<span class="c1">// Do something when the todos subscription is ready</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
<a href='#call_a_method_on_the_server' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='call_a_method_on_the_server'>Call a method on the server</h4>
|
||||
<pre class="highlight swift"><code><span class="kt">Meteor</span><span class="o">.</span><span class="nf">call</span><span class="p">(</span><span class="s">"foo"</span><span class="p">,</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">])</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
|
@ -192,7 +279,7 @@
|
|||
<p>When passing parameters to a server method, the parameters object must be serializable with NSJSONSerialization</p>
|
||||
<a href='#simple_in_memory_persistence' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='simple_in_memory_persistence'>Simple in-memory persistence</h4>
|
||||
|
||||
<p>SwiftDDP includes a class called MeteorCollection that provides simple, ephemeral dictionary backed persistence. MeteorCollection stores objects subclassed from MeteorDocument. Creating a collection is as simple as: </p>
|
||||
<p>SwiftDDP includes a class called MeteorCollection that provides simple, ephemeral dictionary backed persistence. MeteorCollection stores objects subclassed from MeteorDocument. Creating a collection is as simple as:</p>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">List</span><span class="p">:</span> <span class="kt">MeteorDocument</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">var</span> <span class="nv">collection</span><span class="p">:</span><span class="kt">String</span> <span class="o">=</span> <span class="s">"lists"</span>
|
||||
|
@ -202,37 +289,41 @@
|
|||
<span class="p">}</span>
|
||||
|
||||
<span class="k">let</span> <span class="nv">lists</span> <span class="o">=</span> <span class="kt">MeteorCollection</span><span class="o"><</span><span class="kt">List</span><span class="o">></span><span class="p">(</span><span class="nv">name</span><span class="p">:</span> <span class="s">"lists"</span><span class="p">)</span> <span class="c1">// As with Meteorjs, the name is the name of the server-side collection </span>
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"lists"</span><span class="p">)</span>
|
||||
<span class="kt">Meteor</span><span class="o">.</span><span class="nf">subscribe</span><span class="p">(</span><span class="s">"lists"</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
|
||||
<p>For client side insertions, updates and removals:</p>
|
||||
<pre class="highlight swift"><code> <span class="k">let</span> <span class="nv">list</span> <span class="o">=</span> <span class="kt">List</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Meteor</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="nf">getId</span><span class="p">(),</span> <span class="nv">fields</span><span class="p">:</span> <span class="p">[</span><span class="s">"name"</span><span class="p">:</span> <span class="s">"foo"</span><span class="p">])</span>
|
||||
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">list</span> <span class="o">=</span> <span class="kt">List</span><span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Meteor</span><span class="o">.</span><span class="n">client</span><span class="o">.</span><span class="nf">getId</span><span class="p">(),</span> <span class="nv">fields</span><span class="p">:</span> <span class="p">[</span><span class="s">"name"</span><span class="p">:</span> <span class="s">"foo"</span><span class="p">])</span>
|
||||
|
||||
<span class="c1">// Insert the object on both the client and server.</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">insert</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
<span class="c1">// Insert the object on both the client and server.</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">insert</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
|
||||
<span class="c1">// Update the object on both the client and server</span>
|
||||
<span class="n">list</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s">"bar"</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
<span class="c1">// Update the object on both the client and server</span>
|
||||
<span class="n">list</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s">"bar"</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
|
||||
<span class="c1">// Remove the object on both the client and server</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">remove</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
<span class="c1">// Remove the object on both the client and server</span>
|
||||
<span class="n">lists</span><span class="o">.</span><span class="nf">remove</span><span class="p">(</span><span class="n">list</span><span class="p">)</span>
|
||||
</code></pre>
|
||||
|
||||
<p>For each operation the action is executed on the client, and rolled back if the server returns an error.</p>
|
||||
<a href='#example_projects' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_projects'>Example Projects:</h2>
|
||||
<a href='#example_projects' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_projects'>Example Projects</h2>
|
||||
<a href='#todos' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='todos'>Todos</h4>
|
||||
|
||||
<p>These are iOS implementations of <a href="https://www.meteor.com/todos">Meteor’s Todos example</a>. The best way to run the examples is to connect to a local instance of Meteor’s Todos app: <code>meteor create --example todos && cd todos && meteor</code>. You can specify the server that the Todos app connects to by changing the url variable in AppDelegate.swift. There are currently two flavors: a simple example with Dictionary based persistence and an example showing how to use SwiftDDP with Core Data and NSFetchedResultsController.
|
||||
<p>These are iOS implementations of <a href="https://www.meteor.com/todos">Meteor’s Todos example</a>. The best way to run the examples is to connect to a local instance of Meteor’s Todos app: <code>meteor create --example todos && cd todos && meteor</code>. You can specify the server that the Todos app connects to by changing the url variable in AppDelegate.swift. There are currently two flavors: a simple example with dictionary based persistence and an example showing how to use SwiftDDP with Core Data and NSFetchedResultsController.
|
||||
- <a href="https://github.com/siegesmund/SwiftDDP/tree/master/Examples/Dictionary">Meteor Todos with dictionary based in-memory storage</a>
|
||||
- <a href="https://github.com/siegesmund/SwiftDDP/tree/master/Examples/CoreData">Meteor Todos Core Data integration</a></p>
|
||||
<a href='#example_creating_an_array_based_custom_collection' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_creating_an_array_based_custom_collection'>Example: Creating an Array based custom collection</h2>
|
||||
|
||||
<p>When running the examples with preexisting instances of the todos app hosted at *.meteor.com, note that connectivity to apps hosted on Meteor’s free hosting (not to be confused with Galaxy) can be erratic as the server periodically idles. If SwiftTodos does not connect or you cannot add or remove items or login, try connecting to a different instance. The surest way to do this is to run an instance of the todos app locally.</p>
|
||||
|
||||
<p><code>bash meteor create --example todos</code></p>
|
||||
|
||||
<p>Once you’ve created and started the Meteor todos server, set the url variable in AppDelegate.swift to ws://localhost:3000/websocket, then run the iOS app.</p>
|
||||
<a href='#example_creating_an_array_based_custom_collection' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h2 id='example_creating_an_array_based_custom_collection'>Example: Creating an array based custom collection</h2>
|
||||
<a href='#the_following_pattern_can_be_used_to_create_custom_collections_backed_by_any_datastore' class='anchor' aria-hidden=true><span class="header-anchor"></span></a><h4 id='the_following_pattern_can_be_used_to_create_custom_collections_backed_by_any_datastore'>The following pattern can be used to create custom collections backed by any datastore</h4>
|
||||
|
||||
<p>In this example, we’ll create a simple collection to hold a list of contacts. The first thing we’ll do is create an object to represent a contact. This object has four properties and a method named <em>update</em> that maps the <em>fields</em> NSDictionary to the struct’s properties. <em>Update</em> is called when an object is created and when an update is performed. Meteor will always transmit an <strong>id</strong> to identify the object that should be added, updated or removed, so objects that represent Meteor documents must <strong>always</strong> have an id field. Here we’re sticking to the MongoDB convention of naming our id <em>_id</em>.</p>
|
||||
<pre class="highlight swift"><code>
|
||||
<span class="k">var</span> <span class="nv">contacts</span> <span class="o">=</span> <span class="p">[</span><span class="kt">Contact</span><span class="p">]()</span>
|
||||
|
||||
<span class="kd">struct</span> <span class="kt">Contact</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">var</span> <span class="nv">_id</span><span class="p">:</span><span class="kt">String</span><span class="p">?</span>
|
||||
|
@ -247,15 +338,15 @@
|
|||
|
||||
<span class="k">mutating</span> <span class="kd">func</span> <span class="nf">update</span><span class="p">(</span><span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">name</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"name"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
|
||||
<span class="p">}</span>
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">name</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"name"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">phone</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"phone"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">phone</span> <span class="o">=</span> <span class="n">phone</span>
|
||||
<span class="p">}</span>
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">phone</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"phone"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">phone</span> <span class="o">=</span> <span class="n">phone</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">email</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"email"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">email</span> <span class="o">=</span> <span class="n">fields</span><span class="p">?</span><span class="o">.</span><span class="nf">valueForKey</span><span class="p">(</span><span class="s">"email"</span><span class="p">)</span> <span class="k">as?</span> <span class="kt">String</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">email</span> <span class="o">=</span> <span class="n">email</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
|
@ -266,6 +357,8 @@
|
|||
<p>Next, we’ll create the collection class that will hold our contacts and provide the logic to respond to server-side changes to the documents and the subscription set. SwiftDDP contains an abstract class called AbstractCollection that can be used to build custom collections. Subclassing AbstractCollection allows you to override three methods that are called in response to events on the server: <em>documentWasAdded</em>, <em>documentWasChanged</em> and <em>documentWasRemoved</em>.</p>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">UserCollection</span><span class="p">:</span> <span class="kt">AbstractCollection</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">var</span> <span class="nv">contacts</span> <span class="o">=</span> <span class="p">[</span><span class="kt">Contact</span><span class="p">]()</span>
|
||||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is added to the collection on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasAdded</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?)</span> <span class="p">{</span>
|
||||
<span class="k">let</span> <span class="nv">user</span> <span class="o">=</span> <span class="kt">User</span><span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="n">fields</span><span class="p">)</span>
|
||||
|
@ -274,29 +367,63 @@
|
|||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is changed on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasChanged</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">fields</span><span class="p">:</span><span class="kt">NSDictionary</span><span class="p">?,</span> <span class="nv">cleared</span><span class="p">:[</span><span class="kt">String</span><span class="p">]?)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">index</span> <span class="o">=</span> <span class="n">contacts</span><span class="o">.</span><span class="nf">indexOf</span><span class="p">({</span> <span class="n">contact</span> <span class="k">in</span> <span class="k">return</span> <span class="n">contact</span><span class="o">.</span><span class="n">_id</span> <span class="o">==</span> <span class="n">id</span> <span class="p">})</span> <span class="p">{</span>
|
||||
<span class="n">contact</span> <span class="o">=</span> <span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span>
|
||||
<span class="n">contact</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="n">contact</span>
|
||||
<span class="p">}</span>
|
||||
<span class="n">contact</span> <span class="o">=</span> <span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span>
|
||||
<span class="n">contact</span><span class="o">.</span><span class="nf">update</span><span class="p">(</span><span class="n">fields</span><span class="p">)</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="n">contact</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="c1">// Include any logic that needs to occur when a document is removed on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="p">{</span>
|
||||
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">index</span> <span class="o">=</span> <span class="n">contacts</span><span class="o">.</span><span class="nf">indexOf</span><span class="p">({</span> <span class="n">contact</span> <span class="k">in</span> <span class="k">return</span> <span class="n">contact</span><span class="o">.</span><span class="n">_id</span> <span class="o">==</span> <span class="n">id</span> <span class="p">})</span> <span class="p">{</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
|
||||
<span class="c1">// Include any logic that needs to occur when a document is removed on the server</span>
|
||||
<span class="k">override</span> <span class="kd">public</span> <span class="kd">func</span> <span class="nf">documentWasRemoved</span><span class="p">(</span><span class="nv">collection</span><span class="p">:</span><span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span><span class="kt">String</span><span class="p">)</span> <span class="p">{</span>
|
||||
<span class="k">if</span> <span class="k">let</span> <span class="nv">index</span> <span class="o">=</span> <span class="n">contacts</span><span class="o">.</span><span class="nf">indexOf</span><span class="p">({</span> <span class="n">contact</span> <span class="k">in</span> <span class="k">return</span> <span class="n">contact</span><span class="o">.</span><span class="n">_id</span> <span class="o">==</span> <span class="n">id</span> <span class="p">})</span> <span class="p">{</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">index</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<p>So far, we’re able to process documents that have been added, changed or removed on the server. But the UserCollection class still lacks the ability to make changes to both the local datastore and on the server. We’ll change that. In the UserCollection class, create a method called insert.</p>
|
||||
<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">UserCollection</span><span class="p">:</span> <span class="kt">AbstractCollection</span> <span class="p">{</span>
|
||||
<span class="cm">/*
|
||||
override public func documentWasAdded ...
|
||||
override public func documentWasChanged ...
|
||||
override public func documentWasRemoved ...
|
||||
*/</span>
|
||||
|
||||
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">insert</span><span class="p">(</span><span class="nv">contact</span><span class="p">:</span> <span class="kt">Contact</span><span class="p">)</span> <span class="p">{</span>
|
||||
|
||||
<span class="c1">// (1) save the document to the contacts array</span>
|
||||
<span class="n">contacts</span><span class="p">[</span><span class="n">contacts</span><span class="o">.</span><span class="n">_id</span><span class="p">]</span> <span class="o">=</span> <span class="n">contact</span>
|
||||
|
||||
<span class="c1">// (2) now try to insert the document on the server</span>
|
||||
<span class="n">client</span><span class="o">.</span><span class="nf">insert</span><span class="p">(</span><span class="k">self</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="nv">document</span><span class="p">:</span> <span class="p">[</span><span class="n">contacts</span><span class="o">.</span><span class="nf">fields</span><span class="p">()])</span> <span class="p">{</span> <span class="n">result</span><span class="p">,</span> <span class="n">error</span> <span class="k">in</span>
|
||||
|
||||
<span class="c1">// (3) However, if the server returns an error, reverse the action on the client by</span>
|
||||
<span class="c1">// removing the document from the contacts collection</span>
|
||||
<span class="k">if</span> <span class="n">error</span> <span class="o">!=</span> <span class="kc">nil</span> <span class="p">{</span>
|
||||
<span class="k">self</span><span class="o">.</span><span class="n">contacts</span><span class="p">[</span><span class="n">contact</span><span class="o">.</span><span class="n">_id</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
|
||||
<span class="n">log</span><span class="o">.</span><span class="nf">error</span><span class="p">(</span><span class="s">"</span><span class="se">\(</span><span class="n">error</span><span class="o">!</span><span class="se">)</span><span class="s">"</span><span class="p">)</span>
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="p">}</span>
|
||||
|
||||
<span class="p">}</span>
|
||||
<span class="p">}</span>
|
||||
</code></pre>
|
||||
|
||||
<p>The key parts of this method are:
|
||||
- (1) save the new contact to the array we created in UserCollection
|
||||
- (2) invoke client.insert to initiate an insert on the server
|
||||
- (3) remove the contact from the local store if the server rejects the insert</p>
|
||||
|
||||
<p>Creating update and remove methods are also easy to create, and follow the same patern as insert. For a more extensive example of the patterns shown here, have a look at <a href="https://github.com/siegesmund/SwiftDDP/blob/master/SwiftDDP/MeteorCollection.swift">MeteorCollection.swift</a>. MeteorCollection is an in-memory collection implementation suitable for simple applications.</p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<section id="footer">
|
||||
<p>© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-12-18)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.3.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
<p>© 2016 <a class="link" href="https://github.com/siegesmund/SwiftDDP" target="_blank" rel="external">Peter Siegesmund</a>. All rights reserved. (Last updated: 2016-04-12)</p>
|
||||
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.6.0</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
|
||||
</section>
|
||||
</article>
|
||||
</div>
|
||||
|
|
11
js/jazzy.js
11
js/jazzy.js
|
@ -17,7 +17,7 @@ $(document).ready(function() {
|
|||
});
|
||||
|
||||
// On token click, toggle its discussion and animate token.marginLeft
|
||||
$(".token").click(function() {
|
||||
$(".token").click(function(event) {
|
||||
if (window.jazzy.docset) {
|
||||
return;
|
||||
}
|
||||
|
@ -28,4 +28,13 @@ $(".token").click(function() {
|
|||
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
|
||||
$content = link.parent().parent().next();
|
||||
$content.slideToggle(animationDuration);
|
||||
|
||||
// Keeps the document from jumping to the hash.
|
||||
var href = $(this).attr('href');
|
||||
if (history.pushState) {
|
||||
history.pushState({}, '', href);
|
||||
} else {
|
||||
location.hash = href;
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
DDPClient.swift
|
||||
func ddpUserDidLogin(user:String)
|
||||
func ddpUserDidLogout(user:String)
|
||||
public var delegate:SwiftDDPDelegate?
|
||||
public var logLevel = XCGLogger.LogLevel.Debug
|
||||
EJSON.swift
|
||||
public class EJSON: NSObject
|
||||
public static func convertToEJSONDate(date:NSDate) -> [String:Double]
|
||||
MeteorCollection.swift
|
||||
public let METEOR_COLLECTION_SET_DID_CHANGE = "METEOR_COLLECTION_SET_DID_CHANGE"
|
||||
public class MeteorCollection<T:MeteorDocument>: AbstractCollection
|
||||
public var sorted:[T]
|
||||
AbstractCollection.swift
|
||||
public class AbstractCollection: NSObject, MeteorCollectionType
|
||||
public var name:String
|
||||
public let client = Meteor.client
|
||||
public init(name:String)
|
||||
DDPMessage.swift
|
||||
public enum DDPMessageType:String
|
||||
case Connected = "connected"
|
||||
case Failed = "failed"
|
||||
case Ping = "ping"
|
||||
case Pong = "pong"
|
||||
case Nosub = "nosub"
|
||||
case Added = "added"
|
||||
case Changed = "changed"
|
||||
case Removed = "removed"
|
||||
case Ready = "ready"
|
||||
case AddedBefore = "addedBefore"
|
||||
case MovedBefore = "movedBefore"
|
||||
case Result = "result"
|
||||
case Updated = "updated"
|
||||
case Error = "error"
|
||||
case Unhandled = "unhandled"
|
||||
public func hasProperty(name:String) -> Bool
|
||||
MeteorDocument.swift
|
||||
public class MeteorDocument: NSObject
|
||||
required public init(id: String, fields: NSDictionary?)
|
||||
public func update(fields: NSDictionary?, cleared: [String]?)
|
||||
DDPExtensions.swift
|
||||
public let DDP_USER_DID_LOGIN = "DDP_USER_DID_LOGIN"
|
||||
public let DDP_USER_DID_LOGOUT = "DDP_USER_DID_LOGOUT"
|
||||
public func signup(params:NSDictionary, callback:((result: AnyObject?, error: DDPError?) -> ())?)
|
||||
Meteor.swift
|
||||
public protocol MeteorCollectionType
|
||||
func documentWasAdded(collection:String, id:String, fields:NSDictionary?)
|
||||
func documentWasChanged(collection:String, id:String, fields:NSDictionary?, cleared:[String]?)
|
||||
func documentWasRemoved(collection:String, id:String)
|
||||
public convenience init(url:String, email:String, password:String)
|
||||
DDPEvents.swift
|
||||
public var onConnected: Completion = Completion(callback: {session in log.info("connected with session: \(session)")})
|
Loading…
Reference in New Issue