Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
djorka committed Feb 23, 2024
1 parent 6e3347c commit f51f0af
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
// add the dependency to the app's build.gradle
dependencies {
// Solve Android SDK
implementation "ai.forethought:solve-android-source:1.0.4"
implementation "ai.forethought:solve-android-source:1.1.0"
}
```

Expand All @@ -40,7 +40,7 @@ repositories {
// add the dependency to the app's build.gradle
dependencies {
// Solve Android SDK
implementation("ai.forethought:solve-android-source:1.0.4")
implementation("ai.forethought:solve-android-source:1.1.0")
}
```

Expand Down Expand Up @@ -96,7 +96,8 @@ To send data parameters, add the following before calling `.show()`:

To handoff from Forethought to another helpdesk / provider, implement the following:

1. Make sure the `Activity/Fragment` implements the ForethoughtListener interface, and override it's methods.
1. Make sure the `Activity/Fragment` implements the ForethoughtListener interface, and override it's methods. The methods
do have default implementations so they are optional.
```java
// Java
public class MainActivity extends AppCompatActivity implements ForethoughtListener {
Expand All @@ -120,6 +121,11 @@ To handoff from Forethought to another helpdesk / provider, implement the follow
public void onWidgetClosed() {
// Custom close action
}

@Override
public void onWidgetError() {
// handle when the webview doesn't render the widget
}
}

// Kotlin
Expand All @@ -142,6 +148,10 @@ To handoff from Forethought to another helpdesk / provider, implement the follow
override fun onWidgetClosed() {
// Custom close action
}

override fun onWidgetError() {
// handle when the webview doesn't render the widget
}
}
```

Expand Down

0 comments on commit f51f0af

Please sign in to comment.