My Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Events | List of all members
PlayFab.Internal.PlayFabHttp Class Reference

This is a wrapper for Http So we can better separate the functionaity of Http Requests delegated to WWW or HttpWebRequest. More...

Inheritance diagram for PlayFab.Internal.PlayFabHttp:
PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >

Public Member Functions

delegate void ApiProcessingEvent< in TEventArgs > (TEventArgs e)
 
delegate void ApiProcessErrorEvent (PlayFabRequestCommon request, PlayFabError error)
 
void OnApplicationFocus (bool isFocused)
 MonoBehaviour OnApplicationFocus.
 
void OnApplicationQuit ()
 MonoBehaviour OnApplicationQuit.
 
void InjectInUnityThread (IEnumerator x)
 
void InjectInUnityThread (Action action)
 
- Public Member Functions inherited from PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >
virtual void Awake ()
 

Static Public Member Functions

static int GetPendingMessages ()
 Return the number of api calls that are waiting for results from the server.
 
static void InitializeHttp ()
 This initializes the GameObject and ensures it is in the scene.
 
static void InitializeLogger (IPlayFabLogger setLogger=null)
 This initializes the GameObject and ensures it is in the scene.
 
static void InitializeScreenTimeTracker (string entityId, string entityType, string playFabUserId)
 This initializes ScreenTimeTracker object and notifying it to start sending info.
 
static void SimpleGetCall (string fullUrl, Action< byte[]> successCallback, Action< string > errorCallback)
 
static void SimplePutCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
static void SimplePostCall (string fullUrl, byte[] payload, Action< byte[]> successCallback, Action< string > errorCallback)
 
static void ClearAllEvents ()
 
- Static Public Member Functions inherited from PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >
static void CreateInstance ()
 

Static Public Attributes

static readonly Dictionary< string, string > GlobalHeaderInjection = new Dictionary<string, string>()
 

Events

static ApiProcessingEvent< ApiProcessingEventArgsApiProcessingEventHandler
 
static ApiProcessErrorEvent ApiProcessingErrorEventHandler
 

Additional Inherited Members

- Protected Member Functions inherited from PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >
virtual void Initialize ()
 
- Protected Attributes inherited from PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >
bool initialized
 
- Properties inherited from PlayFab.Internal.SingletonMonoBehaviour< PlayFabHttp >
static T instance [get]
 

Detailed Description

This is a wrapper for Http So we can better separate the functionaity of Http Requests delegated to WWW or HttpWebRequest.

Member Function Documentation

◆ GetPendingMessages()

static int PlayFab.Internal.PlayFabHttp.GetPendingMessages ( )
inlinestatic

Return the number of api calls that are waiting for results from the server.

Returns

◆ InitializeScreenTimeTracker()

static void PlayFab.Internal.PlayFabHttp.InitializeScreenTimeTracker ( string  entityId,
string  entityType,
string  playFabUserId 
)
inlinestatic

This initializes ScreenTimeTracker object and notifying it to start sending info.

Parameters
playFabUserIdResult of the user's login, represent user ID

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