Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyansh-Kedia authored Sep 23, 2021
1 parent 33f06e0 commit 530ddf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Add the dependency
The class required you to implement two callback functions, `onError(error: String)` and `onPostResponse(openGraphResult: OpenGraphResult)`. The former is invoked in case of error (incorrect url), and the latter is invoked on successful response.

The `showNullOnEmpty` is an optional parameter, with a default value of `false`. If set to `true`, the parser would invoke `onError` if the `title` and `description` are empty for the link provided.

The `context` is also an optional parameter. If context is provided, then caching is implemented, and link preview can be generated faster.

The data class ***OpenGraphResult*** contains:
Expand Down

0 comments on commit 530ddf1

Please sign in to comment.