An open API service indexing awesome lists of open source software.

https://github.com/box/box-android-share-sdk


https://github.com/box/box-android-share-sdk

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

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:
```groovy
implementation 'com.box:box-android-share-sdk:3.0.0'
```
Maven:
```xml

com.box
box-android-share-sdk
3.0.0

```

If not using Gradle or Maven, this SDK has the following dependencies and will need to be included in your project:
* [box-android-sdk](https://github.com/box/box-android-sdk) (maven: `com.box:box-android-sdk:5.0.0`)

The SDK was migrated to AndroidX in version 3.0.0. Latest stable version with support library is 2.3.0.

Quickstart
--------------
You will need a BoxSession and the BoxItem from the [box-content-sdk](https://github.com/box/box-android-content-sdk). Please refer to the documentation of the box-content-sdk for additional details.
```java
BoxSession session = new BoxSession(MainActivity.this);
BoxFolder folder = new BoxApiFolder(session).getInfo("").send();
```

####File or Folder Shared Link
To manage an item Shared Link, launch the following activity:
```java
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:
```java
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](../../tree/master/box-share-sample) folder.

Copyright and License
---------------------
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/​