PubnubFlutter class

Constructors

PubnubFlutter()

Properties

args Map<String, String>
read / write
channelName List<String>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
onMessageReceived Stream
Fires whenever the a message is received.
read-only
onStatusReceived Stream
Fires whenever the status changes.
read-only
publishKey String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secretKey String
read / write
subscribeKey String
read / write
uuid String
read / write

Methods

getUuidString() Future<String>
initialize({String publishKey, String subscribeKey, String secretKey, String uuid}) Future<bool>
Initialize Pubnub with your credential. Returns TRUE || FALSE based on result
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sendMessage({Map<String, dynamic> data, String channel}) Future<bool>
Send message to a specific channel Returns TRUE || FALSE based on result
subscribe({List<String> channelNames}) Future<bool>
Subscribe it after Initializing the app; Returns TRUE || FALSE based on result
toString() String
Returns a string representation of this object.
inherited
unsubscribe() → dynamic

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

messageReceived ↔ dynamic
read / write
statusReceived ↔ dynamic
read / write

Constants

channelPubNub → const MethodChannel
const MethodChannel('pubnub')
messageChannel → const EventChannel
const EventChannel('plugins.flutter.io/pubnub_message')
statusChannel → const EventChannel
const EventChannel('plugins.flutter.io/pubnub_status')