From 61105799cb88bbdd34ef035fd61bb27afc71f211 Mon Sep 17 00:00:00 2001 From: smikhalevski Date: Wed, 13 Mar 2024 18:50:28 +0300 Subject: [PATCH] More docs --- README.md | 4 ++-- web/racehorse/src/main/createGoogleSignInManager.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eac954ae..4b5300fe 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ instance that would be responsible for event marshalling: ```kotlin import org.racehorse.EventBridge -val eventBridge = EventBridge(webView).also { enable() } +val eventBridge = EventBridge(webView).apply { enable() } ``` Racehorse uses a [Greenrobot EventBus](https://greenrobot.org/eventbus) to deliver events to subscribers, so bridge must @@ -361,7 +361,7 @@ dependencies { ```kotlin import org.racehorse.ActivityPlugin -EventBus.getDefault().register(ActivityPlugin().also { enable() }) +EventBus.getDefault().register(ActivityPlugin().apply { enable() }) ``` 3. Start a new activity. For example, here's how to open Settings app and navigate user to the notification settings: diff --git a/web/racehorse/src/main/createGoogleSignInManager.ts b/web/racehorse/src/main/createGoogleSignInManager.ts index d931fc51..0af32d7f 100644 --- a/web/racehorse/src/main/createGoogleSignInManager.ts +++ b/web/racehorse/src/main/createGoogleSignInManager.ts @@ -14,6 +14,13 @@ export interface GoogleSignInAccount { isExpired: boolean; } +/** + * Error codes of the `ApiException`: + * + * - 12500: Sign in failed + * - 12501: Sign in cancelled + * - 12502: Sign in currently in progress + */ export interface GoogleSignInManager { /** * Gets the last account that the user signed in with.