1414 * Static access to a Bugsnag Client, the easiest way to use Bugsnag in your Android app.
1515 * For example:
1616 * <p>
17+ * <pre>{@code
1718 * Bugsnag.start(this, "your-api-key");
1819 * Bugsnag.notify(new RuntimeException("something broke!"));
20+ * }</pre>
1921 *
2022 * @see Client
2123 */
@@ -72,7 +74,7 @@ public static Client start(@NonNull Context androidContext, @NonNull Configurati
7274 /**
7375 * Returns true if one of the <code>start</code> methods have been has been called and
7476 * so Bugsnag is initialized; false if <code>start</code> has not been called and the
75- * other methods will throw IllegalStateException.
77+ * other methods will throw {@code IllegalStateException} .
7678 */
7779 public static boolean isStarted () {
7880 return client != null ;
@@ -149,12 +151,12 @@ public static User getUser() {
149151 * <p>
150152 * For example:
151153 * <p>
152- * Bugsnag.addOnError(new OnErrorCallback() {
153- * public boolean run( Event event) {
154- * event.setSeverity(Severity.INFO);
155- * return true;
156- * }
157- * })
154+ * <pre>{@code
155+ * Bugsnag.addOnError(( Event event) -> {
156+ * event.setSeverity(Severity.INFO);
157+ * return true;
158+ * });
159+ * }</pre>
158160 *
159161 * @param onError a callback to run before sending errors to Bugsnag
160162 * @see OnErrorCallback
@@ -181,11 +183,11 @@ public static void removeOnError(@NonNull OnErrorCallback onError) {
181183 * <p>
182184 * For example:
183185 * <p>
184- * Bugsnag.onBreadcrumb(new OnBreadcrumbCallback() {
185- * public boolean run( Breadcrumb breadcrumb) {
186- * return false; // ignore the breadcrumb
187- * }
188- * })
186+ * <pre>{@code
187+ * Bugsnag.onBreadcrumb(( Breadcrumb breadcrumb) -> {
188+ * return false; // ignore the breadcrumb
189+ * });
190+ * }</pre>
189191 *
190192 * @param onBreadcrumb a callback to run before a breadcrumb is captured
191193 * @see OnBreadcrumbCallback
@@ -212,11 +214,11 @@ public static void removeOnBreadcrumb(@NonNull OnBreadcrumbCallback onBreadcrumb
212214 * <p>
213215 * For example:
214216 * <p>
215- * Bugsnag.onSession(new OnSessionCallback() {
216- * public boolean run( Session session) {
217- * return false; // ignore the session
218- * }
219- * })
217+ * <pre>{@code
218+ * Bugsnag.onSession(( Session session) -> {
219+ * return false; // ignore the session
220+ * });
221+ * }</pre>
220222 *
221223 * @param onSession a callback to run before a session is captured
222224 * @see OnSessionCallback
0 commit comments