All Projects → Schinizer → Rxunfurl

Schinizer / Rxunfurl

Licence: apache-2.0
A reactive extension to generate URL previews.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxunfurl

Moviehub
Showcases popular movies, tv shows, and people from The Movie Database
Stars: ✭ 325 (-22.06%)
Mutual labels:  rxjava2
Seeweather
⛅ [@deprecated]RxJava+RxBus+Retrofit+Glide+Material Design Weather App
Stars: ✭ 3,481 (+734.77%)
Mutual labels:  rxjava2
Rxcache
简单一步,缓存搞定。这是一个专用于 RxJava,解决 Android 中对任何 Observable 发出的结果做缓存处理的框架
Stars: ✭ 377 (-9.59%)
Mutual labels:  rxjava2
Apollo
🚀 Awesome EventBus by RxJava.
Stars: ✭ 329 (-21.1%)
Mutual labels:  rxjava2
Kotlinmvp
🔥 基于Kotlin+MVP+Retrofit+RxJava+Glide 等架构实现短视频类小项目,简约风格及详细注释,欢迎 star or fork!
Stars: ✭ 3,488 (+736.45%)
Mutual labels:  rxjava2
My Wallet V3 Android
Blockchain Android Wallet
Stars: ✭ 356 (-14.63%)
Mutual labels:  rxjava2
Applocker
🔐 Open source app locker, vault, call blocker application
Stars: ✭ 321 (-23.02%)
Mutual labels:  rxjava2
Simviso Source Code Interpretation Sharing
simviso 的一系列源码解读分享视频,涉及国外顶级学府课程翻译、国外顶级开发者视频翻译,JDK, Rxjava,Spring Reactor, Netty ,Reactor-Netty ,Spring Webflux 我的目标是将Java的响应式建立起一套学习体系,假如你想深入,可以参考我的视频和后续出版的书籍,同时展现一些我的编程经验,做一个铺路人
Stars: ✭ 412 (-1.2%)
Mutual labels:  rxjava2
Rx Mvp
RxJava2+Retrofit2+RxLifecycle2+OkHttp3 封装RHttp 使用MVP模式构建项目
Stars: ✭ 343 (-17.75%)
Mutual labels:  rxjava2
Kotlin Mvvm Covid19
This repository contains simple COVID19 data monitoring with android stack MVVM, Live Data, Koin, RxJava, RxBinding, Offline first with simple caching, etc
Stars: ✭ 372 (-10.79%)
Mutual labels:  rxjava2
Rxbus
🚌 The RxBus as steady as an old dog.
Stars: ✭ 334 (-19.9%)
Mutual labels:  rxjava2
Grox
Grox helps to maintain the state of Java / Android apps.
Stars: ✭ 336 (-19.42%)
Mutual labels:  rxjava2
Paonet
【MVVM+RxJava2+AspectJ】泡网第三方客户端,网站主页:http://www.jcodecraeer.com/index.php
Stars: ✭ 374 (-10.31%)
Mutual labels:  rxjava2
Freezer
A simple & fluent Android ORM, how can it be easier ? RxJava2 compatible
Stars: ✭ 326 (-21.82%)
Mutual labels:  rxjava2
Mvvmsmart
基于谷歌最新AAC架构,MVVM设计模式的一套快速开发库,整合ViewModel+Lifecycles+Navigation+DataBinding+LiveData+Okhttp+Retrofit+RxJava+Glide等主流模块,满足日常开发需求。使用该框架可以快速开发高质量、易维护的Android应用。 项目组会持续维护,请放心使用.欢迎Start并Fork交流.
Stars: ✭ 382 (-8.39%)
Mutual labels:  rxjava2
Swipe
👉 detects swipe events on Android
Stars: ✭ 324 (-22.3%)
Mutual labels:  rxjava2
Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+954.68%)
Mutual labels:  rxjava2
Devring
安卓基础开发库,包含各常用模块,让开发简单点。
Stars: ✭ 414 (-0.72%)
Mutual labels:  rxjava2
Rxbluetooth
Android reactive bluetooth
Stars: ✭ 405 (-2.88%)
Mutual labels:  rxjava2
Rxfingerprint
Android Fingerprint authentication and encryption with RxJava
Stars: ✭ 373 (-10.55%)
Mutual labels:  rxjava2

RxUnfurl

Download Build Status

A reactive extension to generate URL previews.

This library parses available open graph data from the provided url and returns them as a simple model class. Otherwise, the library searches for other fallbacks and returns them instead.

Image dimensions are read from its uri by fetching the required bytes and then sorted according to their resolution.

Gradle dependency

To use the library, add the following dependency to your build.gradle

dependencies {
	compile 'com.schinizer:rxunfurl:0.3.0'
}

RxJava 2 notice

RxUnfurl.generatePreview() is now a Single instead of an Observable

RxJava 1 is dropped entirely and no longer supported.

Usage

To generate previews, simply subscribe to RxUnfurl.generatePreview(yourURL).

If you are on android, you will need RxAndroid to subscribe to network calls on another thread.

OkHttpClient okhttpClient = new OkHttpClient();

RxUnfurl inst = new RxUnfurl.Builder()
		.client(okhttpClient) // You can supply your okhttp client here
		.scheduler(Schedulers.io())
		.build();
		
inst.generatePreview("http://9gag.com")
    .observeOn(AndroidSchedulers.mainThread())
    .subscribeWith(new DisposableSingleObserver<PreviewData>() {
        @Override
        public void onSuccess(PreviewData previewData) { // Observable has been changed to Single

        }

        @Override
        public void onError(Throwable e) {

        }
    });

Sample App

You may find a sample android implementation in /app.

License

Copyright 2016 Schinizer

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].