Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Feb 26, 2021
1 parent 11be15e commit 34ae7b1
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions blueprint-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ Note that the library uses `androidx.appcompat:appcompat` transitively.
Kotlin extensions on `Activity`:

```Kotlin
/**
* Programmatically close soft keyboard.
*/
fun Activity.hideKeyboard(focusedView: View)

/**
* Programmatically show soft keyboard.
*/
fun Activity.showKeyboard()

/**
* Shows status bar on the activity.
*/
Expand Down Expand Up @@ -77,6 +67,20 @@ Kotlin extensions on `AppCompat`:
fun AppCompatTextView.setPrecomputedTextFuture(charSequence: CharSequence, executor: Executor? = null)
```

Kotlin extensions on `Window`:

```kotlin
/**
* Programmatically shows the soft keyboard.
*/
fun Window.showSoftKeyboard()

/**
* Programmatically hides the soft keyboard.
*/
fun Window.hideSoftKeyboard()
```

[Intent.kt][intent-extensions] has extensions on `Activity` and `Context` for launching new activity.

For example to launch a new Activity from an Activity:
Expand Down

0 comments on commit 34ae7b1

Please sign in to comment.