Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smikhalevski committed Mar 14, 2024
1 parent c84f336 commit 6110579
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions web/racehorse/src/main/createGoogleSignInManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6110579

Please sign in to comment.