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 (IDependencyProvider provider, string publishKey, string subscribeKey, string secretKey, string cipherKey, bool sslOn, GameObject gob)
 
 PubnubUnity (IDependencyProvider provider, string publishKey, string subscribeKey, string secretKey, GameObject gob)
 
 PubnubUnity (IDependencyProvider provider, string publishKey, string subscribeKey, GameObject gob)
 
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.
 
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)
 
void Dispose ()
 

Public Attributes

bool overrideTcpKeepAlive = true
 

Protected Member Functions

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

Properties

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

Events

PropertyChangedEventHandler PropertyChanged
 

Member Function Documentation

◆ 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

◆ SetGameObject

GameObject PubNubMessaging.Core.PubnubUnity.SetGameObject
getset

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: