Class PlayURPlugin.UpdatableAction<T>
Class to wrap an analytics action that can be updated over time. Can be updated frequently, and is updated to the server at a regular interval.
Inheritance
Implements
Namespace: PlayUR
Assembly: PlayUR.dll
Syntax
public class PlayURPlugin.UpdatableAction<T> : PlayURPlugin.IProcessAction
Type Parameters
Name | Description |
---|---|
T | The type of data to record in the action. Should be a primative. |
Constructors
| Improve this Doc View SourceUpdatableAction(Action)
Create an action that can be updated over time.
Declaration
public UpdatableAction(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The analytics action id to tag this action with |
UpdatableAction(Action, AnalyticsColumn, T)
Create an action that can be updated over time, and set the initial data.
Declaration
public UpdatableAction(Action action, AnalyticsColumn column, T initialData)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The analytics action id to tag this action with |
AnalyticsColumn | column | The column to set initial data for |
T | initialData | The initial data to put into the column |
Fields
| Improve this Doc View Sourceaction
Declaration
protected PlayURPlugin.InProgressAction action
Field Value
Type | Description |
---|---|
PlayURPlugin.InProgressAction |
uploadIntervalSeconds
Data will only be sent to server this number of seconds since the last upload has completed. However if data has not updated, no additional upload will take place.
Declaration
public float uploadIntervalSeconds
Field Value
Type | Description |
---|---|
float |
Methods
| Improve this Doc View SourceProcess()
Run the actual upload. Used internally.
Declaration
public IEnumerator Process()
Returns
Type | Description |
---|---|
IEnumerator |
Set(AnalyticsColumn, T)
Update this action's data for the given column
Declaration
public PlayURPlugin.InProgressAction Set(AnalyticsColumn column, T data)
Parameters
Type | Name | Description |
---|---|---|
AnalyticsColumn | column | The column to change data for |
T | data | The value to set the column to (overrides original data, creates the column if it didn't previoulsy exist) |
Returns
Type | Description |
---|---|
PlayURPlugin.InProgressAction |