https://github.com/box/box-android-share-sdk
https://github.com/box/box-android-share-sdk
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/box/box-android-share-sdk
- Owner: box
- License: apache-2.0
- Created: 2015-04-14T20:31:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T00:25:10.000Z (about 3 years ago)
- Last Synced: 2025-04-09T13:46:53.623Z (about 1 year ago)
- Language: Java
- Size: 1.59 MB
- Stars: 2
- Watchers: 57
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/