| class info |
| public class Drive.Changes extends java.lang.Object |
| Drive.Changes class. |
| Type | Name | Desc |
| class | Drive.Changes.GetStartCursor | Declaration of the Drive.Changes.GetStartCursor class. |
| class | Drive.Changes.List | Declaration of the Drive.Changes.List class. |
| class | Drive.Changes.Subscribe | Declaration of the Drive.Changes.Subscribe class. |
| Constructor name |
Changes() Constructor for the Drive.Changes class. |
| Return type | Method name |
| Drive.Changes.GetStartCursor | getStartCursor() Obtains a cursor. After obtaining a cursor, enable file change notification. |
| Drive.Changes.List | list(String cursor) Lists all changes. |
| Drive.Changes.Subscribe | 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. |
| constructor |
| Drive.Changes () |
| A Drive.Changes object. |
| Method |
| public Drive.Changes.GetStartCursor getStartCursor() throws java.io.IOException |
| Obtains a cursor. After obtaining a cursor, enable file change notification. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Changes.GetStartCursor | A Drive.Changes.GetStartCursor object. |
| Method |
public Drive.Changes.List list(String cursor) throws java.io.IOException |
| Lists all changes. |
Parameters
| Parameter name | Parameter desc |
| cursor | Cursor, 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
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| 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
| Parameter name | Parameter desc |
| cursor | Cursor, which is obtained from nextCursor in the previous response or using the getStartCursor() method. |
| content | Channel to be subscribed. |
Throws
| Parameter name | Parameter desc |
| java.io.IOException | I/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description. |
Return
| type | desc |
| Drive.Changes.Subscribe | A Drive.Changes.Subscribe object. |