PubNub
Properties
Functions
Adds a channel to a channel group.
Add a legacy listener for both client status and events. Prefer addListener(EventListener) and addListener(StatusListener) if possible.
Add a listener.
Add an action on a published message. Returns the added action in the response.
Enable push notifications on provided set of channels.
Request a list of all channels on which push notifications have been enabled using specified ListPushProvisions.deviceId.
Perform Cryptographic decryption of an input stream using provided cipher key.
Removes the channel group.
Delete file from specified Channel.
Removes messages from the history of a specific channel.
Cancel any subscribe and heartbeat loops or ongoing re-connections.
Download file from specified Channel.
Perform Cryptographic encryption of an input stream using provided cipher key.
Fetch historical messages from multiple channels. The includeMessageActions flag also allows you to fetch message actions along with the messages.
Same as destroy but immediately.
Returns a paginated list of Channel Metadata objects, optionally including the custom data object for each.
Returns a paginated list of UUID Metadata objects, optionally including the custom data object for each.
The method returns a list of members in a channel. The list will include user metadata for members that have additional metadata stored in the database.
Returns metadata for the specified Channel, optionally including the custom data object for each.
Generate URL which can be used to download file from target Channel.
The method returns a list of channel memberships for a user. This method doesn't return a user's subscriptions.
Get a list of message actions in a channel. Returns a list of actions in the response.
Retrieve state information specific to a subscriber UUID.
Queries the local subscribe loop for channel groups currently in the mix.
Queries the local subscribe loop for channels currently in the mix.
Returns metadata for the specified UUID, optionally including the custom data object for each.
This function generates a grant token for PubNub Access Manager (PAM).
Lists all registered channel groups for the subscribe key.
Lists all the channels of the channel group.
Retrieve list of files uploaded to Channel.
Set or remove members in a channel.
Add and/or remove channel memberships for a UUID.
Fetches the number of messages published on one or more channels since a given time. The count returned is the number of messages in history with a timetoken value greater than the passed value in the MessageCounts.channelsTimetoken parameter.
Track the online and offline status of users and devices in real time and store custom state information. When you have Presence enabled, PubNub automatically creates a presence channel for each channel.
Publish file message from specified Channel.
Force the SDK to try and reach out PubNub. Monitor the results in SubscribeCallback.status
Removes all listeners.
Disable push notifications from all channels registered with the specified RemoveAllPushChannelsForDevice.deviceId.
Remove members from a Channel.
Removes the metadata from a specified channel.
Removes channels from a channel group.
Remove a listener.
Remove channel memberships for a UUID.
Remove a previously added action on a published message. Returns an empty response.
Disable push notifications on provided set of channels.
Removes the metadata from a specified UUID.
This method allows you to disable an existing token and revoke all permissions embedded within.
Upload file / data to specified Channel.
This method sets members in a channel.
Set metadata for a Channel in the database, optionally including the custom data object for each.
Set channel memberships for a UUID.
Set channel memberships for a User.
Sets the handler for incoming channelMetadata events. This method allows the assignment of an OnChannelMetadataHandler implementation or lambda expression to handle incoming presence events.
Sets the handler for incoming file events. This method allows the assignment of an OnFileHandler implementation or lambda expression to handle incoming presence events.
Sets the handler for incoming membership events. This method allows the assignment of an OnMembershipHandler implementation or lambda expression to handle incoming presence events.
Sets the handler for incoming message events. This method allows the assignment of an OnMessageHandler implementation or lambda expression to handle incoming messages.
Sets the handler for incoming messageAction events. This method allows the assignment of an OnMessageActionHandler implementation or lambda expression to handle incoming presence events.
Sets the handler for incoming presence events. This method allows the assignment of an OnPresenceHandler implementation or lambda expression to handle incoming presence events.
Sets the handler for incoming signal events. This method allows the assignment of an OnSignalHandler implementation or lambda expression to handle incoming signals.
Sets the handler for incoming uuidMetadata events. This method allows the assignment of an OnUuidMetadataHandler implementation or lambda expression to handle incoming presence events.
Set state information specific to a subscriber UUID.
Set metadata for a UUID in the database, optionally including the custom data object for each.
Causes the client to create an open TCP socket to the PubNub Real-Time Network and begin listening for messages on a specified channel.
When subscribed to a single channel, this function causes the client to issue a leave from the channel and close any open socket to the PubNub Network.
Unsubscribe from all channels and all channel groups