File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
android/src/main/java/com/segment/analytics/kotlin/android
samples/kotlin-android-app/src/main/java/com/segment/analytics/next Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ private fun Analytics.startup() {
80
80
* @param referrer: The string representing the app or url that caused the deep link to be activated.
81
81
* @param intent: The intent received by the Activity's onNewIntent() function.
82
82
*/
83
- fun Analytics.trackDeepLinkOpen (referrer : String? , intent : Intent ? ) {
83
+ fun Analytics.openUrl (referrer : String? , intent : Intent ? ) {
84
84
DeepLinkUtils (this ).trackDeepLinkFrom(referrer, intent)
85
85
}
86
86
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import androidx.appcompat.app.AppCompatActivity
7
7
import androidx.fragment.app.Fragment
8
8
import androidx.fragment.app.FragmentManager
9
9
import androidx.fragment.app.FragmentTransaction
10
- import com.segment.analytics.kotlin.android.trackDeepLinkOpen
10
+ import com.segment.analytics.kotlin.android.openUrl
11
11
import com.segment.analytics.kotlin.core.Analytics
12
12
import com.segment.analytics.kotlin.core.EventType
13
13
import com.segment.analytics.kotlin.core.platform.plugins.logger.log
@@ -65,6 +65,6 @@ class MainActivity : AppCompatActivity() {
65
65
// The Analytics SDK automatically identifies when you app is started from a deep link
66
66
// if the Activity is created, but not if it is re-used. Therefore we have to add this
67
67
// code to manually capture the Deep Link info.
68
- analytics.trackDeepLinkOpen (" deep-link" , intent)
68
+ analytics.openUrl (" deep-link" , intent)
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments