Skip to content

Commit

Permalink
add native interface for communicating config from unity
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Mar 26, 2019
1 parent 9ffc0a7 commit 0002baf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sdk/src/main/java/com/bugsnag/android/NativeInterface.java
Expand Up @@ -390,6 +390,22 @@ public static String getAppVersion() {
return getClient().getConfig().getAppVersion();
}

public static boolean getDetectAnrs() {
return getClient().getConfig().getDetectAnrs();
}

public static long getAnrThresholdMs() {
return getClient().getConfig().getAnrThresholdMs();
}

public static void setDetectAnrs(boolean newValue) {
getClient().getConfig().setDetectAnrs(newValue);
}

public static void setAnrThresholdMs(long newValue) {
getClient().getConfig().setAnrThresholdMs(newValue);
}

/**
* Return which release stages notify
*/
Expand Down

0 comments on commit 0002baf

Please sign in to comment.