Class AN_FirebaseAnalytics
Firebase Analytics API proxy.
Inheritance
System.Object
AN_FirebaseAnalytics
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SA.Android.Firebase.Analytics
Assembly: cs.temp.dll.dll
Syntax
public static class AN_FirebaseAnalytics
Properties
IsAvailable
Returns true if firebase analytics is enabled in the project and false otherwise.
Declaration
public static bool IsAvailable { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
LogEvent(String)
Logs an app event.
Declaration
public static void LogEvent(string eventName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | eventName | event name. |
LogEvent(String, IDictionary<String, Object>)
Logs an app event.
Declaration
public static void LogEvent(string eventName, IDictionary<string, object> data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | eventName | event name. |
| IDictionary<System.String, System.Object> | data | event data. |
SetSessionTimeoutDuration(TimeSpan)
Sets the duration of inactivity that terminates the current session. The default value is (30 minutes).
Declaration
public static void SetSessionTimeoutDuration(TimeSpan timeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timeSpan | time span |
SetUserId(String)
Sets the user ID property.
Declaration
public static void SetUserId(string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | user id. |
SetUserProperty(String, String)
Sets a user property to a given value.
Declaration
public static void SetUserProperty(string name, string property)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | property name. |
| System.String | property | property value. |
Transaction(String, Single, String)
Tracking Monetization (optional).
Declaration
public static void Transaction(string productId, float amount, string currency)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | productId | The id of the purchased item. |
| System.Single | amount | The price of the item. |
| System.String | currency | Abbreviation of the currency used for the transaction. For example “USD” (United States Dollars). See http:en.wikipedia.orgwikiISO_4217 for a standardized list of currency abbreviations. |