File tree 2 files changed +5
-7
lines changed
firebase-perf/src/main/java/com/google/firebase/perf/session 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2024 Google LLC
2
+ * Copyright 2025 Google LLC
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -21,13 +21,10 @@ import com.google.firebase.perf.v1.ApplicationProcessState
21
21
import com.google.firebase.sessions.api.SessionSubscriber
22
22
import java.util.UUID
23
23
24
- class FirebasePerformanceSessionSubscriber (private val dataCollectionEnabled : Boolean ) :
24
+ class FirebasePerformanceSessionSubscriber (override val isDataCollectionEnabled : Boolean ) :
25
25
SessionSubscriber {
26
- override val isDataCollectionEnabled: Boolean
27
- get() = dataCollectionEnabled
28
26
29
- override val sessionSubscriberName: SessionSubscriber .Name
30
- get() = SessionSubscriber .Name .PERFORMANCE
27
+ override val sessionSubscriberName: SessionSubscriber .Name = SessionSubscriber .Name .PERFORMANCE
31
28
32
29
override fun onSessionChanged (sessionDetails : SessionSubscriber .SessionDetails ) {
33
30
val currentPerfSession = SessionManager .getInstance().perfSession()
Original file line number Diff line number Diff line change @@ -67,11 +67,12 @@ public String sessionId() {
67
67
}
68
68
69
69
/** Returns the AQS sessionId for the given session. */
70
+ @ Nullable
70
71
public String aqsSessionId () {
71
72
return aqsSessionId ;
72
73
}
73
74
74
- /** Returns the AQS sessionId for the given session. */
75
+ /** Sets the AQS sessionId for the given session. */
75
76
public void setAQSId (SessionSubscriber .SessionDetails aqs ) {
76
77
if (aqsSessionId == null ) {
77
78
aqsSessionId = aqs .getSessionId ();
You can’t perform that action at this time.
0 commit comments