Git Product home page Git Product logo

vimeo-deeplink-android's Introduction

vimeo-deeplink-android

A helper library to deep link into the official Vimeo Android Mobile App.

Note - the Vimeo Android TV application does not have support for deep linking. This library is intended to aid in deep linking to the mobile phone and tablet application only.

Contents

Getting Started

For a more in depth look at the usage, refer to the example Android app. The example project includes implementation of all of the below features.

Gradle

Specify the dependency in your build.gradle file (make sure jcenter() is included as a repository)

compile 'com.vimeo.android.deeplink:vimeo-deeplink:1.2.0'

Submodule

We recommend using JCenter, but if you'd like to use the library as a submodule:

git submodule add [email protected]:vimeo/vimeo-deeplink-android.git

Then in your build.gradle use:

compile project(':vimeo-deeplink-android:vimeo-deeplink')

Reference

The Vimeo deeplink base URL is: vimeo://app.vimeo.com

Currently supported paths are:

  • vimeo://app.vimeo.com/videos/12345 where /videos/12345 is a video URI
  • vimeo://app.vimeo.com/users/12345 where /users/12345 is a user URI.
  • vimeo://app.vimeo.com/categories/12345 where /categories/12345 is a category URI.
  • vimeo://app.vimeo.com/channels/12345 where /channels/12345 is a channel URI.
  • vimeo://app.vimeo.com/categories
  • vimeo://app.vimeo.com/explore
  • vimeo://app.vimeo.com/feed
  • vimeo://app.vimeo.com/me
  • vimeo://app.vimeo.com/notifications
  • vimeo://app.vimeo.com/settings/notifications
  • vimeo://app.vimeo.com/offline
  • vimeo://app.vimeo.com/playlists
  • vimeo://app.vimeo.com/purchases
  • vimeo://app.vimeo.com/upload

Open app in the Google Play store

boolean playStoreOpened = VimeoDeeplink.viewVimeoAppInAppStore(Context context)

Check if the Vimeo app is installed

boolean isInstalled = VimeoDeeplink.isVimeoAppInstalled(Context context)

Open the Vimeo app

boolean opened = VimeoDeeplink.openVimeoApp(Context context)

View a video in the Vimeo app

You can check if this method is supported on the installed Vimeo version using the call:

boolean supported = VimeoDeeplink.canHandleVideoDeeplink(Context context)

You must provide a video uri to this method. You can find a video's uri by making an API call to our video endpoints. boolean handled = VimeoDeeplink.showVideoWithUri(Context context, String videoUri)

View a user in the Vimeo app

You can check if this method is supported on the installed Vimeo version using the call:

boolean supported = VimeoDeeplink.canHandleUserDeeplink(Context context)

You must provide a user uri to this method. You can find a user's uri by making an API call to our user endpoints.

boolean handled = VimeoDeeplink.showUserWithUri(Context context, String userUri)

View a category in the Vimeo app

You can check if this method is supported on the installed Vimeo version using the call:

boolean supported = VimeoDeeplink.canHandleCategoryDeeplink(Context context)

You must provide a category uri to this method. You can find a categories uri by making an API call to our category endpoints.

boolean handled = VimeoDeeplink.showCategoryWithUri(Context context, String categoryUri)

View a channel in the Vimeo app

You can check if this method is supported on the installed Vimeo version using the call:

boolean supported = VimeoDeeplink.canHandleChannelDeeplink(Context context)

You must provide a channel uri to this method. You can find a channel's uri by making an API call to our channel endpoints.

boolean handled = VimeoDeeplink.showChannelWithUri(Context context, String channelUri)

View an On Demand film or series in the Vimeo app

You can check if this method is supported on the installed Vimeo version using the call:

boolean supported = VimeoDeeplink.canHandleOnDemandDeeplink(Context context)

You must provide an ondemand uri to this method.

boolean handled = VimeoDeeplink.showOnDemandTitleWithUri(Context context, String ondemandUri)

Open the All Categories page

boolean handled = VimeoDeeplink.showCategories(Context context)

Open the Explore page

boolean handled = VimeoDeeplink.showExplore(Context context)

Open the Feed

boolean handled = VimeoDeeplink.showFeed(Context context)

Open the current user's profile

boolean handled = VimeoDeeplink.showMyProfile(Context context)

Open the Playlists page

boolean handled = VimeoDeeplink.showPlaylists(Context context)

Open the Offline playlist page

boolean handled = VimeoDeeplink.showOffline(Context context)

Open the Notifications page

boolean handled = VimeoDeeplink.showNotifications(Context context)

Open the Watch Later page

boolean handled = VimeoDeeplink.showWatchLater(Context context)

Open the Purchases page

boolean handled = VimeoDeeplink.showPurchases(Context context)

Open the Camera roll to start the upload flow

boolean handled = VimeoDeeplink.showUpload(Context context)

Found an Issue?

Please file it in the git issue tracker.

Want to Contribute?

If you'd like to contribute, please follow our guidelines found in CONTRIBUTING.md.

License

vimeo-deeplink-android is available under the MIT license. See the LICENSE file for more info.

Questions?

Tweet at us here: @vimeoapi.

Post on Stackoverflow with the tag vimeo-android.

Get in touch here.

Interested in working at Vimeo? We're hiring!

vimeo-deeplink-android's People

Contributors

kevinzetterstrom avatar howardrigberg avatar alfiehanssen avatar brentwatson avatar kvenn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.