/// <summary> /// Publish a count related event (e.g., plugin_total_count) to the Disa Android client. /// /// IMPORTANT: Note that this is internal so that only the Disa.Framework assembly can call this function. /// </summary> /// <param name="eventAction">The type safe representation of the Event Action.</param> /// <param name="eventCategory">The type safe representation of the Event Category.</param> /// <param name="customDimensionIndex">The type safe representation of the Custom Dimension Index.</param> /// <param name="count">The count to be associated with this Google Analytics event.</param> internal static void RaiseCountEvent( EventAction eventAction, EventCategory eventCategory, CustomDimensionIndex customDimensionIndex, int count) { CountEvent?.Invoke(eventAction, eventCategory, customDimensionIndex, count); }
private void GetFilesInfo() { DirectoryInfo dirInfo = new DirectoryInfo(sourcePath); List <FileInfo> files = dirInfo.GetFiles().ToList(); totalCount = files.Count; CountEvent?.Invoke(totalCount); Adapter(files); }
public void Increment(int amount = 1) { Count += amount; OnChange.Invoke(Count); }
void Start() { Count = StartingCount; OnAwake.Invoke(Count); }