Show / Hide Table of Contents

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
object
PlayURPlugin.UpdatableAction<T>
PlayURPlugin.AppendableAction
PlayURPlugin.CountAction
Implements
PlayURPlugin.IProcessAction
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 Source

UpdatableAction(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

| Improve this Doc View Source

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 Source

action

Declaration
protected PlayURPlugin.InProgressAction action
Field Value
Type Description
PlayURPlugin.InProgressAction
| Improve this Doc View Source

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 Source

Process()

Run the actual upload. Used internally.

Declaration
public IEnumerator Process()
Returns
Type Description
IEnumerator
| Improve this Doc View Source

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

Implements

PlayURPlugin.IProcessAction
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX