-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55da950
commit 30e2401
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
app/src/main/java/com/logitanalyticsapp/CustomAnalytiksAddon.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.logitanalyticsapp | ||
|
||
import android.content.Context | ||
import android.util.Log | ||
import com.analytiks.core.AnalyticsDataTransmitterExtension | ||
import com.analytiks.core.CoreAddon | ||
import com.analytiks.core.EventsExtension | ||
import com.analytiks.core.UserProfileExtension | ||
import com.analytiks.core.model.Param | ||
import com.analytiks.core.model.UserProperty | ||
|
||
class CustomAnalytiksAddon : CoreAddon, | ||
EventsExtension, | ||
UserProfileExtension, | ||
AnalyticsDataTransmitterExtension { | ||
override fun initialize(context: Context) { | ||
Log.d("GlobalTag", "CustomAnalytiksAddon has been initialized"); | ||
} | ||
|
||
override fun reset() { | ||
Log.d("GlobalTag", "CustomAnalytiksAddon has been reset"); | ||
} | ||
|
||
override fun logEvent(name: String) = Unit | ||
|
||
override fun logEvent(name: String, vararg properties: Param) = Unit | ||
|
||
override fun identify(userId: String) = Unit | ||
|
||
override fun setUserProperty(property: UserProperty) = Unit | ||
|
||
override fun setUserPropertyOnce(property: UserProperty) = Unit | ||
|
||
override fun pushAll() = Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters