Skip to main content
Version: 10.8.x

bfgAnalytics Class

API for interfacing with BFG-managed Firebase Analytics. More...

Classes

struct  InitializationResult
 Struct indicating the result of a bfgAnalytics initialization attempt. More...
 

Static Public Member Functions

static async Task< InitializationResultInitializeAsync ()
 Initialize and configure Firebase Analytics. Must be called prior to any other bfgAnalytics methods. More...
 
static void Shutdown ()
 Disables Firebase analytics and releases any managed handles/resources.
 

Properties

static bool ArePoliciesAccepted [get]
 

Detailed Description

API for interfacing with BFG-managed Firebase Analytics.

Member Function Documentation

◆ InitializeAsync()

static async Task< InitializationResult > BFGSDK.bfgAnalytics.InitializeAsync ()
inlinestatic
Initialize and configure Firebase Analytics. Must be called prior to any other bfgAnalytics methods.
Returns
Task used to track the asynchronous initialization operation.
bfgAnalytics.InitializeAsync().ContinueWith(task => { if (task.Result.Succeeded) { // OK to use bfgAnalytics methods } else { // Not OK to use bfgAnalytics methods Debug.LogError($"Failed to initialize Firebase analytics: {task.Result}"); } });