-
Notifications
You must be signed in to change notification settings - Fork 8
/
ReactNativeInternalInterface.kt
72 lines (61 loc) · 2.12 KB
/
ReactNativeInternalInterface.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package io.embrace.android.embracesdk
import android.content.Context
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 React Native SDK as its
* sole source of communication with the Android SDK.
*/
@InternalApi
public interface ReactNativeInternalInterface : EmbraceInternalInterface {
public fun logUnhandledJsException(
name: String,
message: String,
type: String?,
stacktrace: String?
)
public fun logHandledJsException(
name: String,
message: String,
properties: Map<String, Any>,
stacktrace: String?
)
public fun setJavaScriptPatchNumber(number: String?)
public fun setReactNativeSdkVersion(version: String?)
public fun setReactNativeVersionNumber(version: String?)
/**
* Sets the React Native Bundle URL.
* @param context the context
* @param url the JavaScript bundle URL
*/
public fun setJavaScriptBundleUrl(context: Context, url: String)
/**
* Sets the React Native Bundle URL, indicating if the bundle was updated or not.
* If it was updated, the bundle ID will be recomputed.
* If not, the bundle ID will be retrieved from cache.
* @param context the context
* @param url the JavaScript bundle URL
* @param didUpdate if the bundle was updated
*/
public fun setCacheableJavaScriptBundleUrl(context: Context, url: String, didUpdate: Boolean)
/**
* Logs a React Native Redux Action - this is not intended for public use.
*/
public fun logRnAction(
name: String,
startTime: Long,
endTime: Long,
properties: Map<String?, Any?>,
bytesSent: Int,
output: String
)
/**
* Logs the fact that a particular view was entered.
*
* If the previously logged view has the same name, a duplicate view breadcrumb will not be
* logged.
*
* @param screen the name of the view to log
*/
public fun logRnView(screen: String)
}