Quantum 3 3.1.0

Public Member Functions | Static Public Member Functions | List of all members
Quantum.QuantumReconnectInformation Class Reference

Implements MatchmakingReconnectInformation to save reconnect information to player prefs. This way the app can try to reconnect after app start. More...

Inheritance diagram for Quantum.QuantumReconnectInformation:
Photon.Realtime.MatchmakingReconnectInformation

Public Member Functions

override void Set (RealtimeClient client)
 Is a callback from matchmaking that triggers a successful connect that can then be stored. More...
 
- Public Member Functions inherited from Photon.Realtime.MatchmakingReconnectInformation
void Set (RealtimeClient client, TimeSpan timeSpan)
 Update all info. More...
 
override string ToString ()
 Print readable information about its fields. More...
 

Static Public Member Functions

static MatchmakingReconnectInformation Load ()
 Load the matchmaking information from player prefs. More...
 
static void Reset ()
 Reset the saved reconnect information. More...
 
static void Save (QuantumReconnectInformation value)
 Save the reconnect information to player prefs. More...
 

Additional Inherited Members

- Public Attributes inherited from Photon.Realtime.MatchmakingReconnectInformation
string AppVersion
 The app version used in the former connection. More...
 
int DefaultTimeout = 20
 The default timeout that is used when Set(RealtimeClient) is called. More...
 
bool HasTimedOut => Timeout < DateTime.UtcNow
 Checks the timeout and returns false when it ran out. More...
 
string Region
 The region the client was connected to. More...
 
string Room
 The room name the client was connected to. More...
 
long TimeoutInTicks
 The timeout after this information is considered to useable. More...
 
string UserId
 The user id the client used to connect to the server. More...
 
- Properties inherited from Photon.Realtime.MatchmakingReconnectInformation
DateTime Timeout [get, set]
 Set and get TimeoutInTicks. More...
 

Detailed Description

Implements MatchmakingReconnectInformation to save reconnect information to player prefs. This way the app can try to reconnect after app start.

Member Function Documentation

◆ Load()

static MatchmakingReconnectInformation Quantum.QuantumReconnectInformation.Load ( )
inlinestatic

Load the matchmaking information from player prefs.

Always returns a valid object.

◆ Set()

override void Quantum.QuantumReconnectInformation.Set ( RealtimeClient  client)
inlinevirtual

Is a callback from matchmaking that triggers a successful connect that can then be stored.

Parameters
clientRealtime client that created the connection.

Reimplemented from Photon.Realtime.MatchmakingReconnectInformation.

◆ Reset()

static void Quantum.QuantumReconnectInformation.Reset ( )
inlinestatic

Reset the saved reconnect information.

◆ Save()

static void Quantum.QuantumReconnectInformation.Save ( QuantumReconnectInformation  value)
inlinestatic

Save the reconnect information to player prefs.

Parameters
valueThe info to store.