Class Info |
|---|
public class Drive.Changes extends java.lang.Object Drive.Changes class. |
Qualifier and Type | Class Name and Description |
|---|---|
class | Declaration of the Drive.Changes.GetStartCursor class. |
class | Declaration of the Drive.Changes.List class. |
class | Declaration of the Drive.Changes.Subscribe class. |
Qualifier and Type | Method Name and Description |
|---|---|
| Obtains a cursor to enable the file change notification function. | |
list(String cursor) Lists changes. | |
subscribe(String cursor, Channel content) Subscribes to changes of all files and folders. If any change is detected, a callback notification is sent to the API caller. |
Method |
|---|
public Drive.Changes.GetStartCursor getStartCursor() throws java.io.IOException Obtains a cursor to enable the file change notification function. |
Throws
Name | Description |
|---|---|
java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description. |
Returns
Type | Description |
|---|---|
Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
Method |
|---|
public Drive.Changes.List list(String cursor) throws java.io.IOException Lists changes. |
Parameters
Name | Description |
|---|---|
cursor | Cursor for the current page, which is obtained from nextCursor in the previous response or using the getStartCursor method. The server returns a maximum of 100 changes for each query request. If there are more than 100 changes, the cursor needs to be set to nextCursor for a new change notification. This process repeats until nextCursor in the response is empty, which indicates that all changes have been returned. |
Throws
Name | Description |
|---|---|
java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description. |
Returns
Type | Description |
|---|---|
Drive.Changes.List | A Drive.Changes.List object. |
Method |
|---|
public Drive.Changes.Subscribe subscribe(String cursor, Channel content) throws java.io.IOException Subscribes to changes of all files and folders. If any change is detected, a callback notification is sent to the API caller. |
Parameters
Name | Description |
|---|---|
cursor | Cursor for the current page, which is obtained from nextCursor in the previous response or using the getStartCursor method. |
content | Channel to be subscribed to. |
Throws
Name | Description |
|---|---|
java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage method to obtain the error description. |
Returns
Type | Description |
|---|---|
Drive.Changes.Subscribe | A Drive.Changes.Subscribe object. |