Skip to content

Interfaces

Michael edited this page Aug 5, 2017 · 4 revisions

Overview

Currently, Ganalytics works with two types of interface.

  1. Category Interfaces that produce output events. Example:
interface SampleInterface {
    fun method1()
    fun method1(String label)
}

will produce next events:

  • invocation sampleInterface.method1() -> category="sampleinterface", action="method1"
  • invocation sampleInterface.method2("test") -> category="sampleinterface", action="method2", label="test"
  1. Group Interfaces that produce Category Interfaces. They have next structure:
interface SampleGroupInterface {
    fun method1(): SampleInterface1
    fun method2(): SampleInterface2
}

Category Interfaces

Those types of interfaces are used for producing output events.

л

Clone this wiki locally