Skip to content

Commit

Permalink
Merge pull request #1355 from bugsnag/unity/new-session-methods
Browse files Browse the repository at this point in the history
Unity/new session methods
  • Loading branch information
rich-bugsnag authored Sep 14, 2021
2 parents b1c60f5 + 242a936 commit d64c755
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,23 @@ public static void setAutoDetectAnrs(boolean autoDetectAnrs) {
getClient().setAutoDetectAnrs(autoDetectAnrs);
}

public static void startSession() {
getClient().startSession();
}

public static void pauseSession() {
getClient().pauseSession();
}

public static boolean resumeSession() {
return getClient().resumeSession();
}

@Nullable
public static Session getCurrentSession() {
return getClient().sessionTracker.getCurrentSession();
}

/**
* Marks the launch period as complete
*/
Expand Down

0 comments on commit d64c755

Please sign in to comment.