nativescript-pubnub
Usage
tns plugin add nativescript-pubnub
Android
Initialize
Using Typescript
;
Using javascript
var pn = ;var pubnub = "pubKey""subKey";
Use any of the following methods to initialize PubNub;
pubKey: String subKey: String; pubKey: String subKey: String enableSSL: Boolean; pubKey: String subKey: String secretKey: String; pubKey: String subKey: String secretKey: String enableSSL: Boolean; pubKey: String subKey: String secretKey: String cipherKey: String enableSSL: Boolean; pubKey: String subKey: String secretKey: String cipherKey: String enableSSL: Boolean iv: String;
Subscribe
Use any of the following methods to subscribe to a channel or multiple channels;
: Promise; : Promise : Promise : Promise : Promise : Promise
Publish
Use any of the following methods to publish data;
Message Data: The message argument can contain any JSON serializable data, including: Objects, Arrays, Ints and Strings.
: Promise;: Promise;: Promise;: Promise;
History
Use any of the following methods to retrieve pubnub's history;
historychannel count: Promise;historychannel reverse: Promise;historychannel start end: Promise;historychannel count reverse: Promise;historychannel start reverse: Promise;historychannel start count: Promise;historychannel includeTimetoken count: Promise;historychannel start count reverse: Promise;historychannel start end count: Promise;historychannel start end count reverse includeTimetoken: Promise;historychannel: String start: Number end: Number count: Number reverse: Boolean includeTimetoken: Boolean: Promise;
Unsubscribe
;
Here Now
: Promise;: Promise;: Promise;
Grant
: Promise;: Promise;: Promise;: Promise;: Promise;
Add Channels to Channel Group
: Promise;: Promise;
Where Now
: Promise;: Promise;
Audit Channel Group
: Promise;: Promise;
Channel Group Grant
: Promise;: Promise;: Promise;: Promise;
Remove Channel Group
: Promise;: Promise;