From 530ddf14eaaa17b875a90d837153e5d33ee47ce7 Mon Sep 17 00:00:00 2001 From: Priyansh Kedia Date: Fri, 24 Sep 2021 03:02:38 +0530 Subject: [PATCH] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4cbee27..8b949a1 100644 --- a/README.md +++ b/README.md @@ -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: