This SDK enables the ability to easily manage shared links and collaborators on Box.
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:
implementation 'com.box:box-android-share-sdk:3.0.0'
Maven:
<dependency>
<groupId>com.box</groupId>
<artifactId>box-android-share-sdk</artifactId>
<version>3.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:
- 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.
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.
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/