Beamable SDK
Public Member Functions | Public Attributes | Protected Member Functions | Properties | Events | List of all members
PubNubMessaging.Core.PubnubUnity Class Reference

Public Member Functions

void RaisePropertyChanged (string propertyName)
 
 PubnubUnity (string publishKey, string subscribeKey, string secretKey, string cipherKey, bool sslOn)
 
 PubnubUnity (string publishKey, string subscribeKey, string secretKey)
 
 PubnubUnity (string publishKey, string subscribeKey)
 
void Subscribe< T > (string channel, string channelGroup, long timetoken, Action< T > userCallback, Action< T > connectCallback, Action< T > wildcardPresenceCallback, Action< PubnubClientError > errorCallback)
 
bool Publish< T > (string channel, object message, bool storeInHistory, Dictionary< string, string > metadata, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void Presence< T > (string channel, string channelGroup, long timetoken, Action< T > userCallback, Action< T > connectCallback, Action< PubnubClientError > errorCallback)
 
bool DetailedHistory< T > (string channel, long start, long end, int count, bool reverse, bool includeToken, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
bool HereNow< T > (string channel, string channelGroup, bool showUUIDList, bool includeUserState, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
bool GlobalHereNow< T > (bool showUUIDList, bool includeUserState, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void WhereNow< T > (string uuid, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void PresenceUnsubscribe< T > (string channel, string channelGroup, Action< T > userCallback, Action< T > connectCallback, Action< T > disconnectCallback, Action< PubnubClientError > errorCallback)
 
void Unsubscribe< T > (string channel, string channelGroup, Action< T > userCallback, Action< T > connectCallback, Action< T > disconnectCallback, Action< T > wildcardPresenceCallback, Action< PubnubClientError > errorCallback)
 To unsubscribe a channel More...
 
bool Time< T > (Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
bool GrantAccess< T > (string channel, string authenticationKey, bool read, bool write, int ttl, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
bool GrantPresenceAccess< T > (string channel, string authenticationKey, bool read, bool write, int ttl, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void AuditAccess< T > (string channel, string authenticationKey, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void AuditPresenceAccess< T > (string channel, string authenticationKey, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void SetUserState< T > (string channel, string channelGroup, string uuid, string jsonUserState, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void SetUserState< T > (string channel, string channelGroup, string uuid, KeyValuePair< string, object > keyValuePair, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void GetUserState< T > (string channel, string channelGroup, string uuid, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void RegisterDeviceForPush< T > (string channel, PushTypeService pushType, string pushToken, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void UnregisterDeviceForPush< T > (PushTypeService pushType, string pushToken, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void RemoveChannelForDevicePush< T > (string channel, PushTypeService pushType, string pushToken, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void GetChannelsForDevicePush< T > (PushTypeService pushType, string pushToken, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void AddChannelsToChannelGroup< T > (string[] channels, string nameSpace, string groupName, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void RemoveChannelsFromChannelGroup< T > (string[] channels, string nameSpace, string groupName, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void RemoveChannelGroup< T > (string nameSpace, string groupName, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void GetChannelsForChannelGroup< T > (string nameSpace, string groupName, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void GetAllChannelGroups< T > (string nameSpace, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void ChannelGroupAuditAccess< T > (string channelGroup, string authenticationKey, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
bool ChannelGroupGrantAccess< T > (string channelGroup, string authenticationKey, bool read, bool write, bool manage, int ttl, Action< T > userCallback, Action< PubnubClientError > errorCallback)
 
void TerminateCurrentSubscriberRequest ()
 
void TerminateCurrentSubscriberRequest< T > ()
 
void EndPendingRequests< T > ()
 
void ResetPublishMessageCounter ()
 
void CleanUp ()
 must be called on reset. More...
 
void ChangeUUID< T > (string newUUID)
 
void MultiChannelSubscribeInit< T > (ResponseType respType, string channel, string channelGroup, long timetokenToUse, Action< T > userCallback, Action< T > connectCallback, Action< PubnubClientError > errorCallback, Action< T > wildcardPresenceCallback)
 

Public Attributes

bool overrideTcpKeepAlive = true
 

Protected Member Functions

void MultiplexExceptionHandler< T > (ResponseType type, bool reconnectMaxTried, bool reconnect)
 

Properties

string PublishKey [get]
 
string SubscribeKey [get]
 
string SecretKey [get]
 
static GameObject SetGameObject [get, set]
 Gets or sets the set game object. This method should be called before init More...
 
static string Version [get, set]
 
List< object > History [get, set]
 
int SubscribeTimeout [get, set]
 
int HeartbeatTimeout [get, set]
 
int NonSubscribeTimeout [get, set]
 
int NetworkCheckMaxRetries [get, set]
 
int NetworkCheckRetryInterval [get, set]
 
int LocalClientHeartbeatInterval [get, set]
 
bool EnableResumeOnReconnect [get, set]
 
bool EnableJsonEncodingForPublish [get, set]
 
string AuthenticationKey [get, set]
 
virtual IPubnubUnitTest PubnubUnitTest [get, set]
 
static IJsonPluggableLibrary JsonPluggableLibrary [get, set]
 
string Origin [get, set]
 
string SessionUUID [get, set]
 
int PresenceHeartbeat [get, set]
 This property sets presence expiry timeout. Presence expiry value in seconds. More...
 
int PresenceHeartbeatInterval [get, set]
 
LoggingMethod.Level PubnubLogLevel [get, set]
 
PubnubErrorFilter.Level PubnubErrorLevel [get, set]
 
string FilterExpr [get, set]
 
string Region [get, set]
 

Events

PropertyChangedEventHandler PropertyChanged
 

Member Function Documentation

◆ CleanUp()

void PubNubMessaging.Core.PubnubUnity.CleanUp ( )
inline

must be called on reset.

◆ Unsubscribe< T >()

void PubNubMessaging.Core.PubnubUnity.Unsubscribe< T > ( string  channel,
string  channelGroup,
Action< T >  userCallback,
Action< T >  connectCallback,
Action< T >  disconnectCallback,
Action< T >  wildcardPresenceCallback,
Action< PubnubClientError errorCallback 
)
inline

To unsubscribe a channel

Template Parameters
T
Parameters
channel
userCallback
connectCallback
disconnectCallback
errorCallback

Property Documentation

◆ PresenceHeartbeat

int PubNubMessaging.Core.PubnubUnity.PresenceHeartbeat
getset

This property sets presence expiry timeout. Presence expiry value in seconds.

◆ SetGameObject

GameObject PubNubMessaging.Core.PubnubUnity.SetGameObject
staticgetset

Gets or sets the set game object. This method should be called before init

The set game object.


The documentation for this class was generated from the following file: