class info
public class Drive.Changes extends java.lang.Object
Drive.Changes class.

Nested Class Summary

TypeNameDesc
classDrive.Changes.GetStartCursorDeclaration of the Drive.Changes.GetStartCursor class.
classDrive.Changes.ListDeclaration of the Drive.Changes.List class.
classDrive.Changes.SubscribeDeclaration of the Drive.Changes.Subscribe class.

Public Constructor Summary

Constructor name

Changes() 

Constructor for the Drive.Changes class.

Public Method Summary

Return typeMethod 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.

Public Constructor

constructor
Drive.Changes ()
A Drive.Changes object.

Public Methods

Method
public Drive.Changes.GetStartCursor getStartCursor() throws java.io.IOException
Obtains a cursor. After obtaining a cursor, enable file change notification.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Changes.GetStartCursorA Drive.Changes.GetStartCursor object.
Method



public Drive.Changes.List list(String cursor) throws java.io.IOException

Lists all changes.

Parameters

Parameter nameParameter desc
cursorCursor, 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 nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Changes.ListA 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 nameParameter desc
cursorCursor, which is obtained from nextCursor in the previous response or using the getStartCursor() method.
contentChannel to be subscribed.

Throws

Parameter nameParameter desc
java.io.IOExceptionI/O exception thrown upon an API call failure. You can use the getMessage() method to obtain the error description.

Return

typedesc
Drive.Changes.SubscribeA Drive.Changes.Subscribe object.