-
Notifications
You must be signed in to change notification settings - Fork 7
/
UnityInternalInterface.kt
49 lines (41 loc) · 1.27 KB
/
UnityInternalInterface.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package io.embrace.android.embracesdk
import io.embrace.android.embracesdk.annotation.InternalApi
import io.embrace.android.embracesdk.internal.EmbraceInternalInterface
/**
* Provides an internal interface to Embrace that is intended for use by the Embrace Unity SDK as its
* sole source of communication with the Android SDK.
*/
@InternalApi
public interface UnityInternalInterface : EmbraceInternalInterface {
public fun setUnityMetaData(unityVersion: String?, buildGuid: String?, unitySdkVersion: String?)
public fun logUnhandledUnityException(
name: String,
message: String,
stacktrace: String?
)
public fun logHandledUnityException(
name: String,
message: String,
stacktrace: String?
)
public fun recordIncompleteNetworkRequest(
url: String,
httpMethod: String,
startTime: Long,
endTime: Long,
errorType: String?,
errorMessage: String?,
traceId: String?
)
public fun recordCompletedNetworkRequest(
url: String,
httpMethod: String,
startTime: Long,
endTime: Long,
bytesSent: Long,
bytesReceived: Long,
statusCode: Int,
traceId: String?
)
public fun installUnityThreadSampler()
}