Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Unlimity committed Jul 10, 2019
1 parent 5e933e5 commit 278235b
Show file tree
Hide file tree
Showing 34 changed files with 528 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/kakao/alltypes/index.md
Expand Up @@ -21,6 +21,8 @@
| [com.agoda.kakao.intent.ComponentNameBuilder](../com.agoda.kakao.intent/-component-name-builder/index.md) | Class for building ComponentName matchers |
| [com.agoda.kakao.list.DataBuilder](../com.agoda.kakao.list/-data-builder/index.md) | Class for building data matchers |
| [com.agoda.kakao.delegate.DataInteractionDelegate](../com.agoda.kakao.delegate/-data-interaction-delegate/index.md) | Delegation class for [DataInteraction](#). Wraps all available public calls and intercepts [check](../com.agoda.kakao.delegate/-data-interaction-delegate/check.md) and [perform](../com.agoda.kakao.delegate/-data-interaction-delegate/perform.md). |
| [com.agoda.kakao.picker.date.DatePickerAction](../com.agoda.kakao.picker.date/-date-picker-action/index.md) | Provides actions for date picker |
| [com.agoda.kakao.picker.date.DatePickerAssertion](../com.agoda.kakao.picker.date/-date-picker-assertion/index.md) | Provides assertions for date picker |
| [com.agoda.kakao.delegate.Delegate](../com.agoda.kakao.delegate/-delegate/index.md) | Base delegate interface. |
| [com.agoda.kakao.common.matchers.DrawableMatcher](../com.agoda.kakao.common.matchers/-drawable-matcher/index.md) | Matches given drawable with current one |
| [com.agoda.kakao.drawer.DrawerActions](../com.agoda.kakao.drawer/-drawer-actions/index.md) | Provides actions for navigation drawer |
Expand All @@ -43,6 +45,8 @@
| [com.agoda.kakao.bottomnav.KBottomNavigationView](../com.agoda.kakao.bottomnav/-k-bottom-navigation-view/index.md) | View for acting and asserting on BottomNavigationView |
| [com.agoda.kakao.text.KButton](../com.agoda.kakao.text/-k-button/index.md) | View with BaseActions and TextViewAssertions |
| [com.agoda.kakao.check.KCheckBox](../com.agoda.kakao.check/-k-check-box/index.md) | View with CheckableActions, CheckableAssertions and TextViewAssertions |
| [com.agoda.kakao.picker.date.KDatePicker](../com.agoda.kakao.picker.date/-k-date-picker/index.md) | View for interact with default date picker |
| [com.agoda.kakao.picker.date.KDatePickerDialog](../com.agoda.kakao.picker.date/-k-date-picker-dialog/index.md) | View for interact with default date picker dialog |
| [com.agoda.kakao.drawer.KDrawerView](../com.agoda.kakao.drawer/-k-drawer-view/index.md) | View with DrawerActions and BaseAssertions |
| [com.agoda.kakao.edit.KEditText](../com.agoda.kakao.edit/-k-edit-text/index.md) | View with EditableActions and TextViewAssertions |
| [com.agoda.kakao.list.KEmptyAdapterItem](../com.agoda.kakao.list/-k-empty-adapter-item/index.md) | Empty implementation of KAdapterItem |
Expand All @@ -64,6 +68,8 @@
| [com.agoda.kakao.tabs.KTabLayout](../com.agoda.kakao.tabs/-k-tab-layout/index.md) | View with TabLayoutActions and TabLayoutAssertions |
| [com.agoda.kakao.edit.KTextInputLayout](../com.agoda.kakao.edit/-k-text-input-layout/index.md) | View with TextInputLayoutAssertions |
| [com.agoda.kakao.text.KTextView](../com.agoda.kakao.text/-k-text-view/index.md) | View with BaseActions and TextViewAssertions |
| [com.agoda.kakao.picker.time.KTimePicker](../com.agoda.kakao.picker.time/-k-time-picker/index.md) | View for interact with default time picker |
| [com.agoda.kakao.picker.time.KTimePickerDialog](../com.agoda.kakao.picker.time/-k-time-picker-dialog/index.md) | View for interact with default date picker dialog |
| [com.agoda.kakao.common.views.KView](../com.agoda.kakao.common.views/-k-view/index.md) | Simple view with BaseActions and BaseAssertions |
| [com.agoda.kakao.pager.KViewPager](../com.agoda.kakao.pager/-k-view-pager/index.md) | View with SwipeableActions and ViewPagerAssertions |
| [com.agoda.kakao.web.KWebView](../com.agoda.kakao.web/-k-web-view/index.md) | Class for interacting with WebViews |
Expand Down Expand Up @@ -100,6 +106,8 @@
| [com.agoda.kakao.common.matchers.TextInputLayoutHintEnabledMatcher](../com.agoda.kakao.common.matchers/-text-input-layout-hint-enabled-matcher/index.md) | |
| [com.agoda.kakao.text.TextViewActions](../com.agoda.kakao.text/-text-view-actions/index.md) | Provides actions for TextViews |
| [com.agoda.kakao.text.TextViewAssertions](../com.agoda.kakao.text/-text-view-assertions/index.md) | Provides text based assertions for views |
| [com.agoda.kakao.picker.time.TimePickerAction](../com.agoda.kakao.picker.time/-time-picker-action/index.md) | Provides actions for time picker |
| [com.agoda.kakao.picker.time.TimePickerAssertion](../com.agoda.kakao.picker.time/-time-picker-assertion/index.md) | Provides assertions for time picker |
| [com.agoda.kakao.intent.UriBuilder](../com.agoda.kakao.intent/-uri-builder/index.md) | Class for building Uri matchers |
| [com.agoda.kakao.common.builders.ViewBuilder](../com.agoda.kakao.common.builders/-view-builder/index.md) | Class for building view matchers and interactions |
| [com.agoda.kakao.delegate.ViewInteractionDelegate](../com.agoda.kakao.delegate/-view-interaction-delegate/index.md) | Delegation class for [ViewInteraction](#). Wraps all available public calls and intercepts [check](../com.agoda.kakao.delegate/-view-interaction-delegate/check.md) and [perform](../com.agoda.kakao.delegate/-view-interaction-delegate/perform.md). |
Expand Down
Expand Up @@ -43,6 +43,8 @@ Provides a lot of basic action methods, such as click(), scrollTo(), etc.
|---|---|
| [BottomNavigationViewActions](../../com.agoda.kakao.bottomnav/-bottom-navigation-view-actions/index.md) | `interface BottomNavigationViewActions : `[`BaseActions`](./index.md)<br>Provides actions for BottomNavigationView |
| [CheckableActions](../../com.agoda.kakao.check/-checkable-actions/index.md) | `interface CheckableActions : `[`BaseActions`](./index.md)<br>Provides action for checking views |
| [DatePickerAction](../../com.agoda.kakao.picker.date/-date-picker-action/index.md) | `interface DatePickerAction : `[`BaseActions`](./index.md)<br>Provides actions for date picker |
| [DatePickerAssertion](../../com.agoda.kakao.picker.date/-date-picker-assertion/index.md) | `interface DatePickerAssertion : `[`BaseActions`](./index.md)<br>Provides assertions for date picker |
| [DrawerActions](../../com.agoda.kakao.drawer/-drawer-actions/index.md) | `interface DrawerActions : `[`BaseActions`](./index.md)<br>Provides actions for navigation drawer |
| [EditableActions](../../com.agoda.kakao.edit/-editable-actions/index.md) | `interface EditableActions : `[`BaseActions`](./index.md)<br>Provides editable actions for views |
| [KAdapterItem](../../com.agoda.kakao.list/-k-adapter-item/index.md) | `open class KAdapterItem<out T> : `[`BaseActions`](./index.md)`, `[`BaseAssertions`](../../com.agoda.kakao.common.assertions/-base-assertions/index.md)`, `[`Interceptable`](../../com.agoda.kakao.intercept/-interceptable/index.md)`<ViewInteraction, ViewAssertion, ViewAction>`<br>Base class for KAbsListView adapter items |
Expand All @@ -55,3 +57,5 @@ Provides a lot of basic action methods, such as click(), scrollTo(), etc.
| [SwipeableActions](../-swipeable-actions/index.md) | `interface SwipeableActions : `[`BaseActions`](./index.md)<br>Provides swipe actions for views |
| [TabLayoutActions](../../com.agoda.kakao.tabs/-tab-layout-actions/index.md) | `interface TabLayoutActions : `[`BaseActions`](./index.md)<br>Provides action for TabLayout |
| [TextViewActions](../../com.agoda.kakao.text/-text-view-actions/index.md) | `interface TextViewActions : `[`BaseActions`](./index.md)<br>Provides actions for TextViews |
| [TimePickerAction](../../com.agoda.kakao.picker.time/-time-picker-action/index.md) | `interface TimePickerAction : `[`BaseActions`](./index.md)<br>Provides actions for time picker |
| [TimePickerAssertion](../../com.agoda.kakao.picker.time/-time-picker-assertion/index.md) | `interface TimePickerAssertion : `[`BaseActions`](./index.md)<br>Provides assertions for time picker |
4 changes: 4 additions & 0 deletions docs/kakao/com.agoda.kakao.common.views/-k-base-view/index.md
Expand Up @@ -89,6 +89,8 @@ actions/assertions interfaces and override necessary constructors
| [KBottomNavigationView](../../com.agoda.kakao.bottomnav/-k-bottom-navigation-view/index.md) | `class KBottomNavigationView : `[`KBaseView`](./index.md)`<`[`KBottomNavigationView`](../../com.agoda.kakao.bottomnav/-k-bottom-navigation-view/index.md)`>, `[`BottomNavigationViewActions`](../../com.agoda.kakao.bottomnav/-bottom-navigation-view-actions/index.md)`, `[`BottomNavigationViewAssertions`](../../com.agoda.kakao.bottomnav/-bottom-navigation-view-assertions/index.md)<br>View for acting and asserting on BottomNavigationView |
| [KButton](../../com.agoda.kakao.text/-k-button/index.md) | `class KButton : `[`KBaseView`](./index.md)`<`[`KButton`](../../com.agoda.kakao.text/-k-button/index.md)`>, `[`TextViewAssertions`](../../com.agoda.kakao.text/-text-view-assertions/index.md)<br>View with BaseActions and TextViewAssertions |
| [KCheckBox](../../com.agoda.kakao.check/-k-check-box/index.md) | `class KCheckBox : `[`KBaseView`](./index.md)`<`[`KCheckBox`](../../com.agoda.kakao.check/-k-check-box/index.md)`>, `[`CheckableActions`](../../com.agoda.kakao.check/-checkable-actions/index.md)`, `[`TextViewAssertions`](../../com.agoda.kakao.text/-text-view-assertions/index.md)`, `[`CheckableAssertions`](../../com.agoda.kakao.check/-checkable-assertions/index.md)<br>View with CheckableActions, CheckableAssertions and TextViewAssertions |
| [KDatePicker](../../com.agoda.kakao.picker.date/-k-date-picker/index.md) | `class KDatePicker : `[`KBaseView`](./index.md)`<`[`KDatePicker`](../../com.agoda.kakao.picker.date/-k-date-picker/index.md)`>, `[`DatePickerAction`](../../com.agoda.kakao.picker.date/-date-picker-action/index.md)`, `[`DatePickerAssertion`](../../com.agoda.kakao.picker.date/-date-picker-assertion/index.md)<br>View for interact with default date picker |
| [KDatePickerDialog](../../com.agoda.kakao.picker.date/-k-date-picker-dialog/index.md) | `class KDatePickerDialog : `[`KBaseView`](./index.md)`<`[`KDatePickerDialog`](../../com.agoda.kakao.picker.date/-k-date-picker-dialog/index.md)`>`<br>View for interact with default date picker dialog |
| [KDrawerView](../../com.agoda.kakao.drawer/-k-drawer-view/index.md) | `class KDrawerView : `[`KBaseView`](./index.md)`<`[`KDrawerView`](../../com.agoda.kakao.drawer/-k-drawer-view/index.md)`>, `[`DrawerActions`](../../com.agoda.kakao.drawer/-drawer-actions/index.md)<br>View with DrawerActions and BaseAssertions |
| [KEditText](../../com.agoda.kakao.edit/-k-edit-text/index.md) | `class KEditText : `[`KBaseView`](./index.md)`<`[`KEditText`](../../com.agoda.kakao.edit/-k-edit-text/index.md)`>, `[`EditableActions`](../../com.agoda.kakao.edit/-editable-actions/index.md)`, `[`TextViewAssertions`](../../com.agoda.kakao.text/-text-view-assertions/index.md)<br>View with EditableActions and TextViewAssertions |
| [KImageView](../../com.agoda.kakao.image/-k-image-view/index.md) | `class KImageView : `[`KBaseView`](./index.md)`<`[`KImageView`](../../com.agoda.kakao.image/-k-image-view/index.md)`>, `[`ImageViewAssertions`](../../com.agoda.kakao.image/-image-view-assertions/index.md)<br>View with BaseActions and ImageViewAssertions |
Expand All @@ -103,5 +105,7 @@ actions/assertions interfaces and override necessary constructors
| [KTabLayout](../../com.agoda.kakao.tabs/-k-tab-layout/index.md) | `class KTabLayout : `[`KBaseView`](./index.md)`<`[`KTabLayout`](../../com.agoda.kakao.tabs/-k-tab-layout/index.md)`>, `[`TabLayoutActions`](../../com.agoda.kakao.tabs/-tab-layout-actions/index.md)`, `[`TabLayoutAssertions`](../../com.agoda.kakao.tabs/-tab-layout-assertions/index.md)<br>View with TabLayoutActions and TabLayoutAssertions |
| [KTextInputLayout](../../com.agoda.kakao.edit/-k-text-input-layout/index.md) | `class KTextInputLayout : `[`KBaseView`](./index.md)`<`[`KTextInputLayout`](../../com.agoda.kakao.edit/-k-text-input-layout/index.md)`>, `[`TextInputLayoutAssertions`](../../com.agoda.kakao.edit/-text-input-layout-assertions/index.md)<br>View with TextInputLayoutAssertions |
| [KTextView](../../com.agoda.kakao.text/-k-text-view/index.md) | `class KTextView : `[`KBaseView`](./index.md)`<`[`KTextView`](../../com.agoda.kakao.text/-k-text-view/index.md)`>, `[`TextViewActions`](../../com.agoda.kakao.text/-text-view-actions/index.md)`, `[`TextViewAssertions`](../../com.agoda.kakao.text/-text-view-assertions/index.md)<br>View with BaseActions and TextViewAssertions |
| [KTimePicker](../../com.agoda.kakao.picker.time/-k-time-picker/index.md) | `class KTimePicker : `[`KBaseView`](./index.md)`<`[`KTimePicker`](../../com.agoda.kakao.picker.time/-k-time-picker/index.md)`>, `[`TimePickerAction`](../../com.agoda.kakao.picker.time/-time-picker-action/index.md)`, `[`TimePickerAssertion`](../../com.agoda.kakao.picker.time/-time-picker-assertion/index.md)<br>View for interact with default time picker |
| [KTimePickerDialog](../../com.agoda.kakao.picker.time/-k-time-picker-dialog/index.md) | `class KTimePickerDialog : `[`KBaseView`](./index.md)`<`[`KTimePickerDialog`](../../com.agoda.kakao.picker.time/-k-time-picker-dialog/index.md)`>`<br>View for interact with default date picker dialog |
| [KView](../-k-view/index.md) | `class KView : `[`KBaseView`](./index.md)`<`[`KView`](../-k-view/index.md)`>`<br>Simple view with BaseActions and BaseAssertions |
| [KViewPager](../../com.agoda.kakao.pager/-k-view-pager/index.md) | `class KViewPager : `[`KBaseView`](./index.md)`<`[`KViewPager`](../../com.agoda.kakao.pager/-k-view-pager/index.md)`>, `[`SwipeableActions`](../../com.agoda.kakao.common.actions/-swipeable-actions/index.md)`, `[`ViewPagerAssertions`](../../com.agoda.kakao.pager/-view-pager-assertions/index.md)<br>View with SwipeableActions and ViewPagerAssertions |
@@ -0,0 +1,38 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAction](./index.md)

# DatePickerAction

`interface DatePickerAction : `[`BaseActions`](../../com.agoda.kakao.common.actions/-base-actions/index.md)

Provides actions for date picker

### Inherited Properties

| Name | Summary |
|---|---|
| [view](../../com.agoda.kakao.common.actions/-base-actions/view.md) | `abstract val view: `[`ViewInteractionDelegate`](../../com.agoda.kakao.delegate/-view-interaction-delegate/index.md) |

### Functions

| Name | Summary |
|---|---|
| [setDate](set-date.md) | `open fun setDate(year: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, monthOfYear: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, day: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`ViewInteractionDelegate`](../../com.agoda.kakao.delegate/-view-interaction-delegate/index.md)<br>Set date to picker dialog Month number will be normalized |

### Inherited Functions

| Name | Summary |
|---|---|
| [act](../../com.agoda.kakao.common.actions/-base-actions/act.md) | `open fun act(function: () -> ViewAction): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs custom action on a view |
| [click](../../com.agoda.kakao.common.actions/-base-actions/click.md) | `open fun click(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs click on view |
| [doubleClick](../../com.agoda.kakao.common.actions/-base-actions/double-click.md) | `open fun doubleClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs double click on view |
| [longClick](../../com.agoda.kakao.common.actions/-base-actions/long-click.md) | `open fun longClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs long click on view |
| [onFailure](../../com.agoda.kakao.common.actions/-base-actions/on-failure.md) | `open fun onFailure(function: (error: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`, matcher: Matcher<`[`View`](https://developer.android.com/reference/android/view/View.html)`>) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Adds failure handler to the view |
| [pressImeAction](../../com.agoda.kakao.common.actions/-base-actions/press-ime-action.md) | `open fun pressImeAction(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Presses IME action, if supported view is in focus |
| [repeatUntil](../../com.agoda.kakao.common.actions/-base-actions/repeat-until.md) | `open fun repeatUntil(maxAttempts: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 1, action: () -> ViewAction, matcher: `[`ViewBuilder`](../../com.agoda.kakao.common.builders/-view-builder/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Repeats given action on the view until this view will match the given matcher |
| [scrollTo](../../com.agoda.kakao.common.actions/-base-actions/scroll-to.md) | `open fun scrollTo(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Scrolls to the view, if possible |

### Inheritors

| Name | Summary |
|---|---|
| [KDatePicker](../-k-date-picker/index.md) | `class KDatePicker : `[`KBaseView`](../../com.agoda.kakao.common.views/-k-base-view/index.md)`<`[`KDatePicker`](../-k-date-picker/index.md)`>, `[`DatePickerAction`](./index.md)`, `[`DatePickerAssertion`](../-date-picker-assertion/index.md)<br>View for interact with default date picker |
@@ -0,0 +1,16 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAction](index.md) / [setDate](./set-date.md)

# setDate

`open fun setDate(year: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, monthOfYear: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, day: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`ViewInteractionDelegate`](../../com.agoda.kakao.delegate/-view-interaction-delegate/index.md)

Set date to picker dialog
Month number will be normalized

### Parameters

`year` - year

`monthOfYear` - month

`day` - day
@@ -0,0 +1,16 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAssertion](index.md) / [hasDate](./has-date.md)

# hasDate

`open fun hasDate(year: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, monthOfYear: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, day: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if picker dialog contain selected date
Month number will be normalized

### Parameters

`year` - year

`monthOfYear` - month

`day` - day
@@ -0,0 +1,11 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAssertion](index.md) / [hasDay](./has-day.md)

# hasDay

`open fun hasDay(day: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if picker dialog contain selected day

### Parameters

`day` - day
@@ -0,0 +1,11 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAssertion](index.md) / [hasMonth](./has-month.md)

# hasMonth

`open fun hasMonth(monthOfYear: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if picker dialog contain selected month

### Parameters

`monthOfYear` - month
@@ -0,0 +1,11 @@
[kakao](../../index.md) / [com.agoda.kakao.picker.date](../index.md) / [DatePickerAssertion](index.md) / [hasYear](./has-year.md)

# hasYear

`open fun hasYear(year: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if picker dialog contain selected year

### Parameters

`year` - year

0 comments on commit 278235b

Please sign in to comment.