public static interface DbxFileSystem.PathListener
Listeners are called on the main UI thread. To keep your UI responsive, you shouldn't do anything slow in your listener.
Registered path listeners will cause the SDK to perform more frequent updates in the background to ensure changes are visible as soon as possible. To avoid consuming extra power, you should remove your listeners when your app isn't in use.
Modifier and Type | Interface and Description |
---|---|
static class |
DbxFileSystem.PathListener.Mode
Specifies the situations in which a listener should be notified.
|
Modifier and Type | Method and Description |
---|---|
void |
onPathChange(DbxFileSystem fs,
DbxPath registeredPath,
DbxFileSystem.PathListener.Mode registeredMode)
Called when there's a change to a path for which a listener is
registered.
|
void onPathChange(DbxFileSystem fs, DbxPath registeredPath, DbxFileSystem.PathListener.Mode registeredMode)
DbxFileSystem
methods to list
files and folders for changes.fs
- the DbxFileSystem on which the listener was registered.registeredPath
- the path on which this listener was registered.
For changes to children or descendants, this path doesn't indicate
which descendant has changed.registeredMode
- the type of event for which this listener was
registered. This doesn't indicate which specific event triggered
this call.