Package-level declarations

Shared link management.

File Sharing

The basic methods for sharing can be found in this article.

Getting Not My FS Roots

val fileManager: FileManager
lifecycleScope.launch {
fileManager.sharing.fetchSharedWithMeRoots()
fileManager.sharing.createNotMyFSRootsPagingFlow().collect { roots ->
// Handler it...
}
}

Open Shared Link

val fileManager: FileManager
val sharedLinkPassword: String? = "password"
lifecycleScope.launch {
val result: Any? = fileManager.sharing.openSharedLink(
sharedLinkId = "shared link id",
password = sharedLinkPassword
)

// result is FileItem or NotMyFSRoot
}

Types

Link copied to clipboard
interface FileSharing