Package com.codename1.documents
package com.codename1.documents
Exposes an app's documents to the system file browser -- the Files app on iOS and the storage picker on Android -- so its content is browsable, and openable by other apps, without the app being launched.
Start at DocumentProvider. Build a tree of DocumentNodes, point each file either at bytes
under DocumentProvider.getSharedDirectory() or at a key your HTTPS endpoint understands, and
publish it. DocumentIndexSerializer is the on-disk format the platform readers consume, and
is public so tests and tooling can read what was published.
See the Document Provider chapter of the developer guide for the build hints, the endpoint contract and the signing setup, which the Certificate Wizard can perform for you.
-
ClassesClassDescriptionConverts a published document tree to and from the
index.jsonthe platform readers consume.One entry in the tree an app publishes throughDocumentProvider: a folder or a file, as the system file browser will show it.The static entry point for exposing your app's documents to the system file browser: the Files app on iOS, the storage picker on Android.