linkpreview alternatives and similar packages
Based on the "HTML, CSS and Javascript" category.
Alternatively, view linkpreview alternatives based on common mentions on social networks and blogs.
-
Ionic Framework
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript. -
NativeScript
⚡ Empowering JavaScript with native platform APIs. ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, Capacitor, Ionic, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Dart (Flutter) and you name it compatible. -
androme
DISCONTINUED. Converts and optimizes HTML pages with JavaScript into the various standard Android layouts in XML. iOS will be supported through Flutter integration. Compatible with Chrome and Safari. -
PhoneGap
Open source framework by Adobe to create cross platform mobile apps using HTML, CSS, and JavaScript.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of linkpreview or a related project?
README
Description
An android asynchronous preview of a webpage from its link.
Versions
Getting Started (V1.0.0)
Add the dependency in build.gradle (App module)
compile 'com.eukaprotech.linkpreview:linkpreview:1.0.0@aar'
Add permission in manifest file
<uses-permission android:name="android.permission.INTERNET" />
Usage (V1.0.0)
LinkPreview linkPreview = new LinkPreview(context);
String link = "the web page complete link";
linkPreview.preview(link, new LinkPreviewHandler() {
@Override
public void onStart() {
}
@Override
public void onGetLinkRedirectedTo(String link_redirected_to) {
}
@Override
public void onGetTitle(String title) {
}
@Override
public void onGetDescription(String description) {
}
@Override
public void onGetFavicon(String faviconLink) {
}
@Override
public void onGetImageLink(String imageLink) {
}
@Override
public void onFail(String response, String error) {
}
@Override
public void onComplete() {
}
});
By default, the necessary preview content of the web page is stored to cache for faster later retrieval.
To skip reading from cache:
linkPreview.skipReadFromCache(true);
To skip storing to cache:
linkPreview.skipStoreToCache(true);
The below sample will avoid reading the contents of the previewed webpage from cache:
LinkPreview linkPreview = new LinkPreview(context);
String link = "the web page complete link";
linkPreview.skipReadFromCache(true).preview(link, new LinkPreviewHandler() {
@Override
public void onStart() {
}
@Override
public void onGetLinkRedirectedTo(String link_redirected_to) {
}
@Override
public void onGetTitle(String title) {
}
@Override
public void onGetDescription(String description) {
}
@Override
public void onGetFavicon(String faviconLink) {
}
@Override
public void onGetImageLink(String imageLink) {
}
@Override
public void onFail(String response, String error) {
}
@Override
public void onComplete() {
}
});
The entire cache, for all previewed web pages, is cleared with time.
To force the clearing of cache, use the static method:
LinkPreview.clearCache(context);