varungu / box-android-share-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Box Android Share SDK

This SDK enables the ability to easily manage shared links and collaborators on Box.

####Shared Links

####Collaborators

Developer Setup

The SDK can be obtained by adding it as a maven dependency, cloning the source into your project, or by downloading one of the precompiled JARs from the releases page on GitHub.

Gradle:

compile 'com.box:box-android-share-sdk:1.0.0'

Maven:

<dependency>
    <groupId>com.box</groupId>
    <artifactId>box-android-share-sdk</artifactId>
    <version>1.0.0</version>
</dependency>

If not using Gradle or Maven, this SDK has the following dependencies and will need to be included in your project:

Quickstart

You will need a BoxSession and the BoxItem from the box-content-sdk. Please refer to the documentation of the box-content-sdk for additional details.

    BoxSession session = new BoxSession(MainActivity.this);
    BoxFolder folder = new BoxApiFolder(session).getInfo("<FOLDER_ID>").send();

####File or Folder Shared Link To manage an item Shared Link, launch the following activity:

    startActivity(BoxSharedLinkActivity.getLaunchIntent((MainActivity.this, folder, session));

This activity allows you to manage all the settings of a Shared Link (for a specific File or Folder): password restriction, permissions, expiration date, access level, etc.

####Folder Collaborators To manage Folder collaborators, launch the following activity:

    startActivity(BoxCollaborationsActivity.getLaunchIntent(MainActivity.this, folder, session));

This activity allows you to manage user access and permissions to a specific Folder.

Sample App

A sample app can be found in the box-share-sample folder.

Copyright 2015 Box, Inc. All rights reserved.

Licensed under the Box Terms of Service; you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.box.com/legal/termsofservice/​

About

License:Apache License 2.0


Languages

Language:Java 99.5%Language:Shell 0.5%